From f9a203f6db1a5a4203a248c05a874c115ded228d Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 4 Nov 2024 16:55:08 +0800 Subject: [PATCH] 3.4.31 --- common/baseStyle.scss | 2 +- common/config.js | 9 +- .../uni-im-chat-input/uni-im-chat-input.vue | 79 +- .../uni-im-choose-user/uni-im-choose-user.vue | 126 ++ .../uni-im-conversation-list/changeMute.js | 19 - .../uni-im-conversation-list.vue | 166 ++- .../uni-im-conversation.vue | 11 +- components/uni-im-editor/uni-im-editor.vue | 290 ++-- .../uni-im-friendly-time.vue | 68 + .../uni-im-group-notification.vue | 3 +- components/uni-im-icons/uni-im-icons.vue | 2 +- components/uni-im-img/uni-im-img.vue | 38 +- .../uni-im-info-card/uni-im-info-card.vue | 39 +- .../uni-im-member-list/uni-im-member-list.vue | 286 ++++ .../filter-contorl/filter-contorl.vue | 65 + .../uni-im-list-item/uni-im-list-item.vue | 29 - .../uni-im-msg-list/uni-im-msg-list.vue | 282 ++-- components/uni-im-msg/popup-control.vue | 137 +- components/uni-im-msg/types/encryption.vue | 38 + components/uni-im-msg/types/file.vue | 52 +- components/uni-im-msg/types/history.vue | 44 +- components/uni-im-msg/types/order.vue | 159 ++ components/uni-im-msg/types/pay-notify.vue | 84 ++ components/uni-im-msg/types/rich-text.vue | 326 +++-- components/uni-im-msg/types/sound.vue | 166 +-- components/uni-im-msg/types/system.vue | 88 +- components/uni-im-msg/types/text.vue | 104 +- components/uni-im-msg/types/userinfo-card.vue | 8 +- components/uni-im-msg/types/video.vue | 71 +- components/uni-im-msg/uni-im-msg.vue | 284 ++-- .../uni-im-share-msg/uni-im-share-msg.vue | 27 +- components/uni-im-sound/uni-im-sound.vue | 2 +- .../uni-im-view-msg/uni-im-view-msg.vue | 109 +- package.json | 2 +- pages/chat/chat-filtered.vue | 104 +- pages/chat/chat.vue | 697 +++------ .../{cmp => components}/chat-fragment.vue | 0 pages/chat/emojiCodes.js | 1 - pages/chat/info.vue | 19 +- pages/common/video/video.vue | 5 +- .../common/view-code-page/view-code-page.vue | 4 +- .../addPeopleGroups/addPeopleGroups.vue | 35 +- pages/contacts/contacts.vue | 2 +- pages/contacts/createGroup/createGroup.vue | 61 +- pages/contacts/groupList/groupList.vue | 23 +- pages/contacts/notification/action.js | 4 +- pages/contacts/notification/notification.vue | 6 +- pages/group/info.vue | 200 +-- pages/group/members.vue | 265 ++-- pages/group/{groupQRCode.vue => qrCode.vue} | 89 +- pages/index/index.scss | 228 +-- pages/index/index.vue | 264 ++-- pages/userList/userList.vue | 4 +- readme.md | 22 +- sdk/ext/CloudData.class.js | 330 +++++ sdk/ext/MsgManager.class.js | 640 --------- sdk/ext/indexDB.js | 4 +- sdk/init/clearData.js | 18 +- sdk/init/getCloudMsg.js | 414 +++--- sdk/init/imData.js | 167 ++- sdk/init/index.js | 137 +- sdk/init/msgEvent.js | 34 +- sdk/init/onNotification.js | 42 +- sdk/methods/conversation/index.js | 275 ---- sdk/methods/extensions.js | 2 +- sdk/methods/friend.js | 7 +- sdk/methods/group.js | 92 -- sdk/methods/index.js | 6 - sdk/methods/users.js | 74 +- sdk/state/Conversation.class.js | 274 ++++ .../ConversationItem.class.js} | 282 ++-- sdk/state/Friend.class.js | 39 + sdk/state/Group.class.js | 49 + sdk/state/GroupItem.class.js | 9 + sdk/state/GroupMember.class.js | 68 + sdk/state/MsgItem.class.js | 40 + sdk/state/data.js | 48 +- sdk/state/index.js | 86 +- sdk/state/msg.class.js | 384 +++++ sdk/utils/index.js | 86 +- static/star.png | Bin 0 -> 2722 bytes .../cloudfunctions/common/uni-im-ext/index.js | 14 +- .../uni-im-utils/SymmetricEncryption.class.js | 51 + .../common/uni-im-utils/index.js | 25 +- .../cloudfunctions/common/uni-im-utils/md5.js | 195 --- .../common/uni-im-utils/package-lock.json | 13 - .../common/uni-im-utils/package.json | 26 +- .../cloudfunctions/uni-im-co/conversation.js | 158 +- uniCloud/cloudfunctions/uni-im-co/group.js | 123 +- .../cloudfunctions/uni-im-co/index.obj.js | 27 +- uniCloud/cloudfunctions/uni-im-co/msg.js | 1277 +++++++++-------- .../uni-im-co/package-lock.json | 85 -- uniCloud/cloudfunctions/uni-im-co/push.js | 9 +- uniCloud/database/uni-id-users.schema.ext.js | 194 ++- .../database/uni-im-conversation.index.json | 124 +- .../uni-im-conversation.schema.ext.js | 2 +- .../database/uni-im-conversation.schema.json | 12 + uniCloud/database/uni-im-friend.schema.ext.js | 6 +- .../database/uni-im-group-join.schema.ext.js | 376 ++--- .../uni-im-group-member.schema.ext.js | 37 +- .../database/uni-im-group-member.schema.json | 4 + .../database/uni-im-group-type.schema.json | 45 + uniCloud/database/uni-im-group.schema.ext.js | 29 +- uniCloud/database/uni-im-group.schema.json | 5 + uniCloud/database/uni-im-msg.schema.json | 8 + 105 files changed, 6608 insertions(+), 5092 deletions(-) create mode 100644 components/uni-im-choose-user/uni-im-choose-user.vue delete mode 100644 components/uni-im-conversation-list/changeMute.js create mode 100644 components/uni-im-friendly-time/uni-im-friendly-time.vue create mode 100644 components/uni-im-member-list/uni-im-member-list.vue create mode 100644 components/uni-im-msg-list/components/filter-contorl/filter-contorl.vue delete mode 100644 components/uni-im-msg-list/components/uni-im-list-item/uni-im-list-item.vue create mode 100644 components/uni-im-msg/types/encryption.vue create mode 100644 components/uni-im-msg/types/order.vue create mode 100644 components/uni-im-msg/types/pay-notify.vue rename pages/chat/{cmp => components}/chat-fragment.vue (100%) delete mode 100644 pages/chat/emojiCodes.js rename pages/group/{groupQRCode.vue => qrCode.vue} (58%) create mode 100644 sdk/ext/CloudData.class.js delete mode 100644 sdk/ext/MsgManager.class.js delete mode 100644 sdk/methods/conversation/index.js delete mode 100644 sdk/methods/group.js create mode 100644 sdk/state/Conversation.class.js rename sdk/{methods/conversation/Conversation.class.js => state/ConversationItem.class.js} (57%) create mode 100644 sdk/state/Friend.class.js create mode 100644 sdk/state/Group.class.js create mode 100644 sdk/state/GroupItem.class.js create mode 100644 sdk/state/GroupMember.class.js create mode 100644 sdk/state/MsgItem.class.js create mode 100644 sdk/state/msg.class.js create mode 100644 static/star.png create mode 100644 uniCloud/cloudfunctions/common/uni-im-utils/SymmetricEncryption.class.js delete mode 100644 uniCloud/cloudfunctions/common/uni-im-utils/md5.js delete mode 100644 uniCloud/cloudfunctions/common/uni-im-utils/package-lock.json delete mode 100644 uniCloud/cloudfunctions/uni-im-co/package-lock.json create mode 100644 uniCloud/database/uni-im-group-type.schema.json diff --git a/common/baseStyle.scss b/common/baseStyle.scss index 4dfbda4..4b77054 100644 --- a/common/baseStyle.scss +++ b/common/baseStyle.scss @@ -1,6 +1,7 @@ /* #ifdef H5 */ ::v-deep { /* #endif */ + #app, page, view, label @@ -34,7 +35,6 @@ text, textarea, video { - position: relative; box-sizing: border-box; } diff --git a/common/config.js b/common/config.js index 0650fab..39243b1 100644 --- a/common/config.js +++ b/common/config.js @@ -1,4 +1,9 @@ export default { + // 云存储服务商 + cloudFile:{ + // 云存储服务商,支持:aliyun、tencent、qiniu + provider: 'qiniu', + }, uniPush: { // 消息渠道设置,避免被限量推送、静默推送(静音且需下拉系统通知栏才可见通知内容)详情文档:https://doc.dcloud.net.cn/uniCloud/uni-cloud-push/api.html#channel channel:{ @@ -7,5 +12,7 @@ export default { // 消息渠道描述,会显示在手机系统关于当前应用的通知设置中 desc: "客服消息" } - } + }, + // web端绑定的域名,用于生成二维码等 + domain: 'https://im.dcloud.net.cn', } \ No newline at end of file diff --git a/components/uni-im-chat-input/uni-im-chat-input.vue b/components/uni-im-chat-input/uni-im-chat-input.vue index 3d4b5df..a6dd13e 100644 --- a/components/uni-im-chat-input/uni-im-chat-input.vue +++ b/components/uni-im-chat-input/uni-im-chat-input.vue @@ -1,4 +1,4 @@ -