feat: a few tabs for module, deal services tab for mobiles
This commit is contained in:
@ -38,10 +38,6 @@ export type BuiltInModuleSchemaInput = {
|
||||
* Label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Iconname
|
||||
*/
|
||||
iconName: string;
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
@ -50,6 +46,10 @@ export type BuiltInModuleSchemaInput = {
|
||||
* Dependson
|
||||
*/
|
||||
dependsOn: Array<BuiltInModuleSchemaInput>;
|
||||
/**
|
||||
* Tabs
|
||||
*/
|
||||
tabs: Array<BuiltInModuleTabSchema>;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -68,10 +68,6 @@ export type BuiltInModuleSchemaOutput = {
|
||||
* Label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Iconname
|
||||
*/
|
||||
iconName: string;
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
@ -80,6 +76,32 @@ export type BuiltInModuleSchemaOutput = {
|
||||
* Dependson
|
||||
*/
|
||||
dependsOn: Array<BuiltInModuleSchemaOutput>;
|
||||
/**
|
||||
* Tabs
|
||||
*/
|
||||
tabs: Array<BuiltInModuleTabSchema>;
|
||||
};
|
||||
|
||||
/**
|
||||
* BuiltInModuleTabSchema
|
||||
*/
|
||||
export type BuiltInModuleTabSchema = {
|
||||
/**
|
||||
* Id
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Label
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Iconname
|
||||
*/
|
||||
iconName: string;
|
||||
/**
|
||||
* Device
|
||||
*/
|
||||
device: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@ -12,6 +12,16 @@ export const zBoardSchema = z.object({
|
||||
projectId: z.int(),
|
||||
});
|
||||
|
||||
/**
|
||||
* BuiltInModuleTabSchema
|
||||
*/
|
||||
export const zBuiltInModuleTabSchema = z.object({
|
||||
id: z.int(),
|
||||
label: z.string(),
|
||||
iconName: z.string(),
|
||||
device: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* BuiltInModuleSchema
|
||||
*/
|
||||
@ -19,7 +29,6 @@ export const zBuiltInModuleSchemaInput = z.object({
|
||||
id: z.int(),
|
||||
key: z.string(),
|
||||
label: z.string(),
|
||||
iconName: z.string(),
|
||||
description: z.string(),
|
||||
get dependsOn() {
|
||||
return z.array(
|
||||
@ -28,6 +37,7 @@ export const zBuiltInModuleSchemaInput = z.object({
|
||||
})
|
||||
);
|
||||
},
|
||||
tabs: z.array(zBuiltInModuleTabSchema),
|
||||
});
|
||||
|
||||
/**
|
||||
@ -37,7 +47,6 @@ export const zBuiltInModuleSchemaOutput = z.object({
|
||||
id: z.int(),
|
||||
key: z.string(),
|
||||
label: z.string(),
|
||||
iconName: z.string(),
|
||||
description: z.string(),
|
||||
get dependsOn() {
|
||||
return z.array(
|
||||
@ -46,6 +55,7 @@ export const zBuiltInModuleSchemaOutput = z.object({
|
||||
})
|
||||
);
|
||||
},
|
||||
tabs: z.array(zBuiltInModuleTabSchema),
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user