More Knockout code to ES6

This commit is contained in:
djmaze 2021-07-29 11:43:47 +02:00
parent b7cb990b00
commit cbecdd93a0
22 changed files with 733 additions and 865 deletions

View file

@ -103,7 +103,7 @@ The result is faster and smaller download code (good for mobile networks).
* Replaced bootstrap.js with native drop-in replacement
* Replaced dev/Common/ClientStorageDriver/* with Web Storage Objects polyfill
* Replaced *Ajax with *Fetch classes because we use the Fetch API, not jQuery.ajax
* Replaced knockoutjs 3.4 with a modified 3.5.1
* Replaced [knockoutjs](https://github.com/knockout/knockout) 3.4 with a modified 3.5.1
* Replaced knockout-sortable with native HTML5 drag&drop
* Replaced simplestatemanager with CSS @media
* Replaced inputosaurus with own code
@ -131,20 +131,20 @@ RainLoop 1.15 vs SnappyMail
|admin.js |2.158.025 | 91.598 |
|app.js |4.215.733 | 454.046 |
|boot.js | 672.433 | 2.861 |
|libs.js | 647.679 | 217.881 |
|libs.js | 647.679 | 217.209 |
|polyfills.js | 325.908 | 0 |
|serviceworker.js | 0 | 285 |
|TOTAL |8.019.778 | 766.671 |
|TOTAL |8.019.778 | 765.999 |
|js/min/* |RainLoop |Snappy |RL gzip |SM gzip |RL brotli |SM brotli |
|--------------- |--------: |--------: |------: |------: |--------: |--------: |
|admin.min.js | 255.514 | 47.631 | 73.899 | 14.320 | 60.674 | 12.796 |
|app.min.js | 516.000 | 233.722 |140.430 | 68.676 |110.657 | 58.037 |
|boot.min.js | 66.456 | 1.621 | 22.553 | 968 | 20.043 | 810 |
|libs.min.js | 574.626 | 106.182 |177.280 | 38.479 |151.855 | 34.497 |
|libs.min.js | 574.626 | 105.538 |177.280 | 38.261 |151.855 | 34.284 |
|polyfills.min.js | 32.608 | 0 | 11.315 | 0 | 10.072 | 0 |
|TOTAL |1.445.204 | 389.156 |425.477 |122.443 |353.301 |106.140 |
|TOTAL (no admin) |1.189.690 | 341.525 |351.061 |108.123 |292.627 | 93.344 |
|TOTAL |1.445.204 | 388.512 |425.477 |122.225 |353.301 |105.927 |
|TOTAL (no admin) |1.189.690 | 340.881 |351.061 |107.905 |292.627 | 93.131 |
For a user its around 68% smaller and faster than traditional RainLoop.
@ -159,7 +159,7 @@ For a user its around 68% smaller and faster than traditional RainLoop.
* Themes work in mobile mode
* Bugfix invalid/conflicting css rules
* Use flexbox
* Split app.css to have seperate admin.css
* Split app.css to have separate admin.css
* Remove oldschool 'float'
* Remove unused css
* Removed html.no-css