summaryrefslogtreecommitdiff
path: root/src/web/app/dev/script.ts
blob: 2f4a16fab1e0be9cf17fcf949b0a679b50b7b9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * Developer Center
 */

import Vue from 'vue';
import BootstrapVue from 'bootstrap-vue';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap-vue/dist/bootstrap-vue.css';

// Style
import './style.styl';

import init from '../init';

import Index from './views/index.vue';
import Apps from './views/apps.vue';
import AppNew from './views/new-app.vue';
import App from './views/app.vue';
import ui from './views/ui.vue';

Vue.use(BootstrapVue);

Vue.component('mk-ui', ui);

/**
 * init
 */
init(launch => {
	// Launch the app
	const [app] = launch();

	// Routing
	app.$router.addRoutes([
		{ path: '/', component: Index },
		{ path: '/apps', component: Apps },
		{ path: '/app/new', component: AppNew },
		{ path: '/app/:id', component: App },
	]);
});