2019-06-23 03:35:23 -07:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Router from 'vue-router';
|
|
|
|
import MainHeader from '@/components/MainHeader.vue';
|
|
|
|
import MainSidebar from '@/components/MainSidebar.vue';
|
|
|
|
import NodeView from '@/views/NodeView.vue';
|
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
mode: 'history',
|
2020-07-12 00:28:08 -07:00
|
|
|
// @ts-ignore
|
2020-07-14 14:36:05 -07:00
|
|
|
base: window.BASE_PATH === '/%BASE_PATH%/' ? '/' : window.BASE_PATH,
|
2019-06-23 03:35:23 -07:00
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/execution/:id',
|
|
|
|
name: 'ExecutionById',
|
|
|
|
components: {
|
|
|
|
default: NodeView,
|
|
|
|
header: MainHeader,
|
|
|
|
sidebar: MainSidebar,
|
|
|
|
},
|
|
|
|
},
|
2020-01-01 22:49:18 -08:00
|
|
|
{
|
|
|
|
path: '/oauth2/callback',
|
2020-01-07 16:29:11 -08:00
|
|
|
name: 'oAuth2Callback',
|
2020-01-01 22:49:18 -08:00
|
|
|
components: {
|
|
|
|
},
|
|
|
|
},
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
path: '/workflow',
|
|
|
|
name: 'NodeViewNew',
|
|
|
|
components: {
|
|
|
|
default: NodeView,
|
|
|
|
header: MainHeader,
|
|
|
|
sidebar: MainSidebar,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/workflow/:name',
|
|
|
|
name: 'NodeViewExisting',
|
|
|
|
components: {
|
|
|
|
default: NodeView,
|
|
|
|
header: MainHeader,
|
|
|
|
sidebar: MainSidebar,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
redirect: '/workflow',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|