From 0a2d5ef8200379f2fba401c7a024409c68c6e840 Mon Sep 17 00:00:00 2001 From: konrad Date: Sat, 13 Nov 2021 19:49:02 +0000 Subject: [PATCH] feat: defer everything until the api config is loaded (#926) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/926 Reviewed-by: dpschen Co-authored-by: konrad Co-committed-by: konrad --- src/App.vue | 69 +++------- src/components/home/contentNoAuth.vue | 43 +----- src/components/home/navigation.vue | 20 +-- src/components/misc/api-config.vue | 169 ++++++------------------ src/components/misc/no-auth-wrapper.vue | 39 ++++++ src/components/misc/ready.vue | 141 ++++++++++++++++++++ src/helpers/checkAndSetApiUrl.ts | 118 +++++++++++++++++ src/i18n/lang/en.json | 15 ++- src/store/index.js | 10 ++ src/styles/theme/loading.scss | 50 ++++--- 10 files changed, 419 insertions(+), 255 deletions(-) create mode 100644 src/components/misc/no-auth-wrapper.vue create mode 100644 src/components/misc/ready.vue create mode 100644 src/helpers/checkAndSetApiUrl.ts diff --git a/src/App.vue b/src/App.vue index dec28560..af2fc690 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,25 +1,21 @@ - - \ No newline at end of file diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue index 9f5cfd11..5f9d1a21 100644 --- a/src/components/home/navigation.vue +++ b/src/components/home/navigation.vue @@ -48,7 +48,7 @@ -