import Vue from 'vue';
import Router from 'vue-router';
import Demo from '../pages/page-ide/page-default.vue';
import globalSetting from '../pages/page-ide/globalSetting.vue';
import pagePreview from '../pages/page-ide/pagePreview.vue';
import selectTemplate from '../pages/page-ide/selectTemplate.vue';
import test from '../pages/page-ide/test.vue';
Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/selectTemplate',
            name: 'selectTemplate',
            component: selectTemplate,
        },
        {
            path: '/test',
            name: 'test',
            component: test,
        },
        {
            path: '/pageDefault',
            name: 'pageDefault',
            component: Demo,
            children: [
                {
                    path: '/globalSetting',
                    name: 'globalSetting',
                    component: globalSetting
                },
                {
                    path: '/pagePreview',
                    name: 'pagePreview',
                    component: pagePreview
                }
            ]
        }
    ]
})
;
