Skip to content

Commit c5880b8

Browse files
fix: optimize
1 parent 20865d5 commit c5880b8

File tree

5 files changed

+17
-22
lines changed

5 files changed

+17
-22
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
346346
} else if (response.status === 460) {
347347
return Promise.reject(t('chat.tip.errorIdentifyMessage'))
348348
} else if (response.status === 461) {
349-
return Promise.reject('chat.tip.errorLimitMessage')
349+
return Promise.reject(t('chat.tip.errorLimitMessage'))
350350
} else {
351351
nextTick(() => {
352352
// 将滚动条滚动到最下面

ui/src/locales/lang/en-US/views/application-overview.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export default {
4545
LimitDialog: {
4646
dialogTitle: 'Access Restrictions',
4747
showSourceLabel: 'Show Return Knowledge Reference',
48-
clientQueryLimitLabel: 'Each Client Query Limit',
48+
clientQueryLimitLabel: 'Limit the number of messages for each client',
4949
authentication: 'Authentication',
5050
authenticationValue: 'Authentication Password',
51-
timesDays: 'Times/Day',
51+
timesDays: 'messages per day',
5252
whitelistLabel: 'Whitelist',
5353
whitelistPlaceholder:
5454
'Please enter allowed third-party source addresses, one per line, such as:\nhttp://127.0.0.1:5678\nhttps://dataease.io'
@@ -67,10 +67,10 @@ export default {
6767
customThemeColor: 'Custom Theme Color',
6868
headerTitleFontColor: 'Header Title Font Color',
6969
default: 'Default',
70-
askUserAvatar: 'Ask User Avatar',
70+
askUserAvatar: 'Questioner\'s Avatar',
7171
replace: 'Replace',
7272
imageMessage: 'Suggested size 32*32, supports jpg, png, gif, size no more than 10 MB',
73-
AIAvatar: 'AI Reply Avatar',
73+
AIAvatar: 'AI Avatar',
7474
floatIcon: 'Floating Icon',
7575
iconDefaultPosition: 'Icon Default Position',
7676
iconPosition: {
@@ -80,7 +80,7 @@ export default {
8080
top: 'Top'
8181
},
8282
draggablePosition: 'Draggable Position',
83-
showHistory: 'Show History',
83+
showHistory: 'Show Chat History',
8484
displayGuide: 'Display guide image (floating window mode)',
8585
disclaimer: 'Disclaimer',
8686
disclaimerValue:
@@ -102,9 +102,9 @@ export default {
102102
charts: {
103103
customerTotal: 'Total Customers',
104104
customerNew: 'New Customers',
105-
queryCount: 'Query Count',
105+
queryCount: 'Total Chats',
106106
tokensTotal: 'Total Tokens',
107-
userSatisfaction: 'User Satisfaction',
107+
userSatisfaction: 'User Satisfaction Rate',
108108
approval: 'Approval',
109109
disapproval: 'Disapproval'
110110
}

ui/src/locales/lang/en-US/views/log.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ export default {
66
confirmMessage2: 'segments. Please proceed with caution.'
77
},
88
buttons: {
9-
clearStrategy: 'Clear Strategy',
9+
clearStrategy: 'Cleanup Strategy',
1010
prev: 'Previous',
1111
next: 'Next'
1212
},
1313
table: {
14-
abstract: 'Abstract',
15-
chat_record_count: 'Number of Chat Questions',
14+
abstract: 'Title',
15+
chat_record_count: 'Total Messages',
1616
feedback: {
1717
label: 'User Feedback',
1818
star: 'Agree',
1919
trample: 'Disagree'
2020
},
21-
mark: 'Improvement Label',
22-
recenTimes: 'Recent Chat Time'
21+
mark: 'Marks',
22+
recenTimes: 'Last Chat Time'
2323
},
2424
addToDataset: 'Add to Knowledge',
2525
daysText: 'Days ago',

ui/src/locales/lang/en-US/views/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default {
4141
editParam: 'Edit Parameter',
4242
addParam: 'Add Parameter',
4343
paramSetting: 'Model Parameter Settings',
44-
apiParamPassing: 'API Parameter Passing'
44+
apiParamPassing: 'Parameter'
4545
},
4646
form: {
4747
templateName: {

ui/src/views/chat/embed/index.vue

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}"
99
>
1010
<div class="chat-embed__header" :style="customStyle">
11-
<div class="chat-width flex align-center">
11+
<div class="flex align-center">
1212
<div class="mr-12 ml-24 flex">
1313
<AppAvatar
1414
v-if="isAppIcon(applicationDetail?.icon)"
@@ -45,10 +45,9 @@
4545
class="AiChat-embed"
4646
>
4747
<template #operateBefore>
48-
<div class="chat-width">
48+
<div>
4949
<el-button type="primary" link class="new-chat-button mb-8" @click="newChat">
50-
<el-icon><Plus /></el-icon
51-
><span class="ml-4">{{ $t('chat.createChat') }}</span>
50+
<el-icon><Plus /></el-icon><span class="ml-4">{{ $t('chat.createChat') }}</span>
5251
</el-button>
5352
</div>
5453
</template>
@@ -339,10 +338,6 @@ onMounted(() => {
339338
padding-top: 12px;
340339
}
341340
}
342-
.chat-width {
343-
max-width: var(--app-chat-width, 860px);
344-
margin: 0 auto;
345-
}
346341
}
347342
</style>
348343
<style lang="scss" scoped>

0 commit comments

Comments
 (0)