summaryrefslogtreecommitdiff
path: root/src/web/app/dev/script.ts
blob: 757bfca490cd0b511748b4233f78899222247743 (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
/**
 * Developer Center
 */

// 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';

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

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