diff --git a/packages/web-chat-x-vue/src/auto-imports.d.ts b/packages/web-chat-x-vue/src/auto-imports.d.ts index d298c3c..45986f3 100644 --- a/packages/web-chat-x-vue/src/auto-imports.d.ts +++ b/packages/web-chat-x-vue/src/auto-imports.d.ts @@ -6,6 +6,10 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] + const ElButton: typeof import('element-plus/es')['ElButton'] + const ElMessage: typeof import('element-plus/es')['ElMessage'] + const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'] + const ElNotification: typeof import('element-plus/es')['ElNotification'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] const customRef: typeof import('vue')['customRef'] diff --git a/packages/web-chat-x-vue/src/classes/Libp2pManager.ts b/packages/web-chat-x-vue/src/classes/Libp2pManager.ts index f48882f..21c1eae 100644 --- a/packages/web-chat-x-vue/src/classes/Libp2pManager.ts +++ b/packages/web-chat-x-vue/src/classes/Libp2pManager.ts @@ -23,12 +23,6 @@ import ChatChannel from "./ChatChannel"; import { base64ToFile, fileToBase64, getPeerIdFromUserId } from "@/utils"; import { bootstrap } from "@libp2p/bootstrap"; import { Peer } from "@libp2p/interface"; -import { - ElButton, - ElMessage, - ElMessageBox, - ElNotification, -} from "element-plus"; const topics = [ `webChatX._peer-discovery._p2p._pubsub`, // It's recommended but not required to extend the global space ]; diff --git a/packages/web-chat-x-vue/src/classes/PeerManager.ts b/packages/web-chat-x-vue/src/classes/PeerManager.ts index 6250808..68a256c 100644 --- a/packages/web-chat-x-vue/src/classes/PeerManager.ts +++ b/packages/web-chat-x-vue/src/classes/PeerManager.ts @@ -1,4 +1,3 @@ -import { ElMessage } from "element-plus"; import Peer, { DataConnection, MediaConnection } from "peerjs"; type PeerManagerOption = { nearPeerId: string; diff --git a/packages/web-chat-x-vue/src/components/SetUserInfoComponent.vue b/packages/web-chat-x-vue/src/components/SetUserInfoComponent.vue index 2b6bfb5..bec973f 100644 --- a/packages/web-chat-x-vue/src/components/SetUserInfoComponent.vue +++ b/packages/web-chat-x-vue/src/components/SetUserInfoComponent.vue @@ -68,15 +68,10 @@