feat: rm vuetify

This commit is contained in:
Alisa
2023-05-27 22:39:43 +08:00
parent 270cd1bdba
commit 1a2d0cdffb
107 changed files with 151 additions and 104 deletions
+2 -21
View File
@@ -1,21 +1,7 @@
<script setup lang="ts">
import { useTheme } from 'vuetify';
import { useThemeConfig } from '@/plugins/vuetify/@core/composable/useThemeConfig';
import { hexToRgb } from '@/plugins/vuetify/@layouts/utils';
import { themeChange } from 'theme-change';
import { onMounted } from 'vue';
import TxDialog from './components/TxDialog.vue';
const {
syncInitialLoaderTheme,
syncVuetifyThemeWithTheme: syncConfigThemeWithVuetifyTheme,
isAppRtl,
} = useThemeConfig();
const { global } = useTheme();
// ️ Sync current theme with initial loader theme
syncInitialLoaderTheme();
syncConfigThemeWithVuetifyTheme();
onMounted(() => {
themeChange(false);
@@ -23,13 +9,8 @@ onMounted(() => {
</script>
<template>
<!-- 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(
global.current.value.colors.primary
)}`"
>
<div>
<RouterView />
<TxDialog />
</VApp>
</div>
</template>