blob: 54f944dff38e2697a26197aee78e261f29b1ddaa [file] [log] [blame]
Adrià Vilanova Martínezf7ee6582021-09-02 21:53:28 +02001import './theme.scss';
2
3import {createApp} from 'vue';
4import * as VueRouter from 'vue-router';
5
6import App from './App.vue';
7import AuthorizedUsers from './pages/AuthorizedUsers.vue';
8import Home from './pages/Home.vue';
9import KillSwitches from './pages/KillSwitches.vue';
10import {store} from './store/index.js';
11import VueMaterialAdapter from './vma.js';
12
13const routes = [
14 {
15 path: '/',
16 component: Home,
17 meta: {title: 'Home'},
18 },
19 {
20 path: '/kill-switches',
21 component: KillSwitches,
22 meta: {title: 'Kill Switches'},
23 },
24 {
25 path: '/authorized-users',
26 component: AuthorizedUsers,
27 meta: {title: 'Authorized Users'},
28 },
29];
30
31const router =
32 VueRouter.createRouter({history: VueRouter.createWebHashHistory(), routes});
33
34const app = createApp(App);
35app.use(store);
36app.use(router);
37app.use(VueMaterialAdapter);
38app.mount('app');