20181122_jeffrey - silenceuncrio/diary GitHub Wiki

0900

再幫忙來 review 一下整個 online manual

commit bb00966df47397e29bc6e56637bc875333b732ff
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 09:28:57 2018 +0800

    fontawesome the sidebar

 proscend/prosrc/www/src/manual/sidebar.h.html | 55 +++++++++++++++++++++------
 1 file changed, 44 insertions(+), 11 deletions(-)
commit 7f82a96081c80ea618bece77c3b6ffd79cf40a66
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 09:39:12 2018 +0800

    about onlie manual:
    - remove the top nav
    - fine tune the sidebar

 proscend/prosrc/www/src/manual.html.src       | 11 -----------
 proscend/prosrc/www/src/manual/sidebar.h.html |  6 +++---
 2 files changed, 3 insertions(+), 14 deletions(-)
commit ce1277b548f26413fb395b89d1f082546cd9e1d3
Refs: [develop]
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 09:47:28 2018 +0800

    give a fontawesome icon to the chapter name of group 'System'

 proscend/prosrc/www/src/manual/system_alarm.h.html          | 5 ++++-
 proscend/prosrc/www/src/manual/system_client_list.h.html    | 5 ++++-
 proscend/prosrc/www/src/manual/system_ethernet_ports.h.html | 5 ++++-
 proscend/prosrc/www/src/manual/system_logging.h.html        | 6 +++++-
 proscend/prosrc/www/src/manual/system_time_and_date.h.html  | 5 ++++-
 5 files changed, 21 insertions(+), 5 deletions(-)
commit f505258ecf08e6564ac3a971551894ee87dad502
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 09:58:49 2018 +0800

    give a fontawesome icon to the chapter name of group 'WAN' adn 'LTE'
    fine tune some chapters of group 'LTE'

 proscend/prosrc/www/src/manual/lte_apnx_usage.h.html    | 17 ++++++++++-------
 proscend/prosrc/www/src/manual/lte_dns.h.html           | 10 +++++-----
 proscend/prosrc/www/src/manual/lte_dual_apn.h.html      |  6 +++++-
 proscend/prosrc/www/src/manual/lte_lock_bnads.h.html    |  8 ++++++--
 proscend/prosrc/www/src/manual/lte_lock_pcis.h.html     | 11 +++++++----
 proscend/prosrc/www/src/manual/lte_lte_config.h.html    | 15 +++++++++------
 .../prosrc/www/src/manual/lte_search_operators.h.html   |  8 ++++++--
 proscend/prosrc/www/src/manual/lte_serving_cell.h.html  |  5 ++++-
 proscend/prosrc/www/src/manual/lte_sms.h.html           | 10 +++++++---
 proscend/prosrc/www/src/manual/wan_ipv6_dns.h.html      |  6 +++++-
 10 files changed, 64 insertions(+), 32 deletions(-)
commit f858a4210f8770f494a68e507499e521309ea8fa
Refs: [develop]
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 10:05:44 2018 +0800

    give a fontawesome icon to the chapter name of group 'LAN'

 proscend/prosrc/www/src/manual/lan_ipv4.h.html   | 5 ++++-
 proscend/prosrc/www/src/manual/lan_ipv6.h.html   | 6 ++++--
 proscend/prosrc/www/src/manual/lan_subnet.h.html | 6 +++++-
 proscend/prosrc/www/src/manual/lan_vlan.h.html   | 5 ++++-
 4 files changed, 17 insertions(+), 5 deletions(-)
commit 097a783190102832b7607d4966d00e96e708baf4
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 10:09:48 2018 +0800

    give a fontawesome icon to the chapter name of group 'IP Routing'

 proscend/prosrc/www/src/manual/ip_routing_bgp.h.html          | 5 ++++-
 proscend/prosrc/www/src/manual/ip_routing_static_route.h.html | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
commit bcce8ec77ba72a96b1754715c643969b7e98db21
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 10:14:30 2018 +0800

    give a fontawesome icon to the chapter name of group 'VPN' and 'Firewall'

 proscend/prosrc/www/src/manual/firewall_dmz.h.html             | 5 ++++-
 proscend/prosrc/www/src/manual/firewall_ip_filter.h.html       | 5 ++++-
 proscend/prosrc/www/src/manual/firewall_ips.h.html             | 5 ++++-
 proscend/prosrc/www/src/manual/firewall_mac_filter.h.html      | 6 +++++-
 proscend/prosrc/www/src/manual/firewall_nat.h.html             | 5 ++++-
 proscend/prosrc/www/src/manual/firewall_port_forwarding.h.html | 5 ++++-
 proscend/prosrc/www/src/manual/firewall_url_filter.h.html      | 5 ++++-
 proscend/prosrc/www/src/manual/vpn_gre.h.html                  | 5 ++++-
 proscend/prosrc/www/src/manual/vpn_ipsec.h.html                | 5 ++++-
 proscend/prosrc/www/src/manual/vpn_l2tp.h.html                 | 5 ++++-
 proscend/prosrc/www/src/manual/vpn_pptp_srever.h.html          | 5 ++++-
 11 files changed, 45 insertions(+), 11 deletions(-)
commit 50368d7e32cf56bf8ba080e6c7776d12bdc0a892
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 10:24:38 2018 +0800

    give a fontawesome icon to the chapter name of group 'Service', 'Management' and 'Diagnosis'

 proscend/prosrc/www/src/manual/diagnosis_ping.h.html   |  5 ++++-
 .../prosrc/www/src/manual/diagnosis_traceroute.h.html  |  5 ++++-
 .../www/src/manual/management_administration.h.html    |  5 ++++-
 .../www/src/manual/management_configuration.h.html     |  5 ++++-
 .../prosrc/www/src/manual/management_contacts.h.html   | 18 ++++++++++++------
 .../prosrc/www/src/manual/management_firmware.h.html   |  5 ++++-
 .../www/src/manual/management_identification.h.html    |  5 ++++-
 .../www/src/manual/management_load_factory.h.html      |  5 ++++-
 .../prosrc/www/src/manual/management_restart.h.html    |  5 ++++-
 proscend/prosrc/www/src/manual/management_ssh.h.html   |  5 ++++-
 proscend/prosrc/www/src/manual/service_ip_alias.h.html |  5 ++++-
 proscend/prosrc/www/src/manual/service_qos.h.html      |  6 +++++-
 proscend/prosrc/www/src/manual/service_smtp.h.html     |  5 ++++-
 proscend/prosrc/www/src/manual/service_snmp.h.html     |  5 ++++-
 proscend/prosrc/www/src/manual/service_tr069.h.html    |  5 ++++-
 proscend/prosrc/www/src/manual/service_vrrp.h.html     |  5 ++++-
 16 files changed, 73 insertions(+), 21 deletions(-)

1030

build 個 image 試試

online manual 整體的架構是有了

不過內容有點貧乏

這就要等下一版

補點圖或是補個 application note 之類的

online manual 就先告一段落了

1145

客戶問 M300 能否從 1.59 成 1.74

這關鍵在於 change the firmware format and secure the rootfs

而有能力解開該 rootfs 的版本要在 11 Apr, 2017 之後

https://192.168.0.124/RD/M300/commit/351d22b395a29c82b7f21cbab9e5f59729026f4b

  • give 'FirmwareUpgrade.sh' the ability about:
    • decrypt 'firmware_patch.enc' and execute it
    • decrypt rootfs.tar.bz2.enc to rootfs.tar.bz2

1.59 的 release date 在 20171020

照理說 upgrade 成 1.74 應該沒問題

1315

monkeyjj react-firebase-02

commit 3211e55b3c2e7c98cafbf66d56a89c2786d3ae31
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 13:11:49 2018 +0800

    refactoring accoring to the following article
    - A Firebase in React Tutorial for Beginners [2018]
    - https://www.robinwieruch.de/complete-firebase-authentication-react-tutorial/

 src/components/Firebase/context.js  | 17 ++++++++++++++
 src/components/Firebase/firebase.js | 46 +++++++++++++++++++++++++++++++++++++
 src/components/Firebase/index.js    | 10 ++++++++
 src/components/SignIn/index.js      | 28 ++++++++++++----------
 src/components/SignOut/index.js     | 13 +++++------
 src/firebase/auth.js                | 18 ---------------
 src/firebase/firebase.js            | 32 --------------------------
 src/firebase/index.js               | 11 ---------
 src/index.js                        | 14 ++++++++++-
 9 files changed, 108 insertions(+), 81 deletions(-)

這次的重構幅度因應先前參考的文章 - A Firebase in React Tutorial for Beginners [2018]

該作者也做了蠻大幅度的重構

1325

follow A Firebase in React Tutorial for Beginners [2018] 的腳步繼續前進

commit c48884972c747dc35a944b380f56672aa62d32e3
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 13:21:33 2018 +0800

    use 'recompose' for composing our higher-order components

 package-lock.json              | 62 ++++++++++++++++++++++++++++++++++++++++++
 package.json                   |  3 +-
 src/components/SignIn/index.js |  7 ++++-
 3 files changed, 70 insertions(+), 2 deletions(-)

1400

monkeyjj react-firebase-02

commit 2e9f62dfad51e1a100e99d60a0bc27db9957beb7
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 13:59:09 2018 +0800

    finish the authentication process with Firebase in React

 src/components/App/index.js        | 64 +++++++++++++++++++++++++++++---------
 src/components/Navigation/index.js | 46 ++++++++++++++++++++-------
 2 files changed, 84 insertions(+), 26 deletions(-)

authentication 基礎已成形

1430

ariel 希望能把 online manual 也做在 M300 上面

預計下周要 release 給 hytec

不知道會不會太趕

明天再討論一下

1650

monkeyjj react-firebase-02

follow A Firebase in React Tutorial for Beginners [2018] 的腳步繼續前進

commit a0796398f40a3a0c98d0b3b140e6fd1a727515aa
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 16:46:34 2018 +0800

    add a new React Context for the session - AuthUserContext:
    - The authUser doesn't need to be passed to the Navigation component anymore.
    - Instead, the Navigation component can use the new context to consume the authenticated user

 src/components/App/index.js        | 31 +++++++++++++++++--------------
 src/components/Navigation/index.js | 16 +++++++++++++---
 src/components/Session/context.js  | 11 +++++++++++
 src/components/Session/index.js    |  7 +++++++
 4 files changed, 48 insertions(+), 17 deletions(-)
commit e59f22a8f5d9f83ed0a3dcfc2951c703248fa442
Refs: [master], {origin/master}, {origin/HEAD}
Author: jeffrey <[email protected]>
Date:   Thu Nov 22 16:58:39 2018 +0800

    extract the session handling functionalities for the authenticated user to a separate higher-order component

 src/components/App/index.js                  | 65 +++++++---------------------
 src/components/Session/index.js              |  3 +-
 src/components/Session/withAuthentication.js | 58 +++++++++++++++++++++++++
 3 files changed, 75 insertions(+), 51 deletions(-)

1720

M300 develop branch zebra init 會有錯誤訊息印出來

不過我這邊並沒有看到該錯誤訊息

後續再注意一下吧

下禮拜要 release 的 M300 branch 是 hotfix/v1.75

並不包含新版的 quagga