hotfix: improve mimetype creation and dashboard data loading
Some checks failed
CI Pipeline / japa-tests (pull_request) Has been cancelled
Some checks failed
CI Pipeline / japa-tests (pull_request) Has been cancelled
- Added a NotificationBar component to display flash messages on the Mimetype creation page. - Modified FormCheckRadioGroup to handle both numeric and string keys for input values. - Removed unused code and API calls from Dashboard.vue and moved API calls to the component level where they are used. - Added authentication middleware to the 'clients' and 'authors' API routes in `start/routes/api.ts`. - Updated the file download route in `start/routes/api.ts` to include "file" in the path. - Corrected the validation message key for file extension minLength in MimetypeController.ts. - Updated favicon path in `resources/views/app.edge`. - Added argon2 dependency in `package.json`.
This commit is contained in:
parent
0bf442be96
commit
89d91d5e12
9 changed files with 893 additions and 620 deletions
|
@ -11,8 +11,8 @@ import { middleware } from '../kernel.js';
|
|||
// API
|
||||
router
|
||||
.group(() => {
|
||||
router.get('clients', [UserController, 'getSubmitters']).as('client.index');
|
||||
router.get('authors', [AuthorsController, 'index']).as('author.index');
|
||||
router.get('clients', [UserController, 'getSubmitters']).as('client.index').use(middleware.auth());;
|
||||
router.get('authors', [AuthorsController, 'index']).as('author.index').use(middleware.auth());;
|
||||
router.get('datasets', [DatasetController, 'index']).as('dataset.index');
|
||||
router.get('persons', [AuthorsController, 'persons']).as('author.persons');
|
||||
|
||||
|
@ -22,7 +22,7 @@ router
|
|||
router.get('/years', [HomeController, 'findYears']);
|
||||
router.get('/statistic', [HomeController, 'findPublicationsPerMonth']);
|
||||
|
||||
router.get('/download/:id', [FileController, 'findOne']).as('file.findOne');
|
||||
router.get('/file/download/:id', [FileController, 'findOne']).as('file.findOne');
|
||||
|
||||
router.get('/avatar/:name/:background?/:textColor?/:size?', [AvatarController, 'generateAvatar']);
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue