mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-15 09:35:39 -05:00
Switch new display to Vue
This commit is contained in:
8
WebDisplay/src/plugins/index.ts
Normal file
8
WebDisplay/src/plugins/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import vuetify from './vuetify';
|
||||
import router from '../router';
|
||||
|
||||
import type { App } from 'vue';
|
||||
|
||||
export function registerPlugins(app: App) {
|
||||
app.use(vuetify).use(router);
|
||||
}
|
||||
20
WebDisplay/src/plugins/vuetify.ts
Normal file
20
WebDisplay/src/plugins/vuetify.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import '@mdi/font/css/materialdesignicons.css';
|
||||
import 'vuetify/styles';
|
||||
|
||||
import { ThemeDefinition, createVuetify } from 'vuetify';
|
||||
|
||||
const theme: ThemeDefinition = {
|
||||
dark: false,
|
||||
colors: {
|
||||
primary: '#602f6b'
|
||||
}
|
||||
};
|
||||
|
||||
export default createVuetify({
|
||||
theme: {
|
||||
defaultTheme: 'theme',
|
||||
themes: {
|
||||
theme
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user