From d123a1b2318452099e5c0889cb8ec8689f66c753 Mon Sep 17 00:00:00 2001 From: Bernd Storath <999999bst@gmail.com> Date: Thu, 14 Nov 2024 14:55:44 +0100 Subject: [PATCH] move into own components --- src/app/app.vue | 1 - src/app/components/ClientCard/Charts.vue | 4 +- src/app/components/ClientCard/ClientCard.vue | 4 - src/app/components/ClientCard/Config.vue | 6 +- src/app/components/ClientCard/Name.vue | 2 +- src/app/components/ClientCard/OneTimeLink.vue | 6 +- src/app/components/{ui => base}/Chart.vue | 0 src/app/components/header/ChartToggle.vue | 16 ++++ src/app/components/header/Logo.vue | 11 +++ src/app/components/header/ThemeSwitch.vue | 28 ++++++ src/app/components/header/Update.vue | 27 ++++++ src/app/layouts/default.vue | 87 ++----------------- src/app/stores/global.ts | 6 ++ 13 files changed, 100 insertions(+), 98 deletions(-) rename src/app/components/{ui => base}/Chart.vue (100%) create mode 100644 src/app/components/header/ChartToggle.vue create mode 100644 src/app/components/header/Logo.vue create mode 100644 src/app/components/header/ThemeSwitch.vue create mode 100644 src/app/components/header/Update.vue diff --git a/src/app/app.vue b/src/app/app.vue index 80a9978e..d750f00e 100644 --- a/src/app/app.vue +++ b/src/app/app.vue @@ -11,7 +11,6 @@ diff --git a/src/app/components/header/Logo.vue b/src/app/components/header/Logo.vue new file mode 100644 index 00000000..4256f8e3 --- /dev/null +++ b/src/app/components/header/Logo.vue @@ -0,0 +1,11 @@ + diff --git a/src/app/components/header/ThemeSwitch.vue b/src/app/components/header/ThemeSwitch.vue new file mode 100644 index 00000000..945b9c4b --- /dev/null +++ b/src/app/components/header/ThemeSwitch.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/app/components/header/Update.vue b/src/app/components/header/Update.vue new file mode 100644 index 00000000..dfb5bcf5 --- /dev/null +++ b/src/app/components/header/Update.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/app/layouts/default.vue b/src/app/layouts/default.vue index 699367c9..1389cec5 100644 --- a/src/app/layouts/default.vue +++ b/src/app/layouts/default.vue @@ -2,81 +2,21 @@
- -

- WireGuard -

-
+
- - - - + +
-
-
-
-
-

{{ $t('updateAvailable') }}

-

{{ globalStore.latestRelease.changelog }}

-
- - - {{ $t('update') }} → - -
-
+