From 0a0bfab0d68d7b9b3d5555502a186ccfdafc292b Mon Sep 17 00:00:00 2001 From: Germey Date: Mon, 11 Dec 2023 01:39:36 +0800 Subject: [PATCH] fix --- src/components/chat/Sidebar.vue | 5 +- src/components/common/ApiStatus.vue | 4 +- src/components/conversation/AnsweringMark.vue | 40 -- .../ConversationNavigatorItem.vue | 117 ----- src/components/conversation/Introduction.vue | 110 ---- .../conversation/IntroductionItem.vue | 32 -- src/components/conversation/Message.vue | 125 ----- .../conversation/MessageContent.vue | 107 ---- src/components/conversation/NewMessageBox.vue | 176 ------- src/components/conversation/Sidebar.vue | 0 .../conversation/VoiceRecognition.vue | 81 --- src/i18n/zh/auth/message.ts | 5 - src/i18n/zh/auth/title.ts | 3 - src/i18n/zh/{auth => chat}/index.ts | 7 +- src/i18n/zh/chat/message.ts | 28 ++ src/i18n/zh/chat/title.ts | 6 + src/i18n/zh/common/button.ts | 2 +- src/i18n/zh/common/message.ts | 4 +- src/i18n/zh/index.ts | 6 +- src/operators/api/chatgpt/models.ts | 10 - src/operators/api/chatgpt/operator.ts | 28 -- src/operators/chat/models.ts | 1 + src/operators/chat/operator.ts | 5 - src/operators/conversation/models.ts | 7 - src/operators/index.ts | 1 - src/operators/message/models.ts | 30 -- src/pages/chat/Conversation.vue | 7 +- src/pages/chat/Index.vue | 8 +- src/pages/conversation/Main.vue | 468 ------------------ src/router/conversation.ts | 18 - 30 files changed, 55 insertions(+), 1386 deletions(-) delete mode 100644 src/components/conversation/AnsweringMark.vue delete mode 100644 src/components/conversation/ConversationNavigatorItem.vue delete mode 100644 src/components/conversation/Introduction.vue delete mode 100644 src/components/conversation/IntroductionItem.vue delete mode 100644 src/components/conversation/Message.vue delete mode 100644 src/components/conversation/MessageContent.vue delete mode 100644 src/components/conversation/NewMessageBox.vue delete mode 100644 src/components/conversation/Sidebar.vue delete mode 100644 src/components/conversation/VoiceRecognition.vue delete mode 100644 src/i18n/zh/auth/message.ts delete mode 100644 src/i18n/zh/auth/title.ts rename src/i18n/zh/{auth => chat}/index.ts (61%) create mode 100644 src/i18n/zh/chat/message.ts create mode 100644 src/i18n/zh/chat/title.ts delete mode 100644 src/operators/api/chatgpt/models.ts delete mode 100644 src/operators/api/chatgpt/operator.ts delete mode 100644 src/operators/conversation/models.ts delete mode 100644 src/operators/message/models.ts delete mode 100644 src/pages/conversation/Main.vue delete mode 100644 src/router/conversation.ts diff --git a/src/components/chat/Sidebar.vue b/src/components/chat/Sidebar.vue index f9f3380..d3026d5 100644 --- a/src/components/chat/Sidebar.vue +++ b/src/components/chat/Sidebar.vue @@ -29,9 +29,8 @@ import { defineComponent } from 'vue'; import { ElTooltip, ElButton, ElSkeleton } from 'element-plus'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; -import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_INDEX } from '@/router/constants'; -import { apiUsageOperator, midjourneyOperator, MidjourneyImagineState, IApplication, chatOperator } from '@/operators'; -import { chatgptOperator } from '@/operators/api/chatgpt/operator'; +import { ROUTE_CHAT_CONVERSATION } from '@/router/constants'; +import { apiUsageOperator, IApplication, chatOperator } from '@/operators'; import { IChatConversation } from '@/operators/chat/models'; interface IData { diff --git a/src/components/common/ApiStatus.vue b/src/components/common/ApiStatus.vue index adba479..8c76c13 100644 --- a/src/components/common/ApiStatus.vue +++ b/src/components/common/ApiStatus.vue @@ -1,8 +1,8 @@ - - diff --git a/src/router/conversation.ts b/src/router/conversation.ts deleted file mode 100644 index 4a856eb..0000000 --- a/src/router/conversation.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { ROUTE_CONVERSATION_DETAIL, ROUTE_CONVERSATION_NEW } from './constants'; - -export default { - path: '/conversations', - component: () => import('@/layouts/Conversation.vue'), - children: [ - { - path: '', - name: ROUTE_CONVERSATION_NEW, - component: () => import('@/pages/conversation/Main.vue') - }, - { - path: ':id', - name: ROUTE_CONVERSATION_DETAIL, - component: () => import('@/pages/conversation/Main.vue') - } - ] -};