]> cat aescling's git repositories - mastodon.git/commit
Lazy load components (#3879)
authorSorin Davidoi <sorin.davidoi@gmail.com>
Fri, 7 Jul 2017 22:06:02 +0000 (00:06 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 7 Jul 2017 22:06:02 +0000 (00:06 +0200)
commit348d6f5e7551e632e7dea41e61c40f79aac59be9
tree54cc599e3509457c25603653d5490bd96efe39c6
parent00df69bc89f1b5ffdf290bde8359b3854e2b1395
Lazy load components (#3879)

* feat: Lazy-load routes

* feat: Lazy-load modals

* feat: Lazy-load columns

* refactor: Simplify Bundle API

* feat: Optimize bundles

* feat: Prevent flashing the waiting state

* feat: Preload commonly used bundles

* feat: Lazy load Compose reducers

* feat: Lazy load Notifications reducer

* refactor: Move all dynamic imports into one file

* fix: Minor bugs

* fix: Manually hydrate the lazy-loaded reducers

* refactor: Move all dynamic imports to async-components

* fix: Loading modal style

* refactor: Avoid converting the raw state for each lazy hydration

* refactor: Remove unused component

* refactor: Maintain modal name

* fix: Add as=script to preload link

* chore: Fix lint error

* fix(components/bundle): Check if timestamp is set when computing elapsed

* fix: Load compose reducers for the onboarding modal
22 files changed:
app/javascript/mastodon/actions/bundles.js [new file with mode: 0644]
app/javascript/mastodon/actions/store.js
app/javascript/mastodon/components/status.js
app/javascript/mastodon/containers/mastodon.js
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
app/javascript/mastodon/features/ui/components/bundle.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/components/bundle_column_error.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/components/bundle_modal_error.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/components/column_loading.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/components/columns_area.js
app/javascript/mastodon/features/ui/components/modal_loading.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/components/modal_root.js
app/javascript/mastodon/features/ui/containers/bundle_container.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/index.js
app/javascript/mastodon/features/ui/util/async-components.js [new file with mode: 0644]
app/javascript/mastodon/features/ui/util/react_router_helpers.js [new file with mode: 0644]
app/javascript/mastodon/reducers/compose.js
app/javascript/mastodon/reducers/index.js
app/javascript/mastodon/reducers/media_attachments.js
app/javascript/mastodon/store/configureStore.js
app/javascript/styles/components.scss
app/views/layouts/application.html.haml