20160908_jeffrey - silenceuncrio/diary GitHub Wiki
Index
- 0910 - review
- 1005 - commit - Rename from "icos_shm_status_get.cgi" to "icos_shm.cgi"
- 1055 - commit - Refactoring index.html for DigiComm - Add custom-digicomm.css and pweb-app.js
- 1305 - commit - Refactoring index.html for DigiComm and pweb-app.js - Add localization files
- 1455 - commit - Modify status.html - Add statusController.js
- 1730 - Adobe Illustrator
0910
昨天有了不少進展
先 review 一下順便加強一下印象
1005
邊 review 邊 refactoring 邊把 ip6info
補上去
Revision: 552
Author: jeffrey
Date: 2016年9月8日 上午 10:06:08
Message:
Rename from "icos_shm_status_get.cgi" to "icos_shm.cgi"
Modify icos_shm.cgi
- function "_status()" rename to "_status_get()"
- support "ip6info" when name = lte_dpip_all
----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/Makefile
Added : /fsl-release-bsp/proscend/prosrc/webcgi/icos_shm.c
Deleted : /fsl-release-bsp/proscend/prosrc/webcgi/icos_shm_status_get.c
1055
Revision: 556
Author: jeffrey
Date: 2016年9月8日 上午 10:55:16
Message:
Refactoring index.html for DigiComm
- rename ng-app module name from "myApp" to "pweb-app"
- rename ng-controller name from "myCtrl" to "pweb-controller"
Add custom-digicomm.css
- the additional customization for our customer DigiComm(base on bootstrap)
Add pweb-app.js
- create a angular module - "pweb-app"
- configure for Angular services:
- $httpProvider
- $routeProvider
- $translateProvider
----
Added : /fsl-release-bsp/proscend/prosrc/www/assets/custom-digicomm.css
Added : /fsl-release-bsp/proscend/prosrc/www/assets/pweb-app.js
Modified : /fsl-release-bsp/proscend/prosrc/www/index.html
Modified : /fsl-release-bsp/proscend/prosrc/www/pages/lanIpv4Controller.js
整理一下 index.html
把可以抽出去的部分整理一下放在 /www/assets/
裡面
1305
Revision: 558
Author: jeffrey
Date: 2016年9月8日 下午 01:06:31
Message:
Refactoring index.html for DigiComm
- using staticFilesLoader for angular translate
Refactoring pweb-app.js
- useStaticFilesLoader
Add localization files
- locale-en.json - English
- locale-zh-tw.json - Taiwan
- locale-ar.json - Arabic
----
Added : /fsl-release-bsp/proscend/prosrc/www/assets/angular-translate-loader-static-files.js
Added : /fsl-release-bsp/proscend/prosrc/www/assets/angular-translate-loader-url.js
Added : /fsl-release-bsp/proscend/prosrc/www/assets/locale-ar.json
Added : /fsl-release-bsp/proscend/prosrc/www/assets/locale-en.json
Added : /fsl-release-bsp/proscend/prosrc/www/assets/locale-zh-tw.json
Modified : /fsl-release-bsp/proscend/prosrc/www/assets/pweb-app.js
Modified : /fsl-release-bsp/proscend/prosrc/www/index.html
終於知道怎麼把多國語言所需要的語系檔案分開了
越來越感覺到 angular 的威力了
1455
Revision: 562
Author: jeffrey
Date: 2016年9月8日 下午 02:54:12
Message:
Modify status.html
Add statusController.js
- get information from the following RESTful API
- icos_shm.cgi?act=status_get&name=modem0
- icos_shm.cgi?act=status_get&name=modem1
- icos_shm.cgi?act=status_get&name=lan_status
- icos_shm.cgi?act=status_get&name=eth_proto4
----
Modified : /fsl-release-bsp/proscend/prosrc/www/assets/custom-digicomm.css
Modified : /fsl-release-bsp/proscend/prosrc/www/index.html
Modified : /fsl-release-bsp/proscend/prosrc/www/pages/status.html
Added : /fsl-release-bsp/proscend/prosrc/www/pages/statusController.js
先作 status.html
不過先呈現最原始的資料
1730
需要使用 Adobe Illustrator
才能開啟
還好有免費使用的舊版可以下載 - [下載] 免費、正式版 Adobe CS2、Photoshop、Illustrator 下載+序號