@fmdeui/fmui 1.0.21 → 1.0.23
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/es/packages/router/backEnd.mjs +9 -1
- package/es/packages/utils/request.mjs +39 -1
- package/es/packages/utils/signalR.mjs +43 -39
- package/es/utils/signalR.d.ts +6 -2
- package/index.js +94 -44
- package/index.min.js +4 -4
- package/index.min.mjs +4 -4
- package/index.mjs +94 -44
- package/lib/packages/router/backEnd.js +9 -1
- package/lib/packages/utils/request.js +38 -0
- package/lib/packages/utils/signalR.js +43 -39
- package/lib/utils/signalR.d.ts +6 -2
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{defaults.css → component.css} +0 -0
- /package/lib/{make-installer.css → version.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.23 */
|
|
2
2
|
import { createPinia, defineStore, storeToRefs } from 'pinia';
|
|
3
3
|
import CryptoJS from 'crypto-js';
|
|
4
4
|
import XLSXS from 'xlsx-js-style';
|
|
@@ -1259,9 +1259,35 @@ const clearTokens = () => {
|
|
|
1259
1259
|
Session.clear();
|
|
1260
1260
|
};
|
|
1261
1261
|
const axiosInstance = axios;
|
|
1262
|
+
let loadingCount = 0;
|
|
1263
|
+
let loadingInstance = null;
|
|
1264
|
+
function startLoading() {
|
|
1265
|
+
if (loadingCount === 0) {
|
|
1266
|
+
loadingInstance = ElLoading.service({
|
|
1267
|
+
lock: true,
|
|
1268
|
+
text: "\u52A0\u8F7D\u4E2D...",
|
|
1269
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
loadingCount++;
|
|
1273
|
+
}
|
|
1274
|
+
function endLoading() {
|
|
1275
|
+
if (loadingCount <= 0) return;
|
|
1276
|
+
loadingCount--;
|
|
1277
|
+
if (loadingCount === 0 && loadingInstance) {
|
|
1278
|
+
setTimeout(() => {
|
|
1279
|
+
loadingInstance == null ? void 0 : loadingInstance.close();
|
|
1280
|
+
loadingInstance = null;
|
|
1281
|
+
}, 200);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1262
1284
|
service.interceptors.request.use(
|
|
1263
1285
|
(config) => {
|
|
1264
1286
|
var _a;
|
|
1287
|
+
const customConfig = config;
|
|
1288
|
+
if (customConfig.loading) {
|
|
1289
|
+
startLoading();
|
|
1290
|
+
}
|
|
1265
1291
|
const controller = new AbortController();
|
|
1266
1292
|
config.signal = controller.signal;
|
|
1267
1293
|
const url = config.url || "";
|
|
@@ -1287,11 +1313,19 @@ service.interceptors.request.use(
|
|
|
1287
1313
|
return config;
|
|
1288
1314
|
},
|
|
1289
1315
|
(error) => {
|
|
1316
|
+
const customConfig = error.config;
|
|
1317
|
+
if ((customConfig == null ? void 0 : customConfig.loading) === true) {
|
|
1318
|
+
endLoading();
|
|
1319
|
+
}
|
|
1290
1320
|
return Promise.reject(error);
|
|
1291
1321
|
}
|
|
1292
1322
|
);
|
|
1293
1323
|
service.interceptors.response.use(
|
|
1294
1324
|
(res) => {
|
|
1325
|
+
const customConfig = res.config;
|
|
1326
|
+
if (customConfig.loading === true) {
|
|
1327
|
+
endLoading();
|
|
1328
|
+
}
|
|
1295
1329
|
const url = res.config.url || "";
|
|
1296
1330
|
abortControllerMap.delete(url);
|
|
1297
1331
|
var status = res.status;
|
|
@@ -1325,6 +1359,10 @@ service.interceptors.response.use(
|
|
|
1325
1359
|
return res;
|
|
1326
1360
|
},
|
|
1327
1361
|
(error) => {
|
|
1362
|
+
const customConfig = error.config;
|
|
1363
|
+
if (customConfig.loading === true) {
|
|
1364
|
+
endLoading();
|
|
1365
|
+
}
|
|
1328
1366
|
if (error.response) {
|
|
1329
1367
|
if (error.response.status === 401) {
|
|
1330
1368
|
clearAccessTokens();
|
|
@@ -1648,51 +1686,55 @@ function judgementIdCard(idCard) {
|
|
|
1648
1686
|
return entity;
|
|
1649
1687
|
}
|
|
1650
1688
|
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
connection.
|
|
1658
|
-
connection.
|
|
1659
|
-
|
|
1660
|
-
connection.onclose(async () => {
|
|
1661
|
-
});
|
|
1662
|
-
connection.onreconnecting(() => {
|
|
1663
|
-
ElNotification({
|
|
1664
|
-
title: "\u63D0\u793A",
|
|
1665
|
-
message: "\u8FDE\u63A5\u5DF2\u65AD\u5F00 >>>>>",
|
|
1666
|
-
type: "error",
|
|
1667
|
-
position: "bottom-right"
|
|
1689
|
+
if (!window.__SIGNALR_INSTANCE__) {
|
|
1690
|
+
const connection = new SignalR.HubConnectionBuilder().configureLogging(SignalR.LogLevel.Warning).withUrl(`${window.__env__.VITE_API_URL}/hubs/onlineUser?token=${getToken()}`, { transport: SignalR.HttpTransportType.WebSockets, skipNegotiation: true }).withAutomaticReconnect({
|
|
1691
|
+
nextRetryDelayInMilliseconds: () => {
|
|
1692
|
+
return 5e3;
|
|
1693
|
+
}
|
|
1694
|
+
}).build();
|
|
1695
|
+
connection.keepAliveIntervalInMilliseconds = 15 * 1e3;
|
|
1696
|
+
connection.serverTimeoutInMilliseconds = 30 * 1e3;
|
|
1697
|
+
connection.start().then(() => {
|
|
1668
1698
|
});
|
|
1669
|
-
|
|
1670
|
-
connection.onreconnected(() => {
|
|
1671
|
-
ElNotification({
|
|
1672
|
-
title: "\u63D0\u793A",
|
|
1673
|
-
message: "\u8FDE\u63A5\u5DF2\u6062\u590D >>>>>",
|
|
1674
|
-
type: "success",
|
|
1675
|
-
position: "bottom-right"
|
|
1699
|
+
connection.onclose(async () => {
|
|
1676
1700
|
});
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
title: `${message.title}`,
|
|
1685
|
-
message: tmpMsg,
|
|
1686
|
-
type: message.messageType.toString().toLowerCase(),
|
|
1687
|
-
position: "top-right",
|
|
1688
|
-
dangerouslyUseHTMLString: true,
|
|
1689
|
-
duration: 5e3
|
|
1701
|
+
connection.onreconnecting(() => {
|
|
1702
|
+
ElNotification({
|
|
1703
|
+
title: "\u63D0\u793A",
|
|
1704
|
+
message: "\u8FDE\u63A5\u5DF2\u65AD\u5F00 >>>>>",
|
|
1705
|
+
type: "error",
|
|
1706
|
+
position: "bottom-right"
|
|
1707
|
+
});
|
|
1690
1708
|
});
|
|
1691
|
-
|
|
1709
|
+
connection.onreconnected(() => {
|
|
1710
|
+
ElNotification({
|
|
1711
|
+
title: "\u63D0\u793A",
|
|
1712
|
+
message: "\u8FDE\u63A5\u5DF2\u6062\u590D >>>>>",
|
|
1713
|
+
type: "success",
|
|
1714
|
+
position: "bottom-right"
|
|
1715
|
+
});
|
|
1716
|
+
});
|
|
1717
|
+
connection.on("OnlineUserList", () => {
|
|
1718
|
+
});
|
|
1719
|
+
connection.on("ReceiveMessage", (message) => {
|
|
1720
|
+
var tmpMsg = `<div style="white-space: pre-wrap;">${message.message}<div><br/>`;
|
|
1721
|
+
tmpMsg += `<p style="color:#808080; font-size:10px;float:right"> ${message.sendUserName} ${message.sendTime}<p>`;
|
|
1722
|
+
ElNotification({
|
|
1723
|
+
title: `${message.title}`,
|
|
1724
|
+
message: tmpMsg,
|
|
1725
|
+
type: message.messageType.toString().toLowerCase(),
|
|
1726
|
+
position: "top-right",
|
|
1727
|
+
dangerouslyUseHTMLString: true,
|
|
1728
|
+
duration: 5e3
|
|
1729
|
+
});
|
|
1730
|
+
});
|
|
1731
|
+
window.__SIGNALR_INSTANCE__ = connection;
|
|
1732
|
+
}
|
|
1733
|
+
const signalR$1 = window.__SIGNALR_INSTANCE__;
|
|
1692
1734
|
|
|
1693
|
-
var signalR$
|
|
1735
|
+
var signalR$2 = /*#__PURE__*/Object.freeze({
|
|
1694
1736
|
__proto__: null,
|
|
1695
|
-
signalR:
|
|
1737
|
+
signalR: signalR$1
|
|
1696
1738
|
});
|
|
1697
1739
|
|
|
1698
1740
|
const setWatermark = (str) => {
|
|
@@ -18755,7 +18797,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
18755
18797
|
let signalR;
|
|
18756
18798
|
async function loadSignalR() {
|
|
18757
18799
|
if (!signalR) {
|
|
18758
|
-
const module = await Promise.resolve().then(function () { return signalR$
|
|
18800
|
+
const module = await Promise.resolve().then(function () { return signalR$2; });
|
|
18759
18801
|
signalR = module.signalR;
|
|
18760
18802
|
}
|
|
18761
18803
|
return signalR;
|
|
@@ -22820,7 +22862,15 @@ function backEndComponent(routes) {
|
|
|
22820
22862
|
function dynamicImport(dynamicViewsModules2, component) {
|
|
22821
22863
|
const keys = Object.keys(dynamicViewsModules2);
|
|
22822
22864
|
const matchKeys = keys.filter((key) => {
|
|
22823
|
-
const
|
|
22865
|
+
const REMOVE_PREFIXES = [
|
|
22866
|
+
"../../../../packages/fmasyspage/views",
|
|
22867
|
+
"../../../../packages/fmwlpage/views",
|
|
22868
|
+
"../../../../packages/fmreliefpage/views",
|
|
22869
|
+
"../views",
|
|
22870
|
+
"./views",
|
|
22871
|
+
".."
|
|
22872
|
+
].map((p) => p.replace(/\./g, "\\.").replace(/\//g, "\\/")).join("|");
|
|
22873
|
+
const k = key.replace(new RegExp(`^(${REMOVE_PREFIXES})/?`), "/");
|
|
22824
22874
|
return k.startsWith(`${component}`) || k.startsWith(`/${component}`);
|
|
22825
22875
|
});
|
|
22826
22876
|
if ((matchKeys == null ? void 0 : matchKeys.length) === 1) {
|
|
@@ -23012,4 +23062,4 @@ const version = "1.0.0";
|
|
|
23012
23062
|
const commonFun = commonFunction();
|
|
23013
23063
|
const install = installer.install;
|
|
23014
23064
|
|
|
23015
|
-
export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initIdleTimeout, initRouter, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, router, saulVModel, service, setCssCdn, setDynamicViewsModules, setIntroduction, setJsCdn, setPathPrefix, setupI18n,
|
|
23065
|
+
export { AccountTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFun, commonFunction, configureRoutes, dataURLtoBlob, decryptJWT, installer as default, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getHeader, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initBackEndControlRoutes, initFrontEndControlRoutes, initIdleTimeout, initRouter, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, posId, posName, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, roles, router, saulVModel, service, setCssCdn, setDynamicViewsModules, setIntroduction, setJsCdn, setPathPrefix, setupI18n, signalR$1 as signalR, signatureByKSort, sleep, staticRoutes, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
|
@@ -80,7 +80,15 @@ function backEndComponent(routes) {
|
|
|
80
80
|
function dynamicImport(dynamicViewsModules2, component) {
|
|
81
81
|
const keys = Object.keys(dynamicViewsModules2);
|
|
82
82
|
const matchKeys = keys.filter((key) => {
|
|
83
|
-
const
|
|
83
|
+
const REMOVE_PREFIXES = [
|
|
84
|
+
"../../../../packages/fmasyspage/views",
|
|
85
|
+
"../../../../packages/fmwlpage/views",
|
|
86
|
+
"../../../../packages/fmreliefpage/views",
|
|
87
|
+
"../views",
|
|
88
|
+
"./views",
|
|
89
|
+
".."
|
|
90
|
+
].map((p) => p.replace(/\./g, "\\.").replace(/\//g, "\\/")).join("|");
|
|
91
|
+
const k = key.replace(new RegExp(`^(${REMOVE_PREFIXES})/?`), "/");
|
|
84
92
|
return k.startsWith(`${component}`) || k.startsWith(`/${component}`);
|
|
85
93
|
});
|
|
86
94
|
if ((matchKeys == null ? void 0 : matchKeys.length) === 1) {
|
|
@@ -35,9 +35,35 @@ const clearTokens = () => {
|
|
|
35
35
|
storage.Session.clear();
|
|
36
36
|
};
|
|
37
37
|
const axiosInstance = axios;
|
|
38
|
+
let loadingCount = 0;
|
|
39
|
+
let loadingInstance = null;
|
|
40
|
+
function startLoading() {
|
|
41
|
+
if (loadingCount === 0) {
|
|
42
|
+
loadingInstance = elementPlus.ElLoading.service({
|
|
43
|
+
lock: true,
|
|
44
|
+
text: "\u52A0\u8F7D\u4E2D...",
|
|
45
|
+
background: "rgba(0, 0, 0, 0.7)"
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
loadingCount++;
|
|
49
|
+
}
|
|
50
|
+
function endLoading() {
|
|
51
|
+
if (loadingCount <= 0) return;
|
|
52
|
+
loadingCount--;
|
|
53
|
+
if (loadingCount === 0 && loadingInstance) {
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
loadingInstance == null ? void 0 : loadingInstance.close();
|
|
56
|
+
loadingInstance = null;
|
|
57
|
+
}, 200);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
38
60
|
service.interceptors.request.use(
|
|
39
61
|
(config) => {
|
|
40
62
|
var _a;
|
|
63
|
+
const customConfig = config;
|
|
64
|
+
if (customConfig.loading) {
|
|
65
|
+
startLoading();
|
|
66
|
+
}
|
|
41
67
|
const controller = new AbortController();
|
|
42
68
|
config.signal = controller.signal;
|
|
43
69
|
const url = config.url || "";
|
|
@@ -63,11 +89,19 @@ service.interceptors.request.use(
|
|
|
63
89
|
return config;
|
|
64
90
|
},
|
|
65
91
|
(error) => {
|
|
92
|
+
const customConfig = error.config;
|
|
93
|
+
if ((customConfig == null ? void 0 : customConfig.loading) === true) {
|
|
94
|
+
endLoading();
|
|
95
|
+
}
|
|
66
96
|
return Promise.reject(error);
|
|
67
97
|
}
|
|
68
98
|
);
|
|
69
99
|
service.interceptors.response.use(
|
|
70
100
|
(res) => {
|
|
101
|
+
const customConfig = res.config;
|
|
102
|
+
if (customConfig.loading === true) {
|
|
103
|
+
endLoading();
|
|
104
|
+
}
|
|
71
105
|
const url = res.config.url || "";
|
|
72
106
|
abortControllerMap.delete(url);
|
|
73
107
|
var status = res.status;
|
|
@@ -101,6 +135,10 @@ service.interceptors.response.use(
|
|
|
101
135
|
return res;
|
|
102
136
|
},
|
|
103
137
|
(error) => {
|
|
138
|
+
const customConfig = error.config;
|
|
139
|
+
if (customConfig.loading === true) {
|
|
140
|
+
endLoading();
|
|
141
|
+
}
|
|
104
142
|
if (error.response) {
|
|
105
143
|
if (error.response.status === 401) {
|
|
106
144
|
clearAccessTokens();
|
|
@@ -23,46 +23,50 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
|
|
24
24
|
var SignalR__namespace = /*#__PURE__*/_interopNamespaceDefault(SignalR);
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
connection.
|
|
33
|
-
connection.
|
|
34
|
-
|
|
35
|
-
connection.onclose(async () => {
|
|
36
|
-
});
|
|
37
|
-
connection.onreconnecting(() => {
|
|
38
|
-
elementPlus.ElNotification({
|
|
39
|
-
title: "\u63D0\u793A",
|
|
40
|
-
message: "\u8FDE\u63A5\u5DF2\u65AD\u5F00 >>>>>",
|
|
41
|
-
type: "error",
|
|
42
|
-
position: "bottom-right"
|
|
26
|
+
if (!window.__SIGNALR_INSTANCE__) {
|
|
27
|
+
const connection = new SignalR__namespace.HubConnectionBuilder().configureLogging(SignalR__namespace.LogLevel.Warning).withUrl(`${window.__env__.VITE_API_URL}/hubs/onlineUser?token=${request.getToken()}`, { transport: SignalR__namespace.HttpTransportType.WebSockets, skipNegotiation: true }).withAutomaticReconnect({
|
|
28
|
+
nextRetryDelayInMilliseconds: () => {
|
|
29
|
+
return 5e3;
|
|
30
|
+
}
|
|
31
|
+
}).build();
|
|
32
|
+
connection.keepAliveIntervalInMilliseconds = 15 * 1e3;
|
|
33
|
+
connection.serverTimeoutInMilliseconds = 30 * 1e3;
|
|
34
|
+
connection.start().then(() => {
|
|
43
35
|
});
|
|
44
|
-
|
|
45
|
-
connection.onreconnected(() => {
|
|
46
|
-
elementPlus.ElNotification({
|
|
47
|
-
title: "\u63D0\u793A",
|
|
48
|
-
message: "\u8FDE\u63A5\u5DF2\u6062\u590D >>>>>",
|
|
49
|
-
type: "success",
|
|
50
|
-
position: "bottom-right"
|
|
36
|
+
connection.onclose(async () => {
|
|
51
37
|
});
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
title: `${message.title}`,
|
|
60
|
-
message: tmpMsg,
|
|
61
|
-
type: message.messageType.toString().toLowerCase(),
|
|
62
|
-
position: "top-right",
|
|
63
|
-
dangerouslyUseHTMLString: true,
|
|
64
|
-
duration: 5e3
|
|
38
|
+
connection.onreconnecting(() => {
|
|
39
|
+
elementPlus.ElNotification({
|
|
40
|
+
title: "\u63D0\u793A",
|
|
41
|
+
message: "\u8FDE\u63A5\u5DF2\u65AD\u5F00 >>>>>",
|
|
42
|
+
type: "error",
|
|
43
|
+
position: "bottom-right"
|
|
44
|
+
});
|
|
65
45
|
});
|
|
66
|
-
|
|
46
|
+
connection.onreconnected(() => {
|
|
47
|
+
elementPlus.ElNotification({
|
|
48
|
+
title: "\u63D0\u793A",
|
|
49
|
+
message: "\u8FDE\u63A5\u5DF2\u6062\u590D >>>>>",
|
|
50
|
+
type: "success",
|
|
51
|
+
position: "bottom-right"
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
connection.on("OnlineUserList", () => {
|
|
55
|
+
});
|
|
56
|
+
connection.on("ReceiveMessage", (message) => {
|
|
57
|
+
var tmpMsg = `<div style="white-space: pre-wrap;">${message.message}<div><br/>`;
|
|
58
|
+
tmpMsg += `<p style="color:#808080; font-size:10px;float:right"> ${message.sendUserName} ${message.sendTime}<p>`;
|
|
59
|
+
elementPlus.ElNotification({
|
|
60
|
+
title: `${message.title}`,
|
|
61
|
+
message: tmpMsg,
|
|
62
|
+
type: message.messageType.toString().toLowerCase(),
|
|
63
|
+
position: "top-right",
|
|
64
|
+
dangerouslyUseHTMLString: true,
|
|
65
|
+
duration: 5e3
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
window.__SIGNALR_INSTANCE__ = connection;
|
|
69
|
+
}
|
|
70
|
+
const signalR = window.__SIGNALR_INSTANCE__;
|
|
67
71
|
|
|
68
|
-
exports.signalR =
|
|
72
|
+
exports.signalR = signalR;
|
package/lib/utils/signalR.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import * as SignalR from '@microsoft/signalr';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
export declare const signalR: SignalR.HubConnection;
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
__SIGNALR_INSTANCE__: SignalR.HubConnection;
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.23 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|
package/locale/en.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.23 */var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};export{e as default};
|
package/locale/en.mjs
CHANGED
package/locale/zh-cn.js
CHANGED
package/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.23 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.fmdeuiPlusLocaleZhCn=e())})(this,(function(){"use strict";var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};return u}));
|
package/locale/zh-cn.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.23 */var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};export{u as default};
|
package/locale/zh-cn.mjs
CHANGED
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|