20170720_jeffrey - silenceuncrio/diary GitHub Wiki
0920
WEB UI 追加
- GPS Status
- what is the current wan
- refer to Ethernet ping health
1010
先做 WEB UI - what is the current wan
ICOS_shm_status_getPtr(SHM_VPN);
typedef enum
{
NONE_IF = 0,
ETH_IF,
LTE_IF,
WIFI_IF,
} DEFAULT_GW_IF;
typedef struct _vpn_status_
{
unsigned short openvpn_connected;
unsigned short ipsec_connected;
unsigned short wan_connected;
DEFAULT_GW_IF default_gw_if;
char ipv6_in_used;
char ipv4_in_used;
DEFAULT_GW_IF default_gw_if6;
char gw_ifname[NETDEV_NAME_LEN]; // default ipv4 gw interface
char gw_ifname6[NETDEV_NAME_LEN]; // default ipv6 gw interface
} VPN_STATUS;
綜合 ariel 的口述
利用 ICOS_shm_status_getPtr(SHM_VPN)
得到 VPN_STATUS
結構的訊息
參考 default_gw_if 得知
- ETH_IF - WAN Ethernet 使用中
- LTE_IF - WAN LTE 使用中
然後想辦法在 status 那一頁讓使用者知道目前 WAN 使用的到底是 LTE 還是 Ethernet
1100
上 code
commit 6365e16352fb30bf1ebab051b727e02294de862d
Author: jeffrey <[email protected]>
Date: Thu Jul 20 11:01:39 2017 +0800
enhance the WEB status page
- rename the tile
- use a 'check' icon to let user know which WAN connection is in used currently
proscend/prosrc/webcgi/icos_shm.c | 1558 +++++++++++-----------
proscend/prosrc/www/app/feature/status.html | 9 +-
proscend/prosrc/www/app/feature/status.js | 18 +-
proscend/prosrc/www/app/locale-en.json | 3 +
proscend/prosrc/www/app/locale-fr.json | 3 +
proscend/prosrc/www/app/locale-zh-tw.json | 3 +
proscend/prosrc/www/app/services/icos.service.js | 3 +
7 files changed, 830 insertions(+), 767 deletions(-)
1330
ariel 覺得 WAN Ethernet
的 web 頁面加了 Ethernet Ping Health
有點亂
幫忙加個 NAV tab 來切換 Ethernet Ping Health
與原本的 configuration
頁面
commit 173c343e4633aa798417003c41b2d8f39a8b0974
Author: jeffrey <[email protected]>
Date: Thu Jul 20 14:08:48 2017 +0800
Refactoring the 'WAN Ethernet' web page
- give the 'Ethernet Ping Health' function a new tab
- change the hint of 'Ethernet Ping Health' function
proscend/prosrc/www/app/feature/wanEthernet.html | 405 +++++++++++++----------
proscend/prosrc/www/app/locale-en.json | 4 +-
proscend/prosrc/www/app/locale-fr.json | 4 +-
proscend/prosrc/www/app/locale-zh-tw.json | 4 +-
4 files changed, 232 insertions(+), 185 deletions(-)
1450
針對擁有 GNSS
功能的機種
在 status 頁面加上 GPS Status
commit 5dff1e5968a2bdba2d50ec3cc0f2b0ca27ef9cfc
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date: Thu Jul 20 14:52:42 2017 +0800
add the GPS status in 'Status' web page while the 'GNSS' enabled
proscend/prosrc/webcgi/icos_shm.c | 6 +
proscend/prosrc/www/Makefile | 14 +-
proscend/prosrc/www/app/feature/status.html | 172 -----------------
proscend/prosrc/www/app/feature/status.js | 10 +-
proscend/prosrc/www/app/feature/status_gnss.html | 205 +++++++++++++++++++++
proscend/prosrc/www/app/locale-en.json | 8 +
proscend/prosrc/www/app/locale-fr.json | 8 +
proscend/prosrc/www/app/locale-zh-tw.json | 8 +
.../brand_digicomm/app/feature/status_gnss.html | 205 +++++++++++++++++++++
.../brand_digicomm/app/feature/status_no_gnss.html | 172 +++++++++++++++++
.../www/brand_nobrand/app/feature/status_gnss.html | 205 +++++++++++++++++++++
.../brand_nobrand/app/feature/status_no_gnss.html | 172 +++++++++++++++++
12 files changed, 1008 insertions(+), 177 deletions(-)
1510
monkeyjj time