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',
|
|
|
|
base: process.env.BASE_URL,
|
|
|
|
routes: [
|
|
|
|
{
|
|
|
|
path: '/execution/:id',
|
|
|
|
name: 'ExecutionById',
|
|
|
|
components: {
|
|
|
|
default: NodeView,
|
|
|
|
header: MainHeader,
|
|
|
|
sidebar: MainSidebar,
|
|
|
|
},
|
|
|
|
},
|
2020-01-01 22:49:18 -08:00
|
|
|
{
|
|
|
|
path: '/oauth2/callback',
|
|
|
|
name: 'OAuth2Callback',
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|