Turbo Render (#298)

* More responsive React updates on scroll

* `Icon`s now use shadow dom

* Faster Sparkline

* Recycle table rows

* Separate Header from Chain to avoid vdom diffing

* Separate THead from Row.HEADER to avoid vdom diffing

* Throttle rendering updates on chain tabs, also styles

* Minor tweaks and fixes

* Created components for all columns

* Wrapping up Column refactor

* Rename Row--td to Column

* Lazy `Ago`

* Update styles for faster layouting

* Minor cleanup

* Fix Connection

* Use shadow DOM in `PolkadotIcon`

* Comments and tweaks for the List component

* Faster Tooltip and Truncate

* Minor tweaks

* Tooltiped columns can now be copied

* Future-proof Connection

* Remove the <div> wrapper from Icon

* Fix dash on missing graph data

* Clean up some SVGs

* Cleanup and comments

* Localize the use of `previousKeys` to `recalculateKeys`

* Custom appState disjoint from React component state

* Make appState and appUpdate refs readonly

* Cleanup
This commit is contained in:
Maciej Hirsz
2020-11-11 13:41:01 +01:00
committed by GitHub
parent 675776c3e1
commit ebb01c1a7d
72 changed files with 1863 additions and 1118 deletions
+2 -5
View File
@@ -16,17 +16,15 @@
"clean": "rm -rf node_modules build .nyc env-config.js report*.json yarn-error.log"
},
"dependencies": {
"@fnando/sparkline": "maciejhirsz/sparkline",
"@polkadot/util-crypto": "^2.8.1",
"@types/react-measure": "^2.0.6",
"blakejs": "^1.1.0",
"husky": "^4.2.5",
"lint-staged": "^10.1.7",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-measure": "^2.3.0",
"react-scripts-ts": "3.1.0",
"react-svg": "4.1.1",
"stable": "^0.1.8",
"tslint": "^6.1.1"
},
@@ -34,7 +32,6 @@
"@types/node": "^13.13.2",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@types/react-svg": "3.0.0",
"@types/tape": "^4.13.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",