antd-management-fast-framework 1.12.39 → 1.12.42
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/utils/Authorized.js +5 -3
- package/es/utils/appConfiguration.d.ts +70 -0
- package/es/utils/appConfiguration.js +403 -0
- package/es/utils/authority.js +4 -2
- package/es/utils/cacheAssist.js +12 -8
- package/es/utils/core.d.ts +11 -0
- package/es/utils/core.js +39 -0
- package/es/utils/defaultSettingsSpecial.d.ts +58 -29
- package/es/utils/defaultSettingsSpecial.js +30 -303
- package/es/utils/developAssist.d.ts +41 -0
- package/es/utils/developAssist.js +224 -0
- package/es/utils/globalStorageAssist.js +16 -14
- package/es/utils/localStorageAssist.d.ts +47 -0
- package/es/utils/localStorageAssist.js +114 -0
- package/es/utils/mediaDefault.d.ts +1 -1
- package/es/utils/mediaDefault.js +2 -2
- package/es/utils/sessionStorageAssist.d.ts +47 -0
- package/es/utils/sessionStorageAssist.js +114 -0
- package/es/utils/tools.d.ts +8 -142
- package/es/utils/tools.js +51 -422
- package/es/utils/typeCheck.d.ts +20 -0
- package/es/utils/typeCheck.js +53 -0
- package/es/utils/typeConvert.d.ts +7 -0
- package/es/utils/typeConvert.js +16 -0
- package/package.json +3 -3
package/es/utils/tools.d.ts
CHANGED
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
export function getAppInitConfigData(): {
|
|
2
|
-
platformName: string;
|
|
3
|
-
appName: string;
|
|
4
|
-
appDescription: string;
|
|
5
|
-
entranceLogo: string;
|
|
6
|
-
shareLogo: string;
|
|
7
|
-
shareLogoName: string;
|
|
8
|
-
leftBarText: string;
|
|
9
|
-
companyName: string;
|
|
10
|
-
copyright: string;
|
|
11
|
-
apiPrefix: {
|
|
12
|
-
corsTargetProduction: string;
|
|
13
|
-
};
|
|
14
|
-
showSelectLanguage: boolean;
|
|
15
|
-
showLogoInEntrance: boolean;
|
|
16
|
-
emptyLogo: string;
|
|
17
|
-
leftBarLogo: string;
|
|
18
|
-
apiSuccessCode: number;
|
|
19
|
-
authenticationFailCode: number;
|
|
20
|
-
entrancePath: string;
|
|
21
|
-
showLogInConsole: boolean;
|
|
22
|
-
showRequestInfo: boolean;
|
|
23
|
-
useVirtualRequest: boolean;
|
|
24
|
-
showUseVirtualRequestMessage: boolean;
|
|
25
|
-
apiVersion: string;
|
|
26
|
-
imageUploadMaxSize: number;
|
|
27
|
-
audioUploadMaxSize: number;
|
|
28
|
-
videoUploadMaxSize: number;
|
|
29
|
-
fileUploadMaxSize: number;
|
|
30
|
-
useNprogress: boolean;
|
|
31
|
-
tinymceApiKey: string;
|
|
32
|
-
tinymceImagesUploadUrl: string;
|
|
33
|
-
};
|
|
34
1
|
export function defaultBaseState(): {
|
|
35
2
|
dataLoading: boolean;
|
|
36
3
|
processing: boolean;
|
|
@@ -242,37 +209,6 @@ export function showMessage({ type, duration, message: messageText, onClose, }:
|
|
|
242
209
|
message: any;
|
|
243
210
|
onClose?: (() => void) | undefined;
|
|
244
211
|
}): void;
|
|
245
|
-
/**
|
|
246
|
-
* 记录日志
|
|
247
|
-
*
|
|
248
|
-
* @export
|
|
249
|
-
* @param {*} str
|
|
250
|
-
* @returns
|
|
251
|
-
*/
|
|
252
|
-
export function recordLog(record: any, showMode: any, level?: string): void;
|
|
253
|
-
export function recordWarn(record: any): void;
|
|
254
|
-
export function recordInfo(record: any): void;
|
|
255
|
-
export function recordDebug(record: any): void;
|
|
256
|
-
/**
|
|
257
|
-
* 记录错误信息
|
|
258
|
-
*/
|
|
259
|
-
export function recordError(record: any): void;
|
|
260
|
-
/**
|
|
261
|
-
* 记录日志
|
|
262
|
-
*
|
|
263
|
-
* @export
|
|
264
|
-
* @param {*} str
|
|
265
|
-
* @returns
|
|
266
|
-
*/
|
|
267
|
-
export function recordText(record: any, level?: string): void;
|
|
268
|
-
/**
|
|
269
|
-
* 记录日志
|
|
270
|
-
*
|
|
271
|
-
* @export
|
|
272
|
-
* @param {*} str
|
|
273
|
-
* @returns
|
|
274
|
-
*/
|
|
275
|
-
export function recordObject(record: any, level?: string): void;
|
|
276
212
|
/**
|
|
277
213
|
* 获取Guid
|
|
278
214
|
*
|
|
@@ -576,86 +512,12 @@ export function transformData({ data, convert, recursiveKey, }: {
|
|
|
576
512
|
* @param {*} other
|
|
577
513
|
*/
|
|
578
514
|
export function buildFieldDescription(v: any, op: any, other: any): string;
|
|
579
|
-
/**
|
|
580
|
-
* 获取SessionStorage数据
|
|
581
|
-
* @export
|
|
582
|
-
* @param {*} key
|
|
583
|
-
* @param {*} value
|
|
584
|
-
*/
|
|
585
|
-
export function getStringFromSessionStorage(key: any): any;
|
|
586
|
-
/**
|
|
587
|
-
* 获取LocalStorage数据
|
|
588
|
-
* @export
|
|
589
|
-
* @param {*} key
|
|
590
|
-
* @param {*} value
|
|
591
|
-
*/
|
|
592
|
-
export function getStringFromLocalStorage(key: any): any;
|
|
593
|
-
/**
|
|
594
|
-
* 获取SessionStorage数据
|
|
595
|
-
* @export
|
|
596
|
-
* @param {*} key
|
|
597
|
-
* @param {*} value
|
|
598
|
-
*/
|
|
599
|
-
export function getJsonFromSessionStorage(key: any): any;
|
|
600
|
-
/**
|
|
601
|
-
* 获取LocalStorage数据
|
|
602
|
-
* @export
|
|
603
|
-
* @param {*} key
|
|
604
|
-
* @param {*} value
|
|
605
|
-
*/
|
|
606
|
-
export function getJsonFromLocalStorage(key: any): any;
|
|
607
|
-
/**
|
|
608
|
-
* 存储SessionStorage数据
|
|
609
|
-
* @export
|
|
610
|
-
* @param {*} key
|
|
611
|
-
* @param {*} value
|
|
612
|
-
*/
|
|
613
|
-
export function saveStringToSessionStorage(key: any, value: any): void;
|
|
614
|
-
/**
|
|
615
|
-
* 存储本地数据
|
|
616
|
-
* @export
|
|
617
|
-
* @param {*} key
|
|
618
|
-
* @param {*} value
|
|
619
|
-
*/
|
|
620
|
-
export function saveStringToLocalStorage(key: any, value: any): void;
|
|
621
|
-
/**
|
|
622
|
-
* 存储SessionStorage数据
|
|
623
|
-
* @export
|
|
624
|
-
* @param {*} key
|
|
625
|
-
* @param {*} value
|
|
626
|
-
*/
|
|
627
|
-
export function saveJsonToSessionStorage(key: any, json: any): void;
|
|
628
|
-
/**
|
|
629
|
-
* 存储本地数据
|
|
630
|
-
* @export
|
|
631
|
-
* @param {*} key
|
|
632
|
-
* @param {*} value
|
|
633
|
-
*/
|
|
634
|
-
export function saveJsonToLocalStorage(key: any, json: any): void;
|
|
635
|
-
/**
|
|
636
|
-
* 移除SessionStorage数据
|
|
637
|
-
* @export
|
|
638
|
-
* @param {*} key
|
|
639
|
-
*/
|
|
640
|
-
export function removeSessionStorage(key: any): void;
|
|
641
|
-
/**
|
|
642
|
-
* 移除LocalStorage数据
|
|
643
|
-
* @export
|
|
644
|
-
* @param {*} key
|
|
645
|
-
*/
|
|
646
|
-
export function removeLocalStorage(key: any): void;
|
|
647
515
|
/**
|
|
648
516
|
* 清空SessionStorage数据
|
|
649
517
|
* @export
|
|
650
518
|
* @param {*} key
|
|
651
519
|
*/
|
|
652
520
|
export function clearSessionStorage(): void;
|
|
653
|
-
/**
|
|
654
|
-
* 清空LocalStorage数据
|
|
655
|
-
* @export
|
|
656
|
-
* @param {*} key
|
|
657
|
-
*/
|
|
658
|
-
export function clearLocalStorage(): void;
|
|
659
521
|
/**
|
|
660
522
|
* 获取工作队列
|
|
661
523
|
* @export
|
|
@@ -767,9 +629,6 @@ export function getTimeDistance(type: any): moment.Moment[];
|
|
|
767
629
|
*/
|
|
768
630
|
export function buildFieldHelper(v: any, prefix?: string): string;
|
|
769
631
|
export function checkLocalhost(): boolean;
|
|
770
|
-
export function getNearestLocalhostNotifyCache(): any;
|
|
771
|
-
export function setNearestLocalhostNotifyCache(): void;
|
|
772
|
-
export function removeNearestLocalhostNotifyCache(): void;
|
|
773
632
|
/**
|
|
774
633
|
* 尝试发送最近一次本地调用通知(一般用于开发阶段,提示调用的接口域)
|
|
775
634
|
*/
|
|
@@ -791,6 +650,13 @@ export function notify({ type, placement: placementValue, message: messageValue,
|
|
|
791
650
|
message: any;
|
|
792
651
|
description: any;
|
|
793
652
|
}): void;
|
|
653
|
+
export function recordLog(record: any, showMode: any, level?: any): void;
|
|
654
|
+
export function recordWarn(record: any): void;
|
|
655
|
+
export function recordInfo(record: any): void;
|
|
656
|
+
export function recordDebug(record: any): void;
|
|
657
|
+
export function recordError(record: any): void;
|
|
658
|
+
export function recordText(record: any, level?: any): void;
|
|
659
|
+
export function recordObject(record: any, level?: any): void;
|
|
794
660
|
export function checkFromConfig({ label, name, helper }: {
|
|
795
661
|
label: any;
|
|
796
662
|
name: any;
|
|
@@ -818,6 +684,6 @@ export function queryStringParse(data: any): import("qs").ParsedQs;
|
|
|
818
684
|
* @export
|
|
819
685
|
* @returns
|
|
820
686
|
*/
|
|
821
|
-
export function
|
|
687
|
+
export function empty(): {};
|
|
822
688
|
export const requestAnimFrame: (((callback: FrameRequestCallback) => number) & typeof requestAnimationFrame) | (() => void);
|
|
823
689
|
import moment from "moment";
|