tethys.backend/resources/js/menu.ts
Arno Kaimbacher 6fef581dd0
All checks were successful
CI Pipeline / japa-tests (push) Successful in 50s
- small adaptions for AsideMenuItem.vue, AsideMenuLayer.vue
- new routes editor.dataset.list and editor.dataset.update
- fir functionalities for editor role, suche as listing and receiving released datasets
- npm updates
2023-11-30 13:40:32 +01:00

96 lines
2.1 KiB
TypeScript

import {
mdiMonitor,
mdiGithub,
mdiAccountEye,
mdiAccountGroup,
mdiAccountEdit,
mdiPublish,
mdiAccountArrowUp,
mdiFormatListNumbered,
} from '@mdi/js';
export default [
{
route: 'dashboard',
icon: mdiMonitor,
label: 'Dashboard',
},
// {
// route: 'permission.index',
// icon: mdiAccountKey,
// label: 'Permissions'
// },
// {
// route: 'role.index',
// icon: mdiAccountEye,
// label: 'Roles'
// },
{
route: 'user.index',
icon: mdiAccountGroup,
label: 'Users',
roles: ['administrator'],
},
{
route: 'role.index',
icon: mdiAccountEye,
label: 'Roles',
roles: ['administrator'],
},
{
href: '/oai',
icon: mdiAccountEye,
label: 'OAI',
target: '_blank',
},
{
// route: 'dataset.create',
icon: mdiAccountArrowUp,
label: 'Submitter',
roles: ['submitter'],
isOpen: false,
children: [
{
route: 'dataset.list',
icon: mdiFormatListNumbered,
label: 'All my datasets',
},
{
route: 'dataset.create',
icon: mdiPublish,
label: 'Create Dataset',
},
],
},
{
// route: 'dataset.create',
icon: mdiAccountEdit,
label: 'Editor',
roles: ['editor'],
isOpen: false,
children: [
{
route: 'editor.dataset.list',
icon: mdiFormatListNumbered,
label: 'All my datasets',
},
// {
// route: 'dataset.create',
// icon: mdiPublish,
// label: 'Create Dataset',
// },
],
},
// {
// route: 'dataset.create',
// icon: mdiDatabasePlus,
// label: 'Create Dataset',
// },
{
href: 'https://gitea.geologie.ac.at/geolba/tethys',
icon: mdiGithub,
label: 'Gitea',
target: '_blank',
},
];