initial commit

This commit is contained in:
2026-06-23 13:28:38 +07:00
commit 966ed115b2
590 changed files with 111412 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<script setup>
import { useAuthStore } from '@/stores/auth'
import ScrollToTop from '@core/components/ScrollToTop.vue'
import { useThemeConfig } from '@core/composable/useThemeConfig'
import { hexToRgb } from '@layouts/utils'
import { useTheme } from 'vuetify'
const {
syncInitialLoaderTheme,
syncVuetifyThemeWithTheme: syncConfigThemeWithVuetifyTheme,
isAppRtl,
handleSkinChanges,
} = useThemeConfig()
const { global } = useTheme()
// ️ Sync current theme with initial loader theme
syncInitialLoaderTheme()
syncConfigThemeWithVuetifyTheme()
handleSkinChanges()
const authStore = useAuthStore()
if (!authStore.user || !authStore.role) {
authStore.getUser()
authStore.getRoleUser()
}
</script>
<template>
<VLocaleProvider :rtl="isAppRtl">
<!-- This is required to set the background color of active nav link based on currently active global theme's primary -->
<VApp :style="`--v-global-theme-primary: ${hexToRgb('#3a418d')}`">
<RouterView />
<ScrollToTop />
</VApp>
</VLocaleProvider>
</template>
<style lang="scss">
.swal2-container {
z-index: 2500 !important;
}
</style>