From de47fdee79ec91697e6f4812aeed985b72f693d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B1=9F=E8=BE=B0?= Date: Sun, 2 Jul 2023 17:14:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E3=80=81=E8=AF=AD=E9=9F=B3=E3=80=81=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=B6=E5=8F=91=EF=BC=8C=E5=9B=BE=E6=A0=87=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=E5=B0=81=E8=A3=85=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- pnpm-lock.yaml | 199 +++++++++- src/assets/avatars/default.png | Bin 1218 -> 0 bytes src/assets/iconfont/index-color.css | 143 ++++++++ src/assets/iconfont/index.css | 85 +++++ src/assets/icons/icon_bilibili.svg | 1 - src/assets/icons/icon_github.svg | 1 - src/assets/icons/icon_like.svg | 1 - src/assets/icons/icon_liked.svg | 1 - src/assets/icons/icon_reply.svg | 1 - src/assets/icons/icon_tencent_cloud.svg | 1 - src/assets/icons/icon_tiktok.svg | 1 - src/assets/icons/icon_wechat.svg | 1 - src/assets/icons/icon_yuque.png | Bin 5064 -> 0 bytes src/assets/operate-icons/to_top.svg | 1 - src/components.d.ts | 27 +- src/components/AnimateCount.vue | 19 - src/components/Icon/index.vue | 47 +++ src/components/RenderMessage/file.vue | 39 ++ src/components/RenderMessage/image.vue | 57 +++ src/components/RenderMessage/index.vue | 31 ++ src/components/RenderMessage/text.vue | 55 +++ src/components/RenderMessage/video.vue | 18 + src/components/RenderMessage/voice.vue | 64 ++++ src/components/RenderMsg.vue | 41 --- src/components/UserSettingBox/index.vue | 20 +- src/components/VideoPlayer/index.vue | 29 ++ src/components/avatar/index.vue | 51 +++ src/components/avatar/styles.scss | 48 +++ src/components/icons/IconCommunity.vue | 7 - src/components/icons/IconCopy.vue | 12 - src/components/icons/IconDelete.vue | 12 - src/components/icons/IconDocumentation.vue | 7 - src/components/icons/IconEcosystem.vue | 7 - src/components/icons/IconMore.vue | 8 - src/components/icons/IconRecall.vue | 8 - src/components/icons/IconReply.vue | 17 - src/components/icons/IconShield.vue | 12 - src/components/icons/IconSupport.vue | 7 - src/components/icons/IconTooling.vue | 19 - src/components/icons/iconDislike.vue | 9 - src/components/icons/iconLike.vue | 11 - src/enums/index.ts | 68 ++++ src/hooks/useLikeToggle.ts | 26 +- src/hooks/useMockMessage.ts | 57 +++ src/hooks/useRecording.ts | 91 +++++ src/hooks/useUpload.ts | 160 ++++++++ src/main.ts | 32 +- src/services/apis.ts | 3 + src/services/types.ts | 149 ++++---- src/services/urls.ts | 2 + src/stores/chat.ts | 16 +- src/stores/group.ts | 19 +- src/styles/base.css | 36 +- src/styles/main.css | 2 + src/utils/index.ts | 93 +++++ src/utils/websocket.ts | 4 +- .../components/ChatBox/MsgInput/index.vue | 122 ++++--- .../components/ChatBox/MsgInput/styles.scss | 98 ++--- src/views/Home/components/ChatBox/index.vue | 342 +++++++++++++----- src/views/Home/components/ChatBox/styles.scss | 223 +++++++----- .../components/ChatList/ContextMenu/index.vue | 47 ++- .../ChatList/ContextMenu/styles.scss | 9 +- .../components/ChatList/MsgItem/index.vue | 30 +- .../components/ChatList/MsgItem/styles.scss | 292 ++++++++++++--- .../components/ChatList/MsgOption/index.vue | 17 +- .../components/ChatList/MsgOption/styles.scss | 21 +- src/views/Home/components/ChatList/index.vue | 5 +- src/views/Home/components/SideBar/styles.scss | 1 + src/views/Home/components/ToolBar/index.vue | 137 +++---- src/views/Home/components/ToolBar/styles.scss | 182 +++++----- .../components/UserList/UserItem/index.vue | 18 +- .../components/UserList/UserItem/styles.scss | 29 +- 73 files changed, 2461 insertions(+), 993 deletions(-) delete mode 100644 src/assets/avatars/default.png create mode 100644 src/assets/iconfont/index-color.css create mode 100644 src/assets/iconfont/index.css delete mode 100644 src/assets/icons/icon_bilibili.svg delete mode 100644 src/assets/icons/icon_github.svg delete mode 100644 src/assets/icons/icon_like.svg delete mode 100644 src/assets/icons/icon_liked.svg delete mode 100644 src/assets/icons/icon_reply.svg delete mode 100644 src/assets/icons/icon_tencent_cloud.svg delete mode 100644 src/assets/icons/icon_tiktok.svg delete mode 100644 src/assets/icons/icon_wechat.svg delete mode 100755 src/assets/icons/icon_yuque.png delete mode 100644 src/assets/operate-icons/to_top.svg delete mode 100644 src/components/AnimateCount.vue create mode 100644 src/components/Icon/index.vue create mode 100644 src/components/RenderMessage/file.vue create mode 100644 src/components/RenderMessage/image.vue create mode 100644 src/components/RenderMessage/index.vue create mode 100644 src/components/RenderMessage/text.vue create mode 100644 src/components/RenderMessage/video.vue create mode 100644 src/components/RenderMessage/voice.vue delete mode 100644 src/components/RenderMsg.vue create mode 100644 src/components/VideoPlayer/index.vue create mode 100644 src/components/avatar/index.vue create mode 100644 src/components/avatar/styles.scss delete mode 100644 src/components/icons/IconCommunity.vue delete mode 100644 src/components/icons/IconCopy.vue delete mode 100644 src/components/icons/IconDelete.vue delete mode 100644 src/components/icons/IconDocumentation.vue delete mode 100644 src/components/icons/IconEcosystem.vue delete mode 100644 src/components/icons/IconMore.vue delete mode 100644 src/components/icons/IconRecall.vue delete mode 100644 src/components/icons/IconReply.vue delete mode 100644 src/components/icons/IconShield.vue delete mode 100644 src/components/icons/IconSupport.vue delete mode 100644 src/components/icons/IconTooling.vue delete mode 100644 src/components/icons/iconDislike.vue delete mode 100644 src/components/icons/iconLike.vue create mode 100644 src/enums/index.ts create mode 100644 src/hooks/useMockMessage.ts create mode 100644 src/hooks/useRecording.ts create mode 100644 src/hooks/useUpload.ts create mode 100644 src/utils/index.ts diff --git a/package.json b/package.json index 869d6e90..e0c443e3 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,6 @@ "alova": "^2.6.0", "dayjs": "^1.11.8", "element-plus": "^2.3.6", - "gsap": "^3.12.1", "lodash": "^4.17.21", "pinia": "^2.1.3", "pinia-plugin-persistedstate": "^3.1.0", @@ -47,6 +46,7 @@ "@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-typescript": "^11.0.3", "@vue/tsconfig": "^0.1.3", + "@vueuse/core": "^10.2.0", "autoprefixer": "^10.4.14", "eslint": "^8.42.0", "eslint-plugin-vue": "^9.14.1", @@ -71,6 +71,7 @@ "unplugin-vue-components": "^0.24.1", "vite": "4.3.5", "vite-plugin-mkcert": "^1.16.0", - "vue-tsc": "^1.6.5" + "vue-tsc": "^1.6.5", + "xgplayer": "^3.0.5" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 208109ab..690ad67e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,4 +1,4 @@ -lockfileVersion: '6.0' +lockfileVersion: '6.1' settings: autoInstallPeers: true @@ -23,9 +23,6 @@ dependencies: element-plus: specifier: ^2.3.6 version: registry.npmmirror.com/element-plus@2.3.6(vue@3.3.4) - gsap: - specifier: ^3.12.1 - version: registry.npmmirror.com/gsap@3.12.1 lodash: specifier: ^4.17.21 version: registry.npmmirror.com/lodash@4.17.21 @@ -79,6 +76,9 @@ devDependencies: '@vue/tsconfig': specifier: ^0.1.3 version: registry.npmmirror.com/@vue/tsconfig@0.1.3(@types/node@18.16.16) + '@vueuse/core': + specifier: ^10.2.0 + version: registry.npmmirror.com/@vueuse/core@10.2.0(vue@3.3.4) autoprefixer: specifier: ^10.4.14 version: registry.npmmirror.com/autoprefixer@10.4.14(postcss@8.4.24) @@ -138,7 +138,7 @@ devDependencies: version: registry.npmmirror.com/typescript@5.1.3 unplugin-auto-import: specifier: ^0.15.3 - version: registry.npmmirror.com/unplugin-auto-import@0.15.3 + version: registry.npmmirror.com/unplugin-auto-import@0.15.3(@vueuse/core@10.2.0) unplugin-icons: specifier: ^0.15.3 version: registry.npmmirror.com/unplugin-icons@0.15.3 @@ -154,6 +154,9 @@ devDependencies: vue-tsc: specifier: ^1.6.5 version: registry.npmmirror.com/vue-tsc@1.6.5(typescript@5.1.3) + xgplayer: + specifier: ^3.0.5 + version: registry.npmmirror.com/xgplayer@3.0.5(core-js@3.31.0) packages: @@ -1573,6 +1576,12 @@ packages: version: 0.0.16 dev: false + registry.npmmirror.com/@types/web-bluetooth@0.0.17: + resolution: {integrity: sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/web-bluetooth/-/web-bluetooth-0.0.17.tgz} + name: '@types/web-bluetooth' + version: 0.0.17 + dev: true + registry.npmmirror.com/@typescript-eslint/eslint-plugin@5.59.9(@typescript-eslint/parser@5.59.9)(eslint@8.42.0)(typescript@5.1.3): resolution: {integrity: sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz} id: registry.npmmirror.com/@typescript-eslint/eslint-plugin/5.59.9 @@ -1993,6 +2002,21 @@ packages: '@types/node': registry.npmmirror.com/@types/node@18.16.16 dev: true + registry.npmmirror.com/@vueuse/core@10.2.0(vue@3.3.4): + resolution: {integrity: sha512-aHBnoCteIS3hFu7ZZkVB93SanVDY6t4TIb7XDLxJT/HQdAZz+2RdIEJ8rj5LUoEJr7Damb5+sJmtpCwGez5ozQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/core/-/core-10.2.0.tgz} + id: registry.npmmirror.com/@vueuse/core/10.2.0 + name: '@vueuse/core' + version: 10.2.0 + dependencies: + '@types/web-bluetooth': registry.npmmirror.com/@types/web-bluetooth@0.0.17 + '@vueuse/metadata': registry.npmmirror.com/@vueuse/metadata@10.2.0 + '@vueuse/shared': registry.npmmirror.com/@vueuse/shared@10.2.0(vue@3.3.4) + vue-demi: registry.npmmirror.com/vue-demi@0.14.5(vue@3.3.4) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + registry.npmmirror.com/@vueuse/core@9.13.0(vue@3.3.4): resolution: {integrity: sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/core/-/core-9.13.0.tgz} id: registry.npmmirror.com/@vueuse/core/9.13.0 @@ -2008,12 +2032,30 @@ packages: - vue dev: false + registry.npmmirror.com/@vueuse/metadata@10.2.0: + resolution: {integrity: sha512-IR7Mkq6QSgZ38q/2ZzOt+Zz1OpcEsnwE64WBumDQ+RGKrosFCtUA2zgRrOqDEzPBXrVB+4HhFkwDjQMu0fDBKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/metadata/-/metadata-10.2.0.tgz} + name: '@vueuse/metadata' + version: 10.2.0 + dev: true + registry.npmmirror.com/@vueuse/metadata@9.13.0: resolution: {integrity: sha512-gdU7TKNAUVlXXLbaF+ZCfte8BjRJQWPCa2J55+7/h+yDtzw3vOoGQDRXzI6pyKyo6bXFT5/QoPE4hAknExjRLQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/metadata/-/metadata-9.13.0.tgz} name: '@vueuse/metadata' version: 9.13.0 dev: false + registry.npmmirror.com/@vueuse/shared@10.2.0(vue@3.3.4): + resolution: {integrity: sha512-dIeA8+g9Av3H5iF4NXR/sft4V6vys76CpZ6hxwj8eMXybXk2WRl3scSsOVi+kQ9SX38COR7AH7WwY83UcuxbSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/shared/-/shared-10.2.0.tgz} + id: registry.npmmirror.com/@vueuse/shared/10.2.0 + name: '@vueuse/shared' + version: 10.2.0 + dependencies: + vue-demi: registry.npmmirror.com/vue-demi@0.14.5(vue@3.3.4) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + dev: true + registry.npmmirror.com/@vueuse/shared@9.13.0(vue@3.3.4): resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vueuse/shared/-/shared-9.13.0.tgz} id: registry.npmmirror.com/@vueuse/shared/9.13.0 @@ -2600,6 +2642,13 @@ packages: version: 1.9.0 dev: true + registry.npmmirror.com/core-js@3.31.0: + resolution: {integrity: sha512-NIp2TQSGfR6ba5aalZD+ZQ1fSxGhDo/s1w0nx3RYzf2pnJxt7YynxFlFScP6eV7+GZsKO95NSjGxyJsU3DZgeQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/core-js/-/core-js-3.31.0.tgz} + name: core-js + version: 3.31.0 + requiresBuild: true + dev: true + registry.npmmirror.com/cosmiconfig-typescript-loader@4.3.0(@types/node@18.16.16)(cosmiconfig@8.2.0)(ts-node@10.9.1)(typescript@4.8.4): resolution: {integrity: sha512-NTxV1MFfZDLPiBMjxbHRwSh5LaLcPMwNdCutmnHJCKoVnlvldPWlllonKwrsRJ5pYZBIBGRWWU2tfvzxgeSW5Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-4.3.0.tgz} id: registry.npmmirror.com/cosmiconfig-typescript-loader/4.3.0 @@ -2690,6 +2739,23 @@ packages: name: csstype version: 3.1.2 + registry.npmmirror.com/d@1.0.1: + resolution: {integrity: sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/d/-/d-1.0.1.tgz} + name: d + version: 1.0.1 + dependencies: + es5-ext: registry.npmmirror.com/es5-ext@0.10.62 + type: registry.npmmirror.com/type@1.2.0 + dev: true + + registry.npmmirror.com/danmu.js@1.1.8: + resolution: {integrity: sha512-GIFSHqJ+HFTGLLaL2BHMPBaOuPY1bWPwC0Pvi/V06uMIoxNTyEGxMuoO2SzNHsDvKC/r252zR9T/Gwx93AaKfw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/danmu.js/-/danmu.js-1.1.8.tgz} + name: danmu.js + version: 1.1.8 + dependencies: + event-emitter: registry.npmmirror.com/event-emitter@0.3.5 + dev: true + registry.npmmirror.com/dargs@7.0.0: resolution: {integrity: sha512-2iy1EkLdlBzQGvbweYRFxmFath8+K7+AKB0TlhHWkNuH+TmovaMH/Wp7V7R4u7f4SnX3OgLsU9t1NI9ioDnUpg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dargs/-/dargs-7.0.0.tgz} name: dargs @@ -2763,6 +2829,12 @@ packages: engines: {node: '>=0.4.0'} dev: true + registry.npmmirror.com/delegate@3.2.0: + resolution: {integrity: sha512-IofjkYBZaZivn0V8nnsMJGBr4jVLxHDheKSW88PyxS5QC4Vo9ZbZVvhzlSxY87fVq3STR6r+4cGepyHkcWOQSw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/delegate/-/delegate-3.2.0.tgz} + name: delegate + version: 3.2.0 + dev: true + registry.npmmirror.com/deprecation@2.3.1: resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/deprecation/-/deprecation-2.3.1.tgz} name: deprecation @@ -2838,6 +2910,12 @@ packages: is-obj: registry.npmmirror.com/is-obj@2.0.0 dev: true + registry.npmmirror.com/downloadjs@1.4.7: + resolution: {integrity: sha512-LN1gO7+u9xjU5oEScGFKvXhYf7Y/empUIIEAGBs1LzUq/rg5duiDrkuH5A2lQGd5jfMOb9X9usDa2oVXwJ0U/Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/downloadjs/-/downloadjs-1.4.7.tgz} + name: downloadjs + version: 1.4.7 + dev: true + registry.npmmirror.com/duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/duplexer/-/duplexer-0.1.2.tgz} name: duplexer @@ -2975,6 +3053,37 @@ packages: is-symbol: registry.npmmirror.com/is-symbol@1.0.4 dev: true + registry.npmmirror.com/es5-ext@0.10.62: + resolution: {integrity: sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/es5-ext/-/es5-ext-0.10.62.tgz} + name: es5-ext + version: 0.10.62 + engines: {node: '>=0.10'} + requiresBuild: true + dependencies: + es6-iterator: registry.npmmirror.com/es6-iterator@2.0.3 + es6-symbol: registry.npmmirror.com/es6-symbol@3.1.3 + next-tick: registry.npmmirror.com/next-tick@1.1.0 + dev: true + + registry.npmmirror.com/es6-iterator@2.0.3: + resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/es6-iterator/-/es6-iterator-2.0.3.tgz} + name: es6-iterator + version: 2.0.3 + dependencies: + d: registry.npmmirror.com/d@1.0.1 + es5-ext: registry.npmmirror.com/es5-ext@0.10.62 + es6-symbol: registry.npmmirror.com/es6-symbol@3.1.3 + dev: true + + registry.npmmirror.com/es6-symbol@3.1.3: + resolution: {integrity: sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/es6-symbol/-/es6-symbol-3.1.3.tgz} + name: es6-symbol + version: 3.1.3 + dependencies: + d: registry.npmmirror.com/d@1.0.1 + ext: registry.npmmirror.com/ext@1.7.0 + dev: true + registry.npmmirror.com/esbuild@0.17.19: resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild/-/esbuild-0.17.19.tgz} name: esbuild @@ -3226,6 +3335,21 @@ packages: engines: {node: '>=0.10.0'} dev: true + registry.npmmirror.com/event-emitter@0.3.5: + resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/event-emitter/-/event-emitter-0.3.5.tgz} + name: event-emitter + version: 0.3.5 + dependencies: + d: registry.npmmirror.com/d@1.0.1 + es5-ext: registry.npmmirror.com/es5-ext@0.10.62 + dev: true + + registry.npmmirror.com/eventemitter3@4.0.7: + resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eventemitter3/-/eventemitter3-4.0.7.tgz} + name: eventemitter3 + version: 4.0.7 + dev: true + registry.npmmirror.com/execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/execa/-/execa-5.1.1.tgz} name: execa @@ -3260,6 +3384,14 @@ packages: strip-final-newline: registry.npmmirror.com/strip-final-newline@3.0.0 dev: true + registry.npmmirror.com/ext@1.7.0: + resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ext/-/ext-1.7.0.tgz} + name: ext + version: 1.7.0 + dependencies: + type: registry.npmmirror.com/type@2.7.2 + dev: true + registry.npmmirror.com/fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz} name: fast-deep-equal @@ -3669,12 +3801,6 @@ packages: version: 1.4.0 dev: true - registry.npmmirror.com/gsap@3.12.1: - resolution: {integrity: sha512-FXtb2YbBE9l8I9Pl5DFLpCMedaiMPztRlr0Ln0CMSnJn+pbTaeKlzgth8cLNPc7PzNwIZe+SEQiBBAWaBKJdVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/gsap/-/gsap-3.12.1.tgz} - name: gsap - version: 3.12.1 - dev: false - registry.npmmirror.com/gzip-size@6.0.0: resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/gzip-size/-/gzip-size-6.0.0.tgz} name: gzip-size @@ -4728,6 +4854,12 @@ packages: version: 1.4.0 dev: true + registry.npmmirror.com/next-tick@1.1.0: + resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/next-tick/-/next-tick-1.1.0.tgz} + name: next-tick + version: 1.1.0 + dev: true + registry.npmmirror.com/nice-try@1.0.5: resolution: {integrity: sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/nice-try/-/nice-try-1.0.5.tgz} name: nice-try @@ -6332,6 +6464,18 @@ packages: engines: {node: '>=8'} dev: true + registry.npmmirror.com/type@1.2.0: + resolution: {integrity: sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type/-/type-1.2.0.tgz} + name: type + version: 1.2.0 + dev: true + + registry.npmmirror.com/type@2.7.2: + resolution: {integrity: sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type/-/type-2.7.2.tgz} + name: type + version: 2.7.2 + dev: true + registry.npmmirror.com/typed-array-length@1.0.4: resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/typed-array-length/-/typed-array-length-1.0.4.tgz} name: typed-array-length @@ -6407,8 +6551,9 @@ packages: engines: {node: '>= 10.0.0'} dev: true - registry.npmmirror.com/unplugin-auto-import@0.15.3: + registry.npmmirror.com/unplugin-auto-import@0.15.3(@vueuse/core@10.2.0): resolution: {integrity: sha512-RLT8SqbPn4bT7yBshZId0uPSofKWnwr66RyDaxWaFb/+f7OTDOWAsVNz+hOQLBWSjvbekr2xZY9ccS8TDHJbCQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/unplugin-auto-import/-/unplugin-auto-import-0.15.3.tgz} + id: registry.npmmirror.com/unplugin-auto-import/0.15.3 name: unplugin-auto-import version: 0.15.3 engines: {node: '>=14'} @@ -6423,6 +6568,7 @@ packages: dependencies: '@antfu/utils': registry.npmmirror.com/@antfu/utils@0.7.4 '@rollup/pluginutils': registry.npmmirror.com/@rollup/pluginutils@5.0.2 + '@vueuse/core': registry.npmmirror.com/@vueuse/core@10.2.0(vue@3.3.4) local-pkg: registry.npmmirror.com/local-pkg@0.4.3 magic-string: registry.npmmirror.com/magic-string@0.30.0 minimatch: registry.npmmirror.com/minimatch@9.0.1 @@ -6626,7 +6772,6 @@ packages: optional: true dependencies: vue: registry.npmmirror.com/vue@3.3.4 - dev: false registry.npmmirror.com/vue-eslint-parser@9.3.0(eslint@8.42.0): resolution: {integrity: sha512-48IxT9d0+wArT1+3wNIy0tascRoywqSUe2E1YalIC1L8jsUGe5aJQItWfRok7DVFGz3UYvzEI7n5wiTXsCMAcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.3.0.tgz} @@ -6840,6 +6985,34 @@ packages: optional: true dev: true + registry.npmmirror.com/xgplayer-subtitles@3.0.5(core-js@3.31.0): + resolution: {integrity: sha512-NH7UjkK+2gy15DZsB4SFNUkdcgLMm6THVEMzl026pxEQyqXr0F65fMhx3nzFGZLzL2TSRpQHPJCeBNqGY0uWEg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/xgplayer-subtitles/-/xgplayer-subtitles-3.0.5.tgz} + id: registry.npmmirror.com/xgplayer-subtitles/3.0.5 + name: xgplayer-subtitles + version: 3.0.5 + peerDependencies: + core-js: '>=3.12.1' + dependencies: + core-js: registry.npmmirror.com/core-js@3.31.0 + eventemitter3: registry.npmmirror.com/eventemitter3@4.0.7 + dev: true + + registry.npmmirror.com/xgplayer@3.0.5(core-js@3.31.0): + resolution: {integrity: sha512-QmKcc2l/ETF6JYOYbYz8dm1OWOwft/6AuUy6RF8ms+3T05sqMXlAqEoXPVnCmiHs4BB4W2LSXsxyQXX6+xNBTw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/xgplayer/-/xgplayer-3.0.5.tgz} + id: registry.npmmirror.com/xgplayer/3.0.5 + name: xgplayer + version: 3.0.5 + peerDependencies: + core-js: '>=3.12.1' + dependencies: + core-js: registry.npmmirror.com/core-js@3.31.0 + danmu.js: registry.npmmirror.com/danmu.js@1.1.8 + delegate: registry.npmmirror.com/delegate@3.2.0 + downloadjs: registry.npmmirror.com/downloadjs@1.4.7 + eventemitter3: registry.npmmirror.com/eventemitter3@4.0.7 + xgplayer-subtitles: registry.npmmirror.com/xgplayer-subtitles@3.0.5(core-js@3.31.0) + dev: true + registry.npmmirror.com/xml-name-validator@4.0.0: resolution: {integrity: sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz} name: xml-name-validator diff --git a/src/assets/avatars/default.png b/src/assets/avatars/default.png deleted file mode 100644 index 901139529ca2aeaf853eedffc91a7cbf9105c7a9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1218 zcmV;z1U>tSP)OQ%>V!Y$jsB>d000BYNkl8PWBv+pRHwH8(Jc_B2ayeO%2yt{>o$)S>`aZ64I%DO&a`0j5vW;u9?5aSzL#?(2Q$ z{9#nG^J_XV^ZftloP+6VI$Xgr_iW*t>2&jHW(lUobZR_WY73@|>2U$emaNphr2Pv! z^(bi^OpgOx3p)qb$@DnEv6rg}xXz}>89bBfesGB}2RC3U?*}jNy`je9{y&n!_ZAn_ z&c27?+KK-`S)8(5K_MQcMuOIVQ?0c%M_8dl`h z$I?UrYKnyBw{4v1TnR2*W^7e2Ya81odLmq)A#^|Nr;I zQ^Am#?WS|>VM_Kjvpa{l0Sf1*iQ)|Ejr^%yNcv;)Pu7W_TAEybKoii-9u`|+Ihiog zreXGW`W8A_ImsGGXMvFY6TMNyycV@g7r_`z#$>MVp9hdC7%~pV$6LkA&wsOExd|&>lnFV zK9l83Uq&3r@?~|yHLOR6*G;Pm)DnlHqAIddY)gq-uu?=z)Vdh#AhO3H)}v$hkmGV8 z<^^>`rvZK2;?3*Hjv-??@ksBByQPwvr}d5=yh1r~pFMb?#J1(c5u|j!md&?&J2(Lt z24WzH19^p1kpBBj0e%Qh-Fookc^{qxmb|lk=Y>BPhj)Wua`M@z-}95Z^HYAT%j+}*hx})Bb=4&s6Vt? gNy`q1>CE}y4 diff --git a/src/assets/icons/icon_github.svg b/src/assets/icons/icon_github.svg deleted file mode 100644 index 3aad2ba0..00000000 --- a/src/assets/icons/icon_github.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_like.svg b/src/assets/icons/icon_like.svg deleted file mode 100644 index 029f1cef..00000000 --- a/src/assets/icons/icon_like.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_liked.svg b/src/assets/icons/icon_liked.svg deleted file mode 100644 index daaf6ab0..00000000 --- a/src/assets/icons/icon_liked.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_reply.svg b/src/assets/icons/icon_reply.svg deleted file mode 100644 index 6c3fe220..00000000 --- a/src/assets/icons/icon_reply.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_tencent_cloud.svg b/src/assets/icons/icon_tencent_cloud.svg deleted file mode 100644 index 03c4dc8e..00000000 --- a/src/assets/icons/icon_tencent_cloud.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_tiktok.svg b/src/assets/icons/icon_tiktok.svg deleted file mode 100644 index f9f91fb0..00000000 --- a/src/assets/icons/icon_tiktok.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_wechat.svg b/src/assets/icons/icon_wechat.svg deleted file mode 100644 index 37c9fca6..00000000 --- a/src/assets/icons/icon_wechat.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/assets/icons/icon_yuque.png b/src/assets/icons/icon_yuque.png deleted file mode 100755 index cf35622e1f7f2b7d9791c2b0e174381b7e669d29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5064 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 e>}_r|gzyLGBiwF@G{PAG0000 diff --git a/src/components.d.ts b/src/components.d.ts index cd4a456c..d5cfb6fe 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -9,44 +9,37 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - AnimateCount: typeof import('./components/AnimateCount.vue')['default'] + Avatar: typeof import('./components/avatar/index.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElButton: typeof import('element-plus/es')['ElButton'] ElDialog: typeof import('element-plus/es')['ElDialog'] ElIcon: typeof import('element-plus/es')['ElIcon'] + ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] ElPopover: typeof import('element-plus/es')['ElPopover'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] - IconCommunity: typeof import('./components/icons/IconCommunity.vue')['default'] - IconCopy: typeof import('./components/icons/IconCopy.vue')['default'] - IconDelete: typeof import('./components/icons/IconDelete.vue')['default'] - IconDislike: typeof import('./components/icons/iconDislike.vue')['default'] - IconDocumentation: typeof import('./components/icons/IconDocumentation.vue')['default'] - IconEcosystem: typeof import('./components/icons/IconEcosystem.vue')['default'] - IconLike: typeof import('./components/icons/iconLike.vue')['default'] - IconMore: typeof import('./components/icons/IconMore.vue')['default'] - IconRecall: typeof import('./components/icons/IconRecall.vue')['default'] - IconReply: typeof import('./components/icons/IconReply.vue')['default'] - IconShield: typeof import('./components/icons/IconShield.vue')['default'] - IconSupport: typeof import('./components/icons/IconSupport.vue')['default'] - IconTooling: typeof import('./components/icons/IconTooling.vue')['default'] + File: typeof import('./components/RenderMessage/file.vue')['default'] + Icon: typeof import('./components/Icon/index.vue')['default'] IEpArrowDownBold: typeof import('~icons/ep/arrow-down-bold')['default'] IEpChatDotRound: typeof import('~icons/ep/chat-dot-round')['default'] IEpClose: typeof import('~icons/ep/close')['default'] IEpFemale: typeof import('~icons/ep/female')['default'] - IEpFold: typeof import('~icons/ep/fold')['default'] IEpInfoFilled: typeof import('~icons/ep/info-filled')['default'] IEpLoading: typeof import('~icons/ep/loading')['default'] IEpLock: typeof import('~icons/ep/lock')['default'] IEpMale: typeof import('~icons/ep/male')['default'] IEpSuccessFilled: typeof import('~icons/ep/success-filled')['default'] - LikeButton: typeof import('./components/LikeButton/index.vue')['default'] + Image: typeof import('./components/RenderMessage/image.vue')['default'] LoginBox: typeof import('./components/LoginBox/index.vue')['default'] - RenderMsg: typeof import('./components/RenderMsg.vue')['default'] + RenderMessage: typeof import('./components/RenderMessage/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + Text: typeof import('./components/RenderMessage/text.vue')['default'] UserSettingBox: typeof import('./components/UserSettingBox/index.vue')['default'] + Video: typeof import('./components/RenderMessage/video.vue')['default'] + VideoPlayer: typeof import('./components/VideoPlayer/index.vue')['default'] + Voice: typeof import('./components/RenderMessage/voice.vue')['default'] } export interface ComponentCustomProperties { vLoading: typeof import('element-plus/es')['ElLoadingDirective'] diff --git a/src/components/AnimateCount.vue b/src/components/AnimateCount.vue deleted file mode 100644 index 0de50573..00000000 --- a/src/components/AnimateCount.vue +++ /dev/null @@ -1,19 +0,0 @@ - - - diff --git a/src/components/Icon/index.vue b/src/components/Icon/index.vue new file mode 100644 index 00000000..850135f4 --- /dev/null +++ b/src/components/Icon/index.vue @@ -0,0 +1,47 @@ + + + diff --git a/src/components/RenderMessage/file.vue b/src/components/RenderMessage/file.vue new file mode 100644 index 00000000..8388adfc --- /dev/null +++ b/src/components/RenderMessage/file.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/components/RenderMessage/image.vue b/src/components/RenderMessage/image.vue new file mode 100644 index 00000000..2cd58ee9 --- /dev/null +++ b/src/components/RenderMessage/image.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/components/RenderMessage/index.vue b/src/components/RenderMessage/index.vue new file mode 100644 index 00000000..115c73e5 --- /dev/null +++ b/src/components/RenderMessage/index.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/components/RenderMessage/text.vue b/src/components/RenderMessage/text.vue new file mode 100644 index 00000000..d145b1c3 --- /dev/null +++ b/src/components/RenderMessage/text.vue @@ -0,0 +1,55 @@ + + + diff --git a/src/components/RenderMessage/video.vue b/src/components/RenderMessage/video.vue new file mode 100644 index 00000000..feae55f4 --- /dev/null +++ b/src/components/RenderMessage/video.vue @@ -0,0 +1,18 @@ + + + diff --git a/src/components/RenderMessage/voice.vue b/src/components/RenderMessage/voice.vue new file mode 100644 index 00000000..9c66d1c9 --- /dev/null +++ b/src/components/RenderMessage/voice.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/components/RenderMsg.vue b/src/components/RenderMsg.vue deleted file mode 100644 index 6fc2ea01..00000000 --- a/src/components/RenderMsg.vue +++ /dev/null @@ -1,41 +0,0 @@ - - - diff --git a/src/components/UserSettingBox/index.vue b/src/components/UserSettingBox/index.vue index a370c1c8..b75f51b1 100644 --- a/src/components/UserSettingBox/index.vue +++ b/src/components/UserSettingBox/index.vue @@ -4,7 +4,7 @@ import { useRequest } from 'alova' import { ElMessage } from 'element-plus' import { Select, CloseBold, EditPen } from '@element-plus/icons-vue' import { useUserStore } from '@/stores/user' -import { SexType, IsYet } from '@/services/types' +import { SexEnum, IsYetEnum } from '@/enums' import type { BadgeType } from '@/services/types' import apis from '@/services/apis' import { judgeClient } from '@/utils/detectDevice' @@ -44,7 +44,7 @@ watchEffect(() => { }) const currentBadge = computed(() => - badgeList.value.find((item) => item.obtain === IsYet.Yes && item.wearing === IsYet.Yes), + badgeList.value.find((item) => item.obtain === IsYetEnum.YES && item.wearing === IsYetEnum.YES), ) // 佩戴卸下徽章 @@ -111,15 +111,15 @@ const onCancelEditName = async () => { size="20" color="var(--font-main)" class="setting-avatar-sex" - v-if="userInfo.sex && [SexType.Man, SexType.Female].includes(userInfo.sex)" + v-if="userInfo.sex && [SexEnum.MAN, SexEnum.REMALE].includes(userInfo.sex)" :style="{ backgroundColor: `var(${ - userInfo.sex === SexType.Man ? '--avatar-sex-bg-man' : '--avatar-sex-bg-female' + userInfo.sex === SexEnum.MAN ? '--avatar-sex-bg-man' : '--avatar-sex-bg-female' })`, }" > - - + + @@ -183,20 +183,20 @@ const onCancelEditName = async () => {
  • badge
    -