tethys.backend/resources/js/menu.ts
Arno Kaimbacher b540547e4c
All checks were successful
CI / container-job (push) Successful in 49s
feat: update API controllers, validations, and Vue components
- Modified Api/Authors.Controller.ts to use only personal types and sort by dataset_count.
- Completely rewritten AvatarController.ts.
- Added new Api/CollectionsController.ts for querying collections and collection_roles.
- Modified Api/DatasetController.ts to preload titles, identifier and order by server_date_published.
- Modified FileController.ts to serve files from /storage/app/data/ instead of /storage/app/public.
- Added new Api/UserController for requesting submitters (getSubmitters).
- Improved OaiController.ts with performant DB queries for better ResumptionToken handling.
- Modified Submitter/DatasetController.ts by adding a categorize method for library classification.
- Rewritten ResumptionToken.ts.
- Improved TokenWorkerService.ts to utilize browser fingerprint.
- Edited dataset.ts by adding the doiIdentifier property.
- Enhanced person.ts to improve the fullName property.
- Completely rewritten AsideMenuItem.vue component.
- Updated CarBoxClient.vue to use TypeScript.
- Added new CardBoxDataset.vue for displaying recent datasets on the dashboard.
- Completely rewritten TableSampleClients.vue for the dashboard.
- Completely rewritten UserAvatar.vue.
- Made small layout changes in Dashboard.vue.
- Added new Category.vue for browsing scientific collections.
- Adapted the pinia store in main.ts.
- Added additional routes in start/routes.ts and start/api/routes.ts.
- Improved referenceValidation.ts for better ISBN existence checking.
- NPM dependency updates.
2025-03-14 17:39:58 +01:00

177 lines
4.4 KiB
TypeScript

import {
// mdiMonitor,
mdiGithub,
mdiAccountEye,
mdiAccountGroup,
mdiAccountEdit,
mdiPublish,
mdiAccountArrowUp,
mdiFormatListNumbered,
mdiLock,
mdiFormatListGroup,
mdiShieldCrownOutline,
mdiLicense,
mdiFileDocument,
mdiLibraryShelves
} from '@mdi/js';
export default [
{
// route: 'dataset.create',
icon: mdiAccountEdit ,
label: 'Personal',
// roles: ['submitter'],
isOpen: true,
children: [
{
route: 'settings.user',
icon: mdiLock,
label: 'Security',
},
{
route: 'settings.profile.edit',
icon: mdiLock,
label: 'Profile',
},
// {
// route: 'dataset.create',
// icon: mdiPublish,
// label: 'Create Dataset',
// },
],
},
// {
// route: 'apps.dashboard',
// icon: mdiMonitor,
// label: 'Dashboard',
// },
// {
// route: 'permission.index',
// icon: mdiAccountKey,
// label: 'Permissions'
// },
// {
// route: 'role.index',
// icon: mdiAccountEye,
// label: 'Roles'
// },
{
icon: mdiShieldCrownOutline,
label: 'Administration',
roles: ['administrator'],
isOpen: true,
permanent: true,
children: [
{
route: 'settings.overview',
icon: mdiFormatListGroup,
label: 'Overview',
roles: ['administrator'],
},
{
route: 'settings.user.index',
icon: mdiAccountGroup,
label: 'Users',
roles: ['administrator'],
},
{
route: 'settings.role.index',
icon: mdiAccountEye,
label: 'Roles',
roles: ['administrator'],
},
{
route: 'settings.mimetype.index',
icon: mdiFileDocument,
label: 'Mime Types',
roles: ['administrator'],
},
{
route: 'settings.license.index',
icon: mdiLicense,
label: 'Licenses',
roles: ['administrator'],
},
],
},
{
// 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.categorize',
// icon: mdiLibraryShelves,
// label: 'Library Classification',
// },
],
},
{
// 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: mdiAccountEdit,
label: 'Reviewer',
roles: ['reviewer'],
isOpen: false,
children: [
{
route: 'reviewer.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.geosphere.at/geolba/tethys.backend',
icon: mdiGithub,
label: 'Forgejo',
target: '_blank',
},
{
href: '/oai',
icon: mdiAccountEye,
label: 'OAI',
target: '_blank',
},
];