2016-12-29 07:49:51 +09:00
|
|
|
/**
|
|
|
|
* Developer Center
|
|
|
|
*/
|
|
|
|
|
2018-02-28 05:43:14 +09:00
|
|
|
import Vue from 'vue';
|
2018-03-27 14:13:12 +09:00
|
|
|
import VueRouter from 'vue-router';
|
2018-02-28 05:43:14 +09:00
|
|
|
import BootstrapVue from 'bootstrap-vue';
|
|
|
|
import 'bootstrap/dist/css/bootstrap.css';
|
|
|
|
import 'bootstrap-vue/dist/bootstrap-vue.css';
|
|
|
|
|
2017-02-19 12:31:23 +09:00
|
|
|
// Style
|
2017-02-19 15:36:53 +09:00
|
|
|
import './style.styl';
|
2017-02-19 12:31:23 +09:00
|
|
|
|
2017-05-18 05:06:55 +09:00
|
|
|
import init from '../init';
|
2016-12-29 07:49:51 +09:00
|
|
|
|
2018-02-28 00:11:28 +09:00
|
|
|
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';
|
2018-02-28 05:43:14 +09:00
|
|
|
import ui from './views/ui.vue';
|
2018-12-11 20:19:13 +09:00
|
|
|
import NotFound from '../common/views/pages/404.vue';
|
2018-02-28 05:43:14 +09:00
|
|
|
|
|
|
|
Vue.use(BootstrapVue);
|
|
|
|
|
|
|
|
Vue.component('mk-ui', ui);
|
2018-02-28 00:11:28 +09:00
|
|
|
|
2016-12-29 07:49:51 +09:00
|
|
|
/**
|
2017-05-18 05:06:55 +09:00
|
|
|
* init
|
2016-12-29 07:49:51 +09:00
|
|
|
*/
|
2018-02-28 00:11:28 +09:00
|
|
|
init(launch => {
|
2018-03-27 14:13:12 +09:00
|
|
|
// Init router
|
|
|
|
const router = new VueRouter({
|
|
|
|
mode: 'history',
|
|
|
|
base: '/dev/',
|
|
|
|
routes: [
|
|
|
|
{ path: '/', component: Index },
|
|
|
|
{ path: '/apps', component: Apps },
|
|
|
|
{ path: '/app/new', component: AppNew },
|
|
|
|
{ path: '/app/:id', component: App },
|
2018-12-11 20:19:13 +09:00
|
|
|
{ path: '*', component: NotFound }
|
2018-03-27 14:13:12 +09:00
|
|
|
]
|
|
|
|
});
|
|
|
|
|
2018-02-28 00:11:28 +09:00
|
|
|
// Launch the app
|
2018-03-27 14:13:12 +09:00
|
|
|
launch(router);
|
2016-12-29 07:49:51 +09:00
|
|
|
});
|