Skip to content

Commit baac452

Browse files
authored
[app-builder] 添加开始节点应用配置相关配置 (#19)
1 parent 4c883a6 commit baac452

5 files changed

Lines changed: 56 additions & 2 deletions

File tree

860 KB
Loading
601 KB
Loading

app-engine/frontend/src/locale/en_US.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,5 +703,9 @@
703703
"codeErrorInternal": "Internal server error, please try again later",
704704
"codeErrorGateway": "The current network connection is experiencing an issue. Please try again later",
705705
"codeErrorBusy": "The system is busy and in queue. Please try again later",
706-
"codeErrorTimeout": "Request response timeout, please check your network connection and try again"
706+
"codeErrorTimeout": "Request response timeout, please check your network connection and try again",
707+
"appConfig": "App Configuration",
708+
"heatMap": "Heatmap",
709+
"appChatStyle": "App Interface Configuration",
710+
"appChatStyleCannotBeEmpty": "App interface configuration cannot be empty"
707711
}

app-engine/frontend/src/locale/zh_CN.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,5 +937,9 @@
937937
"codeErrorInternal": "服务器内部错误,请稍后重试",
938938
"codeErrorGateway": "当前网络连接出现异常,请稍后重试",
939939
"codeErrorBusy": "系统繁忙,排队中,请稍后重试",
940-
"codeErrorTimeout": "请求响应超时,请检查网络连接后重试"
940+
"codeErrorTimeout": "请求响应超时,请检查网络连接后重试",
941+
"appConfig": "应用配置",
942+
"heatMap": "热力图",
943+
"appChatStyle": "应用界面配置",
944+
"appChatStyleCannotBeEmpty": "应用界面配置不能为空"
941945
}

app-engine/frontend/src/pages/addFlow/config.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
*--------------------------------------------------------------------------------------------*/
66

77
import { TENANT_ID } from '../chatPreview/components/send-editor/common/config';
8+
import i18n from '../../locale/i18n';
9+
import chatScreenshot from '../../assets/images/appConfig/chat-screenshot.jpg';
10+
import heatmapScreenshot from '../../assets/images/appConfig/heatmap-screenshot.jpg';
811
const { origin } = window.location;
912
let baseUrl = '';
1013
if (process.env.PACKAGE_MODE === 'spa') {
@@ -20,6 +23,25 @@ export const configMap = {
2023
node: "startNodeStart",
2124
urls: {
2225
customHistoryUrl: ""
26+
},
27+
appConfig: {
28+
appChatStyle: {
29+
name: 'appChatStyle',
30+
label: 'appChatStyle',
31+
options: [
32+
{
33+
value: 'default',
34+
label: i18n.t('default'),
35+
image: chatScreenshot,
36+
},
37+
{
38+
value: 'heatMap',
39+
label: i18n.t('heatMap'),
40+
image: heatmapScreenshot,
41+
},
42+
],
43+
rules: [{required: true, message: 'appChatStyleCannotBeEmpty'}],
44+
},
2345
}
2446
},
2547
{
@@ -96,6 +118,30 @@ export const configMap = {
96118
node: "startNodeStart",
97119
urls: {
98120
customHistoryUrl: `${baseUrl}/v1/api/public/genericables/68dc66a6185cf64c801e55c97fc500e4?limit=10&offset=0`
121+
},
122+
appConfig: {
123+
appChatStyle: {
124+
name: 'appChatStyle',
125+
label: 'appChatStyle',
126+
options: [
127+
{
128+
value: 'default',
129+
label: i18n.t('default'),
130+
image: chatScreenshot,
131+
},
132+
{
133+
value: 'heatMap',
134+
label: i18n.t('heatMap'),
135+
image: heatmapScreenshot,
136+
},
137+
{
138+
value: 'default1',
139+
label: i18n.t('default'),
140+
image: heatmapScreenshot,
141+
},
142+
],
143+
rules: [{required: true, message: 'appChatStyleCannotBeEmpty'}],
144+
},
99145
}
100146
},
101147
{

0 commit comments

Comments
 (0)