From 42e1b088c28a9b4b2c730e4fc498605d2c95f676 Mon Sep 17 00:00:00 2001
From: Jeremy Wharton
Date: Fri, 27 Oct 2023 13:37:58 -0500
Subject: [PATCH] satellite/admin/back-office/ui: use composition API
This change migrates Vue components of the new satellite admin web app
from the options API to the composition API.
Change-Id: Ie8c9bcd468f1c0fe0abc9ef0a3724563db096ba9
---
.../ui/src/components/AccountActionsMenu.vue | 22 +-
.../ui/src/components/AccountDeleteDialog.vue | 44 +-
.../src/components/AccountGeofenceDialog.vue | 42 +-
.../components/AccountInformationDialog.vue | 43 +-
.../ui/src/components/AccountLimitsDialog.vue | 42 +-
.../components/AccountNewProjectDialog.vue | 42 +-
.../AccountProjectsTableComponent.vue | 157 ++++---
.../src/components/AccountResetMFADialog.vue | 42 +-
.../ui/src/components/AccountStatusDialog.vue | 43 +-
.../src/components/AccountSuspendDialog.vue | 47 +--
.../components/AccountUserAgentsDialog.vue | 45 +-
.../src/components/AccountsTableComponent.vue | 398 +++++++++---------
.../ui/src/components/AdminAccountDialog.vue | 42 +-
.../ui/src/components/BucketActionsMenu.vue | 17 +-
.../ui/src/components/BucketDeleteDialog.vue | 44 +-
.../src/components/BucketGeofenceDialog.vue | 43 +-
.../components/BucketInformationDialog.vue | 42 +-
.../src/components/BucketUserAgentsDialog.vue | 43 +-
.../src/components/BucketsTableComponent.vue | 252 ++++++-----
.../ui/src/components/CardStatsComponent.vue | 38 +-
.../DashboardLimitsTableComponent.vue | 323 +++++++-------
.../ui/src/components/LogsTableComponent.vue | 96 ++---
.../ui/src/components/NewAccountDialog.vue | 63 +--
.../ui/src/components/NewProjectDialog.vue | 42 +-
.../src/components/PageSubtitleComponent.vue | 15 +-
.../ui/src/components/PageTitleComponent.vue | 15 +-
.../ui/src/components/ProjectActionsMenu.vue | 20 +-
.../src/components/ProjectAddUserDialog.vue | 42 +-
.../ui/src/components/ProjectDeleteDialog.vue | 44 +-
.../src/components/ProjectGeofenceDialog.vue | 43 +-
.../components/ProjectInformationDialog.vue | 42 +-
.../ui/src/components/ProjectLimitsDialog.vue | 42 +-
.../src/components/ProjectNewBucketDialog.vue | 42 +-
.../src/components/ProjectResetMFADialog.vue | 42 +-
.../src/components/ProjectSuspendDialog.vue | 43 +-
.../components/ProjectUserAgentsDialog.vue | 43 +-
.../src/components/ProjectsTableComponent.vue | 383 ++++++++---------
.../src/components/UsageProgressComponent.vue | 52 +--
.../ui/src/components/UsersTableComponent.vue | 182 ++++----
.../ui/src/layouts/default/AppBar.vue | 74 +---
.../ui/src/views/AccountDetails.vue | 38 +-
.../back-office/ui/src/views/Accounts.vue | 28 +-
.../ui/src/views/AdminSettings.vue | 24 +-
.../ui/src/views/BucketDetails.vue | 35 +-
.../back-office/ui/src/views/Dashboard.vue | 22 +-
.../admin/back-office/ui/src/views/Login.vue | 70 +--
.../ui/src/views/ProjectDetails.vue | 39 +-
.../back-office/ui/src/views/Projects.vue | 40 +-
48 files changed, 1215 insertions(+), 2217 deletions(-)
diff --git a/satellite/admin/back-office/ui/src/components/AccountActionsMenu.vue b/satellite/admin/back-office/ui/src/components/AccountActionsMenu.vue
index 94fa6437b..c8fa6bd25 100644
--- a/satellite/admin/back-office/ui/src/components/AccountActionsMenu.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountActionsMenu.vue
@@ -80,7 +80,7 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/AccountDeleteDialog.vue b/satellite/admin/back-office/ui/src/components/AccountDeleteDialog.vue
index c156712f6..fa00f2c55 100644
--- a/satellite/admin/back-office/ui/src/components/AccountDeleteDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountDeleteDialog.vue
@@ -78,7 +78,7 @@
- {{ text }}
+ The account was deleted successfully.
Close
@@ -87,7 +87,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountGeofenceDialog.vue b/satellite/admin/back-office/ui/src/components/AccountGeofenceDialog.vue
index 710968730..2d00a6c63 100644
--- a/satellite/admin/back-office/ui/src/components/AccountGeofenceDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountGeofenceDialog.vue
@@ -64,7 +64,7 @@
- {{ text }}
+ The account placement was set successfully.
Close
@@ -73,7 +73,7 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountInformationDialog.vue b/satellite/admin/back-office/ui/src/components/AccountInformationDialog.vue
index 3be553966..8d04c1070 100644
--- a/satellite/admin/back-office/ui/src/components/AccountInformationDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountInformationDialog.vue
@@ -65,7 +65,7 @@
- {{ text }}
+ Successfully saved the account information.
Close
@@ -74,7 +74,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountLimitsDialog.vue b/satellite/admin/back-office/ui/src/components/AccountLimitsDialog.vue
index d1b8e241c..197847a0c 100644
--- a/satellite/admin/back-office/ui/src/components/AccountLimitsDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountLimitsDialog.vue
@@ -85,7 +85,7 @@
- {{ text }}
+ Error. Cannot change limits.
Close
@@ -94,7 +94,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountNewProjectDialog.vue b/satellite/admin/back-office/ui/src/components/AccountNewProjectDialog.vue
index 1a8097b03..e8ebf70d8 100644
--- a/satellite/admin/back-office/ui/src/components/AccountNewProjectDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountNewProjectDialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ Project created successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountProjectsTableComponent.vue b/satellite/admin/back-office/ui/src/components/AccountProjectsTableComponent.vue
index ea56b73ae..bbc7eb6f4 100644
--- a/satellite/admin/back-office/ui/src/components/AccountProjectsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountProjectsTableComponent.vue
@@ -85,98 +85,83 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/AccountResetMFADialog.vue b/satellite/admin/back-office/ui/src/components/AccountResetMFADialog.vue
index 56358d4a8..f418f5370 100644
--- a/satellite/admin/back-office/ui/src/components/AccountResetMFADialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountResetMFADialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ The MFA was disabled successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountStatusDialog.vue b/satellite/admin/back-office/ui/src/components/AccountStatusDialog.vue
index f54262083..8a01fc6f1 100644
--- a/satellite/admin/back-office/ui/src/components/AccountStatusDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountStatusDialog.vue
@@ -59,7 +59,7 @@
- {{ text }}
+ Successfully saved the account status.
Close
@@ -68,7 +68,8 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/AccountSuspendDialog.vue b/satellite/admin/back-office/ui/src/components/AccountSuspendDialog.vue
index 66b610eb9..ad1fba30c 100644
--- a/satellite/admin/back-office/ui/src/components/AccountSuspendDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountSuspendDialog.vue
@@ -70,7 +70,7 @@
- {{ text }}
+ The account was suspended successfully.
Close
@@ -79,7 +79,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountUserAgentsDialog.vue b/satellite/admin/back-office/ui/src/components/AccountUserAgentsDialog.vue
index 2aa6a445f..9a2b3c912 100644
--- a/satellite/admin/back-office/ui/src/components/AccountUserAgentsDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountUserAgentsDialog.vue
@@ -31,7 +31,7 @@
@@ -62,7 +62,7 @@
- {{ text }}
+ Successfully saved the value attribution.
Close
@@ -71,7 +71,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/AccountsTableComponent.vue b/satellite/admin/back-office/ui/src/components/AccountsTableComponent.vue
index 82ce85c80..6097277a5 100644
--- a/satellite/admin/back-office/ui/src/components/AccountsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/AccountsTableComponent.vue
@@ -81,221 +81,203 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/AdminAccountDialog.vue b/satellite/admin/back-office/ui/src/components/AdminAccountDialog.vue
index efe3a0bf7..7a410b090 100644
--- a/satellite/admin/back-office/ui/src/components/AdminAccountDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/AdminAccountDialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ Account information updated successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/BucketActionsMenu.vue b/satellite/admin/back-office/ui/src/components/BucketActionsMenu.vue
index b69c54201..7c8ff9f13 100644
--- a/satellite/admin/back-office/ui/src/components/BucketActionsMenu.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketActionsMenu.vue
@@ -45,26 +45,11 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/BucketDeleteDialog.vue b/satellite/admin/back-office/ui/src/components/BucketDeleteDialog.vue
index 17aee560c..691a47d5b 100644
--- a/satellite/admin/back-office/ui/src/components/BucketDeleteDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketDeleteDialog.vue
@@ -74,7 +74,7 @@
- {{ text }}
+ The bucket was deleted successfully.
Close
@@ -83,7 +83,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/BucketGeofenceDialog.vue b/satellite/admin/back-office/ui/src/components/BucketGeofenceDialog.vue
index 5ceb40939..48264bd95 100644
--- a/satellite/admin/back-office/ui/src/components/BucketGeofenceDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketGeofenceDialog.vue
@@ -61,7 +61,7 @@
- {{ text }}
+ The bucket placement was set successfully.
Close
@@ -70,7 +70,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/BucketInformationDialog.vue b/satellite/admin/back-office/ui/src/components/BucketInformationDialog.vue
index 1fcde4368..51f4aa88d 100644
--- a/satellite/admin/back-office/ui/src/components/BucketInformationDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketInformationDialog.vue
@@ -49,7 +49,7 @@
- {{ text }}
+ Successfully updated the bucket information.
Close
@@ -58,7 +58,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/BucketUserAgentsDialog.vue b/satellite/admin/back-office/ui/src/components/BucketUserAgentsDialog.vue
index 8749319f2..540fefe60 100644
--- a/satellite/admin/back-office/ui/src/components/BucketUserAgentsDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketUserAgentsDialog.vue
@@ -62,7 +62,7 @@
- {{ text }}
+ Successfully saved the value attribution.
Close
@@ -71,7 +71,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/BucketsTableComponent.vue b/satellite/admin/back-office/ui/src/components/BucketsTableComponent.vue
index 7044a63ab..a8ccf6a4f 100644
--- a/satellite/admin/back-office/ui/src/components/BucketsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/BucketsTableComponent.vue
@@ -58,146 +58,130 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/CardStatsComponent.vue b/satellite/admin/back-office/ui/src/components/CardStatsComponent.vue
index c5b4d20e3..42eef8bcd 100644
--- a/satellite/admin/back-office/ui/src/components/CardStatsComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/CardStatsComponent.vue
@@ -9,36 +9,14 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/DashboardLimitsTableComponent.vue b/satellite/admin/back-office/ui/src/components/DashboardLimitsTableComponent.vue
index 500a09d66..3a3b7a367 100644
--- a/satellite/admin/back-office/ui/src/components/DashboardLimitsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/DashboardLimitsTableComponent.vue
@@ -98,180 +98,167 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/LogsTableComponent.vue b/satellite/admin/back-office/ui/src/components/LogsTableComponent.vue
index 226ee4e6a..8809532f9 100644
--- a/satellite/admin/back-office/ui/src/components/LogsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/LogsTableComponent.vue
@@ -47,64 +47,50 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/NewAccountDialog.vue b/satellite/admin/back-office/ui/src/components/NewAccountDialog.vue
index 3132dc9b8..3a2e29a85 100644
--- a/satellite/admin/back-office/ui/src/components/NewAccountDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/NewAccountDialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ Account created successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/NewProjectDialog.vue b/satellite/admin/back-office/ui/src/components/NewProjectDialog.vue
index 0f8acd7da..1700b83a2 100644
--- a/satellite/admin/back-office/ui/src/components/NewProjectDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/NewProjectDialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ Project created successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/PageSubtitleComponent.vue b/satellite/admin/back-office/ui/src/components/PageSubtitleComponent.vue
index e42cece83..4e9b4c951 100644
--- a/satellite/admin/back-office/ui/src/components/PageSubtitleComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/PageSubtitleComponent.vue
@@ -7,13 +7,8 @@
-
\ No newline at end of file
+
diff --git a/satellite/admin/back-office/ui/src/components/PageTitleComponent.vue b/satellite/admin/back-office/ui/src/components/PageTitleComponent.vue
index 53f0ff22d..97f53128c 100644
--- a/satellite/admin/back-office/ui/src/components/PageTitleComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/PageTitleComponent.vue
@@ -5,13 +5,8 @@
{{ title }}
-
\ No newline at end of file
+
diff --git a/satellite/admin/back-office/ui/src/components/ProjectActionsMenu.vue b/satellite/admin/back-office/ui/src/components/ProjectActionsMenu.vue
index d066755fa..fcccf6d9c 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectActionsMenu.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectActionsMenu.vue
@@ -65,7 +65,7 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/ProjectAddUserDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectAddUserDialog.vue
index 82b512479..24bcd848a 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectAddUserDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectAddUserDialog.vue
@@ -57,7 +57,7 @@
- {{ text }}
+ The user was added successfully.
Close
@@ -66,7 +66,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectDeleteDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectDeleteDialog.vue
index 9d8680e42..fbdd4ad26 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectDeleteDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectDeleteDialog.vue
@@ -74,7 +74,7 @@
- {{ text }}
+ The project was deleted successfully.
Close
@@ -83,7 +83,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectGeofenceDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectGeofenceDialog.vue
index 37021e05a..5eede58da 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectGeofenceDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectGeofenceDialog.vue
@@ -61,7 +61,7 @@
- {{ text }}
+ The project placement was set successfully.
Close
@@ -70,7 +70,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectInformationDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectInformationDialog.vue
index 309d93009..012de4ead 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectInformationDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectInformationDialog.vue
@@ -52,7 +52,7 @@
- {{ text }}
+ Successfully updated the project information.
Close
@@ -61,7 +61,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectLimitsDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectLimitsDialog.vue
index 432a11453..a787591d0 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectLimitsDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectLimitsDialog.vue
@@ -86,7 +86,7 @@
- {{ text }}
+ Error. Cannot change project limits.
Close
@@ -95,7 +95,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectNewBucketDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectNewBucketDialog.vue
index 4953fc9d3..b4d1f82e8 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectNewBucketDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectNewBucketDialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ Bucket created successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectResetMFADialog.vue b/satellite/admin/back-office/ui/src/components/ProjectResetMFADialog.vue
index 56358d4a8..f418f5370 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectResetMFADialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectResetMFADialog.vue
@@ -58,7 +58,7 @@
- {{ text }}
+ The MFA was disabled successfully.
Close
@@ -67,7 +67,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectSuspendDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectSuspendDialog.vue
index 10b0e2d88..f6b8be9ea 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectSuspendDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectSuspendDialog.vue
@@ -67,7 +67,7 @@
- {{ text }}
+ The account was suspended successfully.
Close
@@ -76,7 +76,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectUserAgentsDialog.vue b/satellite/admin/back-office/ui/src/components/ProjectUserAgentsDialog.vue
index 77bf01b3b..6daae0264 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectUserAgentsDialog.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectUserAgentsDialog.vue
@@ -62,7 +62,7 @@
- {{ text }}
+ Successfully saved the value attribution.
Close
@@ -71,7 +71,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/ProjectsTableComponent.vue b/satellite/admin/back-office/ui/src/components/ProjectsTableComponent.vue
index 63185039e..0e128b413 100644
--- a/satellite/admin/back-office/ui/src/components/ProjectsTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/ProjectsTableComponent.vue
@@ -101,7 +101,8 @@
-
diff --git a/satellite/admin/back-office/ui/src/components/UsageProgressComponent.vue b/satellite/admin/back-office/ui/src/components/UsageProgressComponent.vue
index 56f2c32fb..54ba40ec1 100644
--- a/satellite/admin/back-office/ui/src/components/UsageProgressComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/UsageProgressComponent.vue
@@ -35,7 +35,7 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/components/UsersTableComponent.vue b/satellite/admin/back-office/ui/src/components/UsersTableComponent.vue
index 4e2998d04..feb0f3ab8 100644
--- a/satellite/admin/back-office/ui/src/components/UsersTableComponent.vue
+++ b/satellite/admin/back-office/ui/src/components/UsersTableComponent.vue
@@ -69,113 +69,95 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/layouts/default/AppBar.vue b/satellite/admin/back-office/ui/src/layouts/default/AppBar.vue
index 9066906e1..814eca707 100644
--- a/satellite/admin/back-office/ui/src/layouts/default/AppBar.vue
+++ b/satellite/admin/back-office/ui/src/layouts/default/AppBar.vue
@@ -172,7 +172,8 @@
-
\ No newline at end of file
+const theme = useTheme();
+
+const drawer = ref(true);
+const activeTheme = ref(0);
+
+function toggleTheme(newTheme: string) {
+ if ((newTheme === 'dark' && theme.global.current.value.dark) || (newTheme === 'light' && !theme.global.current.value.dark)) {
+ return;
+ }
+ theme.global.name.value = newTheme;
+ localStorage.setItem('theme', newTheme); // Store the selected theme in localStorage
+}
+
+watch(() => theme.global.current.value.dark, newVal => {
+ activeTheme.value = newVal ? 1 : 0;
+});
+
+// Check for stored theme in localStorage. If none, default to 'light'
+toggleTheme(localStorage.getItem('theme') || 'light');
+activeTheme.value = theme.global.current.value.dark ? 1 : 0;
+
diff --git a/satellite/admin/back-office/ui/src/views/AccountDetails.vue b/satellite/admin/back-office/ui/src/views/AccountDetails.vue
index 3e2c97014..1e3fff56e 100644
--- a/satellite/admin/back-office/ui/src/views/AccountDetails.vue
+++ b/satellite/admin/back-office/ui/src/views/AccountDetails.vue
@@ -135,7 +135,8 @@
-
diff --git a/satellite/admin/back-office/ui/src/views/Accounts.vue b/satellite/admin/back-office/ui/src/views/Accounts.vue
index 9c760a034..ae3de1fa0 100644
--- a/satellite/admin/back-office/ui/src/views/Accounts.vue
+++ b/satellite/admin/back-office/ui/src/views/Accounts.vue
@@ -48,7 +48,8 @@
-
diff --git a/satellite/admin/back-office/ui/src/views/AdminSettings.vue b/satellite/admin/back-office/ui/src/views/AdminSettings.vue
index 2f9fdaaec..3ecd4ef5c 100644
--- a/satellite/admin/back-office/ui/src/views/AdminSettings.vue
+++ b/satellite/admin/back-office/ui/src/views/AdminSettings.vue
@@ -51,7 +51,8 @@
-
diff --git a/satellite/admin/back-office/ui/src/views/BucketDetails.vue b/satellite/admin/back-office/ui/src/views/BucketDetails.vue
index 84bb13726..fa7a610f9 100644
--- a/satellite/admin/back-office/ui/src/views/BucketDetails.vue
+++ b/satellite/admin/back-office/ui/src/views/BucketDetails.vue
@@ -130,7 +130,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/views/Dashboard.vue b/satellite/admin/back-office/ui/src/views/Dashboard.vue
index 897a744b5..32c8acaac 100644
--- a/satellite/admin/back-office/ui/src/views/Dashboard.vue
+++ b/satellite/admin/back-office/ui/src/views/Dashboard.vue
@@ -47,7 +47,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/views/Login.vue b/satellite/admin/back-office/ui/src/views/Login.vue
index 08bafd6b8..0f63b6e2f 100644
--- a/satellite/admin/back-office/ui/src/views/Login.vue
+++ b/satellite/admin/back-office/ui/src/views/Login.vue
@@ -54,7 +54,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/views/ProjectDetails.vue b/satellite/admin/back-office/ui/src/views/ProjectDetails.vue
index 64a993c63..e4f75e238 100644
--- a/satellite/admin/back-office/ui/src/views/ProjectDetails.vue
+++ b/satellite/admin/back-office/ui/src/views/ProjectDetails.vue
@@ -168,7 +168,8 @@
-
\ No newline at end of file
diff --git a/satellite/admin/back-office/ui/src/views/Projects.vue b/satellite/admin/back-office/ui/src/views/Projects.vue
index 2dc83f08f..735bd2598 100644
--- a/satellite/admin/back-office/ui/src/views/Projects.vue
+++ b/satellite/admin/back-office/ui/src/views/Projects.vue
@@ -27,7 +27,8 @@
-
\ No newline at end of file