Adrià Vilanova MartÃnez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 1 | import './theme.scss'; |
| 2 | |
| 3 | import {createApp} from 'vue'; |
| 4 | import * as VueRouter from 'vue-router'; |
| 5 | |
| 6 | import App from './App.vue'; |
| 7 | import AuthorizedUsers from './pages/AuthorizedUsers.vue'; |
| 8 | import Home from './pages/Home.vue'; |
| 9 | import KillSwitches from './pages/KillSwitches.vue'; |
| 10 | import {store} from './store/index.js'; |
| 11 | import VueMaterialAdapter from './vma.js'; |
| 12 | |
| 13 | const 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 | |
| 31 | const router = |
| 32 | VueRouter.createRouter({history: VueRouter.createWebHashHistory(), routes}); |
| 33 | |
| 34 | const app = createApp(App); |
| 35 | app.use(store); |
| 36 | app.use(router); |
| 37 | app.use(VueMaterialAdapter); |
| 38 | app.mount('app'); |