20200811_jeffrey - silenceuncrio/diary GitHub Wiki

0845

在 window 上安裝 node js 環境

安裝 git

git clone 時發生問題

JEFFREY@PCI-Jeffrey MINGW64 /d/isms
$ git clone https://192.168.0.124/RD/isms-server.git
Cloning into 'isms-server'...
fatal: unable to access 'https://192.168.0.124/RD/isms-server.git/': SSL certificate problem: self signed certificate

JEFFREY@PCI-Jeffrey MINGW64 /d/isms
$

尋求解決

JEFFREY@PCI-Jeffrey MINGW64 /d/isms
$ git config --global http.sslVerify false

JEFFREY@PCI-Jeffrey MINGW64 /d/isms
$ git clone https://192.168.0.124/RD/isms-server.git
Cloning into 'isms-server'...
remote: Enumerating objects: 345, done.
remote: Counting objects: 100% (345/345), done.
remote: Compressing objects: 100% (143/143), done.
remote: Total 3142 (delta 209), reused 319 (delta 183), pack-reused 2797
Receiving objects: 100% (3142/3142), 778.98 KiB | 21.05 MiB/s, done.
Resolving deltas: 100% (1589/1589), done.

JEFFREY@PCI-Jeffrey MINGW64 /d/isms
$

跳出視窗要我輸入帳號密碼

成功 clone 了下來

試著執行看看

JEFFREY@PCI-Jeffrey MINGW64 /d/isms/isms-server/web (develop)
$ npm install


> [email protected] postinstall D:\isms\isms-server\web\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall D:\isms\isms-server\web\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall D:\isms\isms-server\web\node_modules\core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\watchpack\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\jest-haste-map\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1739 packages from 952 contributors and audited 1941 packages in 283.532s

61 packages are looking for funding
  run `npm fund` for details

found 4967 vulnerabilities (4964 low, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details

JEFFREY@PCI-Jeffrey MINGW64 /d/isms/isms-server/web (develop)
$

停了大概快五分鐘都沒啥動靜

JEFFREY@PCI-Jeffrey MINGW64 /d/isms/isms-server/web (develop)
$ npm start

> [email protected] start D:\isms\isms-server\web
> react-scripts start

i 嚚─ds嚚?[39m: Project is running at http://192.168.0.66/
i 嚚─ds嚚?[39m: webpack output is served from
i 嚚─ds嚚?[39m: Content not from webpack is served from D:\isms\isms-server\web\public
i 嚚─ds嚚?[39m: 404s will fallback to /
Starting the development server...

Compiled successfully!

You can now view web in the browser.

  Local:            http://localhost:3000
  On Your Network:  http://192.168.0.66:3000

Note that the development build is not optimized.
To create a production build, use npm run build.

成功跑起來囉...

1100

ISMS Server - task

commit cbb9675454e50e25e87316ddfc1bd0fbc2b7a0fd
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 11:00:34 2020 +0800

    fine tue the css for desktop dashboard

 web/src/components/dashboard/googleMaps.js      |  2 +-
 web/src/components/dashboard/widgetContainer.js | 13 +++++++++----
 2 files changed, 10 insertions(+), 5 deletions(-)

commit d76ff854e6f0b6f4726e612f75ee55e39e125898
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 11:33:17 2020 +0800

    fine tune components/dashboard/iot

 web/src/components/dashboard/iot.js             | 61 +++++++++++++------------
 web/src/components/dashboard/widgetContainer.js |  4 --
 2 files changed, 31 insertions(+), 34 deletions(-)

commit 3cf15ee6893aa18721b50897e053ef1f423c05c6
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 15:48:28 2020 +0800

    re layout the components/topology/status

 web/src/components/chart/index.js               |  17 +--
 web/src/components/icons/exclamationCircle.js   |  24 +++
 web/src/components/icons/exclamationTriangle.js |  24 +++
 web/src/components/icons/index.js               |   4 +
 web/src/components/nodeStatus/alarm.js          | 137 ++++++++++++-----
 web/src/components/nodeStatus/connStatistics.js |  30 +++-
 web/src/components/nodeStatus/dns.js            |  11 +-
 web/src/components/nodeStatus/index.js          |  12 +-
 web/src/components/nodeStatus/statistics.js     | 189 ++++++++++++++++++++++++
 web/src/components/topology/index.js            |  37 ++---
 web/src/components/topology/status.js           |   2 +-
 11 files changed, 398 insertions(+), 89 deletions(-)

commit 58650f3b7eda241f8b9fa19dc33e61c90429e570
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 16:02:23 2020 +0800

    refactoring components/nodeTrack

 web/src/components/nodeTrack/googleMaps.js | 41 +++++++++++++++++++++---------
 web/src/components/nodeTrack/index.js      | 39 +++++++++++++---------------
 2 files changed, 47 insertions(+), 33 deletions(-)

commit 1683d149bed73cdccf8bd568947f580f29e6d014
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 16:22:56 2020 +0800

    refactoring components/dashboard

 web/src/components/dashboard/googleMaps.js      | 114 ----------
 web/src/components/dashboard/health.js          | 282 ------------------------
 web/src/components/dashboard/index.js           |   4 +-
 web/src/components/dashboard/iot.js             |  77 -------
 web/src/components/dashboard/signalStrength.js  | 281 -----------------------
 web/src/components/dashboard/widgetContainer.js |  79 -------
 web/src/components/widget/googleMaps.js         | 114 ++++++++++
 web/src/components/widget/health.js             | 282 ++++++++++++++++++++++++
 web/src/components/widget/index.js              |  72 ++++++
 web/src/components/widget/iot.js                |  77 +++++++
 web/src/components/widget/signalStrength.js     | 281 +++++++++++++++++++++++
 11 files changed, 828 insertions(+), 835 deletions(-)

commit ba6e3a581b4be8a9ce20eddcbb2606a52949e2e5
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 16:35:46 2020 +0800

    refactoring components/topology

 web/src/components/topology/index.js    | 76 +++---------------------------
 web/src/components/topology/topology.js | 83 +++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+), 70 deletions(-)

commit 1e2cf995b5c63523010c77a40fe46916713adbe7
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Tue Aug 11 16:39:17 2020 +0800

    rename components/nodeTrack to components/track

 web/src/components/nodeTrack/googleMaps.js | 193 -----------------------------
 web/src/components/nodeTrack/index.js      | 139 ---------------------
 web/src/components/track/googleMaps.js     | 193 +++++++++++++++++++++++++++++
 web/src/components/track/index.js          | 139 +++++++++++++++++++++
 web/src/constants/route_paths.js           |   2 +-
 web/src/routes/app.js                      |   8 +-
 6 files changed, 337 insertions(+), 337 deletions(-)