fix: lint code to build success

This commit is contained in:
HYana
2025-05-10 01:19:30 +08:00
parent 4031ff2835
commit 7a8102430f
48 changed files with 1657 additions and 1240 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
import { IDynamicFormItemSchema } from '@/app/infra/entities/form/dynamic';
import { I18nLabel } from '@/app/infra/entities/common';
import { PipelineConfigTab } from '@/app/infra/entities/pipeline';
export interface ApiResponse<T> {
@@ -32,7 +31,7 @@ export interface Requester {
icon?: string;
spec: {
config: IDynamicFormItemSchema[];
}
};
}
export interface ApiRespProviderLLMModels {
@@ -307,4 +306,4 @@ export interface GetPipelineResponseData {
export interface GetPipelineMetadataResponseData {
configs: PipelineConfigTab[];
}
}
+22 -22
View File
@@ -1,29 +1,29 @@
import { I18nLabel } from '@/app/infra/entities/common';
export interface IDynamicFormItemSchema {
id: string;
default: string | number | boolean | Array<unknown>;
label: I18nLabel;
name: string;
required: boolean;
type: DynamicFormItemType;
description?: I18nLabel;
options?: IDynamicFormItemOption[];
}
id: string;
default: string | number | boolean | Array<unknown>;
label: I18nLabel;
name: string;
required: boolean;
type: DynamicFormItemType;
description?: I18nLabel;
options?: IDynamicFormItemOption[];
}
export enum DynamicFormItemType {
INT = 'integer',
FLOAT = 'float',
BOOLEAN = 'boolean',
STRING = 'string',
STRING_ARRAY = 'array[string]',
SELECT = 'select',
LLM_MODEL_SELECTOR = 'llm-model-selector',
PROMPT_EDITOR = 'prompt-editor',
UNKNOWN = 'unknown',
}
INT = 'integer',
FLOAT = 'float',
BOOLEAN = 'boolean',
STRING = 'string',
STRING_ARRAY = 'array[string]',
SELECT = 'select',
LLM_MODEL_SELECTOR = 'llm-model-selector',
PROMPT_EDITOR = 'prompt-editor',
UNKNOWN = 'unknown',
}
export interface IDynamicFormItemOption {
name: string;
label: I18nLabel;
}
name: string;
label: I18nLabel;
}
+1 -1
View File
@@ -20,4 +20,4 @@ export interface PipelineConfigStage {
label: I18nLabel;
description?: I18nLabel;
config: IDynamicFormItemSchema[];
}
}