mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
App template market (#2337)
* feat: add app template market (#2012) * feat: add app template market * fix * fix * i18n * fix * perf: template market ux * perf: simple mode app ui * perf: tempalte modal ui * perf: tempalte market ui * perf: template position * feat: create app modal * regiter default app * perf: icon * change templates position (#2331) * change templates position * fix * perf: template market ux --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
@@ -29,3 +29,12 @@ export const defaultAppSelectFileConfig: AppFileSelectConfigType = {
|
||||
canSelectImg: false,
|
||||
maxFiles: 10
|
||||
};
|
||||
|
||||
export enum AppTemplateTypeEnum {
|
||||
recommendation = 'recommendation',
|
||||
writing = 'writing',
|
||||
imageGeneration = 'image-generation',
|
||||
webSearch = 'web-search',
|
||||
roleplay = 'roleplay',
|
||||
officeServices = 'office-services'
|
||||
}
|
||||
|
15
packages/global/core/workflow/type/index.d.ts
vendored
15
packages/global/core/workflow/type/index.d.ts
vendored
@@ -24,7 +24,7 @@ import { FlowNodeTemplateType, StoreNodeItemType } from './node';
|
||||
export type WorkflowTemplateBasicType = {
|
||||
nodes: StoreNodeItemType[];
|
||||
edges: StoreEdgeItemType[];
|
||||
chatConfigs?: AppChatConfigType;
|
||||
chatConfig?: AppChatConfigType;
|
||||
};
|
||||
export type WorkflowTemplateType = {
|
||||
id: string;
|
||||
@@ -46,7 +46,18 @@ export type WorkflowTemplateType = {
|
||||
|
||||
// template market
|
||||
export type TemplateMarketItemType = WorkflowTemplateType & {
|
||||
tags?: { id: string; label: string }[];
|
||||
tags: string[];
|
||||
type: AppTypeEnum.simple | AppTypeEnum.workflow | AppTypeEnum.plugin;
|
||||
};
|
||||
// template market list
|
||||
export type TemplateMarketListItemType = {
|
||||
id: string;
|
||||
name: string;
|
||||
intro?: string;
|
||||
author?: string;
|
||||
tags: string[];
|
||||
type: AppTypeEnum.simple | AppTypeEnum.workflow | AppTypeEnum.plugin;
|
||||
avatar: string;
|
||||
};
|
||||
|
||||
// system plugin
|
||||
|
Reference in New Issue
Block a user