20181220_jeffrey - silenceuncrio/diary GitHub Wiki

0910

繼續 wizard

1130

感覺我這個 wizard 架構可以先上個 code

後續改動比較有個後退的點

commit 9be2a89a8209f07052d03bf96f664fef9b5b327b
Refs: [develop], {origin/develop}
Author: jeffrey <[email protected]>
Date:   Thu Dec 20 11:35:56 2018 +0800

    setting wizard:
    - only super user can use it
    - step flow ready
      - Step 1. Super User Password
      - Step 2. WAN Setting
        - Step 2.1. WAN Setting - Ethernet
        - Step 2.2. WAN Setting - LTE
      - Step 3. LAN Setting
      - Step 4. Time Zone Setting
      - Review Setting
      - Apply Setting

 proscend/prosrc/www/app/feature/wizard.html        | 235 +++++++++++++++++++++
 proscend/prosrc/www/app/feature/wizard.js          |  82 +++++++
 .../prosrc/www/brand_advice/src/brand/top.html.src |   2 +
 .../prosrc/www/brand_ctcu/src/brand/top.html.src   |   2 +
 .../prosrc/www/brand_cxr/src/brand/top.html.src    |   2 +
 .../www/brand_digicomm/src/brand/top.html.src      |   2 +
 .../prosrc/www/brand_hytec/src/brand/top.html.src  |   2 +
 .../www/brand_nobrand/src/brand/top.html.src       |   3 +
 .../prosrc/www/brand_planet/src/brand/top.html.src |   2 +
 .../www/brand_xentino/src/brand/top.html.src       |   2 +
 proscend/prosrc/www/src/index.html.src             |   1 +
 11 files changed, 335 insertions(+)

1650

目前 setting wizard 美個流程段的 config 都有從 device get 回來作呈現了

先上個 code 但不要 push

commit d0dedc582eecc72dad611f9a37c0b7f992dd6677
Refs: [develop]
Author: jeffrey <[email protected]>
Date:   Thu Dec 20 16:53:05 2018 +0800

    setting wizard:
    - each step we get actual configuration from device once

 proscend/prosrc/www/app/feature/wizard.html | 679 +++++++++++++++++++++++++---
 proscend/prosrc/www/app/feature/wizard.js   | 114 ++++-
 2 files changed, 736 insertions(+), 57 deletions(-)

1705

加油添醋一下

讓 wizard 的每個 step 能夠更親切

commit 26718f258bd8238a0422d1789bfcf9575853b4c3
Refs: [develop]
Author: jeffrey <[email protected]>
Date:   Thu Dec 20 18:09:08 2018 +0800

    setting wizard:
    - change layout

 proscend/prosrc/www/app/feature/wizard.html | 1179 ++++++++++++++-------------
 1 file changed, 618 insertions(+), 561 deletions(-)