Started migration of frontend to vuetify

This commit is contained in:
Yeicor
2024-02-09 21:17:28 +01:00
parent 458726d472
commit ede0c6143f
6 changed files with 164 additions and 27 deletions

View File

@@ -11,6 +11,25 @@ import {createApp} from 'vue'
// @ts-ignore
import App from './App.vue'
import 'vuetify/lib/styles/main.sass';
import { createVuetify } from 'vuetify';
// TODO: Only import the components and directives that are actually used
// @ts-ignore
import * as components from 'vuetify/lib/components';
// @ts-ignore
import * as directives from 'vuetify/lib/directives';
const vuetify = createVuetify({
components,
directives,
theme: {
defaultTheme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light',
}
});
const app = createApp(App)
app.use(vuetify)
app.config.compilerOptions.isCustomElement = tag => tag === 'model-viewer'
app.mount('body')