78 lines
1.8 KiB
JavaScript
78 lines
1.8 KiB
JavaScript
import {
|
|
MODULE_PAGE,
|
|
MODULE_SETTINGS_PAGE,
|
|
SNAPSHOT_DETAIL,
|
|
SNAPSHOT_LIST,
|
|
SUBMISSIONS_PAGE,
|
|
VISIBILITY_PAGE,
|
|
} from '@/router/module.names';
|
|
import {LAYOUT_SIMPLE} from '@/router/core.constants';
|
|
|
|
const moduleBase = () => import('@/pages/module/module-base');
|
|
const module = () => import('@/pages/module/module');
|
|
const submissions = () => import('@/pages/submissions');
|
|
const moduleVisibility = () => import('@/pages/module/moduleVisibility');
|
|
const settingsPage = () => import('@/pages/module/moduleSettings');
|
|
const snapshots = () => import('@/pages/module/moduleSettings');
|
|
const snapshot = () => import('@/pages/module/moduleSettings');
|
|
|
|
export default [
|
|
{
|
|
path: '/module/:slug',
|
|
component: moduleBase,
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: MODULE_PAGE,
|
|
component: module,
|
|
meta: {filter: true},
|
|
},
|
|
{
|
|
path: 'submissions/:id',
|
|
name: SUBMISSIONS_PAGE,
|
|
component: submissions,
|
|
meta: {
|
|
filter: true,
|
|
showSubNavigation: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'settings',
|
|
name: MODULE_SETTINGS_PAGE,
|
|
component: settingsPage,
|
|
meta: {
|
|
showSubNavigation: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'visibility',
|
|
name: VISIBILITY_PAGE,
|
|
component: moduleVisibility,
|
|
meta: {
|
|
layout: LAYOUT_SIMPLE,
|
|
hideNavigation: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'snapshots',
|
|
component: snapshots,
|
|
name: SNAPSHOT_LIST,
|
|
meta: {
|
|
showSubNavigation: true,
|
|
},
|
|
},
|
|
{
|
|
path: 'snapshot/:id',
|
|
component: snapshot,
|
|
name: SNAPSHOT_DETAIL,
|
|
props: true,
|
|
meta: {
|
|
layout: LAYOUT_SIMPLE,
|
|
hideNavigation: true,
|
|
fullWidth: true
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|