feat: add more share config (#3120)

* feat: add more share config

* add i18n en
This commit is contained in:
papapatrick
2024-11-12 10:09:02 +08:00
committed by archer
parent f4e0dfc9bd
commit 5892ded567
30 changed files with 389 additions and 173 deletions

View File

@@ -82,7 +82,7 @@ export const filterPublicNodeResponseData = ({
}: {
flowResponses?: ChatHistoryItemResType[];
}) => {
const filedList = ['quoteList', 'moduleType', 'pluginOutput'];
const filedList = ['quoteList', 'moduleType', 'pluginOutput', 'runningTime'];
const filterModuleTypeList: any[] = [
FlowNodeTypeEnum.pluginModule,
FlowNodeTypeEnum.datasetSearchNode,

View File

@@ -10,3 +10,7 @@ export type AuthOutLinkLimitProps = AuthOutLinkChatProps & { outLink: OutLinkSch
export type AuthOutLinkResponse = {
uid: string;
};
export type AuthOutLinkProps = {
shareId?: string;
outLinkUid?: string;
};

View File

@@ -51,6 +51,10 @@ export type OutLinkSchema<T extends OutlinkAppType = undefined> = {
// whether the response content is detailed
responseDetail: boolean;
// whether to hide the node status
showNodeStatus: boolean;
// whether to show the complete quote
showCompleteQuote: boolean;
// response when request
immediateResponse?: string;
@@ -79,6 +83,8 @@ export type OutLinkEditType<T = undefined> = {
_id?: string;
name: string;
responseDetail?: OutLinkSchema<T>['responseDetail'];
showNodeStatus?: OutLinkSchema<T>['showNodeStatus'];
showCompleteQuote?: OutLinkSchema<T>['showCompleteQuote'];
// response when request
immediateResponse?: string;
// response when error or other situation