diff --git a/routes/_components/LazyTimeline.html b/routes/_components/LazyTimeline.html
new file mode 100644
index 00000000..41cd57d5
--- /dev/null
+++ b/routes/_components/LazyTimeline.html
@@ -0,0 +1,40 @@
+{{#await promise}}
+
+ {{#if trueValue}}
+
+
+
+ {{/if}}
+
+{{then constructor}}
+<:Component {constructor} :target />
+{{catch error}}
+Component failed to load. Please try refreshing!
+{{/await}}
+
+
\ No newline at end of file
diff --git a/routes/_components/LoadingMask.html b/routes/_components/LoadingMask.html
index e6f7e6b0..745d5a46 100644
--- a/routes/_components/LoadingMask.html
+++ b/routes/_components/LoadingMask.html
@@ -1,9 +1,7 @@
{{#if show}}
-
-
-
+
{{/if}}
@@ -27,35 +25,17 @@
opacity: 0.6;
pointer-events: auto;
}
- svg {
- width: 64px;
- height: 64px;
- fill: var(--mask-svg-fill);
- animation: spin 2s infinite linear;
- }
-
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 25% {
- transform: rotate(90deg);
- }
- 50% {
- transform: rotate(180deg);
- }
- 75% {
- transform: rotate(270deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
\ No newline at end of file
diff --git a/routes/_components/LoadingSpinner.html b/routes/_components/LoadingSpinner.html
new file mode 100644
index 00000000..24ec64ee
--- /dev/null
+++ b/routes/_components/LoadingSpinner.html
@@ -0,0 +1,33 @@
+
+
+
+
\ No newline at end of file
diff --git a/routes/_components/Timeline.html b/routes/_components/Timeline.html
index 6182a4ce..97968429 100644
--- a/routes/_components/Timeline.html
+++ b/routes/_components/Timeline.html
@@ -21,24 +21,9 @@
import Status from './Status.html'
export default {
- oncreate: async function () {
- if (!process.browser) {
- return
- }
- let instanceData = this.store.get('currentInstance')
- if (!instanceData) {
- return
- }
- let response = fixture
- // let response = await (await getHomeTimeline(instanceData.instanceName, instanceData.access_token)).json()
- if (process.env.NODE_ENV !== 'production') {
- console.log(response)
- }
- this.set({'statuses': response})
- },
data: () => ({
target: 'home',
- statuses: []
+ statuses: fixture
}),
store: () => store,
components: {
diff --git a/routes/_components/Toast.html b/routes/_components/Toast.html
index 2d9f4870..7ae1690a 100644
--- a/routes/_components/Toast.html
+++ b/routes/_components/Toast.html
@@ -59,8 +59,6 @@
}
})
},
- ondestroy () {
- },
data: () => ({
text: '',
shown: false,
diff --git a/routes/_utils/asyncModules.js b/routes/_utils/asyncModules.js
index 409f5b91..c90e3b0d 100644
--- a/routes/_utils/asyncModules.js
+++ b/routes/_utils/asyncModules.js
@@ -13,7 +13,12 @@ const importToast = () => import(
/* webpackChunkName: 'toast' */ './toast'
).then(mod => mod.toast)
+const importTimeline = () => import(
+ /* webpackChunkName: 'Timeline' */ '../_components/Timeline.html'
+ ).then(mod => mod.default)
+
export {
importURLSearchParams,
- importToast
+ importToast,
+ importTimeline
}
\ No newline at end of file
diff --git a/routes/index.html b/routes/index.html
index e123d7c9..d7d9c297 100644
--- a/routes/index.html
+++ b/routes/index.html
@@ -4,7 +4,7 @@
{{#if $isUserLoggedIn}}
-
+
{{else}}
{{/if}}
@@ -14,14 +14,14 @@