Skip to content

Commit 201e6f5

Browse files
feat: applicaiton setting
1 parent bf630b9 commit 201e6f5

File tree

27 files changed

+135
-140
lines changed

27 files changed

+135
-140
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
>{{ item?.message_tokens + item?.answer_tokens }} tokens</span
3939
>
4040
<span class="mr-16 color-secondary">{{ item?.run_time?.toFixed(2) || 0.0 }} s</span>
41-
<el-icon class="success" :size="16" v-if="item.status === 200">
41+
<el-icon class="color-success" :size="16" v-if="item.status === 200">
4242
<CircleCheck />
4343
</el-icon>
44-
<el-icon class="danger" :size="16" v-else>
44+
<el-icon class="color-danger" :size="16" v-else>
4545
<CircleClose />
4646
</el-icon>
4747
</div>

ui/src/components/model-select/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
class="model-icon mr-8"
4343
></span>
4444
<span>{{ item.name }}</span>
45-
<span class="danger">{{ $t('common.unavailable') }}</span>
45+
<span class="color-danger">{{ $t('common.unavailable') }}</span>
4646
</div>
4747
<el-icon class="check-icon" v-if="item.id === modelValue">
4848
<Check />

ui/src/layout/layout-header/avatar/APIKeyDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function deleteApiKey(row: any) {
113113
{
114114
confirmButtonText: t('common.confirm'),
115115
cancelButtonText: t('common.cancel'),
116-
confirmButtonClass: 'danger'
116+
confirmButtonClass: 'color-danger'
117117
}
118118
)
119119
.then(() => {

ui/src/layout/layout-header/avatar/AboutDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<span class="label">{{ $t('layout.about.expiredTime') }}</span>
1919
<span
2020
>{{ licenseInfo?.expired || '-' }}
21-
<span class="danger" v-if="licenseInfo?.expired && fromNowDate(licenseInfo?.expired)"
21+
<span class="color-danger" v-if="licenseInfo?.expired && fromNowDate(licenseInfo?.expired)"
2222
>({{ fromNowDate(licenseInfo?.expired) }})</span
2323
></span
2424
>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export default {
128128
addModel: 'Add Model',
129129
},
130130
dialog: {
131-
addDataset: 'Add Related Knowledge',
132-
addDatasetPlaceholder: 'The selected knowledge must use the same embedding model',
131+
addKnowledge: 'Add Related Knowledge',
132+
addKnowledgePlaceholder: 'The selected knowledge must use the same embedding model',
133133
selected: 'Selected',
134134
countDataset: 'Knowledge',
135135

ui/src/locales/lang/zh-CN/views/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ export default {
119119
},
120120

121121
dialog: {
122-
addDataset: '添加关联知识库',
123-
addDatasetPlaceholder: '所选知识库必须使用相同的 Embedding 模型',
122+
addKnowledge: '添加关联知识库',
123+
addKnowledgePlaceholder: '所选知识库必须使用相同的 Embedding 模型',
124124
selected: '已选',
125125
countDataset: '个知识库',
126126

ui/src/locales/lang/zh-Hant/views/application.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ export default {
119119
},
120120

121121
dialog: {
122-
addDataset: '新增關聯知識庫',
123-
addDatasetPlaceholder: '所選知識庫必須使用相同的 Embedding 模型',
122+
addKnowledge: '新增關聯知識庫',
123+
addKnowledgePlaceholder: '所選知識庫必須使用相同的 Embedding 模型',
124124
selected: '已選',
125125
countDataset: '個知識庫',
126126

ui/src/styles/app.scss

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,18 +373,30 @@ h5 {
373373
}
374374

375375
// 颜色
376+
376377
.color-primary {
377378
color: var(--el-color-primary);
378379
}
380+
381+
.color-danger {
382+
color: var(--el-color-danger);
383+
}
384+
.color-warning {
385+
color: var(--el-color-warning);
386+
}
387+
.color-success {
388+
color: var(--el-color-success);
389+
}
390+
.color-info {
391+
color: var(--el-color-info);
392+
}
379393
.color-text-primary {
380394
color: var(--el-text-color-primary);
381395
}
382396
.color-secondary {
383397
color: var(--app-text-color-secondary);
384398
}
385-
.color-success {
386-
color: var(--el-color-success);
387-
}
399+
388400
.color-input-placeholder {
389401
color: var(--app-input-color-placeholder);
390402
}

ui/src/styles/element-plus.scss

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,32 @@
211211
font-size: 20px;
212212
}
213213
}
214+
215+
// el-form
216+
217+
.el-form {
218+
--el-form-inline-content-width: 100%;
219+
}
220+
221+
.el-form-item {
222+
margin-bottom: 16px;
223+
.el-form-item {
224+
margin-bottom: 16px;
225+
&:last-child {
226+
margin-bottom: 0px;
227+
}
228+
}
229+
}
230+
.el-form-item__label {
231+
font-weight: 400;
232+
width: 100%;
233+
}
234+
235+
.el-form-item__error {
236+
position: unset;
237+
font-size: 14px;
238+
}
239+
240+
.el-form--label-top .el-form-item .el-form-item__label {
241+
padding-right: 0;
242+
}

ui/src/views/application-overview/component/APIKeyDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function deleteApiKey(row: any) {
9696
{
9797
confirmButtonText: t('common.confirm'),
9898
cancelButtonText: t('common.cancel'),
99-
confirmButtonClass: 'danger'
99+
confirmButtonClass: 'color-danger'
100100
}
101101
)
102102
.then(() => {

0 commit comments

Comments
 (0)