20190312_jeffrey - silenceuncrio/diary GitHub Wiki

0900

review

0930

็›ฎๅ‰ๅทฒ็ถ“็ขบ่ชไฝฟ็”จ fetch ้€™ๅ€‹ web api ๆ™‚

ๆœƒๅธถๅ‡บ่ขซ set ้Ž็š„ cookie

ไธ้Ž่ทŸๅฎ˜ๆ–น็š„ๆ–‡ไปถๆ่ฟฐไธฆไธๅŒ

1005

M330 status page ้œ€่ฆๅŠ ไธŠ GPS ็›ธ้—œ่ณ‡่จŠ

commit 15b9ae8f6e84a862236d458f6fb08e71f9b42381
Author: jeffrey <[email protected]>
Date:   Tue Mar 12 10:04:38 2019 +0800

    add 'GPS' related information into 'Status' page

 proscend/prosrc/webcgi/status.c                    | 22 +++++++++++++
 .../prosrc/www/src/app/feature/status.html.src     | 36 ++++++++++++++++++++++
 2 files changed, 58 insertions(+)

1525

้€™ๆฌก็š„ react ๅ‰้€ฒ็š„ๅพˆ้ 

commit aadeeeec94d3db5c7aa7003fbd1d4584b1fcf6e1
Author: jeffrey <[email protected]>
Date:   Tue Mar 12 15:22:56 2019 +0800

    react practice:
    - now fetch can handle more CGI case
      - HTTP status 200
      - HTTP status 401
      - HTTP status other than 200 and 401
      - Failed to fetch

 proscend/prosrc/webcgi/dmz.c                       | 226 +++++++++++----------
 .../react_01/src/components/Function01/index.js    |  69 ++++++-
 .../react_01/src/components/Function02/index.js    |  69 ++++++-
 .../react_01/src/components/Function03/index.js    |  70 ++++++-
 .../prosrc/www/react_01/src/components/index.js    |  30 ---
 5 files changed, 301 insertions(+), 163 deletions(-)

1555

commit eada50635c01c635d333fad53ee9aef3875a83c4
Author: jeffrey <[email protected]>
Date:   Tue Mar 12 15:55:37 2019 +0800

    react practive:
    - according to signin result to display information
      - signin ok - "signin ok! latter we will redirect landing page"
      - signin fail - "signin fail!"

 .../www/react_01/src/components/SignIn/index.js    | 23 +++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

1620

commit a18e1b1e2e63af68625b649c1195f9c6d45ff6e8
Author: jeffrey <[email protected]>
Date:   Tue Mar 12 16:16:29 2019 +0800

    react practive:
    - use `this.props.history.push()` to redirect landing page after signin ok
    - note that how to use the `withRouter`

 proscend/prosrc/www/react_01/src/components/SignIn/index.js | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)