20190322_jeffrey - silenceuncrio/diary GitHub Wiki

0845

中午過後要請假

先盤一下這禮拜做了什麼

  • M330
    • [CGI]fix problem caused by Big-Endian
    • react practice
      • different Navigation view base on authUser
      • use react context to keep the auth user information
      • while 'Sign Out' button be pressed
        • invoke 'updateUser' at 'AuthUserContext'
        • redirect to 'LandingPage'
      • while sesstion timeout,
        fetch() at the Function01Page will get response.status(401);
        then it use this.props.history.push(ROUTES.SIGN_IN) to redirect to the Signin page.
        now we can use this.props.history.push(ROUTES.SIGN_IN, {info: "sesstion timeout"}),
        and SignIn page can use this.props.history.location.state.info
        to display the information about why to redirect to Signin page.
      • Function01: apply Higher-Order Components
      • abstract the logic of 'Fetcher' from functions
  • M300
    • remove the follwoing options from 'Security Option' at 'WiFi Config' page:
      • WPA-PSK(TKIP)
      • WPA2-PSK(TKIP)
      • WPA2(MIX)