Skip to content

Commit b3d15c5

Browse files
committed
style: 调整前端样式
- 修复 DataBaseView.vue 中的标签闭合问题 - 在 mineru 解析器中添加空行提高可读性 - 更新 roadmap.md 文档内容 - 优化 AiTextarea.vue 组件样式和图标
1 parent 6ea920e commit b3d15c5

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

docs/latest/changelog/roadmap.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
- 部分异常状态下,智能体的模型名称出现重叠[#279](https://github.com/xerrors/Yuxi-Know/issues/279)
1717
- DeepSeek 官方接口适配会出现问题
1818
- 目前的知识库的图片存在公开访问风险
19+
- 工具传递给模型的时候,使用英文,显示的时候,使用中文(尽量保持一致)
20+
- 首页加载的问题
1921

2022
### 新增
2123
- 新增对于上传附件的智能体中间件,详见[文档](https://xerrors.github.io/Yuxi-Know/latest/advanced/agents-config.html#%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E4%B8%AD%E9%97%B4%E4%BB%B6)

src/plugins/mineru_official_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def process_file(self, file_path: str, params: dict[str, Any] | None = None) ->
155155
return text
156156

157157
import asyncio
158+
158159
from src.knowledge.indexing import _process_zip_file
159160

160161
try:

src/plugins/mineru_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def process_file(self, file_path: str, params: dict | None = None) -> str:
190190

191191
try:
192192
import asyncio
193+
193194
processed = asyncio.run(_process_zip_file(tmp_zip.name, params.get("db_id")))
194195
text = processed["markdown_content"]
195196
finally:

web/src/components/AiTextarea.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
@click="generateDescription"
1717
>
1818
<template #icon>
19-
<svg v-if="!loading" viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
20-
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>
21-
</svg>
19+
<Sparkles size="14" />
2220
</template>
23-
<span v-if="!loading" class="ai-text">AI</span>
21+
<span v-if="!loading" class="ai-text">润色</span>
2422
</a-button>
2523
</a-tooltip>
2624
</div>
@@ -30,6 +28,7 @@
3028
import { ref } from 'vue'
3129
import { message } from 'ant-design-vue'
3230
import { databaseApi } from '@/apis/knowledge_api'
31+
import { Sparkles } from 'lucide-vue-next'
3332
3433
const props = defineProps({
3534
modelValue: {
@@ -88,6 +87,7 @@ const generateDescription = async () => {
8887
8988
.ai-btn {
9089
position: absolute;
90+
opacity: 0.9;
9191
top: 4px;
9292
right: 4px;
9393
z-index: 1;
@@ -112,9 +112,5 @@ const generateDescription = async () => {
112112
font-weight: 500;
113113
}
114114
}
115-
116-
:deep(.ant-input) {
117-
padding-right: 50px;
118-
}
119115
}
120116
</style>

web/src/views/DataBaseView.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@
225225
>
226226
{{ getKbTypeLabel(database.kb_type || 'lightrag') }}
227227
</a-tag>
228-
</div>
229-
228+
</div>
230229
<!-- <button @click="deleteDatabase(database.collection_name)">删除</button> -->
231230
</div>
232231
</div>

0 commit comments

Comments
 (0)