diff --git a/frontend/package.json b/frontend/package.json index 696a0ab..a6fb13b 100755 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,6 +25,7 @@ "js-cookie": "^3.0.5", "jspdf": "^2.5.2", "lucide-vue-next": "^0.468.0", + "pinia": "^2.3.1", "qrcode": "^1.5.4", "three": "^0.172.0", "vue": "^3.5.12", diff --git a/frontend/src/components/admin/LayoutDashboard.vue b/frontend/src/components/admin/LayoutDashboard.vue index 8dc4996..c416238 100755 --- a/frontend/src/components/admin/LayoutDashboard.vue +++ b/frontend/src/components/admin/LayoutDashboard.vue @@ -191,8 +191,8 @@ import { } from 'lucide-vue-next'; import Session from '@/mythicalclient/Session'; import StorageMonitor from '@/mythicalclient/StorageMonitor'; -import Settings from '@/mythicalclient/Settings'; - +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); const router = useRouter(); new StorageMonitor(); diff --git a/frontend/src/components/client/Auth/FormCard.vue b/frontend/src/components/client/Auth/FormCard.vue index 956ddc2..e65d164 100755 --- a/frontend/src/components/client/Auth/FormCard.vue +++ b/frontend/src/components/client/Auth/FormCard.vue @@ -1,8 +1,8 @@ diff --git a/frontend/src/views/client/AddFunds.vue b/frontend/src/views/client/AddFunds.vue index aff5e14..51f079d 100755 --- a/frontend/src/views/client/AddFunds.vue +++ b/frontend/src/views/client/AddFunds.vue @@ -13,7 +13,8 @@ import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; import Swal from 'sweetalert2'; import failedAlertSfx from '@/assets/sounds/error.mp3'; import { useSound } from '@vueuse/sound'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); const router = useRouter(); const { t } = useI18n(); diff --git a/frontend/src/views/client/auth/ForgotPassword.vue b/frontend/src/views/client/auth/ForgotPassword.vue index 7d0967f..7f48830 100755 --- a/frontend/src/views/client/auth/ForgotPassword.vue +++ b/frontend/src/views/client/auth/ForgotPassword.vue @@ -9,7 +9,8 @@ import failedAlertSfx from '@/assets/sounds/error.mp3'; import successAlertSfx from '@/assets/sounds/success.mp3'; import Swal from 'sweetalert2'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useRouter } from 'vue-router'; import Auth from '@/mythicalclient/Auth'; import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; diff --git a/frontend/src/views/client/auth/Login.vue b/frontend/src/views/client/auth/Login.vue index 9681d1b..355c486 100755 --- a/frontend/src/views/client/auth/Login.vue +++ b/frontend/src/views/client/auth/Login.vue @@ -6,7 +6,8 @@ import FormInput from '@/components/client/Auth/FormInput.vue'; import Swal from 'sweetalert2'; import { useRouter } from 'vue-router'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useSound } from '@vueuse/sound'; import failedAlertSfx from '@/assets/sounds/error.mp3'; import successAlertSfx from '@/assets/sounds/success.mp3'; diff --git a/frontend/src/views/client/auth/Register.vue b/frontend/src/views/client/auth/Register.vue index 6261237..dbd12db 100755 --- a/frontend/src/views/client/auth/Register.vue +++ b/frontend/src/views/client/auth/Register.vue @@ -4,7 +4,8 @@ import Layout from '@/components/client/Layout.vue'; import FormCard from '@/components/client/Auth/FormCard.vue'; import FormInput from '@/components/client/Auth/FormInput.vue'; import Swal from 'sweetalert2'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import Turnstile from 'vue-turnstile'; import { useI18n } from 'vue-i18n'; import { useRouter } from 'vue-router'; diff --git a/frontend/src/views/client/auth/ResetPassword.vue b/frontend/src/views/client/auth/ResetPassword.vue index fa14388..47f2a6f 100755 --- a/frontend/src/views/client/auth/ResetPassword.vue +++ b/frontend/src/views/client/auth/ResetPassword.vue @@ -9,7 +9,8 @@ import failedAlertSfx from '@/assets/sounds/error.mp3'; import successAlertSfx from '@/assets/sounds/success.mp3'; import Swal from 'sweetalert2'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useRouter } from 'vue-router'; import Auth from '@/mythicalclient/Auth'; import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; diff --git a/frontend/src/views/client/auth/TwoFactorSetup.vue b/frontend/src/views/client/auth/TwoFactorSetup.vue index 40a4fe5..87660dc 100755 --- a/frontend/src/views/client/auth/TwoFactorSetup.vue +++ b/frontend/src/views/client/auth/TwoFactorSetup.vue @@ -9,7 +9,8 @@ import failedAlertSfx from '@/assets/sounds/error.mp3'; import successAlertSfx from '@/assets/sounds/success.mp3'; import Swal from 'sweetalert2'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useRouter } from 'vue-router'; import VueQrcode from 'vue-qrcode'; import Session from '@/mythicalclient/Session'; diff --git a/frontend/src/views/client/auth/TwoFactorVerify.vue b/frontend/src/views/client/auth/TwoFactorVerify.vue index b1844a9..34d6d43 100755 --- a/frontend/src/views/client/auth/TwoFactorVerify.vue +++ b/frontend/src/views/client/auth/TwoFactorVerify.vue @@ -9,7 +9,8 @@ import failedAlertSfx from '@/assets/sounds/error.mp3'; import successAlertSfx from '@/assets/sounds/success.mp3'; import Swal from 'sweetalert2'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useRouter } from 'vue-router'; import Session from '@/mythicalclient/Session'; import StorageMonitor from '@/mythicalclient/StorageMonitor'; diff --git a/frontend/src/views/client/auth/sso.vue b/frontend/src/views/client/auth/sso.vue index eb4be73..46d817a 100755 --- a/frontend/src/views/client/auth/sso.vue +++ b/frontend/src/views/client/auth/sso.vue @@ -5,7 +5,8 @@ import FormCard from '@/components/client/Auth/FormCard.vue'; import FormInput from '@/components/client/Auth/FormInput.vue'; import { useRouter } from 'vue-router'; import Turnstile from 'vue-turnstile'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useI18n } from 'vue-i18n'; import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; diff --git a/frontend/src/views/client/invoices/[id].vue b/frontend/src/views/client/invoices/[id].vue index 991a157..c454f7f 100755 --- a/frontend/src/views/client/invoices/[id].vue +++ b/frontend/src/views/client/invoices/[id].vue @@ -5,7 +5,8 @@ import { format } from 'date-fns'; import LayoutDashboard from '@/components/client/LayoutDashboard.vue'; import { AlertCircle, ArrowLeft, Download, CreditCard } from 'lucide-vue-next'; import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import jsPDF from 'jspdf'; import html2canvas from 'html2canvas'; import Session from '@/mythicalclient/Session'; diff --git a/frontend/src/views/client/ticket/[id].vue b/frontend/src/views/client/ticket/[id].vue index 86c62f9..23a61cd 100755 --- a/frontend/src/views/client/ticket/[id].vue +++ b/frontend/src/views/client/ticket/[id].vue @@ -20,7 +20,8 @@ import { } from 'lucide-vue-next'; import Tickets from '@/mythicalclient/Tickets'; import Swal from 'sweetalert2'; -import Settings from '@/mythicalclient/Settings'; +import { useSettingsStore } from '@/stores/settings'; +const Settings = useSettingsStore(); import { useI18n } from 'vue-i18n'; import { MythicalDOM } from '@/mythicalclient/MythicalDOM'; const { t } = useI18n(); diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 2fcb1da..3369651 100755 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -993,7 +993,7 @@ de-indent "^1.0.2" he "^1.2.0" -"@vue/devtools-api@^6.5.0", "@vue/devtools-api@^6.6.4": +"@vue/devtools-api@^6.5.0", "@vue/devtools-api@^6.6.3", "@vue/devtools-api@^6.6.4": version "6.6.4" resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz#cbe97fe0162b365edc1dba80e173f90492535343" integrity sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g== @@ -2581,6 +2581,14 @@ pify@^2.3.0: resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== +pinia@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/pinia/-/pinia-2.3.1.tgz#54c476675b72f5abcfafa24a7582531ea8c23d94" + integrity sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug== + dependencies: + "@vue/devtools-api" "^6.6.3" + vue-demi "^0.14.10" + pirates@^4.0.1: version "4.0.6" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" @@ -3217,7 +3225,7 @@ vscode-uri@^3.0.8: resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.8.tgz#1770938d3e72588659a172d0fd4642780083ff9f" integrity sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw== -vue-demi@latest: +vue-demi@^0.14.10, vue-demi@latest: version "0.14.10" resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.14.10.tgz#afc78de3d6f9e11bf78c55e8510ee12814522f04" integrity sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==