@aochuang/client-sdk 1.0.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -0
- package/common/avatar/avatar.vue +86 -0
- package/common/avatar/index.js +3 -0
- package/common/badge/badge.vue +105 -0
- package/common/badge/index.js +3 -0
- package/common/context-menu/context-menu-box.vue +61 -0
- package/common/context-menu/context-menu-group.vue +162 -0
- package/common/context-menu/context-menu-item.vue +179 -0
- package/common/context-menu/context-menu.vue +201 -0
- package/common/context-menu/index.js +3 -0
- package/common/context-menu/utils.js +138 -0
- package/common/friend-avatar/default.svg +1 -0
- package/common/friend-avatar/friend-avatar.vue +29 -0
- package/common/friend-avatar/index.js +3 -0
- package/common/image/index.js +3 -0
- package/common/index.js +17 -0
- package/common/room-avatar/default.svg +6 -0
- package/common/room-avatar/index.js +3 -0
- package/common/room-avatar/room-avatar.vue +29 -0
- package/common/scroll-load-more/index.js +3 -0
- package/common/scroll-load-more/scroll-load-more.vue +195 -0
- package/common/user-avatar/default.svg +1 -0
- package/common/user-avatar/index.js +3 -0
- package/common/user-avatar/user-avatar.vue +29 -0
- package/components/account-select/account-select-skeleton.vue +56 -0
- package/components/account-select/account-select.vue +205 -0
- package/components/account-select/all.svg +1 -0
- package/components/account-select/index.js +3 -0
- package/components/chat-editor/MENTION_TOKEN_SUMMARY.md +74 -0
- package/components/chat-editor/chat-editor-button/chat-editor-button.vue +78 -0
- package/components/chat-editor/chat-editor-suggestions/chat-editor-suggestions.vue +329 -0
- package/components/chat-editor/chat-editor-toolbar/chat-editor-toolbar-item.vue +28 -0
- package/components/chat-editor/chat-editor-toolbar/chat-editor-toolbar.vue +17 -0
- package/components/chat-editor/chat-editor.vue +933 -0
- package/components/chat-editor/index.js +12 -0
- package/components/chat-editor/utils.js +189 -0
- package/components/chat-friend-profile/chat-friend-profile.vue +118 -0
- package/components/chat-friend-profile/index.js +3 -0
- package/components/chat-layout/chat-layout.vue +71 -0
- package/components/chat-layout/index.js +3 -0
- package/components/chat-panel/chat-panel-box.vue +350 -0
- package/components/chat-panel/chat-panel-chat.vue +121 -0
- package/components/chat-panel/chat-panel-chats.vue +674 -0
- package/components/chat-panel/chat-panel-empty.vue +32 -0
- package/components/chat-panel/chat-panel-increment.vue +80 -0
- package/components/chat-panel/chat-panel-inner-msg.vue +25 -0
- package/components/chat-panel/chat-panel-loading.vue +29 -0
- package/components/chat-panel/chat-panel-nearest.vue +136 -0
- package/components/chat-panel/chat-panel.vue +292 -0
- package/components/chat-panel/index.js +3 -0
- package/components/chat-panel/util.js +83 -0
- package/components/chat-room-profile/chat-room-profile.vue +103 -0
- package/components/chat-room-profile/index.js +3 -0
- package/components/contacts-friend-select/contacts-friend-select-skeleton.vue +41 -0
- package/components/contacts-friend-select/contacts-friend-select.vue +204 -0
- package/components/contacts-friend-select/index.js +3 -0
- package/components/contacts-group-select/contacts-group-select-item.vue +98 -0
- package/components/contacts-group-select/contacts-group-select-skeleton.vue +81 -0
- package/components/contacts-group-select/contacts-group-select.vue +396 -0
- package/components/contacts-group-select/index.js +3 -0
- package/components/contacts-room-select/contacts-room-select-skeleton.vue +41 -0
- package/components/contacts-room-select/contacts-room-select.vue +208 -0
- package/components/contacts-room-select/index.js +3 -0
- package/components/index.js +43 -0
- package/components/layout/index.js +3 -0
- package/components/layout/layout.vue +70 -0
- package/components/session-select/index.js +11 -0
- package/components/session-select/session-select-item-skeleton.vue +59 -0
- package/components/session-select/session-select-item.vue +190 -0
- package/components/session-select/session-select.vue +386 -0
- package/components/wechat-chat-control/calling/calling.vue +227 -0
- package/components/wechat-chat-control/calling/phone-fill.svg +1 -0
- package/components/wechat-chat-control/calling/vidicon-fill.svg +1 -0
- package/components/wechat-chat-control/channel-live/channel-live.vue +198 -0
- package/components/wechat-chat-control/channel-live/quote-icon.svg +1 -0
- package/components/wechat-chat-control/channel-video/channel-video.vue +180 -0
- package/components/wechat-chat-control/channel-video/quote-icon.svg +1 -0
- package/components/wechat-chat-control/channel-video-card/channel-video-card.vue +139 -0
- package/components/wechat-chat-control/channel-video-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/company-card/company-card.vue +136 -0
- package/components/wechat-chat-control/company-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/custom-expression/custom-expression.vue +45 -0
- package/components/wechat-chat-control/empty/empty.vue +27 -0
- package/components/wechat-chat-control/file-url/file-url.vue +307 -0
- package/components/wechat-chat-control/file-url/icons/file-excel-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-info-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-music-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-pdf-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-ppt-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-settings-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-text-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-unknow-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-word-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/file-zip-line.svg +1 -0
- package/components/wechat-chat-control/file-url/icons/index.js +24 -0
- package/components/wechat-chat-control/image/image.vue +344 -0
- package/components/wechat-chat-control/image/index.js +1 -0
- package/components/wechat-chat-control/image/util.js +29 -0
- package/components/wechat-chat-control/index.js +104 -0
- package/components/wechat-chat-control/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wechat-chat-control/location/location.vue +179 -0
- package/components/wechat-chat-control/location/offline-bg.png +0 -0
- package/components/wechat-chat-control/member-change/member-change.vue +37 -0
- package/components/wechat-chat-control/music/icons/163.png +0 -0
- package/components/wechat-chat-control/music/icons/163.svg +12 -0
- package/components/wechat-chat-control/music/icons/default.png +0 -0
- package/components/wechat-chat-control/music/icons/default.svg +1 -0
- package/components/wechat-chat-control/music/icons/kuwo.png +0 -0
- package/components/wechat-chat-control/music/icons/qq.png +0 -0
- package/components/wechat-chat-control/music/icons/qq.svg +1 -0
- package/components/wechat-chat-control/music/music.vue +156 -0
- package/components/wechat-chat-control/music/utils.js +30 -0
- package/components/wechat-chat-control/quote-message/quote-message.vue +257 -0
- package/components/wechat-chat-control/real-time-position/icon.svg +1 -0
- package/components/wechat-chat-control/real-time-position/real-time-position.vue +57 -0
- package/components/wechat-chat-control/red-envelopes/quote-icon.svg +1 -0
- package/components/wechat-chat-control/red-envelopes/red-envelope.svg +1 -0
- package/components/wechat-chat-control/red-envelopes/red-envelopes.vue +168 -0
- package/components/wechat-chat-control/revoke-me-message/revoke-me-message.vue +41 -0
- package/components/wechat-chat-control/revoke-other-message/revoke-other-message.vue +41 -0
- package/components/wechat-chat-control/revoke-you-message/revoke-you-message.vue +41 -0
- package/components/wechat-chat-control/room-calling/phone-fill.svg +1 -0
- package/components/wechat-chat-control/room-calling/room-calling.vue +52 -0
- package/components/wechat-chat-control/room-calling/vidicon-fill.svg +1 -0
- package/components/wechat-chat-control/share-card/quote-icon.svg +1 -0
- package/components/wechat-chat-control/share-card/share-card.vue +140 -0
- package/components/wechat-chat-control/system/system.vue +122 -0
- package/components/wechat-chat-control/system-batch-message/system-batch-message.vue +28 -0
- package/components/wechat-chat-control/system-money/system-money.vue +39 -0
- package/components/wechat-chat-control/text/icons/icon.svg +6 -0
- package/components/wechat-chat-control/text/text.vue +164 -0
- package/components/wechat-chat-control/text-with-at/text-with-at.vue +88 -0
- package/components/wechat-chat-control/transfer/collection.svg +1 -0
- package/components/wechat-chat-control/transfer/quote-icon.svg +1 -0
- package/components/wechat-chat-control/transfer/red-transfer.svg +1 -0
- package/components/wechat-chat-control/transfer/refund.svg +1 -0
- package/components/wechat-chat-control/transfer/transfer.svg +1 -0
- package/components/wechat-chat-control/transfer/transfer.vue +263 -0
- package/components/wechat-chat-control/unknow/unknow.vue +21 -0
- package/components/wechat-chat-control/url/icons/link.svg +1 -0
- package/components/wechat-chat-control/url/icons/video.svg +6 -0
- package/components/wechat-chat-control/url/miniprogram.svg +1 -0
- package/components/wechat-chat-control/url/url-file.vue +47 -0
- package/components/wechat-chat-control/url/url-link.vue +169 -0
- package/components/wechat-chat-control/url/url-merge.vue +164 -0
- package/components/wechat-chat-control/url/url-miniprogram.vue +259 -0
- package/components/wechat-chat-control/url/url.vue +116 -0
- package/components/wechat-chat-control/util.js +234 -0
- package/components/wechat-chat-control/video/icons/video.svg +1 -0
- package/components/wechat-chat-control/video/video.vue +304 -0
- package/components/wechat-chat-control/voice/icons/voice.svg +1 -0
- package/components/wechat-chat-control/voice/voice.vue +464 -0
- package/components/wechat-chat-control/wechat-chat-control-config-item.vue +24 -0
- package/components/wechat-chat-control/wechat-chat-control-config-msg.vue +21 -0
- package/components/wechat-chat-control/wechat-chat-control-config.vue +57 -0
- package/components/wechat-chat-panel/chat-panel-chat-status/chat-panel-chat-status.vue +69 -0
- package/components/wechat-chat-panel/chat-panel-item.vue +695 -0
- package/components/wechat-chat-panel/chat-panel.vue +257 -0
- package/components/wechat-chat-panel/index.js +3 -0
- package/components/wework-chat-control/calling/calling.vue +223 -0
- package/components/wework-chat-control/calling/phone-fill.svg +1 -0
- package/components/wework-chat-control/calling/vidicon-fill.svg +1 -0
- package/components/wework-chat-control/channel-live/channel-live.vue +198 -0
- package/components/wework-chat-control/channel-live/quote-icon.svg +1 -0
- package/components/wework-chat-control/channel-video/channel-video.vue +180 -0
- package/components/wework-chat-control/channel-video/quote-icon.svg +1 -0
- package/components/wework-chat-control/company-card/company-card.vue +136 -0
- package/components/wework-chat-control/company-card/quote-icon.svg +1 -0
- package/components/wework-chat-control/custom-expression/custom-expression.vue +34 -0
- package/components/wework-chat-control/empty/empty.vue +27 -0
- package/components/wework-chat-control/expression/expression.vue +53 -0
- package/components/wework-chat-control/file-url/file-url.vue +247 -0
- package/components/wework-chat-control/file-url/icons/file-excel-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-info-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-music-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-pdf-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-ppt-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-settings-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-text-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-unknow-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-word-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/file-zip-line.svg +1 -0
- package/components/wework-chat-control/file-url/icons/index.js +24 -0
- package/components/wework-chat-control/image/image.vue +296 -0
- package/components/wework-chat-control/image/index.js +1 -0
- package/components/wework-chat-control/image/util.js +21 -0
- package/components/wework-chat-control/index.js +105 -0
- package/components/wework-chat-control/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wework-chat-control/link/link.vue +100 -0
- package/components/wework-chat-control/location/location.vue +181 -0
- package/components/wework-chat-control/location/offline-bg.png +0 -0
- package/components/wework-chat-control/red-envelopes/quote-icon.svg +1 -0
- package/components/wework-chat-control/red-envelopes/red-envelope.svg +1 -0
- package/components/wework-chat-control/red-envelopes/red-envelopes.vue +168 -0
- package/components/wework-chat-control/share-card/quote-icon.svg +1 -0
- package/components/wework-chat-control/share-card/share-card.vue +140 -0
- package/components/wework-chat-control/text/icons/icon.svg +6 -0
- package/components/wework-chat-control/text/text.vue +157 -0
- package/components/wework-chat-control/unknow/unknow.vue +21 -0
- package/components/wework-chat-control/url/icons/link.svg +1 -0
- package/components/wework-chat-control/url/icons/video.svg +6 -0
- package/components/wework-chat-control/url/miniprogram.svg +1 -0
- package/components/wework-chat-control/url/url-file.vue +37 -0
- package/components/wework-chat-control/url/url-link.vue +169 -0
- package/components/wework-chat-control/url/url-merge.vue +164 -0
- package/components/wework-chat-control/url/url-miniprogram.vue +248 -0
- package/components/wework-chat-control/url/url.vue +103 -0
- package/components/wework-chat-control/util.js +223 -0
- package/components/wework-chat-control/video/icons/video.svg +1 -0
- package/components/wework-chat-control/video/video.vue +304 -0
- package/components/wework-chat-control/voice/icons/voice.svg +1 -0
- package/components/wework-chat-control/voice/voice.vue +464 -0
- package/components/wework-chat-panel/chat-panel-controls/company-card/company-card.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/expression/expression.vue +36 -0
- package/components/wework-chat-panel/chat-panel-controls/file-url/file-url.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/image/image.vue +36 -0
- package/components/wework-chat-panel/chat-panel-controls/index.js +35 -0
- package/components/wework-chat-panel/chat-panel-controls/jx-sys-text/jx-sys-text.vue +28 -0
- package/components/wework-chat-panel/chat-panel-controls/link/link.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/location/location.vue +35 -0
- package/components/wework-chat-panel/chat-panel-controls/text/text.vue +43 -0
- package/components/wework-chat-panel/chat-panel-controls/unkonw/unkonw.vue +39 -0
- package/components/wework-chat-panel/chat-panel-controls/video/video.vue +37 -0
- package/components/wework-chat-panel/chat-panel-controls/voice/voice.vue +35 -0
- package/components/wework-chat-panel/chat-panel-item.vue +650 -0
- package/components/wework-chat-panel/chat-panel.vue +163 -0
- package/components/wework-chat-panel/index.js +3 -0
- package/package.json +23 -0
- package/services/client-chat/client-chat-wechat/client-chat-account.js +426 -0
- package/services/client-chat/client-chat-wechat/client-chat-concats.js +1029 -0
- package/services/client-chat/client-chat-wechat/client-chat-draft.js +92 -0
- package/services/client-chat/client-chat-wechat/client-chat-message.js +588 -0
- package/services/client-chat/client-chat-wechat/client-chat-session-manage.js +67 -0
- package/services/client-chat/client-chat-wechat/client-chat-session.js +1048 -0
- package/services/client-chat/client-chat-wechat/client-chat-socket.js +215 -0
- package/services/client-chat/client-chat-wechat/client-chat.js +1065 -0
- package/services/client-chat/client-chat-wechat/index.js +3 -0
- package/services/client-chat/client-chat-wechat/utils.js +82 -0
- package/services/client-chat/client-chat-wework/client-chat-account.js +310 -0
- package/services/client-chat/client-chat-wework/client-chat-concats.js +772 -0
- package/services/client-chat/client-chat-wework/client-chat-message.js +278 -0
- package/services/client-chat/client-chat-wework/client-chat-session.js +929 -0
- package/services/client-chat/client-chat-wework/client-chat-socket.js +64 -0
- package/services/client-chat/client-chat-wework/client-chat.js +330 -0
- package/services/client-chat/client-chat-wework/index.js +3 -0
- package/services/client-chat/client-chat-wework/utils.js +82 -0
- package/services/index.js +10 -0
- package/services/socket/index.js +5 -0
- package/services/socket/socket.js +797 -0
- package/services/socket/utils.js +7 -0
- package/uni-common/account-portray/account-portray.vue +51 -0
- package/uni-common/account-select/account-select-item.vue +172 -0
- package/uni-common/account-select/account-select.vue +252 -0
- package/uni-common/all-friend-avatar/all-friend-avatar.vue +49 -0
- package/uni-common/friend-avatar/default.svg +1 -0
- package/uni-common/friend-avatar/friend-avatar.vue +27 -0
- package/uni-common/friend-avatar/index.js +3 -0
- package/uni-common/friend-loader/friend-loader.vue +53 -0
- package/uni-common/friend-portray/friend-portray.vue +56 -0
- package/uni-common/group-avatar/default.svg +1 -0
- package/uni-common/group-avatar/group-avatar.vue +18 -0
- package/uni-common/group-avatar/index.js +3 -0
- package/uni-common/room-avatar/default.svg +6 -0
- package/uni-common/room-avatar/index.js +3 -0
- package/uni-common/room-avatar/room-avatar.vue +27 -0
- package/uni-common/room-loader/room-loader.vue +53 -0
- package/uni-common/room-portray/room-portray.vue +56 -0
- package/uni-components/chat-control/calling/calling.vue +91 -0
- package/uni-components/chat-control/calling/phone-fill.svg +1 -0
- package/uni-components/chat-control/calling/vidicon-fill.svg +1 -0
- package/uni-components/chat-control/channel-video/channel-video.vue +89 -0
- package/uni-components/chat-control/channel-video-card/channel-video-card.vue +105 -0
- package/uni-components/chat-control/channel-video-live/channel-video-live.vue +92 -0
- package/uni-components/chat-control/chat-control-config-item/chat-control-config-item.vue +20 -0
- package/uni-components/chat-control/chat-control-config-item/index.js +3 -0
- package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-app.vue +25 -0
- package/uni-components/chat-control/chat-control-config-msg/chat-control-config-msg-h5.vue +21 -0
- package/uni-components/chat-control/chat-control-config.vue +59 -0
- package/uni-components/chat-control/chat-control.vue +218 -0
- package/uni-components/chat-control/company-card/company-card.vue +123 -0
- package/uni-components/chat-control/const.js +28 -0
- package/uni-components/chat-control/expression/expression.vue +41 -0
- package/uni-components/chat-control/image/image.vue +68 -0
- package/uni-components/chat-control/index.js +89 -0
- package/uni-components/chat-control/location/location.vue +110 -0
- package/uni-components/chat-control/member-change/member-change.vue +32 -0
- package/uni-components/chat-control/quote-message/quote-message.vue +216 -0
- package/uni-components/chat-control/real-time-position/real-time-position.vue +62 -0
- package/uni-components/chat-control/redpacket/red-envelope.svg +1 -0
- package/uni-components/chat-control/redpacket/redpacket.vue +75 -0
- package/uni-components/chat-control/share-card/share-card.vue +101 -0
- package/uni-components/chat-control/system/system.vue +69 -0
- package/uni-components/chat-control/system-batch-message/system-batch-message.vue +30 -0
- package/uni-components/chat-control/system-text/system-text.vue +32 -0
- package/uni-components/chat-control/text/text.vue +67 -0
- package/uni-components/chat-control/text-with-at/text-with-at.vue +51 -0
- package/uni-components/chat-control/transfer/red-transfer.svg +1 -0
- package/uni-components/chat-control/transfer/transfer.vue +80 -0
- package/uni-components/chat-control/unkonw/unkonw.vue +37 -0
- package/uni-components/chat-control/url/icons/file-excel-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-info-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-music-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-pdf-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-ppt-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-settings-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-text-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-unknow-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-word-line.svg +1 -0
- package/uni-components/chat-control/url/icons/file-zip-line.svg +1 -0
- package/uni-components/chat-control/url/icons/index.js +24 -0
- package/uni-components/chat-control/url/miniprogram.svg +1 -0
- package/uni-components/chat-control/url/url-miniprogram.vue +116 -0
- package/uni-components/chat-control/url/url.vue +306 -0
- package/uni-components/chat-control/url-new/icons/file-excel-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-info-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-music-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-pdf-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-ppt-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-settings-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-text-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-unknow-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-word-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/file-zip-line.svg +1 -0
- package/uni-components/chat-control/url-new/icons/index.js +24 -0
- package/uni-components/chat-control/url-new/url-new.vue +110 -0
- package/uni-components/chat-control/utils.js +12 -0
- package/uni-components/chat-control/video/video.vue +156 -0
- package/uni-components/chat-control/voice/voice.vue +166 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-collect.vue +84 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet-system.vue +28 -0
- package/uni-components/chat-editor/chat-editor-chartlet/chat-editor-chartlet.vue +85 -0
- package/uni-components/chat-editor/chat-editor-func/chat-editor-func.vue +157 -0
- package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at-panel.vue +158 -0
- package/uni-components/chat-editor/chat-editor-func-at/chat-editor-func-at.vue +61 -0
- package/uni-components/chat-editor/chat-editor-func-button/chat-editor-func-button.vue +58 -0
- package/uni-components/chat-editor/chat-editor-func-file/chat-editor-func-file.vue +54 -0
- package/uni-components/chat-editor/chat-editor-func-image/chat-editor-func-image.vue +42 -0
- package/uni-components/chat-editor/chat-editor-func-video/chat-editor-func-video.vue +42 -0
- package/uni-components/chat-editor/chat-editor-func-voice/chat-editor-func-voice.vue +25 -0
- package/uni-components/chat-editor/chat-editor-message-send/chat-editor-message-send.vue +158 -0
- package/uni-components/chat-editor/chat-editor-quote/chat-editor-quote.vue +75 -0
- package/uni-components/chat-editor/chat-editor.vue +257 -0
- package/uni-components/chat-editor/index.js +10 -0
- package/uni-components/chat-editor/util.js +65 -0
- package/uni-components/chat-panel/chat-panel-chats-box.vue +238 -0
- package/uni-components/chat-panel/chat-panel-chats-forward/chat-panel-chats-forward.vue +273 -0
- package/uni-components/chat-panel/chat-panel-chats-item.vue +578 -0
- package/uni-components/chat-panel/chat-panel-chats-status/chat-panel-chats-status.vue +71 -0
- package/uni-components/chat-panel/chat-panel-chats.vue +368 -0
- package/uni-components/chat-panel/chat-panel.vue +227 -0
- package/uni-components/contacts-group-select/contacts-group-select-item.vue +85 -0
- package/uni-components/contacts-group-select/contacts-group-select-panel.vue +119 -0
- package/uni-components/contacts-group-select/contacts-group-select.vue +150 -0
- package/utils/color.js +178 -0
- package/utils/data.js +11 -0
- package/utils/date.js +107 -0
- package/utils/event.js +3 -0
- package/utils/file.js +26 -0
- package/utils/index.js +5 -0
- package/utils/json.js +40 -0
- package/utils/log.js +243 -0
- package/utils/queue.js +97 -0
- package/utils/regexp.js +9 -0
- package/utils/string.js +66 -0
- package/utils/url.js +48 -0
- package/utils/util.js +130 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#b9c8cc" d="M469.333333 640h85.333334v85.333333h-85.333334v-85.333333z m85.333334-70.186667V597.333333h-85.333334v-64a42.666667 42.666667 0 0 1 42.666667-42.666666 64 64 0 1 0-62.762667-76.544l-83.712-16.768A149.376 149.376 0 1 1 554.666667 569.813333zM640 170.666667H213.333333v682.666666h597.333334V341.333333h-170.666667V170.666667zM128 127.658667C128 104.277333 147.072 85.333333 170.624 85.333333H682.666667l213.333333 213.333334v597.034666A42.666667 42.666667 0 0 1 853.632 938.666667H170.368A42.666667 42.666667 0 0 1 128 896.341333V127.658667z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#359afc" d="M682.666667 341.333333v341.333334h-85.333334l-85.333333-85.333334-85.333333 85.333334H341.333333V341.333333h85.333334v213.333334l85.333333-85.333334 85.333333 85.333334V341.333333h42.666667V170.666667H213.333333v682.666666h597.333334V341.333333h-128zM128 127.658667C128 104.277333 147.072 85.333333 170.624 85.333333H682.666667l213.333333 213.333334v597.034666A42.666667 42.666667 0 0 1 853.632 938.666667H170.368A42.666667 42.666667 0 0 1 128 896.341333V127.658667z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" width="200px" height="200.00px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#5fcb9c" d="M853.333333 938.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V128a42.666667 42.666667 0 0 1 42.666667-42.666667h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v768a42.666667 42.666667 0 0 1-42.666667 42.666667z m-42.666666-85.333334V170.666667H213.333333v682.666666h597.333334z m-213.333334-341.333333v213.333333h-170.666666v-128h85.333333v-85.333333h85.333333z m-85.333333-341.333333h85.333333v85.333333h-85.333333V170.666667z m-85.333333 85.333333h85.333333v85.333333h-85.333333V256z m85.333333 85.333333h85.333333v85.333334h-85.333333V341.333333z m-85.333333 85.333334h85.333333v85.333333h-85.333333v-85.333333z" /></svg>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import execl from './file-excel-line.svg'
|
|
2
|
+
import pdf from './file-pdf-line.svg'
|
|
3
|
+
import ppt from './file-ppt-line.svg'
|
|
4
|
+
import unknow from './file-unknow-line.svg'
|
|
5
|
+
import word from './file-word-line.svg'
|
|
6
|
+
import zip from './file-zip-line.svg'
|
|
7
|
+
import info from './file-info-line.svg'
|
|
8
|
+
import text from './file-text-line.svg'
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
xlsx: execl,
|
|
12
|
+
xls: execl,
|
|
13
|
+
pdf,
|
|
14
|
+
ppt,
|
|
15
|
+
unknow,
|
|
16
|
+
word,
|
|
17
|
+
zip,
|
|
18
|
+
doc: word,
|
|
19
|
+
docx: word,
|
|
20
|
+
rar: zip,
|
|
21
|
+
ini: info,
|
|
22
|
+
txt: text,
|
|
23
|
+
'7z': zip
|
|
24
|
+
}
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sdk-chat-control-image" @click="handleClick">
|
|
3
|
+
<div class="sdk-chat-control-image__main" :style="{'height': innerHeight, 'max-height': innerMaxHeight + 'px'}">
|
|
4
|
+
<template v-if="allowDefrost">
|
|
5
|
+
<template v-if="defrostMsg">
|
|
6
|
+
<div class="sdk-chat-control-image__defrost">
|
|
7
|
+
<div class="sdk-chat-control-image__defrost-icon">
|
|
8
|
+
<ui-icon name="information-line" :size="20"></ui-icon>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="sdk-chat-control-image__defrost-text">
|
|
11
|
+
{{ defrostMsg }}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="sdk-chat-control-image__error-action">
|
|
14
|
+
<ui-button type="primary" size="mini" :click="handleRefreshClick">重新请求</ui-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
<template v-else-if="errorMsg">
|
|
19
|
+
<div class="sdk-chat-control-image__error">
|
|
20
|
+
<div class="sdk-chat-control-image__error-icon">
|
|
21
|
+
<ui-icon name="information-line" :size="20"></ui-icon>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="sdk-chat-control-image__error-text">
|
|
24
|
+
{{ errorMsg }}
|
|
25
|
+
</div>
|
|
26
|
+
<div class="sdk-chat-control-image__error-action">
|
|
27
|
+
<ui-button type="primary" size="mini" :click="handleUnlockClick">尝试解档</ui-button>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<template v-else>
|
|
32
|
+
<div class="sdk-chat-control-image__control">
|
|
33
|
+
<ui-image
|
|
34
|
+
:src="innerSrc"
|
|
35
|
+
:radius="0"
|
|
36
|
+
:previewable="previewable"
|
|
37
|
+
:width="innerWidth"
|
|
38
|
+
:height="innerHeight"
|
|
39
|
+
:max-width="innerMaxWidth"
|
|
40
|
+
:max-height="innerMaxHeight"
|
|
41
|
+
:preview-method="previewMethod"
|
|
42
|
+
:enable-thumb="innerOptimize"
|
|
43
|
+
fit="contain"
|
|
44
|
+
@error="handleError"
|
|
45
|
+
@click.native="handleImageClick"
|
|
46
|
+
></ui-image>
|
|
47
|
+
<template v-if="isOriginImage && innerOptimize">
|
|
48
|
+
<span class="sdk-chat-control-image__hd">
|
|
49
|
+
<bi-tooltip text="该图片已经从手机下载过原图">
|
|
50
|
+
<span>原图</span>
|
|
51
|
+
</bi-tooltip>
|
|
52
|
+
</span>
|
|
53
|
+
</template>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
</template>
|
|
57
|
+
<template v-else>
|
|
58
|
+
<div class="sdk-chat-control-image__control">
|
|
59
|
+
<ui-image
|
|
60
|
+
:src="innerSrc"
|
|
61
|
+
:radius="0"
|
|
62
|
+
:previewable="previewable"
|
|
63
|
+
:width="innerWidth"
|
|
64
|
+
:height="innerHeight"
|
|
65
|
+
:max-width="innerMaxWidth"
|
|
66
|
+
:max-height="innerMaxHeight"
|
|
67
|
+
:preview-method="previewMethod"
|
|
68
|
+
:enable-thumb="enableOptimize"
|
|
69
|
+
fit="contain"
|
|
70
|
+
@error="handleError"
|
|
71
|
+
@click.native="handleImageClick"
|
|
72
|
+
></ui-image>
|
|
73
|
+
<template v-if="isOriginImage && innerOptimize">
|
|
74
|
+
<span class="sdk-chat-control-image__hd">
|
|
75
|
+
<bi-tooltip text="该图片已经从手机下载过原图">
|
|
76
|
+
<span>原图</span>
|
|
77
|
+
</bi-tooltip>
|
|
78
|
+
</span>
|
|
79
|
+
</template>
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
</template>
|
|
85
|
+
<script>
|
|
86
|
+
import { Image as UiImage, Button as UiButton, Icon as UiIcon, Loading as UiLoading } from '@aochuang/common/components'
|
|
87
|
+
import { isOriginImage, getNewImageSrc, isNewImage } from './util'
|
|
88
|
+
import BiTooltip from '@aochuang/common/common/tooltip'
|
|
89
|
+
|
|
90
|
+
export default {
|
|
91
|
+
name: 'SdkChatControlImage',
|
|
92
|
+
components: {
|
|
93
|
+
UiIcon,
|
|
94
|
+
UiImage,
|
|
95
|
+
UiButton,
|
|
96
|
+
UiLoading,
|
|
97
|
+
BiTooltip
|
|
98
|
+
},
|
|
99
|
+
props: {
|
|
100
|
+
id: {
|
|
101
|
+
type: String
|
|
102
|
+
},
|
|
103
|
+
type: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: 'default',
|
|
106
|
+
validator (value) {
|
|
107
|
+
return ['quote', 'default', 'thumb'].includes(value)
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
content: {
|
|
111
|
+
type: String
|
|
112
|
+
},
|
|
113
|
+
maxWidth: {
|
|
114
|
+
type: Number,
|
|
115
|
+
default: 300
|
|
116
|
+
},
|
|
117
|
+
maxHeight: {
|
|
118
|
+
type: Number,
|
|
119
|
+
default: 300
|
|
120
|
+
},
|
|
121
|
+
previewable: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: true
|
|
124
|
+
},
|
|
125
|
+
imageClickMethod: {
|
|
126
|
+
type: Function
|
|
127
|
+
},
|
|
128
|
+
previewMethod: {
|
|
129
|
+
type: Function
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* 解冻图片
|
|
133
|
+
*/
|
|
134
|
+
defrostMethod: {
|
|
135
|
+
type: Function
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* 查询解冻结果方法
|
|
139
|
+
*/
|
|
140
|
+
defrostResultMethod: {
|
|
141
|
+
type: Function
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
* 开启图片优化
|
|
145
|
+
* 缩略图:xxx_thumb.jpg
|
|
146
|
+
* 大图:xxx_new.jpg
|
|
147
|
+
* 原图:xxx_origin.jpg
|
|
148
|
+
* 新的手机版本消息里面默认返回的图片地址会带_new.jpg(大图)或_thumb.jpg,如果下载过原图,那么消息里面就会带_origin.jpg后缀,前端需要改成_thumb后缀
|
|
149
|
+
* 如果有原图了,那肯定是有thumb.jpg的,和老肖确定了
|
|
150
|
+
* 需要分两个版本
|
|
151
|
+
* 老版本交互式用户一点击查看大图,就调用socket命令去下载原图,下载完后,后面消息里面返回的就是原图了
|
|
152
|
+
* 新版本交互式用户一点击查看大图,那么就将地址改成_new.jpg,并且点击下载的时候才去下载原图,下载完原图将消息的后缀改成_origin.jpg
|
|
153
|
+
* 检查新老版本可以根据是否有_new.jpg和_thumb.jpg判断
|
|
154
|
+
* 如果是老的版本,那么需要走图片裁剪优化逻辑
|
|
155
|
+
*/
|
|
156
|
+
enableOptimize: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: false
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* 优化拦截方法,有些消息不能处理为缩略图和大图,比如从客服端发送的消息,因为后端只有手机过来的图片才有缩略图和大图
|
|
162
|
+
*/
|
|
163
|
+
optimizeInterceptMethod: {
|
|
164
|
+
type: Function
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* 当纠错失败的时候触发事件
|
|
168
|
+
* 主要给外面在进一步处理的使用,例如有原图,没有缩略图和大图的时候,这个时候外面可以将图片地址在特别处理一下
|
|
169
|
+
*/
|
|
170
|
+
onCorrectSrcMethod: {
|
|
171
|
+
type: Function
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
data () {
|
|
175
|
+
return {
|
|
176
|
+
defrostMsg: null,
|
|
177
|
+
errorMsg: null,
|
|
178
|
+
correctSrc: null // 纠正后的图片地址,一般是开启了enableOptimize,大图找不到的时候,会回退到小图地址
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
computed: {
|
|
182
|
+
src () {
|
|
183
|
+
return this.content
|
|
184
|
+
},
|
|
185
|
+
innerOptimize () {
|
|
186
|
+
if (!this.enableOptimize) {
|
|
187
|
+
return false
|
|
188
|
+
}
|
|
189
|
+
if (this.optimizeInterceptMethod && this.optimizeInterceptMethod() === false) {
|
|
190
|
+
return false
|
|
191
|
+
}
|
|
192
|
+
return true
|
|
193
|
+
},
|
|
194
|
+
innerWidth () {
|
|
195
|
+
let width = null
|
|
196
|
+
if (this.type === 'default') {
|
|
197
|
+
}
|
|
198
|
+
return width
|
|
199
|
+
},
|
|
200
|
+
innerHeight () {
|
|
201
|
+
let height = null
|
|
202
|
+
if (this.type === 'default') {
|
|
203
|
+
height = this.innerMaxHeight ? (this.innerMaxHeight + 'px') : '300px'
|
|
204
|
+
} else if (this.type === 'thumb') {
|
|
205
|
+
height = this.innerMaxHeight ? (this.innerMaxHeight + 'px') : ''
|
|
206
|
+
}
|
|
207
|
+
return height
|
|
208
|
+
},
|
|
209
|
+
innerMaxWidth () {
|
|
210
|
+
if (this.type === 'quote') {
|
|
211
|
+
return 60
|
|
212
|
+
} else if (this.type === 'thumb') {
|
|
213
|
+
return 180
|
|
214
|
+
} else {
|
|
215
|
+
return this.maxWidth
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
innerMaxHeight () {
|
|
219
|
+
if (this.type === 'quote') {
|
|
220
|
+
return 60
|
|
221
|
+
} else if (this.type === 'thumb') {
|
|
222
|
+
return 72
|
|
223
|
+
} else {
|
|
224
|
+
return this.maxHeight
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
innerSrc () {
|
|
228
|
+
if (!this.innerOptimize) {
|
|
229
|
+
return this.src
|
|
230
|
+
}
|
|
231
|
+
if (this.correctSrc) {
|
|
232
|
+
return this.correctSrc
|
|
233
|
+
}
|
|
234
|
+
// 如果是原图地址,那么需要改成缩略图地址,防止消息里面都是展示的原图,以为默认后端逻辑是有原图返回原图,
|
|
235
|
+
if (isOriginImage(this.src)) {
|
|
236
|
+
// 替换成大图地址
|
|
237
|
+
return getNewImageSrc(this.src) || this.src
|
|
238
|
+
} else {
|
|
239
|
+
return this.src
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
isOriginImage () {
|
|
243
|
+
return isOriginImage(this.src)
|
|
244
|
+
},
|
|
245
|
+
allowDefrost () {
|
|
246
|
+
return !!this.defrostMethod
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
methods: {
|
|
250
|
+
handleClick () {
|
|
251
|
+
this.$emit('click')
|
|
252
|
+
},
|
|
253
|
+
handleImageClick () {
|
|
254
|
+
this.imageClickMethod && this.imageClickMethod()
|
|
255
|
+
},
|
|
256
|
+
handleError () {
|
|
257
|
+
if (this.defrostMethod) {
|
|
258
|
+
this.errorMsg = '加载失败,可能资源被归档~'
|
|
259
|
+
return
|
|
260
|
+
}
|
|
261
|
+
// 如果大图加载失败了,那么要用缩略图地址
|
|
262
|
+
if (this.innerOptimize) {
|
|
263
|
+
// 大图加载失败,尝试调用onCorrectSrcMethod有外面决定用什么图片
|
|
264
|
+
if (isNewImage(this.innerSrc)) {
|
|
265
|
+
if (this.onCorrectSrcMethod) {
|
|
266
|
+
const ns = this.onCorrectSrcMethod()
|
|
267
|
+
if (ns) {
|
|
268
|
+
this.correctSrc = ns
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
handleUnlockClick () {
|
|
275
|
+
if (!this.defrostMethod) {
|
|
276
|
+
return
|
|
277
|
+
}
|
|
278
|
+
return this.defrostMethod({
|
|
279
|
+
content: this.content
|
|
280
|
+
}).then((res) => {
|
|
281
|
+
this.defrostMsg = res || '解冻已执行,请耐心等待~'
|
|
282
|
+
})
|
|
283
|
+
},
|
|
284
|
+
handleRefreshClick () {
|
|
285
|
+
this.errorMsg = null
|
|
286
|
+
this.defrostMsg = null
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
</script>
|
|
291
|
+
<style lang="less">
|
|
292
|
+
.sdk-chat-control-image__main{
|
|
293
|
+
display: inline-block;
|
|
294
|
+
position: relative;
|
|
295
|
+
vertical-align: top;
|
|
296
|
+
min-width: 180px;
|
|
297
|
+
background-color: #eee;
|
|
298
|
+
text-align: center;
|
|
299
|
+
.ui-image{
|
|
300
|
+
vertical-align: top;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
.sdk-chat-control-image__defrost,
|
|
304
|
+
.sdk-chat-control-image__error{
|
|
305
|
+
position: absolute;
|
|
306
|
+
left: 0;
|
|
307
|
+
top: 0;
|
|
308
|
+
right: 0;
|
|
309
|
+
bottom: 0;
|
|
310
|
+
z-index: 10;
|
|
311
|
+
background-color: #f2f2f2;
|
|
312
|
+
display: flex;
|
|
313
|
+
flex-direction: column;
|
|
314
|
+
align-items: center;
|
|
315
|
+
justify-content: center;
|
|
316
|
+
font-size: 12px;
|
|
317
|
+
padding: 12px;
|
|
318
|
+
color: #999;
|
|
319
|
+
line-height: 1.7em;
|
|
320
|
+
}
|
|
321
|
+
.sdk-chat-control-image__error-action{
|
|
322
|
+
margin-top: 6px;
|
|
323
|
+
}
|
|
324
|
+
.sdk-chat-control-image__control{
|
|
325
|
+
display: inline-block;
|
|
326
|
+
line-height: 1em;
|
|
327
|
+
vertical-align: top;
|
|
328
|
+
}
|
|
329
|
+
.sdk-chat-control-image__hd{
|
|
330
|
+
position: absolute;
|
|
331
|
+
background-color: #3773f9;
|
|
332
|
+
color: #fff;
|
|
333
|
+
right: 8px;
|
|
334
|
+
bottom: 8px;
|
|
335
|
+
padding: 4px 6px;
|
|
336
|
+
border-radius: 3px;
|
|
337
|
+
font-weight: bold;
|
|
338
|
+
display: inline-block;
|
|
339
|
+
font-size: 12px;
|
|
340
|
+
transform: scale(.75);
|
|
341
|
+
transform-origin: 100% 100%;
|
|
342
|
+
white-space: nowrap;
|
|
343
|
+
}
|
|
344
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { isNewImage, isOriginImage, getNewImageSrc } from './util'
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export function isNewImage (url) {
|
|
2
|
+
if (!url) {
|
|
3
|
+
return false
|
|
4
|
+
}
|
|
5
|
+
return url.toLocaleLowerCase().indexOf('_new.') >= 0
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function isOriginImage (url) {
|
|
9
|
+
if (!url) {
|
|
10
|
+
return false
|
|
11
|
+
}
|
|
12
|
+
return url.toLocaleLowerCase().indexOf('_origin.') >= 0
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function getNewImageSrc (url) {
|
|
16
|
+
if (isOriginImage(url)) {
|
|
17
|
+
return url.replace('_origin.', '_new.')
|
|
18
|
+
} else {
|
|
19
|
+
return url
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function getOriginImageSrc (url) {
|
|
24
|
+
if (isNewImage(url)) {
|
|
25
|
+
return url.replace('_new.', '_origin.')
|
|
26
|
+
} else {
|
|
27
|
+
return url
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import text from './text/text.vue'
|
|
2
|
+
import image from './image/image.vue'
|
|
3
|
+
import voice from './voice/voice.vue'
|
|
4
|
+
import shareCard from './share-card/share-card.vue'
|
|
5
|
+
import companyCard from './company-card/company-card.vue'
|
|
6
|
+
import video from './video/video.vue'
|
|
7
|
+
import customExpression from './custom-expression/custom-expression.vue'
|
|
8
|
+
import location from './location/location.vue'
|
|
9
|
+
import fileUrl from './file-url/file-url.vue'
|
|
10
|
+
import calling from './calling/calling.vue'
|
|
11
|
+
import roomCalling from './room-calling/room-calling.vue'
|
|
12
|
+
import realTimePosition from './real-time-position/real-time-position.vue'
|
|
13
|
+
import redEnvelopes from './red-envelopes/red-envelopes.vue'
|
|
14
|
+
import system from './system/system.vue'
|
|
15
|
+
import systemBatchMessage from './system-batch-message/system-batch-message.vue'
|
|
16
|
+
import jxSysText from './jx-sys-text/jx-sys-text.vue'
|
|
17
|
+
import memberChange from './member-change/member-change.vue'
|
|
18
|
+
import systemMoney from './system-money/system-money.vue'
|
|
19
|
+
import textWithAt from './text-with-at/text-with-at.vue'
|
|
20
|
+
import channelVideo from './channel-video/channel-video.vue'
|
|
21
|
+
import channelLive from './channel-live/channel-live.vue'
|
|
22
|
+
import channelVideoCard from './channel-video-card/channel-video-card.vue'
|
|
23
|
+
import music from './music/music.vue'
|
|
24
|
+
import transfer from './transfer/transfer.vue'
|
|
25
|
+
import url from './url/url.vue'
|
|
26
|
+
import quoteMessage from './quote-message/quote-message.vue'
|
|
27
|
+
import empty from './empty/empty.vue'
|
|
28
|
+
import unknow from './unknow/unknow.vue'
|
|
29
|
+
import WechatChatControlConfig from './wechat-chat-control-config.vue'
|
|
30
|
+
import WechatChatControlConfigMsg from './wechat-chat-control-config-msg.vue'
|
|
31
|
+
import WechatChatControlConfigItem from './wechat-chat-control-config-item.vue'
|
|
32
|
+
import revokeMeMessage from './revoke-me-message/revoke-me-message.vue'
|
|
33
|
+
import revokeOtherMessage from './revoke-other-message/revoke-other-message.vue'
|
|
34
|
+
import revokeYouMessage from './revoke-you-message/revoke-you-message.vue'
|
|
35
|
+
import { MESSAGE_TYPE } from './util'
|
|
36
|
+
|
|
37
|
+
export const chatControls = {
|
|
38
|
+
[MESSAGE_TYPE.TEXT]: text,
|
|
39
|
+
[MESSAGE_TYPE.IMAGE]: image,
|
|
40
|
+
[MESSAGE_TYPE.VOICE]: voice,
|
|
41
|
+
[MESSAGE_TYPE.MUSIC]: music,
|
|
42
|
+
[MESSAGE_TYPE.ROOM_CALLING]: roomCalling,
|
|
43
|
+
[MESSAGE_TYPE.SHARE_CARD]: shareCard,
|
|
44
|
+
[MESSAGE_TYPE.COMPANY_CARD]: companyCard,
|
|
45
|
+
[MESSAGE_TYPE.VIDEO]: video,
|
|
46
|
+
[MESSAGE_TYPE.CUSTOM_EXPRESSION]: customExpression,
|
|
47
|
+
[MESSAGE_TYPE.LOCATION]: location,
|
|
48
|
+
[MESSAGE_TYPE.URL]: url,
|
|
49
|
+
[MESSAGE_TYPE.URLNew]: fileUrl,
|
|
50
|
+
[MESSAGE_TYPE.CALLING]: calling,
|
|
51
|
+
[MESSAGE_TYPE.REAL_TIME_POSITION]: realTimePosition,
|
|
52
|
+
[MESSAGE_TYPE.RED_ENVELOPES]: redEnvelopes,
|
|
53
|
+
[MESSAGE_TYPE.ACCOUNT_TRANSFER]: transfer,
|
|
54
|
+
[MESSAGE_TYPE.SYSTEM]: system,
|
|
55
|
+
[MESSAGE_TYPE.JX_SYS_TEXT]: jxSysText,
|
|
56
|
+
[MESSAGE_TYPE.MEMBER_CHANGE]: memberChange,
|
|
57
|
+
[MESSAGE_TYPE.SYSTEM_MONEY]: systemMoney,
|
|
58
|
+
[MESSAGE_TYPE.TEXT_WITH_AT]: textWithAt,
|
|
59
|
+
[MESSAGE_TYPE.QUOTE_MESSAGE]: quoteMessage,
|
|
60
|
+
[MESSAGE_TYPE.CHANNEL_VIDEO]: channelVideo,
|
|
61
|
+
[MESSAGE_TYPE.CHANNEL_VIDEO_CARD]: channelVideoCard, // 视频号名片
|
|
62
|
+
[MESSAGE_TYPE.CHANNEL_VIDEO_LIVE]: channelLive, // 视频号直播
|
|
63
|
+
[MESSAGE_TYPE.SYSTEM_BATCH_MESSAGE]: systemBatchMessage,
|
|
64
|
+
[MESSAGE_TYPE.REVOKE_ME_MESSAGE]: revokeMeMessage,
|
|
65
|
+
[MESSAGE_TYPE.REVOKE_OTHER_MESSAGE]: revokeOtherMessage,
|
|
66
|
+
[MESSAGE_TYPE.REVOKE_YOU_MESSAGE]: revokeYouMessage
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
text,
|
|
71
|
+
image,
|
|
72
|
+
voice,
|
|
73
|
+
shareCard,
|
|
74
|
+
video,
|
|
75
|
+
customExpression,
|
|
76
|
+
location,
|
|
77
|
+
fileUrl,
|
|
78
|
+
url,
|
|
79
|
+
calling,
|
|
80
|
+
roomCalling,
|
|
81
|
+
companyCard,
|
|
82
|
+
realTimePosition,
|
|
83
|
+
redEnvelopes,
|
|
84
|
+
system,
|
|
85
|
+
systemBatchMessage,
|
|
86
|
+
jxSysText,
|
|
87
|
+
memberChange,
|
|
88
|
+
systemMoney,
|
|
89
|
+
textWithAt,
|
|
90
|
+
quoteMessage,
|
|
91
|
+
channelVideo, // 视频号
|
|
92
|
+
channelVideoCard,
|
|
93
|
+
channelLive, // 视频号直播
|
|
94
|
+
music,
|
|
95
|
+
transfer,
|
|
96
|
+
empty,
|
|
97
|
+
unknow,
|
|
98
|
+
revokeMeMessage,
|
|
99
|
+
revokeOtherMessage,
|
|
100
|
+
revokeYouMessage,
|
|
101
|
+
WechatChatControlConfig,
|
|
102
|
+
WechatChatControlConfigMsg,
|
|
103
|
+
WechatChatControlConfigItem
|
|
104
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<div class="sdk-chat-control-jx-system-text">
|
|
4
|
+
{{ content }}
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
<script>
|
|
8
|
+
export default {
|
|
9
|
+
name: 'SdkChatControlJxSystemText',
|
|
10
|
+
props: {
|
|
11
|
+
id: {
|
|
12
|
+
type: String
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
type: String
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
<style lang="less">
|
|
21
|
+
.sdk-chat-control-jx-system-text{
|
|
22
|
+
text-align: center;
|
|
23
|
+
color: #999;
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: 12px;
|
|
27
|
+
}
|
|
28
|
+
</style>
|