mdm-im-v3 2.1.0 → 2.1.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 +14 -0
- package/dist/{FilePreview-dpnc9m3Z.js → FilePreview-Cz0KMA_m.js} +2 -2
- package/dist/core.es.js +2 -2
- package/dist/{index-CsaYx_7b.js → index-C8koozDu.js} +2 -2
- package/dist/{index-CNxeqkio.js → index-GiaKeCU7.js} +47 -47
- package/dist/{index-D5S79LNp.js → index-P9_HILzo.js} +599 -319
- package/dist/index.es.js +1 -1
- package/dist/style/index.css +1 -1
- package/dist-h5/{ChatHistoryH5-BhrGF5WR.js → ChatHistoryH5-CKDqKPl-.js} +2 -2
- package/dist-h5/{ChatPageH5-B3azJu7O.js → ChatPageH5-FXZxtcQr.js} +3 -3
- package/dist-h5/{ChatSettingsH5-CFr9Bn69.js → ChatSettingsH5-PackrlPt.js} +1 -1
- package/dist-h5/{CreateGroupH5-a16jkObH.js → CreateGroupH5-CO_ZH36_.js} +2 -2
- package/dist-h5/{GroupAnnouncementH5-B-Qfzoy2.js → GroupAnnouncementH5-yUDR5kYW.js} +1 -1
- package/dist-h5/{GroupInfoDialogH5-BHLKs62Z.js → GroupInfoDialogH5-BRk-_mEn.js} +1 -1
- package/dist-h5/{GroupMembersH5-D_f1RFjO.js → GroupMembersH5-BVHUF2mG.js} +1 -1
- package/dist-h5/{GroupNoticeH5-46ZjBe92.js → GroupNoticeH5-KA-L2h9r.js} +1 -1
- package/dist-h5/{MemberDetailH5-B7nlr8ZT.js → MemberDetailH5-BfAE0nx-.js} +2 -2
- package/dist-h5/{SearchPageH5-hYxNItvz.js → SearchPageH5-B6B_U4hW.js} +2 -2
- package/dist-h5/{SelectMembersH5-DQIfX_w4.js → SelectMembersH5-CrPoBnYp.js} +2 -2
- package/dist-h5/{imChat-Bfl2JS8Q.js → imChat-pGlpr8Vj.js} +40 -7
- package/dist-h5/index.es.js +2 -2
- package/dist-h5/{indexH5-DAnvVyZ1.js → indexH5-CCvF1MV7.js} +413 -128
- package/dist-h5/{indexH5-CUQe-Ize.js → indexH5-sKvS7t3k.js} +7 -3
- package/package.json +72 -71
- package/dist-h5/request-CK8gkCRf.js +0 -44
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { computed, ref, watch, onBeforeUnmount, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, withModifiers, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, normalizeClass, normalizeStyle, inject, provide, onMounted, nextTick } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Icon, Badge, PullRefresh, SwipeCell, Loading, Empty, Button, ActionSheet, Cell, showDialog, showToast } from "vant";
|
|
4
|
-
import { u as useChatStore, I as IM_CVS_TYPE, g as getGroupAvatarBg, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, c as cloneDeep, d as getConversationBurnSetting, e as useMessage, f as useUsers, h as useConversations, j as useMsgList, m as mittBus, k as IM_LOGIN_STATUS, p as preserveBurnInEx, l as IM_LOGIN_PLATFORM, s as sleep, n as handleUrl } from "./indexH5-
|
|
4
|
+
import { u as useChatStore, I as IM_CVS_TYPE, g as getGroupAvatarBg, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, c as cloneDeep, d as getConversationBurnSetting, e as useMessage, f as useUsers, h as useConversations, j as useMsgList, m as mittBus, k as IM_LOGIN_STATUS, p as preserveBurnInEx, l as IM_LOGIN_PLATFORM, s as sleep, n as handleUrl } from "./indexH5-CCvF1MV7.js";
|
|
5
5
|
import "element-plus";
|
|
6
|
-
import "./request-CK8gkCRf.js";
|
|
7
6
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
8
|
-
import { J as JoinGroupDialogH5, G as GroupInfoDialogH5 } from "./GroupInfoDialogH5-
|
|
7
|
+
import { J as JoinGroupDialogH5, G as GroupInfoDialogH5 } from "./GroupInfoDialogH5-BRk-_mEn.js";
|
|
9
8
|
const _hoisted_1 = { class: "chat-list-h5" };
|
|
10
9
|
const _hoisted_2 = { key: 0 };
|
|
11
10
|
const _hoisted_3 = { style: { "display": "flex", "align-items": "center", "gap": "20px" } };
|
|
@@ -989,6 +988,11 @@ const _sfc_main = {
|
|
|
989
988
|
}
|
|
990
989
|
chatMessage.setUserInfo({
|
|
991
990
|
userID: obj.loginCode || props.baseConfig.loginCode,
|
|
991
|
+
imIdentityVersion: obj.imIdentityVersion || 1,
|
|
992
|
+
imUserID: obj.imUserID || "",
|
|
993
|
+
tenantID: obj.tenantID || "",
|
|
994
|
+
businessUserID: obj.businessUserID || "",
|
|
995
|
+
loginCode: obj.loginCode || "",
|
|
992
996
|
nickname: obj.userName || props.baseConfig.userName,
|
|
993
997
|
apiUrl: obj.apiUrl || props.baseConfig.apiUrl,
|
|
994
998
|
wsUrl: ((_a = obj.apiUrl) == null ? void 0 : _a.replace(/^http/, "ws")) || ((_b = props.baseConfig.apiUrl) == null ? void 0 : _b.replace(/^http/, "ws")),
|
package/package.json
CHANGED
|
@@ -1,71 +1,72 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mdm-im-v3",
|
|
3
|
-
"version": "2.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"main": "dist/index.es.js",
|
|
6
|
-
"module": "dist/index.es.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"import": "./dist/index.es.js"
|
|
10
|
-
},
|
|
11
|
-
"./core": {
|
|
12
|
-
"import": "./dist/core.es.js"
|
|
13
|
-
},
|
|
14
|
-
"./style/index.css": {
|
|
15
|
-
"import": "./dist/style/index.css"
|
|
16
|
-
},
|
|
17
|
-
"./style/index-h5.css": {
|
|
18
|
-
"import": "./dist-h5/style/index-h5.css"
|
|
19
|
-
},
|
|
20
|
-
"./h5": {
|
|
21
|
-
"import": "./dist-h5/index.es.js"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"dist-h5",
|
|
27
|
-
"README.md",
|
|
28
|
-
"CHANGELOG.md",
|
|
29
|
-
"LICENSE"
|
|
30
|
-
],
|
|
31
|
-
"type": "module",
|
|
32
|
-
"scripts": {
|
|
33
|
-
"dev": "vite",
|
|
34
|
-
"dev:h5": "cross-env VITE_H5=true vite --open /h5.html",
|
|
35
|
-
"build": "vite build && cross-env BUILD_TARGET=h5 vite build",
|
|
36
|
-
"build:h5": "cross-env BUILD_TARGET=h5 vite build",
|
|
37
|
-
"build:pc": "vite build",
|
|
38
|
-
"preview": "vite preview"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"@vue-office/
|
|
43
|
-
"@vue-office/
|
|
44
|
-
"@vue-office/
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"js-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"pinia
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"vue
|
|
70
|
-
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mdm-im-v3",
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "dist/index.es.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.es.js"
|
|
10
|
+
},
|
|
11
|
+
"./core": {
|
|
12
|
+
"import": "./dist/core.es.js"
|
|
13
|
+
},
|
|
14
|
+
"./style/index.css": {
|
|
15
|
+
"import": "./dist/style/index.css"
|
|
16
|
+
},
|
|
17
|
+
"./style/index-h5.css": {
|
|
18
|
+
"import": "./dist-h5/style/index-h5.css"
|
|
19
|
+
},
|
|
20
|
+
"./h5": {
|
|
21
|
+
"import": "./dist-h5/index.es.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"dist-h5",
|
|
27
|
+
"README.md",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"type": "module",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"dev:h5": "cross-env VITE_H5=true vite --open /h5.html",
|
|
35
|
+
"build": "vite build && cross-env BUILD_TARGET=h5 vite build",
|
|
36
|
+
"build:h5": "cross-env BUILD_TARGET=h5 vite build",
|
|
37
|
+
"build:pc": "vite build",
|
|
38
|
+
"preview": "vite preview",
|
|
39
|
+
"test:tenant": "node --test tests/tenant-identity.test.mjs && node --test --import ./tests/register-loader.mjs tests/core-session.test.mjs"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@vue-office/docx": "^1.6.3",
|
|
43
|
+
"@vue-office/excel": "^1.7.14",
|
|
44
|
+
"@vue-office/pdf": "^2.0.10",
|
|
45
|
+
"@vue-office/pptx": "^1.0.1",
|
|
46
|
+
"@wangeditor/editor-for-vue": "5.1.12",
|
|
47
|
+
"dayjs": "^1.11.13",
|
|
48
|
+
"js-audio-recorder": "^1.0.7",
|
|
49
|
+
"js-web-screen-shot": "1.9.9-rc.29",
|
|
50
|
+
"localforage": "^1.10.0",
|
|
51
|
+
"mitt": "^3.0.1",
|
|
52
|
+
"pinyin-pro": "^3.28.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
56
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
57
|
+
"cross-env": "^10.1.0",
|
|
58
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
59
|
+
"vite": "^6.2.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
63
|
+
"axios": "^1.8.4",
|
|
64
|
+
"element-plus": "^2.9.7",
|
|
65
|
+
"pinia": "^3.0.2",
|
|
66
|
+
"pinia-plugin-persist": "^1.0.0",
|
|
67
|
+
"sass": "^1.86.3",
|
|
68
|
+
"vant": "^4.10.0",
|
|
69
|
+
"vue": "^3.5.21",
|
|
70
|
+
"vue-router": "^4.5.0"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import axios from "axios";
|
|
2
|
-
import { ElMessage } from "element-plus";
|
|
3
|
-
import { u as useChatStore, Y as EXIT_CODE } from "./indexH5-DAnvVyZ1.js";
|
|
4
|
-
const requestInstance = axios.create({
|
|
5
|
-
baseURL: "",
|
|
6
|
-
timeout: 6e4,
|
|
7
|
-
withCredentials: true
|
|
8
|
-
// HttpOnly Cookie 认证:自动携带会话 Cookie
|
|
9
|
-
});
|
|
10
|
-
requestInstance.defaults.headers.post["Content-Type"] = "application/json; charset=utf-8";
|
|
11
|
-
requestInstance.interceptors.request.use(
|
|
12
|
-
function(config) {
|
|
13
|
-
config.headers["X-Login-Type"] = "3";
|
|
14
|
-
const chatStore = useChatStore();
|
|
15
|
-
if (chatStore.satoken) {
|
|
16
|
-
config.headers["satoken"] = chatStore.satoken;
|
|
17
|
-
}
|
|
18
|
-
return config;
|
|
19
|
-
},
|
|
20
|
-
function(error) {
|
|
21
|
-
return Promise.reject(error);
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
requestInstance.interceptors.response.use(
|
|
25
|
-
function(response) {
|
|
26
|
-
if ((response == null ? void 0 : response.status) == 200) {
|
|
27
|
-
const code = response == null ? void 0 : response.data.code;
|
|
28
|
-
if (EXIT_CODE.values.includes(code)) {
|
|
29
|
-
if (EXIT_CODE[code] !== "token") {
|
|
30
|
-
ElMessage.error(EXIT_CODE.label[code]);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
} else {
|
|
34
|
-
ElMessage.error("接口出错,请检查网络后重试");
|
|
35
|
-
}
|
|
36
|
-
return response;
|
|
37
|
-
},
|
|
38
|
-
function(error) {
|
|
39
|
-
return Promise.reject(error);
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
export {
|
|
43
|
-
requestInstance as r
|
|
44
|
-
};
|