import Vue from 'vue'
import Router from 'vue-router'
import ExploreCSV from './views/ExploreCSV.vue'
import ExploreXES from './views/ExploreXES.vue'
import DiscoverySettings from './views/DiscoverySettings.vue'
import Home from './views/Home.vue'
import BPMNViewer from './views/BPMNViewer.vue'
import Loading from './views/Loading.vue'
Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/csv/:token',
            name: 'csv',
            component: ExploreCSV,
            props: true
        },
        {
            path: '/xes/:token',
            name: 'xes',
            component: ExploreXES,
            props: true
        },
        {
            path: '/',
            name: 'home',
            component: Home,
            props: true
        },
        {
            path: '/discovery/settings/:token',
            name: 'discovery-settings',
            component: DiscoverySettings,
            props: true
        },
        {
            path: '/model/:token',
            name: 'model',
            component: BPMNViewer,
            props: true
        },
        {
            path: '/loading/:token',
            name: 'loading',
            component: Loading,
            props: true
        }
    ]
});

