20190920_jeffrey - silenceuncrio/diary GitHub Wiki
0900
review
GPS Track Server
M300[develop]
- remind user the interval of LTE continuous link down times
M330[develop]
- remind user the interval of LTE continuous link down times
- add the 'time' field at 'GPS' panel of 'Status' page
- fix the problem about the 'Time' field at 'GPS' panel at 'Status' page
M360P[release/v1.04]
- remind user the interval of LTE continuous link down times
- user friendly the 'Firewall > Basic Rules' page according to the configuration logic
- at 'Firewall > Basic Rule', display the error message while apply fail
- add 'Firewall > Basic Rules'
1340
繼續 M330 - GPS Track Server 端的佈建
- React-Leaflet
- React-Leaflet provides an abstraction of Leaflet as React components.
參考其 example
[34/34]
➜ ~ cd gps_track_server
➜ gps_track_server ls
express_mongo my_awesome_project
➜ gps_track_server git clone https://github.com/PaulLeCam/react-leaflet.git
Cloning into 'react-leaflet'...
remote: Enumerating objects: 309, done.
remote: Counting objects: 100% (309/309), done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 6954 (delta 139), reused 233 (delta 96), pack-reused 6645
Receiving objects: 100% (6954/6954), 6.34 MiB | 2.54 MiB/s, done.
Resolving deltas: 100% (5072/5072), done.
Checking connectivity... done.
➜ gps_track_server cd react-leaflet
➜ react-leaflet git:(master) ls
CHANGELOG.md CONTRIBUTING.md crowdin.yaml docs example LICENSE __mocks__ package.json README.md rollup.config.js src __tests__ UPGRADING.md website yarn.lock
➜ react-leaflet git:(master) npm install
> [email protected] postinstall /home/jeffrey/gps_track_server/react-leaflet/node_modules/core-js
> node scripts/postinstall || echo "ignore"
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 /home/jeffrey/gps_track_server/react-leaflet/node_modules/prettier-eslint/node_modules/core-js
> node scripts/postinstall || echo "ignore"
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 -)
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @typescript-eslint/[email protected] requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
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":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/flow-copy-source/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 1209 packages from 669 contributors and audited 898110 packages in 168.105s
found 0 vulnerabilities
➜ react-leaflet git:(master) ✗ npm run examples
> [email protected] examples /home/jeffrey/gps_track_server/react-leaflet
> webpack-dev-server --config ./example/webpack.config.js
ℹ 「wds」: Project is running at http://localhost:8000/
ℹ 「wds」: webpack output is served from /
ℹ 「wds」: Content not from webpack is served from /home/jeffrey/gps_track_server/react-leaflet/example
ℹ 「wdm」: Hash: cfda3234cb55bf5a2453
Version: webpack 4.40.2
Time: 6091ms
Built at: 2019-09-20 13:44:28
Asset Size Chunks Chunk Names
1c51c022dd4d5db772c41696e17b63bb.svg 1.36 KiB [emitted]
2f98dcbe49b35bc380bcd71414b39915.svg 1.27 KiB [emitted]
bundle.js 2 MiB index [emitted] index
Entrypoint index = bundle.js
[1] multi (webpack)-dev-server/client?http://localhost:8000 ./example/index.js 40 bytes {index} [built]
[./example/components/app.js] 4.07 KiB {index} [built]
[./example/index.js] 654 bytes {index} [built]
[./node_modules/@babel/runtime/helpers/interopRequireDefault.js] 147 bytes {index} [built]
[./node_modules/react-dom/index.js] 1.33 KiB {index} [built]
[./node_modules/react/index.js] 190 bytes {index} [built]
[./node_modules/webpack-dev-server/client/index.js?http://localhost:8000] (webpack)-dev-server/client?http://localhost:8000 4.29 KiB {index} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {index} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {index} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.89 KiB {index} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {index} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {index} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {index} [built]
[./node_modules/webpack-dev-server/node_modules/strip-ansi/index.js] (webpack)-dev-server/node_modules/strip-ansi/index.js 161 bytes {index} [built]
[./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {index} [built]
+ 98 hidden modules
ℹ 「wdm」: Compiled successfully.
不過在 browser 端 192.168.217.128:8000 卻都毫無反應
直接進 VMware 使用 http://localhost:8000 就可以了
1415
我需要找一些更單純的範例
這個範例照著操作一下就可以看到成果了