Skip to content

Commit 117863e

Browse files
committed
Merge branch 'main' of github.com:1Panel-dev/MaxKB
2 parents d0e7248 + 15ccc3d commit 117863e

File tree

11 files changed

+16
-32
lines changed

11 files changed

+16
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,3 +180,4 @@ apps/static
180180
models/
181181
data
182182
.dev
183+
poetry.lock

apps/common/field/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FunctionField(serializers.Field):
2727

2828
def to_internal_value(self, data):
2929
if not callable(data):
30-
self.fail('不是一個函數', value=data)
30+
self.fail('不是一个函數', value=data)
3131
return data
3232

3333
def to_representation(self, value):

installer/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ EMAIL_HOST: ${EMAIL_HOST}
66
EMAIL_PORT: ${EMAIL_PORT}
77
EMAIL_HOST_USER: ${EMAIL_HOST_USER}
88
EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD}
9-
#
10-
# # 数据库链接信息
9+
10+
# 数据库链接信息
1111
DB_NAME: maxkb
1212
DB_HOST: 127.0.0.1
1313
DB_PORT: 5432

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
def collect_static():
1919
"""
2020
收集静态文件到指定目录
21-
本项目主要是将前端vue/dist的前段项目放到静态目录下面
21+
本项目主要是将前端vue/dist的前端项目放到静态目录下面
2222
:return:
2323
"""
2424
logging.info("Collect static files")

ui/src/layout/components/top-bar/avatar/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import { ref } from 'vue'
3636
import useStore from '@/stores'
3737
import { useRouter } from 'vue-router'
38-
import ResetPassword from './ResetPasssword.vue'
38+
import ResetPassword from './ResetPassword.vue'
3939
import AboutDialog from './AboutDialog.vue'
4040
const { user } = useStore()
4141
const router = useRouter()

ui/src/styles/app.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ h4 {
332332

333333
/* tag */
334334
.default-tag {
335-
background: var(--tag-deflaut-bg);
336-
color: var(--tag-deflaut-color);
335+
background: var(--tag-default-bg);
336+
color: var(--tag-default-color);
337337
border: none;
338338
}
339339
.success-tag {

ui/src/styles/variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
--sidebar-bg-color: #ffffff;
2525
--sidebar-width: 240px;
2626
/** tag */
27-
--tag-deflaut-bg: rgba(51, 112, 255, 0.2);
28-
--tag-deflaut-color: #2b5fd9;
27+
--tag-default-bg: rgba(51, 112, 255, 0.2);
28+
--tag-default-color: #2b5fd9;
2929
--tag-success-bg: rgba(52, 199, 36, 0.2);
3030
--tag-success-color: #2ca91f;
3131
--tag-warning-bg: rgba(255, 136, 0, 0.2);

ui/src/utils/message.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,26 @@ export const MsgError = (message: string) => {
4040

4141
/**
4242
* 删除知识库
43-
* @param 参数 message: {title, decription,type}
43+
* @param 参数 message: {title, description,type}
4444
*/
4545

46-
export const MsgConfirm = (title: string, decription: string, options?: any) => {
46+
export const MsgConfirm = (title: string, description: string, options?: any) => {
4747
const defaultOptions: Object = {
4848
showCancelButton: true,
4949
confirmButtonText: '确定',
5050
cancelButtonText: '取消',
5151
...options
5252
}
53-
return ElMessageBox.confirm(decription, title, defaultOptions)
53+
return ElMessageBox.confirm(description, title, defaultOptions)
5454
}
5555

56-
// export const MsgConfirm = ({ title, decription }: any, options?: any) => {
56+
// export const MsgConfirm = ({ title, description }: any, options?: any) => {
5757
// const message: any = h('div', { class: 'app-confirm' }, [
5858
// h('h4', { class: 'app-confirm-title flex align-center' }, [
5959
// h(ElIcon, { class: 'icon' }, [h(WarningFilled)]),
6060
// h('span', { class: 'ml-16' }, title)
6161
// ]),
62-
// h('div', { class: 'app-confirm-decription mt-8' }, decription)
62+
// h('div', { class: 'app-confirm-description mt-8' }, description)
6363
// ])
6464

6565
// const defaultOptions: Object = {

ui/src/views/dataset/CreateDataset.vue

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
<template #backButton>
44
<back-button @click="back"></back-button>
55
</template>
6-
<!-- <template #header>
7-
<el-steps :active="active" finish-status="success" align-center class="create-dataset__steps">
8-
<el-step v-for="(item, index) in steps" :key="index">
9-
<template #icon>
10-
<div class="app-step flex align-center">
11-
<div class="el-step__icon is-text">
12-
<div class="el-step__icon-inner">
13-
<el-icon v-if="active == index + 1" style="margin-top: 1px"><Select /></el-icon>
14-
<span v-else> {{ index + 1 }}</span>
15-
</div>
16-
</div>
17-
<span class="ml-4">{{ item.name }}</span>
18-
</div>
19-
</template>
20-
</el-step>
21-
</el-steps>
22-
</template> -->
236
<div class="create-dataset__main flex" v-loading="loading">
247
<div class="create-dataset__component main-calc-height">
258
<template v-if="active === 0">

0 commit comments

Comments
 (0)