mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 22:03:54 +00:00

* 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>
41 lines
964 B
TypeScript
41 lines
964 B
TypeScript
import { AppTTSConfigType, AppFileSelectConfigType, AppWhisperConfigType } from './type';
|
|
|
|
export enum AppTypeEnum {
|
|
folder = 'folder',
|
|
simple = 'simple',
|
|
workflow = 'advanced',
|
|
plugin = 'plugin',
|
|
httpPlugin = 'httpPlugin'
|
|
}
|
|
|
|
export const AppFolderTypeList = [AppTypeEnum.folder, AppTypeEnum.httpPlugin];
|
|
|
|
export const defaultTTSConfig: AppTTSConfigType = { type: 'web' };
|
|
|
|
export const defaultWhisperConfig: AppWhisperConfigType = {
|
|
open: false,
|
|
autoSend: false,
|
|
autoTTSResponse: false
|
|
};
|
|
|
|
export const defaultChatInputGuideConfig = {
|
|
open: false,
|
|
textList: [],
|
|
customUrl: ''
|
|
};
|
|
|
|
export const defaultAppSelectFileConfig: AppFileSelectConfigType = {
|
|
canSelectFile: false,
|
|
canSelectImg: false,
|
|
maxFiles: 10
|
|
};
|
|
|
|
export enum AppTemplateTypeEnum {
|
|
recommendation = 'recommendation',
|
|
writing = 'writing',
|
|
imageGeneration = 'image-generation',
|
|
webSearch = 'web-search',
|
|
roleplay = 'roleplay',
|
|
officeServices = 'office-services'
|
|
}
|