mdm-im-v3 2.0.1 → 2.0.2
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/CHANGELOG.md +6 -1
- package/dist/{FilePreview-DdtQxMbG.js → FilePreview-u-aYsWSs.js} +2 -2
- package/dist/core.es.js +2 -2
- package/dist/{index-szNAIRJh.js → index-Bn5zFiV_.js} +2 -2
- package/dist/{index-Bb8V05H4.js → index-D8yaC3ve.js} +30 -16
- package/dist/{index-Bi1CnpxN.js → index-HUSyWSoO.js} +524 -454
- package/dist/index.es.js +1 -1
- package/dist/style/index.css +1 -1
- package/package.json +1 -1
- package/dist/assets/extracted/361513b3.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { reactive, computed, ref, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, unref, createElementVNode, withModifiers, toDisplayString, createCommentVNode, normalizeStyle, createBlock, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { DocumentDelete, ZoomOut, ZoomIn } from "@element-plus/icons-vue";
|
|
3
|
-
import { u as useChatStore } from "./index-
|
|
3
|
+
import { u as useChatStore } from "./index-D8yaC3ve.js";
|
|
4
4
|
import axios from "axios";
|
|
5
|
-
import { _ as _export_sfc } from "./index-
|
|
5
|
+
import { _ as _export_sfc } from "./index-HUSyWSoO.js";
|
|
6
6
|
const _hoisted_1 = { class: "file-preview-box" };
|
|
7
7
|
const _hoisted_2 = {
|
|
8
8
|
key: 0,
|
package/dist/core.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { computed, reactive, ref, onBeforeMount, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderList, unref, createBlock, withCtx, createElementVNode, createVNode, createSlots, toDisplayString, withModifiers, createCommentVNode, inject, shallowRef, onBeforeUnmount, renderSlot, normalizeClass, normalizeStyle, Teleport, nextTick } from "vue";
|
|
2
|
-
import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-
|
|
2
|
+
import { _ as _export_sfc, u as uploadFiles, a as _imports_0 } from "./index-HUSyWSoO.js";
|
|
3
3
|
import { ElMessage } from "element-plus";
|
|
4
4
|
import { Promotion } from "@element-plus/icons-vue";
|
|
5
5
|
import { E as Editor } from "./wangeditor-3yO_BGRp.js";
|
|
6
|
-
import { u as useChatStore, I as IM_CVS_TYPE, t as throttle, j as debounce,
|
|
6
|
+
import { u as useChatStore, I as IM_CVS_TYPE, t as throttle, j as debounce, L as IM_FONT_SIZE, M as IM_FONT_FAMILY, N as IM_FONT_STYLE, O as formatFileSize, P as getMediaDuration } from "./index-D8yaC3ve.js";
|
|
7
7
|
const icons = [
|
|
8
8
|
{
|
|
9
9
|
title: "表情",
|
|
@@ -36188,7 +36188,7 @@ ref([]);
|
|
|
36188
36188
|
const useConversations = () => {
|
|
36189
36189
|
const chatMessage = useChatStore();
|
|
36190
36190
|
const baseUrl = chatMessage.getBaseUrl;
|
|
36191
|
-
const
|
|
36191
|
+
const handleUrl2 = (url, cvsType) => {
|
|
36192
36192
|
if (!url) return "";
|
|
36193
36193
|
if (url.startsWith("data:image")) return url;
|
|
36194
36194
|
if (/^\/9j\//.test(url)) return `data:image/jpeg;base64,${url}`;
|
|
@@ -36225,7 +36225,7 @@ const useConversations = () => {
|
|
|
36225
36225
|
latestMsgSendTimeStr: handleDate(item.latestMsgSendTime),
|
|
36226
36226
|
isNotInGroup: !item.latestMsg,
|
|
36227
36227
|
isSelfMuted,
|
|
36228
|
-
faceURL:
|
|
36228
|
+
faceURL: handleUrl2(item.faceURL, item.conversationType),
|
|
36229
36229
|
pinyinName: toPinyin(item.showName)
|
|
36230
36230
|
};
|
|
36231
36231
|
};
|
|
@@ -36509,6 +36509,19 @@ const getReplyDetail = (msg, type = "reply") => {
|
|
|
36509
36509
|
const labelFn = MSG_TYPE_LABELS[contentType];
|
|
36510
36510
|
return prefixMap[type] + (labelFn ? labelFn(msg) : "[消息]");
|
|
36511
36511
|
};
|
|
36512
|
+
const handleUrl = (url, baseUrl) => {
|
|
36513
|
+
if (!url) return "";
|
|
36514
|
+
if (url.startsWith("data:image")) return url;
|
|
36515
|
+
if (/^\/9j\//.test(url)) return `data:image/jpeg;base64,${url}`;
|
|
36516
|
+
if (/^iVBORw0KGgo/.test(url)) return `data:image/png;base64,${url}`;
|
|
36517
|
+
if (/^R0lGOD/.test(url)) return `data:image/gif;base64,${url}`;
|
|
36518
|
+
if (url.indexOf("default_avatar") > -1 || url.indexOf("chat-group") > -1) {
|
|
36519
|
+
return url;
|
|
36520
|
+
}
|
|
36521
|
+
let newUrl = url.replace("/api/v1/common/reviewFile/", "/api/v1/auth/reviewFile/");
|
|
36522
|
+
if ((newUrl == null ? void 0 : newUrl.indexOf("http")) === 0) return newUrl;
|
|
36523
|
+
return baseUrl ? `${baseUrl}${newUrl}` : newUrl;
|
|
36524
|
+
};
|
|
36512
36525
|
const copyToClipboard = async (text) => {
|
|
36513
36526
|
var _a;
|
|
36514
36527
|
try {
|
|
@@ -37372,21 +37385,22 @@ const useMessage = (config = {}) => {
|
|
|
37372
37385
|
};
|
|
37373
37386
|
};
|
|
37374
37387
|
export {
|
|
37375
|
-
|
|
37376
|
-
|
|
37377
|
-
|
|
37378
|
-
|
|
37388
|
+
GROUP_APPLICATION_STATUS as A,
|
|
37389
|
+
useMessage as B,
|
|
37390
|
+
useUsers as C,
|
|
37391
|
+
useConversations as D,
|
|
37379
37392
|
EXIT_CODE as E,
|
|
37380
|
-
|
|
37393
|
+
mittBus as F,
|
|
37381
37394
|
GROUP_JOIN_SOURCE as G,
|
|
37382
|
-
|
|
37395
|
+
IM_LOGIN_STATUS as H,
|
|
37383
37396
|
IM_CVS_TYPE as I,
|
|
37384
|
-
|
|
37385
|
-
|
|
37386
|
-
|
|
37387
|
-
|
|
37388
|
-
|
|
37389
|
-
|
|
37397
|
+
uuidv4 as J,
|
|
37398
|
+
GROUP_VERIFICATION_TYPE as K,
|
|
37399
|
+
IM_FONT_SIZE as L,
|
|
37400
|
+
IM_FONT_FAMILY as M,
|
|
37401
|
+
IM_FONT_STYLE as N,
|
|
37402
|
+
formatFileSize as O,
|
|
37403
|
+
getMediaDuration as P,
|
|
37390
37404
|
getGroupAvatarBg as a,
|
|
37391
37405
|
getAvatarBg as b,
|
|
37392
37406
|
getAvatarText as c,
|
|
@@ -37411,6 +37425,6 @@ export {
|
|
|
37411
37425
|
getJsonDetail as v,
|
|
37412
37426
|
getSelectionText as w,
|
|
37413
37427
|
createCvsId as x,
|
|
37414
|
-
|
|
37415
|
-
|
|
37428
|
+
handleUrl as y,
|
|
37429
|
+
handleDate as z
|
|
37416
37430
|
};
|