feat: Add and refactor MIME type management
Some checks failed
CI Pipeline / japa-tests (push) Failing after 47s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 47s
- Added BaseModel with fillable attributes and mergeFillableAttributes method - Refactored MimeType model to extend BaseModel - Implemented destroy method in MimetypeController for deleting MIME types - Updated Create.vue component with refactoring and improved type safety - Fixed issues with ref usage in Create.vue - Updated routes to include new and refactored endpoints
This commit is contained in:
parent
d1480b1240
commit
537c6fd81a
10 changed files with 321 additions and 449 deletions
|
@ -1,3 +1,4 @@
|
|||
// import { BaseModel as LucidBaseModel } from '@adonisjs/lucid/orm';
|
||||
import { BaseModel as LucidBaseModel } from '@adonisjs/lucid/orm';
|
||||
// import { ManyToManyQueryClient } from '@ioc:Adonis/Lucid/Orm';
|
||||
|
||||
|
@ -29,8 +30,9 @@ export default class BaseModel extends LucidBaseModel {
|
|||
*/
|
||||
// private fillInvoked: boolean = false;
|
||||
|
||||
[key: string]: any;
|
||||
// [key: string]: any;
|
||||
|
||||
|
||||
public static fillable: string[] = [];
|
||||
|
||||
public fill(attributes: any, allowExtraProperties: boolean = false): this {
|
||||
|
|
|
@ -36,7 +36,7 @@ export default abstract class DatasetExtension extends LucidBaseModel {
|
|||
// which fields shoud#t be published
|
||||
protected internalFields: Record<string, any> = {};
|
||||
protected fields: Record<string, any> = {};
|
||||
[key: string]: any;
|
||||
// [key: string]: any;
|
||||
|
||||
private getExternalFields(): Record<string, any> {
|
||||
// External fields definition
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue