20180806_jeffrey - silenceuncrio/diary GitHub Wiki

0920

review

0935

今天作 M300

目前待作事項如下

Tag Job Start End
TNN Reset by scheduling 7/10 8/21
是方電訊 GRE tunnel with NHRP 8/6 9/10
Xentino Web UI: logo and style (it can be single page design, not like initial divided tables) 8/6 8/21
Xentino Status page: Add FW(Firmware), IMEI 8/6 8/21
Xentino Status/Identification page: Add Serial Number 8/6 8/21
Xentino Status/Identification page: Add LAN ETH MAC, WAN ETH MAC 8/6 8/21
Xentino Status page: Display VPN active connection number 8/6 8/21
Xentino Move "Client List" and "Route Table" into Diagnostic Menu 8/6 8/21
Xentino Status page: Display LTE/WAN ETH connectioin time 8/6 8/21

自己可以獨立完成而且較優先的項目有

Tag Job Start End
Xentino Web UI: logo and style (it can be single page design, not like initial divided tables) 8/6 8/21
Xentino Status page: Add FW(Firmware), IMEI 8/6 8/21
Xentino Status page: Display VPN active connection number 8/6 8/21
Xentino Move "Client List" and "Route Table" into Diagnostic Menu 8/6 8/21

ariel 已經把 xentino 相關的 compile flag 加上去了

挑一個有 GPS 的 M300 profile 來 build - M300/13_XENTINO_GPS

1150

先作

Tag Job Start End
Xentino Move "Client List" and "Route Table" into Diagnostic Menu 8/6 8/21

先試著搬 Client List

正確的說法是把 System / Client List 改成 Diagnosis / Client List

而且只有當 _BRAND_ID72 時才成立

先套用下面的方式

#if _BRAND_ID == 72
    // do something xentino want
#else
    // keep something non xentino
#endif

1125

commit 0c95862d5e030bea00629bd5a51205f2d74d4549
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Aug 6 11:23:47 2018 +0800

    for customer xentino: move 'Client List' from menu 'System' to 'Diagnosis'

 proscend/prosrc/www/Makefile                       |  5 +-
 .../www/app/feature/dhcpClientList_xentino.html    | 58 +++++++++++++++++++
 .../www/app/feature/dhcpClientList_xentino.js      | 66 ++++++++++++++++++++++
 proscend/prosrc/www/src/index.html.src             |  1 +
 proscend/prosrc/www/src/menu.html.src              |  5 ++
 5 files changed, 134 insertions(+), 1 deletion(-)

1345

commit bb97e70f8481d1a2811825244c1edc685cbfaf44
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Aug 6 13:42:31 2018 +0800

    for customer xentino:
    - change 'IP Routing / Statis Route': move 'route table'
    - add 'Diagnosis / Route Table'

 proscend/prosrc/www/app/feature/route_status.html  |  53 ++++++++
 proscend/prosrc/www/app/feature/route_status.js    |  49 +++++++
 proscend/prosrc/www/app/feature/route_xentino.html | 148 +++++++++++++++++++++
 proscend/prosrc/www/app/feature/route_xentino.js   |  97 ++++++++++++++
 proscend/prosrc/www/app/locale-en.json             |  10 ++
 proscend/prosrc/www/app/locale-fr.json             |  10 ++
 proscend/prosrc/www/app/locale-zh-tw.json          |  10 ++
 proscend/prosrc/www/src/index.html.src             |   2 +
 proscend/prosrc/www/src/menu.html.src              |   7 +-
 9 files changed, 385 insertions(+), 1 deletion(-)
Tag Job Start End
Xentino Move "Client List" and "Route Table" into Diagnostic Menu 8/6 8/21

收工

1415

因為 xentino 的 status page 變動幅度很大的關係

如果不像把 status html page source code 搞得一大堆 compile flag 的話

最好從最源頭就用不一樣的 file 隔開

commit ec41ff28a4ed0eb1319be87692d768025eb2088e
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Aug 6 14:11:18 2018 +0800

    let each brand has it's own status page

 proscend/prosrc/www/.gitignore                     |   1 +
 proscend/prosrc/www/Makefile                       |  16 +
 proscend/prosrc/www/app/feature/status.js          | 168 +---------
 .../www/brand_advice/app/feature/status.html.src   |  29 ++
 .../prosrc/www/brand_advice/app/feature/status.js  | 200 ++++++++++++
 .../www/brand_ctcu/app/feature/status.html.src     |  29 ++
 .../prosrc/www/brand_ctcu/app/feature/status.js    | 200 ++++++++++++
 .../www/brand_cxr/app/feature/status.html.src      |  29 ++
 .../prosrc/www/brand_cxr/app/feature/status.js     | 200 ++++++++++++
 .../www/brand_digicomm/app/feature/status.html.src |  29 ++
 .../www/brand_digicomm/app/feature/status.js       | 200 ++++++++++++
 .../www/brand_hytec/app/feature/status.html.src    |  29 ++
 .../prosrc/www/brand_hytec/app/feature/status.js   | 200 ++++++++++++
 .../www/brand_nobrand/app/feature/status.html.src  |  29 ++
 .../prosrc/www/brand_nobrand/app/feature/status.js | 200 ++++++++++++
 .../www/brand_planet/app/feature/status.html.src   |  29 ++
 .../prosrc/www/brand_planet/app/feature/status.js  | 200 ++++++++++++
 .../www/brand_xentino/app/feature/status.html.src  |  29 ++
 .../prosrc/www/brand_xentino/app/feature/status.js |  36 +++
 .../prosrc/www/src/app/feature/status.html.src     | 350 +--------------------
 20 files changed, 1692 insertions(+), 511 deletions(-)

1425

作了測試之後發現自己改錯了

趕緊修正

commit 5ea50147f4c268e589a2968648bd581409e03459
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Aug 6 14:23:59 2018 +0800

    correct the status.html.src

 proscend/prosrc/www/Makefile                       |   2 +
 proscend/prosrc/www/app/feature/status.js          |  36 ---
 .../www/brand_advice/app/feature/status.html.src   | 350 ++++++++++++++++++++-
 .../www/brand_ctcu/app/feature/status.html.src     | 350 ++++++++++++++++++++-
 .../www/brand_cxr/app/feature/status.html.src      | 350 ++++++++++++++++++++-
 .../www/brand_digicomm/app/feature/status.html.src | 350 ++++++++++++++++++++-
 .../www/brand_hytec/app/feature/status.html.src    | 350 ++++++++++++++++++++-
 .../www/brand_nobrand/app/feature/status.html.src  | 350 ++++++++++++++++++++-
 .../www/brand_planet/app/feature/status.html.src   | 350 ++++++++++++++++++++-
 .../prosrc/www/src/app/feature/status.html.src     |  29 --
 10 files changed, 2417 insertions(+), 100 deletions(-)

.gitignore 小修一下

commit 31a64f48b4ad73ba350363b4e6f6456cc34756ef
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Mon Aug 6 14:26:39 2018 +0800

    update the .gitignore

 proscend/prosrc/www/.gitignore | 1 +
 1 file changed, 1 insertion(+)