yxuse 3.0.43 → 3.0.44
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 +4 -2
- package/lib/api.cjs.js +1 -1
- package/lib/api.es.js +1 -1
- package/lib/index.cjs12.js +1 -1
- package/lib/index.cjs12.js.gz +0 -0
- package/lib/index.cjs12.js.map +1 -1
- package/lib/index.cjs13.js +1 -1
- package/lib/index.cjs13.js.map +1 -1
- package/lib/index.cjs2.js +1 -1
- package/lib/index.cjs2.js.map +1 -1
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +5 -5
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs5.js.map +1 -1
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.es12.js +6 -6
- package/lib/index.es12.js.gz +0 -0
- package/lib/index.es12.js.map +1 -1
- package/lib/index.es13.js +20 -230
- package/lib/index.es13.js.map +1 -1
- package/lib/index.es2.js +234 -1
- package/lib/index.es2.js.map +1 -1
- package/lib/index.es3.js +1 -1
- package/lib/index.es4.js +1 -1
- package/lib/index.es5.js +1 -4
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es5.js.map +1 -1
- package/lib/index.es6.js +1 -1
- package/lib/index.es6.js.gz +0 -0
- package/lib/mqtt.min.cjs.js +2 -0
- package/lib/mqtt.min.cjs.js.gz +0 -0
- package/lib/mqtt.min.cjs.js.map +1 -0
- package/lib/mqtt.min.es.js +7066 -0
- package/lib/mqtt.min.es.js.gz +0 -0
- package/lib/mqtt.min.es.js.map +1 -0
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +1 -1
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +1 -0
- package/lib/translate.es.js.map +1 -1
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +4 -2
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +1 -1
- package/package.json +1 -1
- package/types/api/auth/index.d.ts +1 -2
- package/types/utils/index.d.ts +2 -0
- package/types/utils/socket/index.d.ts +36 -0
- package/types/utils/socket/interface.d.ts +16 -0
- package/lib/index.cjs14.js +0 -2
- package/lib/index.cjs14.js.map +0 -1
- package/lib/index.es14.js +0 -23
- package/lib/index.es14.js.map +0 -1
package/lib/theme.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs4.js"),require("vue"),require("./index.cjs12.js"),require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs4.js"),require("vue"),require("./index.cjs12.js"),require("./mqtt.min.cjs.js"),require("element-plus"),require("./index.cjs7.js"),require("./index.cjs11.js"),exports.changeTheme=e.changeTheme,exports.findColorByTheme=e.findColorByTheme,exports.getCurTheme=e.getCurTheme,exports.getCurThemeCssVar=e.getCurThemeCssVar,exports.getDefaultThemeUrl=e.getDefaultThemeUrl,exports.getGroupColor=e.getGroupColor,exports.install=e.install,exports.installCssVarInSystemTheme=e.installCssVarInSystemTheme,exports.saveCssVar=e.saveCssVar,exports.setCssVar=e.setCssVar,exports.updateTheme=e.updateTheme;
|
|
2
2
|
//# sourceMappingURL=theme.cjs.js.map
|
package/lib/theme.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { j, q, n, o, m, p, f, r, s, k, u } from "./index.es5.js";
|
|
|
2
2
|
import "./index.es4.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import "./index.es12.js";
|
|
5
|
-
import "./
|
|
5
|
+
import "./mqtt.min.es.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import "./index.es7.js";
|
|
8
8
|
import "./index.es11.js";
|
package/lib/translate.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs12.js"),require("element-plus"),require("./dayjs.min.cjs.js"),require("vue"),require("./index.cjs7.js"),require("./index.cjs11.js"),exports.changeLang=e.changeLang,exports.getLang=e.getLang,exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus,exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus,exports.handleTranslation=e.handleTranslation,exports.initTranslate=e.initTranslate,exports.loadCustomThesaurus=e.loadCustomThesaurus,exports.whitelistApi=e.whitelistApi;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs5.js");require("./index.cjs12.js"),require("element-plus"),require("./dayjs.min.cjs.js"),require("./mqtt.min.cjs.js"),require("vue"),require("./index.cjs7.js"),require("./index.cjs11.js"),exports.changeLang=e.changeLang,exports.getLang=e.getLang,exports.getWordByYxI18nThesaurus=e.getWordByYxI18nThesaurus,exports.getZhWordByYxI18nThesaurus=e.getZhWordByYxI18nThesaurus,exports.handleTranslation=e.handleTranslation,exports.initTranslate=e.initTranslate,exports.loadCustomThesaurus=e.loadCustomThesaurus,exports.whitelistApi=e.whitelistApi;
|
|
2
2
|
//# sourceMappingURL=translate.cjs.js.map
|
package/lib/translate.es.js
CHANGED
package/lib/translate.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translate.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/lib/utils.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs12.js"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs12.js"),s=require("./mqtt.min.cjs.js"),o=require("./index.cjs2.js");exports.http=e.http,exports.areColorsSimilar=s.areColorsSimilar,exports.copyText=s.copyText,exports.enumToArray=s.enumToArray,exports.getCownDownTime=s.getCownDownTime,exports.getSelectOptions=s.getSelectOptions,exports.isColorEqual=s.isColorEqual,exports.isDarkColor=s.isDarkColor,exports.notifyMessageToSystems=s.notifyMessageToSystems,exports.receiveMessage=s.receiveMessage,exports.yxMessage=s.yxMessage,exports.yxSubscribe=s.yxSubscribe,exports.MQ=o.MQ,exports.WS=o.Ws,exports.yxFecth=o.yxFecth;
|
|
2
2
|
//# sourceMappingURL=utils.cjs.js.map
|
package/lib/utils.es.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { a } from "./index.es12.js";
|
|
2
|
-
import { a as a2, c, e, g, b, i, d, n, r, y, f } from "./
|
|
3
|
-
import { y as y2 } from "./index.es2.js";
|
|
2
|
+
import { a as a2, c, e, g, b, i, d, n, r, y, f } from "./mqtt.min.es.js";
|
|
3
|
+
import { M, W, y as y2 } from "./index.es2.js";
|
|
4
4
|
export {
|
|
5
|
+
M as MQ,
|
|
6
|
+
W as WS,
|
|
5
7
|
a2 as areColorsSimilar,
|
|
6
8
|
c as copyText,
|
|
7
9
|
e as enumToArray,
|
package/lib/yxIcon.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.cjs12.js"),require("element-plus"),require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("./index.cjs12.js"),require("element-plus"),require("./index.cjs13.js");const e=require("./index.cjs3.js");exports.default=e.index;
|
|
2
2
|
//# sourceMappingURL=yxIcon.cjs.js.map
|
package/lib/yxIcon.es.js
CHANGED
package/package.json
CHANGED
|
@@ -47,12 +47,11 @@ export declare const getUserPermissions: (systemName: string, isJumpLogin?: bool
|
|
|
47
47
|
*
|
|
48
48
|
* @param userMenuList 用户路由数据
|
|
49
49
|
* @param viewModules 页面文件
|
|
50
|
-
* @param viewConfig 页面配置项
|
|
51
50
|
* @returns UserRouter 用户动态路由
|
|
52
51
|
* @description 综合管理分系统->integrated
|
|
53
52
|
* @description 站控分系统->station
|
|
54
53
|
*/
|
|
55
|
-
export declare const getUserRouter: (userMenuList: any, viewModules: any
|
|
54
|
+
export declare const getUserRouter: (userMenuList: any, viewModules: any) => any[];
|
|
56
55
|
/**
|
|
57
56
|
* @description 判断当前routeTag是否在用户的按钮权限里
|
|
58
57
|
* @param routeTag
|
package/types/utils/index.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export { default as http } from './http/index';
|
|
|
2
2
|
export * from './common/index';
|
|
3
3
|
export { default as yxSubscribe } from './subscribe/index';
|
|
4
4
|
export { yxFecth } from './fecth/index';
|
|
5
|
+
export { default as MQ } from './mqtt/index';
|
|
6
|
+
export { default as WS } from './socket/index';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SocketParams, HeartMessage } from './interface';
|
|
2
|
+
|
|
3
|
+
export default class Ws {
|
|
4
|
+
url: string;
|
|
5
|
+
protocols: any;
|
|
6
|
+
webSocketState: boolean;
|
|
7
|
+
isCustomClose: boolean;
|
|
8
|
+
reconnectTime: number;
|
|
9
|
+
heartBeatTime: number;
|
|
10
|
+
waitBeatTime: number;
|
|
11
|
+
callback: Function;
|
|
12
|
+
HEART_KEY?: string;
|
|
13
|
+
HEART_VALUE?: string | number;
|
|
14
|
+
ws: WebSocket | null;
|
|
15
|
+
isReconnectionLoading: boolean;
|
|
16
|
+
timeId: any;
|
|
17
|
+
eventCenter: any;
|
|
18
|
+
errorStack: any;
|
|
19
|
+
heartMessage?: HeartMessage;
|
|
20
|
+
msgDataPreHandler?: Function;
|
|
21
|
+
constructor(options: SocketParams, protocols?: string);
|
|
22
|
+
createWs(): void;
|
|
23
|
+
onopen(): void;
|
|
24
|
+
startHeartBeat(time: any): void;
|
|
25
|
+
waitingServer(): void;
|
|
26
|
+
onerror(): void;
|
|
27
|
+
onclose(): void;
|
|
28
|
+
onmessage(): Promise<void>;
|
|
29
|
+
reconnection(): void;
|
|
30
|
+
send(message: any): void;
|
|
31
|
+
close(): void;
|
|
32
|
+
start(): void;
|
|
33
|
+
subscribe(eventName: string, cb: Function): void;
|
|
34
|
+
unsubscribe(eventName: string, cb: Function): void;
|
|
35
|
+
destroy(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface SocketParams {
|
|
2
|
+
url: string;
|
|
3
|
+
reconnectTime: number;
|
|
4
|
+
heartBeatTime: number;
|
|
5
|
+
waitBeatTime: number;
|
|
6
|
+
msgDataPreHandler?: Function;
|
|
7
|
+
callback: Function;
|
|
8
|
+
heartMessage?: HeartMessage;
|
|
9
|
+
HEART_KEY?: string;
|
|
10
|
+
HEART_VALUE?: string | number;
|
|
11
|
+
}
|
|
12
|
+
export interface HeartMessage {
|
|
13
|
+
data?: string;
|
|
14
|
+
msgId?: number;
|
|
15
|
+
msgName?: string;
|
|
16
|
+
}
|
package/lib/index.cjs14.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./index.cjs12.js"),t=(t,o)=>e.http.post(`${e.URL.ttc.INTEGRATED_BASE_URL}/file/upload`,t,o),o=()=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/group/list`,{},{headers:{noLoading:!0}}),r=(t,o)=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/file/list/${o}/${t}`,{},{headers:{noLoading:!0}}),s=Object.freeze(Object.defineProperty({__proto__:null,getGroupListApi:o,getResourceListApi:r,uploadResourceApi:t},Symbol.toStringTag,{value:"Module"}));exports.getGroupListApi=o,exports.getResourceListApi=r,exports.index=s,exports.uploadResourceApi=t;
|
|
2
|
-
//# sourceMappingURL=index.cjs14.js.map
|
package/lib/index.cjs14.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs14.js","sources":["../packages/api/modules/assets/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-04-11 11:09:04\n * @LastEditors: WangXin\n * @LastEditTime: 2024-08-16 10:16:23\n * @FilePath: /yxuse/packages/api/modules/assets/index.ts\n * @Description:\n *\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\n */\nimport http from \"@packages/utils/http\";\nimport { URL } from \"@packages/config\";\n\nexport const uploadResourceApi = (params: FormData, config?: Object) =>\n\thttp.post(`${URL[\"ttc\"].INTEGRATED_BASE_URL}/file/upload`, params, config);\n\n//获取资源分组\nexport const getGroupListApi = () =>\n\thttp.get(\n\t\t`${URL[\"ttc\"].INTEGRATED_BASE_URL}/resource/group/list`,\n\t\t{},\n\t\t{\n\t\t\theaders: { noLoading: true }\n\t\t}\n\t);\n//获取icon的配置\nexport const getResourceListApi = (groupUuid: string, sign: number) =>\n\thttp.get(`${URL[\"ttc\"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });\n"],"names":["uploadResourceApi","params","config","http","post","URL","INTEGRATED_BASE_URL","getGroupListApi","get","headers","noLoading","getResourceListApi","groupUuid","sign"],"mappings":"iDAaaA,EAAoB,CAACC,EAAkBC,IACnDC,EAAAA,KAAKC,KAAK,GAAGC,EAAAA,IAAS,IAAEC,kCAAmCL,EAAQC,GAGvDK,EAAkB,IAC9BJ,EAAAA,KAAKK,IACJ,GAAGH,EAAAA,IAAS,IAAEC,0CACd,CAAC,EACD,CACCG,QAAS,CAAEC,WAAW,KAIZC,EAAqB,CAACC,EAAmBC,IACrDV,EAAAA,KAAKK,IAAI,GAAGH,EAAAA,IAAS,IAAEC,0CAA0CO,KAAQD,IAAa,CAAA,EAAI,CAAEH,QAAS,CAAEC,WAAW"}
|
package/lib/index.es14.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { a as http, U as URL } from "./index.es12.js";
|
|
2
|
-
const uploadResourceApi = (params, config) => http.post(`${URL["ttc"].INTEGRATED_BASE_URL}/file/upload`, params, config);
|
|
3
|
-
const getGroupListApi = () => http.get(
|
|
4
|
-
`${URL["ttc"].INTEGRATED_BASE_URL}/resource/group/list`,
|
|
5
|
-
{},
|
|
6
|
-
{
|
|
7
|
-
headers: { noLoading: true }
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
const getResourceListApi = (groupUuid, sign) => http.get(`${URL["ttc"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });
|
|
11
|
-
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12
|
-
__proto__: null,
|
|
13
|
-
getGroupListApi,
|
|
14
|
-
getResourceListApi,
|
|
15
|
-
uploadResourceApi
|
|
16
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
export {
|
|
18
|
-
getResourceListApi as a,
|
|
19
|
-
getGroupListApi as g,
|
|
20
|
-
index as i,
|
|
21
|
-
uploadResourceApi as u
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=index.es14.js.map
|
package/lib/index.es14.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es14.js","sources":["../packages/api/modules/assets/index.ts"],"sourcesContent":["/*\n * @Author: WangXin\n * @Date: 2024-04-11 11:09:04\n * @LastEditors: WangXin\n * @LastEditTime: 2024-08-16 10:16:23\n * @FilePath: /yxuse/packages/api/modules/assets/index.ts\n * @Description:\n *\n * Copyright (c) 2024 by YuXing, All Rights Reserved.\n */\nimport http from \"@packages/utils/http\";\nimport { URL } from \"@packages/config\";\n\nexport const uploadResourceApi = (params: FormData, config?: Object) =>\n\thttp.post(`${URL[\"ttc\"].INTEGRATED_BASE_URL}/file/upload`, params, config);\n\n//获取资源分组\nexport const getGroupListApi = () =>\n\thttp.get(\n\t\t`${URL[\"ttc\"].INTEGRATED_BASE_URL}/resource/group/list`,\n\t\t{},\n\t\t{\n\t\t\theaders: { noLoading: true }\n\t\t}\n\t);\n//获取icon的配置\nexport const getResourceListApi = (groupUuid: string, sign: number) =>\n\thttp.get(`${URL[\"ttc\"].INTEGRATED_BASE_URL}/resource/file/list/${sign}/${groupUuid}`, {}, { headers: { noLoading: true } });\n"],"names":[],"mappings":";AAaO,MAAM,oBAAoB,CAAC,QAAkB,WACnD,KAAK,KAAK,GAAG,IAAI,KAAK,EAAE,mBAAmB,gBAAgB,QAAQ,MAAM;AAG7D,MAAA,kBAAkB,MAC9B,KAAK;AAAA,EACJ,GAAG,IAAI,KAAK,EAAE,mBAAmB;AAAA,EACjC,CAAC;AAAA,EACD;AAAA,IACC,SAAS,EAAE,WAAW,KAAK;AAAA,EAAA;AAE7B;AAEY,MAAA,qBAAqB,CAAC,WAAmB,SACrD,KAAK,IAAI,GAAG,IAAI,KAAK,EAAE,mBAAmB,uBAAuB,IAAI,IAAI,SAAS,IAAI,CAAA,GAAI,EAAE,SAAS,EAAE,WAAW,OAAQ,CAAA;;;;;;;"}
|