Skip to content

Commit 8eacca6

Browse files
newfish-cmykc121914yu
authored andcommitted
fix page adjust (#5883)
* fix page adjust * fix ad store
1 parent afd043e commit 8eacca6

File tree

26 files changed

+360
-235
lines changed

26 files changed

+360
-235
lines changed

packages/web/i18n/en/account.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"custom_model": "custom model",
1313
"default_model": "Default model",
1414
"default_model_config": "Default model configuration",
15+
"language": "Language and time zone",
1516
"logout": "Sign out",
1617
"model.active": "Active",
1718
"model.alias": "Alias",

packages/web/i18n/en/app.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"core.module.template.System Tools": "System Tools",
8282
"core.workflow.Copilot": "AI Generation",
8383
"create_by_curl": "By CURL",
84-
"create_by_template": "By template",
84+
"create_by_template": "Create by template",
8585
"create_copy_success": "Duplicate Created Successfully",
8686
"create_empty_app": "Create Default App",
8787
"create_empty_plugin": "Create Default Plugin",
@@ -94,6 +94,7 @@
9494
"cron.every_month": "Run Monthly",
9595
"cron.every_week": "Run Weekly",
9696
"cron.interval": "Run at Intervals",
97+
"current_package": "Current package: ",
9798
"custom_plugin": "Custom Plugin",
9899
"custom_plugin_associated_plugin_label": "Associated Plugin",
99100
"custom_plugin_associated_plugin_placeholder": "Enter plugin name or appId to search",
@@ -136,7 +137,7 @@
136137
"edit_info": "Edit",
137138
"empty_tool_tips": "Please add tools on the left side",
138139
"execute_time": "Execution Time",
139-
"expand_tool_create": "Expand tool create",
140+
"expand_tool_create": "Expand MCP/Http create",
140141
"export_config_successful": "Configuration copied, some sensitive information automatically filtered. Please check for any remaining sensitive data.",
141142
"export_configs": "Export",
142143
"fastgpt_marketplace": "FastGPT plug-in market",
@@ -468,6 +469,7 @@
468469
"type_workflow_description": "Memory-enabled complex multi-turn conversational workflows.",
469470
"type_workflow_intro": "Drag and drop arrangement and multiple rounds of dialogue",
470471
"un_auth": "No permission",
472+
"unnamed_app": "Unnamed",
471473
"upload_file_exists_filtered": "Duplicate files have been automatically filtered.",
472474
"upload_file_extension_type_canSelectAudio": "Audio",
473475
"upload_file_extension_type_canSelectCustomFileExtension": "Custom file extension type",
@@ -480,6 +482,7 @@
480482
"upload_file_max_amount_tip": "Maximum number of files uploaded in a single round of conversation",
481483
"upload_method": "Upload method",
482484
"url_upload": "File link",
485+
"used_points": "Used point: ",
483486
"variable.internal_type_desc": "Use only inside the workflow and will not appear in the dialog box",
484487
"variable.select type_desc": "The input box will be displayed in the site conversation and run preview, and this variable will not be displayed in the sharing link.",
485488
"variable.textarea_type_desc": "Allows users to input up to 4000 characters in the dialogue box.",

packages/web/i18n/zh-CN/account.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"custom_model": "自定义模型",
1313
"default_model": "预设模型",
1414
"default_model_config": "默认模型配置",
15+
"language": "语言与时区",
1516
"logout": "登出",
1617
"model.active": "启用",
1718
"model.alias": "别名",

packages/web/i18n/zh-CN/app.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"core.module.template.System Tools": "系统工具",
8484
"core.workflow.Copilot": "AI 生成",
8585
"create_by_curl": "从 CURL 创建",
86-
"create_by_template": "从模板选择",
86+
"create_by_template": "从模板创建",
8787
"create_copy_success": "创建副本成功",
8888
"create_empty_app": "创建空白应用",
8989
"create_empty_plugin": "创建空白插件",
@@ -96,6 +96,7 @@
9696
"cron.every_month": "每月执行",
9797
"cron.every_week": "每周执行",
9898
"cron.interval": "间隔执行",
99+
"current_package": "当前套餐:",
99100
"custom_plugin": "自定义插件",
100101
"custom_plugin_associated_plugin_label": "关联插件",
101102
"custom_plugin_associated_plugin_placeholder": "输入插件名或 appId 查找插件",
@@ -140,7 +141,7 @@
140141
"edit_param": "编辑参数",
141142
"empty_tool_tips": "请在左侧添加工具",
142143
"execute_time": "执行时间",
143-
"expand_tool_create": "展开工具创建",
144+
"expand_tool_create": "展开MCP、Http创建",
144145
"export_config_successful": "已复制配置,自动过滤部分敏感信息,请注意检查是否仍有敏感数据",
145146
"export_configs": "导出配置",
146147
"fastgpt_marketplace": "FastGPT 插件市场",
@@ -486,6 +487,7 @@
486487
"type_workflow_description": "支持记忆的复杂多轮对话工作流。",
487488
"type_workflow_intro": "拖拽编排与多轮对话",
488489
"un_auth": "无权限",
490+
"unnamed_app": "未命名",
489491
"upgrade": "去升级",
490492
"upload_file_exists_filtered": "已自动过滤重复文件",
491493
"upload_file_extension_type_canSelectAudio": "音频",
@@ -499,6 +501,7 @@
499501
"upload_file_max_amount_tip": "单轮对话中最大上传文件数量",
500502
"upload_method": "上传方式",
501503
"url_upload": "文件链接",
504+
"used_points": "积分用量:",
502505
"variable.internal_type_desc": "仅在工作流内部使用,不会出现在对话框中",
503506
"variable.select type_desc": "会在站内对话和运行预览中显示输入框,在分享链接中不会显示此变量",
504507
"variable.textarea_type_desc": "允许用户最多输入4000字的对话框。",

packages/web/i18n/zh-Hant/account.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"custom_model": "自訂模型",
1313
"default_model": "預設模型",
1414
"default_model_config": "預設模型設定",
15+
"language": "語言與時區",
1516
"logout": "登出",
1617
"model.active": "啟用",
1718
"model.alias": "別名",

packages/web/i18n/zh-Hant/app.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"cron.every_month": "每月執行",
9494
"cron.every_week": "每週執行",
9595
"cron.interval": "間隔執行",
96+
"current_package": "當前套餐:",
9697
"custom_plugin": "自訂外掛",
9798
"custom_plugin_associated_plugin_label": "關聯外掛",
9899
"custom_plugin_associated_plugin_placeholder": "輸入外掛名稱或 appId 尋找外掛",
@@ -135,7 +136,7 @@
135136
"edit_info": "編輯資訊",
136137
"empty_tool_tips": "請在左側添加工具",
137138
"execute_time": "執行時間",
138-
"expand_tool_create": "展開工具創建",
139+
"expand_tool_create": "展開 MCP、Http 創建",
139140
"export_config_successful": "已複製設定,自動過濾部分敏感資訊,請注意檢查是否仍有敏感資料",
140141
"export_configs": "匯出設定",
141142
"fastgpt_marketplace": "FastGPT 插件市場",
@@ -465,6 +466,7 @@
465466
"type_workflow_description": "支持記憶的複雜多輪對話工作流。",
466467
"type_workflow_intro": "拖拽編排與多輪對話",
467468
"un_auth": "無權限",
469+
"unnamed_app": "未命名",
468470
"upgrade": "去升級",
469471
"upload_file_exists_filtered": "已自動過濾重複檔案",
470472
"upload_file_extension_type_canSelectAudio": "音頻",
@@ -478,6 +480,7 @@
478480
"upload_file_max_amount_tip": "單輪對話中最大上傳檔案數量",
479481
"upload_method": "上傳方式",
480482
"url_upload": "文件鏈接",
483+
"used_points": "積分用量:",
481484
"variable.internal_type_desc": "僅在工作流內部使用,不會出現在對話框中",
482485
"variable.select type_desc": "會在站內對話和運行預覽中顯示輸入框,在分享鏈接中不會顯示此變量",
483486
"variable.textarea_type_desc": "允許使用者最多輸入 4000 字的對話框。",

projects/app/src/components/Layout/HelperBot.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ const HelperBot = () => {
6161
position={'fixed'}
6262
right={3}
6363
bottom={'calc(10% + 80px)'}
64+
top={'50px'}
6465
w={'400px'}
65-
h={'600px'}
66+
maxH={'790px'}
6667
bg={'white'}
6768
borderRadius={'lg'}
6869
boxShadow={'0px 4px 20px rgba(0, 0, 0, 0.15)'}

projects/app/src/components/Layout/navbar.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ const Navbar = ({ unread }: { unread: number }) => {
6969
link: `/dataset/list`,
7070
activeLink: ['/dataset/list', '/dataset/detail']
7171
},
72-
{
73-
label: t('common:navbar.Chat'),
74-
icon: 'navbar/chatLight',
75-
activeIcon: 'navbar/chatFill',
76-
link: `/chat?appId=${lastChatAppId}&pane=${lastPane}`,
77-
activeLink: ['/chat']
78-
},
7972
{
8073
label: t('common:navbar.Account'),
8174
icon: 'navbar/userLight',
@@ -94,6 +87,13 @@ const Navbar = ({ unread }: { unread: number }) => {
9487
'/account/model'
9588
]
9689
},
90+
{
91+
label: t('common:navbar.Chat'),
92+
icon: 'navbar/chatLight',
93+
activeIcon: 'navbar/chatFill',
94+
link: `/chat?appId=${lastChatAppId}&pane=${lastPane}`,
95+
activeLink: ['/chat']
96+
},
9797
...(userInfo?.username === 'root'
9898
? [
9999
{

projects/app/src/components/common/secret/HeaderAuthForm.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ const AuthValueDisplay = ({
2828
index = 0,
2929
onEdit,
3030
value,
31-
onChange
31+
onChange,
32+
bg
3233
}: {
3334
showInput: boolean;
3435
index?: number;
3536
onEdit: (index?: number) => void;
3637
value: string;
3738
onChange: (value: string) => void;
39+
bg: string;
3840
}) => {
3941
const { t } = useTranslation();
4042

@@ -43,7 +45,7 @@ const AuthValueDisplay = ({
4345
{showInput ? (
4446
<Input
4547
placeholder={'Value'}
46-
bg={'myGray.50'}
48+
bg={bg}
4749
h={8}
4850
maxLength={200}
4951
onFocus={() => onEdit(index)}
@@ -98,11 +100,13 @@ export const getSecretType = (config: HeaderSecretConfigType): HeaderSecretTypeE
98100
const HeaderAuthForm = ({
99101
headerSecretValue,
100102
onChange,
101-
fontWeight = 'medium'
103+
fontWeight = 'medium',
104+
bg = 'myGray.50'
102105
}: {
103106
headerSecretValue: HeaderSecretConfigType;
104107
onChange: (secret: HeaderSecretConfigType) => void;
105108
fontWeight?: string;
109+
bg?: string;
106110
}) => {
107111
const { t } = useTranslation();
108112
const headerSecretList = [
@@ -138,7 +142,7 @@ const HeaderAuthForm = ({
138142
{t('common:auth_type')}
139143
</Box>
140144
<MySelect
141-
bg={'myGray.50'}
145+
bg={bg}
142146
value={currentAuthType}
143147
onChange={(val) => {
144148
if (val === HeaderSecretTypeEnum.None) {
@@ -192,6 +196,7 @@ const HeaderAuthForm = ({
192196
});
193197
}
194198
}}
199+
bg={bg}
195200
/>
196201
) : (
197202
<Box>
@@ -201,7 +206,7 @@ const HeaderAuthForm = ({
201206
<Input
202207
w={1 / 3}
203208
h={8}
204-
bg="myGray.50"
209+
bg={bg}
205210
placeholder="key"
206211
maxLength={64}
207212
value={item.key}
@@ -230,6 +235,7 @@ const HeaderAuthForm = ({
230235
}}
231236
index={index}
232237
onEdit={setEditingIndex}
238+
bg={bg}
233239
/>
234240
</Box>
235241
{customHeaders.length > 1 && (

projects/app/src/pageComponents/account/AccountContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ const AccountContainer = ({
111111
]
112112
: []),
113113
{
114-
icon: 'common/settingLight',
115-
label: t('common:Setting'),
114+
icon: 'support/usage/usageRecordLight',
115+
label: t('account:language'),
116116
value: TabEnum.setting
117117
},
118118
{

0 commit comments

Comments
 (0)