From 588b4f507ad357ee3937e7dddc192230c2b29ea4 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 1 Nov 2020 17:36:00 +0000 Subject: [PATCH] Refactor app component (#283) Fix redirect to home Move redirect to home to no auth component Move setup stuff to separate functions Renew token in authenticated component Use vue's router object Move auth type checks to computed properties Move after route stuff to authenticated content component More Cleanup Cleanup Hide the navigation on mobile in the navigation component Load namespaces from inside the navigation component Fix logout Move not authenticated content to separate component Fix favoriting lists Move link share authenticated stuff to separate component Move authenticated stuff to separate component Move side navigation to separate component Move top navigation bar to separate component Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/283 Co-Authored-By: konrad Co-Committed-By: konrad --- src/App.vue | 523 ++------------------- src/components/home/contentAuth.vue | 107 +++++ src/components/home/contentLinkShare.vue | 52 ++ src/components/home/contentNoAuth.vue | 42 ++ src/components/home/navigation.vue | 178 +++++++ src/components/home/topNavigation.vue | 125 +++++ src/components/home/update.vue | 49 ++ src/components/misc/keyboard-shortcuts.vue | 4 +- src/components/tasks/mixins/taskList.js | 2 +- src/store/index.js | 22 +- src/store/mutation-types.js | 2 + 11 files changed, 627 insertions(+), 479 deletions(-) create mode 100644 src/components/home/contentAuth.vue create mode 100644 src/components/home/contentLinkShare.vue create mode 100644 src/components/home/contentNoAuth.vue create mode 100644 src/components/home/navigation.vue create mode 100644 src/components/home/topNavigation.vue create mode 100644 src/components/home/update.vue diff --git a/src/App.vue b/src/App.vue index a692c09b..cb15b53b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,300 +1,14 @@ diff --git a/src/components/home/contentLinkShare.vue b/src/components/home/contentLinkShare.vue new file mode 100644 index 00000000..f1cac7ae --- /dev/null +++ b/src/components/home/contentLinkShare.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/src/components/home/contentNoAuth.vue b/src/components/home/contentNoAuth.vue new file mode 100644 index 00000000..e9490002 --- /dev/null +++ b/src/components/home/contentNoAuth.vue @@ -0,0 +1,42 @@ + + + diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue new file mode 100644 index 00000000..7bb1ff07 --- /dev/null +++ b/src/components/home/navigation.vue @@ -0,0 +1,178 @@ + + + diff --git a/src/components/home/topNavigation.vue b/src/components/home/topNavigation.vue new file mode 100644 index 00000000..409534de --- /dev/null +++ b/src/components/home/topNavigation.vue @@ -0,0 +1,125 @@ + + + diff --git a/src/components/home/update.vue b/src/components/home/update.vue new file mode 100644 index 00000000..5499f47a --- /dev/null +++ b/src/components/home/update.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/components/misc/keyboard-shortcuts.vue b/src/components/misc/keyboard-shortcuts.vue index 4a41e133..138d4a99 100644 --- a/src/components/misc/keyboard-shortcuts.vue +++ b/src/components/misc/keyboard-shortcuts.vue @@ -88,11 +88,13 @@