20200429_jeffrey - silenceuncrio/diary GitHub Wiki

0915

M350-C - task - [70%] - P1 - CTCU web language

先修正其它同仁造成的 json format 錯誤

包含了一些自己為了 setting wizard 作的多國語言

commit 4d126983f87303da19565065d79084edb563b593
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 09:40:12 2020 +0800

    correct the json format for "zh-tw" and add some language key for setting wizard

 proscend/prosrc/www/app/feature/wizard.html | 96 ++++++++++++++---------------
 proscend/prosrc/www/app/locale-en.json      | 56 +++++++++++++++++
 proscend/prosrc/www/app/locale-fr.json      | 65 ++++++++++++++++---
 proscend/prosrc/www/app/locale-zh-tw.json   | 58 ++++++++++++++++-
 4 files changed, 217 insertions(+), 58 deletions(-)

完成了 setting wizard 的中文語系

commit f9e80cb4bbc316508e69d9034ea400cbd2c7bc83
Refs: [hotfix/v0.03], {origin/hotfix/v0.03}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 11:05:54 2020 +0800

    prepare the "zh-tw" language for setting wizard

 proscend/prosrc/www/app/feature/wizard.html | 102 ++++++++++++++--------------
 proscend/prosrc/www/app/locale-en.json      |  34 ++++++++--
 proscend/prosrc/www/app/locale-fr.json      |  34 ++++++++--
 proscend/prosrc/www/app/locale-zh-tw.json   | 102 +++++++++++++++++-----------
 4 files changed, 175 insertions(+), 97 deletions(-)

1120

M350-C - bug - [0%] wifi 2.4g wps 要拿掉

commit 4b4bdf72a627a57e2b54c88a7613d3fc348ba96c
Refs: [hotfix/v0.03], {origin/hotfix/v0.03}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 11:16:31 2020 +0800

    remove the WPS field from 'WiFi > Config (2.4 GHz)'

 proscend/prosrc/www/app/feature/wifi_apsta.html | 17 -----------------
 1 file changed, 17 deletions(-)

1350

ISMS Server - task

繼續 refactoring

這次學習到的是 styled-components - "as" polymorphic prop

commit 783a815e73ce3b80ac571d46f222a241c374576d
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 13:48:53 2020 +0800

    refactoring components/Navigation
    - use "as" polymorphic prop of "styled-components"
    - with custom components - react-icons

 web/src/components/Navigation/NavDashboard.js | 22 +++++-----------------
 web/src/components/Navigation/NavMap.js       | 12 ++++--------
 web/src/components/Navigation/NavSetting.js   | 12 ++++--------
 web/src/components/Navigation/NavTopology.js  | 12 ++++--------
 web/src/components/Navigation/index.js        |  1 -
 5 files changed, 17 insertions(+), 42 deletions(-)

相關的部分都重構

commit 7411c0aa05af5da0077ef1add9cc3bf927171ce5
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 14:01:36 2020 +0800

    refactoring components/Dashboard
    - use "as" polymorphic prop of "styled-components"
    - with custom components - react-icons

 web/src/components/Dashboard/chartPie.js       | 20 +++++---------------
 web/src/components/Dashboard/signalStrength.js | 25 +++++--------------------
 2 files changed, 10 insertions(+), 35 deletions(-)

commit 3efaaa09bc783c2b3b16613cf178ab03f868d6b7
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 14:51:45 2020 +0800

    refactoring: add components/ContentModal
    - reuse

 web/src/components/ContentModal/index.js | 24 ++++++++++++++++++++++++
 web/src/components/Dashboard/index.js    | 18 +-----------------
 web/src/components/Map/index.js          | 18 +-----------------
 web/src/components/Setting/index.js      | 18 +-----------------
 web/src/components/Topology/index.js     | 18 +-----------------
 5 files changed, 28 insertions(+), 68 deletions(-)

commit 173f93ed4cd610e02265f3bcdc1f2d1100e35b4e
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 14:59:01 2020 +0800

    refactoring: add components/ContentContainer
    - reuse

 web/src/components/ContentContainer/index.js | 28 ++++++++++++++++++++++++++++
 web/src/components/Dashboard/index.js        | 23 +----------------------
 web/src/components/Map/index.js              | 22 +---------------------
 web/src/components/Setting/index.js          | 22 +---------------------
 web/src/components/Topology/index.js         | 22 +---------------------
 5 files changed, 32 insertions(+), 85 deletions(-)

1620

先準備一個適合 Topology 的雛型

commit 65a6864093c4e4e04b26bdda507e399a6f53d784
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 16:22:00 2020 +0800

    layout the content of 'Topology'

 web/src/components/Dashboard/FileExplorer.js |  37 --------
 web/src/components/Dashboard/Tree.js         | 137 ---------------------------
 web/src/components/Dashboard/TreeNode.js     | 117 -----------------------
 web/src/components/Topology/FileExplorer.js  |  37 ++++++++
 web/src/components/Topology/Tree.js          | 137 +++++++++++++++++++++++++++
 web/src/components/Topology/TreeNode.js      | 117 +++++++++++++++++++++++
 web/src/components/Topology/index.js         |  47 ++++++++-
 7 files changed, 334 insertions(+), 295 deletions(-)

commit f71d73ad9e1fb53522a73fba6acf3e773e648bc1
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 16:26:31 2020 +0800

    correct the title at Topology

 web/src/components/Topology/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 8f01c3c164aa0bc38280ca0b778aac68d87e7be1
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 16:58:04 2020 +0800

    refactoring: RWD

 web/src/components/Dashboard/widgetContainer.js | 14 +++++---------
 web/src/components/Navigation/NavBar.js         |  4 ++--
 web/src/components/Topology/index.js            | 18 +++++-------------
 3 files changed, 12 insertions(+), 24 deletions(-)

commit 48d9a3cec5d999b35b780de0ba87ac1989657b12
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Wed Apr 29 17:45:51 2020 +0800

    refactoring: RWD and color

 web/src/components/Dashboard/iot.js           | 6 +++---
 web/src/components/Navigation/IsmsHeader.js   | 6 +++---
 web/src/components/Navigation/NavDashboard.js | 2 +-
 web/src/components/Navigation/NavMap.js       | 2 +-
 web/src/components/Navigation/NavSetting.js   | 2 +-
 web/src/components/Navigation/NavTopology.js  | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)

重構到此已經差不多了