diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9ee1b46d..adabe3185 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -212,7 +212,7 @@ jobs: report_name: Coverage Frontend type: lcov result_path: ./coverage/lcov.info - min_coverage: 19 + min_coverage: 20 token: ${{ github.token }} ############################################################################## diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b03c78d5..a71ad2fd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,36 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [1.0.2](https://github.com/gradido/gradido/compare/1.0.1...1.0.2) + +- fix: GDD Amount is Always Displayed with Two Digits [`#468`](https://github.com/gradido/gradido/pull/468) +- fix: Date Time Formats [`#469`](https://github.com/gradido/gradido/pull/469) +- Community ipv6 localhost [`#466`](https://github.com/gradido/gradido/pull/466) +- Login html pages autoparse [`#464`](https://github.com/gradido/gradido/pull/464) +- everything I find and fix crash related in login server this week (kw 20) [`#448`](https://github.com/gradido/gradido/pull/448) +- 437 bug mobile transaction list is not easy to read [`#462`](https://github.com/gradido/gradido/pull/462) +- Require memo in send [`#455`](https://github.com/gradido/gradido/pull/455) +- bug: Thx Page Shows Content Dependent of Route From [`#459`](https://github.com/gradido/gradido/pull/459) +- bug: responsive display error on pads fixed [`#461`](https://github.com/gradido/gradido/pull/461) +- [Bug] German "Dir" is written with capital D in send validation bug [`#460`](https://github.com/gradido/gradido/pull/460) +- feat: Save Locale in Database [`#450`](https://github.com/gradido/gradido/pull/450) +- attention! notice in send area removed [`#458`](https://github.com/gradido/gradido/pull/458) +- Remove Error Message encoding [`#456`](https://github.com/gradido/gradido/pull/456) +- bug fix:mobile menu closes on logout, probs value problem on logout f… [`#454`](https://github.com/gradido/gradido/pull/454) +- bug-login password change show hide inserted [`#453`](https://github.com/gradido/gradido/pull/453) +- fix sorting and use total count [`#451`](https://github.com/gradido/gradido/pull/451) +- add dynamic error email if transaction failed [`#452`](https://github.com/gradido/gradido/pull/452) +- ceil the last decay [`#449`](https://github.com/gradido/gradido/pull/449) +- feat: Raise Coverage of Frontend Unit Tets to 18% [`#447`](https://github.com/gradido/gradido/pull/447) +- parse cpsp files automatic in build [`a4a12bb`](https://github.com/gradido/gradido/commit/a4a12bb62b4000e035ff15e17c5a5f5861653ff6) +- translate german html encoded error messages to english and use gettext for automatic translation [`d339627`](https://github.com/gradido/gradido/commit/d33962736d94c1cb7a12ff775bc2c8d7505d646e) +- 100% coverage of GddTransactionList [`96fb245`](https://github.com/gradido/gradido/commit/96fb245821c69f4d321204a663247d5eee60d92f) + #### [1.0.1](https://github.com/gradido/gradido/compare/1.0.0...1.0.1) +> 14 May 2021 + +- Login crash fix [`#444`](https://github.com/gradido/gradido/pull/444) - add try catch blocks to prevent login-server from crashing [`22ff220`](https://github.com/gradido/gradido/commit/22ff22072956f8b843037c75c5b16b7ff5d6a2a3) - fix [`14a4243`](https://github.com/gradido/gradido/commit/14a424347817b1fe6912a113bffd70e55d688112) diff --git a/community_server/config/routes.php b/community_server/config/routes.php index 322825c87..3b0dfedc1 100644 --- a/community_server/config/routes.php +++ b/community_server/config/routes.php @@ -65,8 +65,9 @@ Router::scope('/', function (RouteBuilder $routes) { if($entry == 'ElopageWebhook' || $entry == 'AppRequests') { return true; } - if($request->clientIp() == '127.0.0.1' || $request->clientIp() == 'localhost' || $request->clientIp() == '') { - return true; + $allowedIpLocalhost = ['127.0.0.1', 'localhost', '', '::1']; + if(in_array($clientIp, $allowedIpLocalhost)) { + return true; } $allowedCaller = Configure::read('API.allowedCaller'); $ipPerHost = []; diff --git a/community_server/src/Controller/AppRequestsController.php b/community_server/src/Controller/AppRequestsController.php index 4cefdbd47..2ece0c726 100644 --- a/community_server/src/Controller/AppRequestsController.php +++ b/community_server/src/Controller/AppRequestsController.php @@ -156,6 +156,9 @@ class AppRequestsController extends AppController if($required_fields !== true) { return $this->returnJson($required_fields); } + if(!isset($params['memo']) || strlen($params['memo']) < 5 || strlen($params['memo']) > 150) { + return $this->returnJson(['state' => 'error', 'msg' => 'memo is not set or not in expected range [5;150]']); + } $params['transaction_type'] = 'transfer'; $requestAnswear = $this->JsonRequestClient->sendRequest(json_encode($params), '/createTransaction'); diff --git a/community_server/src/Controller/TransactionSendCoinsController.php b/community_server/src/Controller/TransactionSendCoinsController.php index 033e2343f..1018309cc 100644 --- a/community_server/src/Controller/TransactionSendCoinsController.php +++ b/community_server/src/Controller/TransactionSendCoinsController.php @@ -237,6 +237,11 @@ class TransactionSendCoinsController extends AppController $this->set('timeUsed', microtime(true) - $startTime); return; } + if($answear_data['msg'] === 'memo is not set or not in expected range [5;150]') { + $this->Flash->error(__('Ein Verwendungszweck zwischen 5 und 150 Zeichen wird benötig!')); + $this->set('timeUsed', microtime(true) - $startTime); + return; + } } else if($answear_data['state'] === 'not found' && $answear_data['msg'] === 'receiver not found') { $this->Flash->error(__('Der Empfänger wurde nicht auf dem Login-Server gefunden, hat er sein Konto schon angelegt?')); $this->set('timeUsed', microtime(true) - $startTime); diff --git a/frontend/babel.config.js b/frontend/babel.config.js index faf55f74f..5907ab074 100644 --- a/frontend/babel.config.js +++ b/frontend/babel.config.js @@ -4,7 +4,6 @@ module.exports = { [ 'component', { - libraryName: 'element-ui', styleLibraryName: 'theme-chalk', }, ], diff --git a/frontend/package.json b/frontend/package.json index 21b02ee2e..68b4a5807 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap-vue-gradido-wallet", - "version": "1.0.1", + "version": "1.0.2", "private": true, "scripts": { "start": "node run/server.js", @@ -29,7 +29,6 @@ "datamaps": "^0.5.9", "date-fns": "^1.30.1", "dropzone": "^5.5.1", - "element-ui": "2.4.11", "es6-promise": "^4.1.1", "eslint": "^7.25.0", "eslint-config-prettier": "^8.1.0", diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d44d64ab3..a6613bec1 100755 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -49,40 +49,49 @@ a, .copyright { color: #5a7b02; } -gradido-global-color-text { +.font1_2em { + font-size: 1.2em; +} +.font2em { + font-size: 1.5em; +} +.gradido-global-color-text { color: #3d443b; } -gradido-global-color-accent { +.gradido-global-color-accent { color: #047006; } -gradido-global-color-6e0a9c9e { +.gradido-global-color-6e0a9c9e { color: #000; } -gradido-global-color-2d0fb154 { +.gradido-global-color-2d0fb154 { color: #047006; } -gradido-global-color-16efe88c { +.gradido-global-color-16efe88c { color: #7ebc55; } -gradido-global-color-1939326 { +.gradido-global-color-1939326 { color: #f6fff6; } -gradido-global-color-9d79fc1 { +.gradido-global-color-9d79fc1 { color: #047006; } -gradido-global-color-6347f4d { +.gradido-global-color-6347f4d { color: #5a7b02; } -gradido-global-color-4fbc19a { +.gradido-global-color-4fbc19a { color: #014034; } -gradido-global-color-d341874 { +.gradido-global-color-d341874 { color: #b6d939; } -gradido-global-color-619d338 { +.gradido-global-color-619d338 { color: #8ebfb1; } -gradido-global-color-44819a9 { +.gradido-global-color-44819a9 { color: #026873; } +.gradido-global-color-gray { + color: #858383; +} diff --git a/frontend/src/components/LoadingPanel.vue b/frontend/src/components/LoadingPanel.vue deleted file mode 100644 index c6b4fd70a..000000000 --- a/frontend/src/components/LoadingPanel.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index f1e2a4455..60d835a1a 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -10,7 +10,7 @@ ... - {{ pending ? '—' : $n(balance) }} GDD + {{ pending ? '—' : $n(balance, 'decimal') }} GDD