20190305_jeffrey - silenceuncrio/diary GitHub Wiki

0855

review

0940

思考一下 react 與 botostrap 4 的搭配

為什麼我們不直接用 bootstrap 就好呢

參考以下討論

1005

了解一下什麼是 MATERIAL-UI

1050

感覺 Ant Design 這一套更好用

更適合我未來用在 monkeyjj 上

1530

apple 要繳年費囉

先看一下 gmail

Apple Developer

一下子就刷卡完成

不過可能要注意一下電子發票方便我後續的請款動作

1555

幫忙修一下 web firmware upgrade 的 javascript

讓進度條符合現況

首先測量一下現況

  • /api/firmwareUpload 耗時 57.95 秒
  • Write the firmware image to MTD device ... 耗時 112.54 秒

所以 progress bar 總共要跑 57.95 + 112.54 = 170.49 秒

所以每個百分比大概會花 1.7 秒

我可以利用 javascript 的 $timeout

不要每秒抓一次 而是每 1.7 秒抓一次

那上傳花了 57.95 秒大約佔了 34 %

1700

commit c6befc483c21ae968991b8039bd47ddd26fe43e1
Refs: [feature/proscend-porting], {origin/feature/proscend-porting}
Author: jeffrey <[email protected]>
Date:   Tue Mar 5 16:57:28 2019 +0800

    accoeding to the actual testing to modify the time related calculation for progress bar

 proscend/prosrc/www/app/feature/firmware.js | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)