mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
24 lines
612 B
TypeScript
24 lines
612 B
TypeScript
import {createApp} from 'vue'
|
|
import App from './App.vue'
|
|
|
|
import {createVuetify} from 'vuetify';
|
|
import * as directives from 'vuetify/lib/directives/index.mjs';
|
|
import 'vuetify/dist/vuetify.css';
|
|
|
|
// @ts-ignore
|
|
if (__APP_NAME__) {
|
|
// @ts-ignore
|
|
console.log(`Starting ${__APP_NAME__} v${__APP_VERSION__} (${__APP_GIT_SHA__}${__APP_GIT_DIRTY__ ? "+dirty" : ""})...`);
|
|
}
|
|
|
|
const vuetify = createVuetify({
|
|
directives,
|
|
theme: {
|
|
defaultTheme: window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light',
|
|
}
|
|
});
|
|
|
|
const app = createApp(App)
|
|
app.use(vuetify)
|
|
app.mount('body')
|