20200714_jeffrey - silenceuncrio/diary GitHub Wiki
0850
ISMS Server - task
commit 2ca693ed40b5943b0cd3ed02c9e9deb5323ac599
Refs: [develop]
Author: jeffrey <[email protected]>
Date: Tue Jul 14 09:03:21 2020 +0800
replace pie charts with doughnut charts at dashboard
web/src/components/Dashboard/healthSummary.js | 2 +-
web/src/components/Dashboard/signalStrengthSummary.js | 2 +-
web/src/components/GoogleMaps/index.js | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
commit b9e7c642583a4a86ebffa884c0faa4e83eb3fb18
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Tue Jul 14 14:30:52 2020 +0800
use renderRoutes
web/src/components/App/index.js | 24 ++---------------
web/src/components/NodeM300/index.js | 40 ++++++-----------------------
web/src/components/TreesContext/TreeNode.js | 2 +-
3 files changed, 11 insertions(+), 55 deletions(-)
這個 commit 參考 ReactTraining / react-router
過程中卡了好一下
如果沒有修改 /src/components/TreesContext/TreeNode.js
diff --git a/web/src/components/TreesContext/TreeNode.js b/web/src/components/TreesContext/TreeNode.js
index 02c3930..933fc41 100644
--- a/web/src/components/TreesContext/TreeNode.js
+++ b/web/src/components/TreesContext/TreeNode.js
@@ -141,7 +141,7 @@ const Xxx02 = (props) => {
const Xxx03 = (props) => {
return (
- <StyledLinkContainer to={"/node_"+props.model + "/" + props.id + '/identity'} >
+ <StyledLinkContainer to={"/node_"+props.model + "/" + props.id} >
<StyledSvg as={FiSettings} />
</StyledLinkContainer>
)
那觸發 route 的過程會異常
從 topology 進入某一點後 /node_M300/012C800000000001/identity
再回到 topology 後點擊 <StyledLinkContainer to="/node_M300/012C800000000002/identity" >
發現沒有任何 component 被 render
目前不知如何解決
commit 947bec06348ac7ef1340f80563a3302e8126b58b
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Tue Jul 14 17:20:46 2020 +0800
remove components/Topology01 and components/Topology02
web/src/components/Topology01/FileExplorer.js | 37 ----
web/src/components/Topology01/Tree.js | 269 --------------------------
web/src/components/Topology01/TreeNode.js | 184 ------------------
web/src/components/Topology01/index.js | 24 ---
web/src/components/Topology02/FileExplorer.js | 37 ----
web/src/components/Topology02/Tree.js | 109 -----------
web/src/components/Topology02/TreeNode.js | 89 ---------
web/src/components/Topology02/index.js | 24 ---
web/src/routes/app.js | 15 --
9 files changed, 788 deletions(-)