style: 调整前端样式
- 修复 DataBaseView.vue 中的标签闭合问题 - 在 mineru 解析器中添加空行提高可读性 - 更新 roadmap.md 文档内容 - 优化 AiTextarea.vue 组件样式和图标
This commit is contained in:
parent
6ea920e7e2
commit
b3d15c5f57
@ -16,6 +16,8 @@
|
||||
- 部分异常状态下,智能体的模型名称出现重叠[#279](https://github.com/xerrors/Yuxi-Know/issues/279)
|
||||
- DeepSeek 官方接口适配会出现问题
|
||||
- 目前的知识库的图片存在公开访问风险
|
||||
- 工具传递给模型的时候,使用英文,显示的时候,使用中文(尽量保持一致)
|
||||
- 首页加载的问题
|
||||
|
||||
### 新增
|
||||
- 新增对于上传附件的智能体中间件,详见[文档](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)
|
||||
|
||||
@ -155,6 +155,7 @@ class MinerUOfficialParser(BaseDocumentProcessor):
|
||||
return text
|
||||
|
||||
import asyncio
|
||||
|
||||
from src.knowledge.indexing import _process_zip_file
|
||||
|
||||
try:
|
||||
|
||||
@ -190,6 +190,7 @@ class MinerUParser(BaseDocumentProcessor):
|
||||
|
||||
try:
|
||||
import asyncio
|
||||
|
||||
processed = asyncio.run(_process_zip_file(tmp_zip.name, params.get("db_id")))
|
||||
text = processed["markdown_content"]
|
||||
finally:
|
||||
|
||||
@ -16,11 +16,9 @@
|
||||
@click="generateDescription"
|
||||
>
|
||||
<template #icon>
|
||||
<svg v-if="!loading" viewBox="0 0 24 24" width="16" height="16" fill="currentColor">
|
||||
<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"/>
|
||||
</svg>
|
||||
<Sparkles size="14" />
|
||||
</template>
|
||||
<span v-if="!loading" class="ai-text">AI</span>
|
||||
<span v-if="!loading" class="ai-text">润色</span>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</div>
|
||||
@ -30,6 +28,7 @@
|
||||
import { ref } from 'vue'
|
||||
import { message } from 'ant-design-vue'
|
||||
import { databaseApi } from '@/apis/knowledge_api'
|
||||
import { Sparkles } from 'lucide-vue-next'
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
@ -88,6 +87,7 @@ const generateDescription = async () => {
|
||||
|
||||
.ai-btn {
|
||||
position: absolute;
|
||||
opacity: 0.9;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
z-index: 1;
|
||||
@ -112,9 +112,5 @@ const generateDescription = async () => {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.ant-input) {
|
||||
padding-right: 50px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -225,8 +225,7 @@
|
||||
>
|
||||
{{ getKbTypeLabel(database.kb_type || 'lightrag') }}
|
||||
</a-tag>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- <button @click="deleteDatabase(database.collection_name)">删除</button> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user