diff --git a/lib/www/client/source/src/router/index.js b/lib/www/client/source/src/router/index.js index 0eec650..090b30d 100644 --- a/lib/www/client/source/src/router/index.js +++ b/lib/www/client/source/src/router/index.js @@ -20,6 +20,9 @@ import ProjectSettings from '../views/ProjectSettings.vue' import Users from '../views/Users.vue' import DougalAppBarExtensionProject from '../components/app-bar-extension-project' import DougalAppBarExtensionProjectList from '../components/app-bar-extension-project-list' +import GroupList from '../views/GroupList.vue' +import Group from '../views/Group.vue' + Vue.use(VueRouter) @@ -197,7 +200,43 @@ Vue.use(VueRouter) component: ProjectSettings } ] - } + }, + { + pathToRegexpOptions: { strict: true }, + path: "/groups", + redirect: "/groups/" + }, + { + pathToRegexpOptions: { strict: true }, + path: "/groups/", + component: GroupList, + meta: { + breadcrumbs: [ + { text: "Groups", href: "/groups", disabled: true } + ], + appBarExtension: { + // component: DougalAppBarExtensionProjectList + } + } + }, + { + pathToRegexpOptions: { strict: true }, + path: "/groups/:group", + redirect: "/groups/:group/" + }, + { + pathToRegexpOptions: { strict: true }, + path: "/groups/:group/", + name: "Group", + component: Group, + meta: { + breadcrumbs: [ + { text: "Groups", href: "/groups" }, + ], + }, + children: [ + ] + }, ] const router = new VueRouter({