2019-05-28 17:29:15 +02:00
|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
Vue.use(VueRouter)
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
import App from './views/App'
|
|
|
|
import Login from './views/Login'
|
|
|
|
import Register from './views/Register'
|
2019-12-21 23:23:44 +01:00
|
|
|
import Accounts from './views/Accounts'
|
|
|
|
import Create from './views/Create'
|
|
|
|
import Edit from './views/Edit'
|
2019-06-24 00:29:14 +02:00
|
|
|
|
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
2020-01-05 23:21:28 +01:00
|
|
|
import { faPlusCircle, faQrcode, faImage } from '@fortawesome/free-solid-svg-icons'
|
2019-06-24 00:29:14 +02:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
|
|
|
2020-01-05 23:21:28 +01:00
|
|
|
library.add(faPlusCircle, faQrcode, faImage);
|
2019-06-24 00:29:14 +02:00
|
|
|
|
|
|
|
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
2019-05-20 07:37:41 +02:00
|
|
|
|
2019-05-28 17:29:15 +02:00
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
routes: [
|
|
|
|
{
|
2020-01-06 10:59:23 +01:00
|
|
|
path: './',
|
2019-06-24 00:29:14 +02:00
|
|
|
name: 'accounts',
|
|
|
|
component: Accounts
|
2019-05-28 17:29:15 +02:00
|
|
|
},
|
|
|
|
{
|
2020-01-06 10:59:23 +01:00
|
|
|
path: './login',
|
2019-05-28 17:29:15 +02:00
|
|
|
name: 'login',
|
|
|
|
component: Login,
|
|
|
|
},
|
|
|
|
{
|
2020-01-06 10:59:23 +01:00
|
|
|
path: './register',
|
2019-05-28 17:29:15 +02:00
|
|
|
name: 'register',
|
|
|
|
component: Register,
|
|
|
|
},
|
2019-12-21 23:23:44 +01:00
|
|
|
{
|
2020-01-06 10:59:23 +01:00
|
|
|
path: './create',
|
2019-12-21 23:23:44 +01:00
|
|
|
name: 'create',
|
|
|
|
component: Create,
|
|
|
|
},
|
|
|
|
{
|
2020-01-06 10:59:23 +01:00
|
|
|
path: './edit/:twofaccountId',
|
2019-12-21 23:23:44 +01:00
|
|
|
name: 'edit',
|
|
|
|
component: Edit,
|
|
|
|
},
|
2019-05-28 17:29:15 +02:00
|
|
|
],
|
|
|
|
});
|
2019-05-20 07:37:41 +02:00
|
|
|
|
|
|
|
const app = new Vue({
|
|
|
|
el: '#app',
|
2019-05-28 17:29:15 +02:00
|
|
|
components: { App },
|
|
|
|
router,
|
|
|
|
});
|