知识库历史文件
This commit is contained in:
@@ -68,21 +68,22 @@
|
||||
import { ref, computed, watch } from 'vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
import {
|
||||
ChatDotRound,
|
||||
Grid,
|
||||
Connection,
|
||||
Document,
|
||||
Service,
|
||||
DArrowLeft,
|
||||
DArrowRight,
|
||||
MessageCircle as ChatDotRound,
|
||||
LayoutGrid as Grid,
|
||||
Link as Connection,
|
||||
FileText as Document,
|
||||
Headphones as Service,
|
||||
ChevronsLeft as DArrowLeft,
|
||||
ChevronsRight as DArrowRight,
|
||||
User,
|
||||
Setting,
|
||||
SwitchButton,
|
||||
Refresh,
|
||||
Back
|
||||
} from '@element-plus/icons-vue'
|
||||
Settings as Setting,
|
||||
Power as SwitchButton,
|
||||
RefreshCw as Refresh,
|
||||
ArrowLeft as Back,
|
||||
PanelLeftClose,
|
||||
PanelLeftOpen
|
||||
} from 'lucide-vue-next'
|
||||
import { IframeView } from 'shared/components'
|
||||
import { PanelLeftClose, PanelLeftOpen } from 'lucide-vue-next'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import type { MenuItem } from 'shared/types'
|
||||
|
||||
|
||||
@@ -6,15 +6,21 @@
|
||||
// ========== 组件模块 ==========
|
||||
declare module 'shared/components' {
|
||||
export const FileUpload: any
|
||||
export const FileHistory: any
|
||||
export const DynamicFormItem: any
|
||||
export const IframeView: any
|
||||
}
|
||||
|
||||
declare module 'shared/components/FileUpload' {
|
||||
declare module 'shared/components/file/FileUpload' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const FileUpload: DefineComponent<{}, {}, any>
|
||||
export default FileUpload
|
||||
}
|
||||
declare module 'shared/components/file/FileHistory' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const FileHistory: DefineComponent<{}, {}, any>
|
||||
export default FileHistory
|
||||
}
|
||||
|
||||
declare module 'shared/components/DynamicFormItem' {
|
||||
import { DefineComponent } from 'vue'
|
||||
@@ -28,6 +34,17 @@ declare module 'shared/components/iframe/IframeView.vue' {
|
||||
export default IframeView
|
||||
}
|
||||
|
||||
declare module 'shared/components/ai/knowledge/DocumentSegment.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const DocumentSegment: DefineComponent<{}, {}, any>
|
||||
export default DocumentSegment
|
||||
}
|
||||
|
||||
declare module 'shared/components/ai/knowledge/DocumentDetail.vue' {
|
||||
import { DefineComponent } from 'vue'
|
||||
const DocumentDetail: DefineComponent<{}, {}, any>
|
||||
export default DocumentDetail
|
||||
}
|
||||
// ========== API 模块 ==========
|
||||
declare module 'shared/api' {
|
||||
export const api: any
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { Search, Plus } from '@element-plus/icons-vue'
|
||||
import { Search, Plus } from 'lucide-vue-next'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import AgentCard from './components/AgentCard/AgentCard.vue'
|
||||
import AgentEdit from './components/AgentEdit/AgentEdit.vue'
|
||||
|
||||
@@ -115,9 +115,9 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, computed, watch } from 'vue'
|
||||
import { Plus, Delete } from '@element-plus/icons-vue'
|
||||
import { Plus, Trash2 as Delete } from 'lucide-vue-next'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import FileUpload from 'shared/components/FileUpload'
|
||||
import FileUpload from 'shared/components/file/FileUpload'
|
||||
|
||||
interface SuggestionCard {
|
||||
text: string
|
||||
|
||||
@@ -167,20 +167,20 @@
|
||||
import { ref, computed, nextTick, onMounted } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import {
|
||||
ArrowDown,
|
||||
ChevronDown as ArrowDown,
|
||||
Paperclip,
|
||||
Star,
|
||||
Picture,
|
||||
MoreFilled,
|
||||
CameraFilled,
|
||||
Microphone,
|
||||
Promotion,
|
||||
Image as Picture,
|
||||
MoreHorizontal as MoreFilled,
|
||||
Camera as CameraFilled,
|
||||
Mic as Microphone,
|
||||
Send as Promotion,
|
||||
Plus,
|
||||
Fold,
|
||||
Expand,
|
||||
ChatDotRound,
|
||||
Delete
|
||||
} from '@element-plus/icons-vue'
|
||||
PanelLeftClose as Fold,
|
||||
PanelLeftOpen as Expand,
|
||||
MessageCircle as ChatDotRound,
|
||||
Trash2 as Delete
|
||||
} from 'lucide-vue-next'
|
||||
import ChatDefault from './components/ChatDefault/ChatDefault.vue'
|
||||
|
||||
const route = useRoute()
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue'
|
||||
import { OfficeBuilding, Warning, Cloudy } from '@element-plus/icons-vue'
|
||||
import { Building2 as OfficeBuilding, AlertTriangle as Warning, Cloud as Cloudy } from 'lucide-vue-next'
|
||||
|
||||
interface Agent {
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user