halo-pc 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Article-D4qXG55i.js → Article-DievbQaS.js} +5 -4
- package/dist/{Autocomplete-BOxOjTFs.js → Autocomplete-9Dw6RZUJ.js} +7 -5
- package/dist/{Autocomplete-CV4D7693.js → Autocomplete-BC9yw7bd.js} +16 -16
- package/dist/{Autocomplete-BdKldPfG.js → Autocomplete-CA9lAfcX.js} +1 -1
- package/dist/{CSharp-D_fhmKNi.js → CSharp-9TTxxjTd.js} +1 -1
- package/dist/{Calender-B1bjnNK5.js → Calender-Cvt1swho.js} +1 -1
- package/dist/{Callback-DjHhgx-q.js → Callback-3bTaCoQy.js} +1 -1
- package/dist/{Cascader-K4fh1YbW.js → Cascader-B8DEKaGU.js} +22 -21
- package/dist/{Cascader-B6OhUHVe.js → Cascader-DCbx-Xfo.js} +4 -3
- package/dist/{Checkbox-CkfHA52y.js → Checkbox-BPaKVuvv.js} +1 -1
- package/dist/{Code-3c6-02U1.js → Code--ryEmiLJ.js} +7 -6
- package/dist/Code-CnU5c_Xk.js +4 -0
- package/dist/{Code-BTDq_0B6.js → Code-DS9dwk0s.js} +13 -12
- package/dist/{Code-C4HjQm82.js → Code-DVUf05Qa.js} +1 -1
- package/dist/Code.vue_vue_type_style_index_0_lang-BQQ6Jatk.js +63 -0
- package/dist/{Column-D9Kx2OQ2.js → Column-BzM9a1Ai.js} +4 -3
- package/dist/{Comment-DCArar0n.js → Comment-5gH4WF9C.js} +9 -8
- package/dist/{Copy-DkFCsKxT.js → Copy-DcAUXAJq.js} +1 -1
- package/dist/{Custom-a5LNK1fz.js → Custom-lSjUvIAb.js} +7 -6
- package/dist/{DataExport-CNacxrr6.js → DataExport-Cl2LRmuu.js} +1 -1
- package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dnt8MHYd.js → DataExport.vue_vue_type_script_setup_true_lang-DFuUWnTj.js} +14 -13
- package/dist/{DataImport-Dm86g3rr.js → DataImport-C8MggQON.js} +1 -1
- package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DieNCc_-.js → DataImport.vue_vue_type_script_setup_true_lang-Qgy5ODur.js} +3 -3
- package/dist/{Date-2zsvAlTg.js → Date-BRd0o_ib.js} +1 -1
- package/dist/{DateRange-DM7_QCBw.js → DateRange-Q6osbxfF.js} +4 -3
- package/dist/{DateTime-DMECNCs4.js → DateTime-DSUMg60T.js} +1 -1
- package/dist/{Daterange-b5lnauDR.js → Daterange-0qtKemST.js} +4 -3
- package/dist/{Decimal-DtTHo5uv.js → Decimal-BBYZHN-L.js} +1 -1
- package/dist/{Delete-CJYIlwyA.js → Delete-DkSX4BUu.js} +1 -1
- package/dist/{Detail-vOrhBm_q.js → Detail-DlJeIF7u.js} +11 -10
- package/dist/{Dictionary-B9oe1_S6.js → Dictionary-DH3ukOm9.js} +4 -3
- package/dist/{File-Bmnp2oNs.js → File-27vOsF_i.js} +16 -15
- package/dist/{Image-8u9oIiGp.js → Image-BejU08yZ.js} +1 -1
- package/dist/Index-BaxI_lNq.js +4 -0
- package/dist/Index-BnNuVSxA.js +4 -0
- package/dist/{Index-DtM8VZwV.js → Index-BtK4Riqs.js} +1 -1
- package/dist/{Index-CS11p-lU.js → Index-ByC6qZPq.js} +9 -8
- package/dist/{Index-DiMWhBFC.js → Index-CtQ5rwyH.js} +1 -1
- package/dist/{Index-BNXlbQ4E.js → Index-DEDLWObm.js} +1 -1
- package/dist/{Index-CSqSf17l.js → Index-DMdBkj-p.js} +1 -1
- package/dist/{Index.vue_vue_type_script_setup_true_lang-BPj8s6sN.js → Index.vue_vue_type_script_setup_true_lang-3zk23es9.js} +4 -3
- package/dist/{Index.vue_vue_type_script_setup_true_lang-CKE6hz5m.js → Index.vue_vue_type_script_setup_true_lang-CCdCOtFc.js} +1 -1
- package/dist/{Index.vue_vue_type_style_index_0_lang-CqDJToNR.js → Index.vue_vue_type_style_index_0_lang-DZJCAfOb.js} +5 -4
- package/dist/{Install-DU27ycRi.js → Install-DzOXL82w.js} +12 -11
- package/dist/{Int-BuRUWpC5.js → Int-D3k7ZnH3.js} +9 -8
- package/dist/{List-DmUA_Qjf.js → List-BeoZ2a1r.js} +9 -8
- package/dist/{Maintaince-BxK8vEL8.js → Maintaince-BMLmBQI9.js} +1 -1
- package/dist/{Markdown-DuJREXXg.js → Markdown-BVhD-lo1.js} +1 -1
- package/dist/{Month-D366v-0Q.js → Month--2hXaJkd.js} +1 -1
- package/dist/{Normal-CPn8hp3t.js → Normal-B3Xs7sFU.js} +27 -26
- package/dist/{Paging-D1DvQER2.js → Paging-CqpaB0Mn.js} +29 -28
- package/dist/{QueryApi-B7_jCs5e.js → QueryApi-BqpLpqXT.js} +1 -1
- package/dist/{Racebar-ng-7K86M.js → Racebar-CvsmozFH.js} +5 -4
- package/dist/{Radio-DW7t0gUT.js → Radio-DMlWrRLV.js} +1 -1
- package/dist/{Register-oG9MMCqJ.js → Register-B7KEYSdN.js} +4 -3
- package/dist/{RichText-Bpw54w7L.js → RichText-BX7WZjO-.js} +4 -3
- package/dist/{SearchFooter-TOtn9psJ.js → SearchFooter-BSHxMoTL.js} +1 -1
- package/dist/{SearchFooter.vue_vue_type_style_index_0_lang-aQwf-Jl6.js → SearchFooter.vue_vue_type_style_index_0_lang-CgAQfUu-.js} +1 -1
- package/dist/{SearchForm-tCH9rcrw.js → SearchForm-CH5YWxKr.js} +1 -1
- package/dist/{SearchForm.vue_vue_type_style_index_0_lang-U5f9oExf.js → SearchForm.vue_vue_type_style_index_0_lang-By2w2biv.js} +4 -3
- package/dist/{Select-DhpaFdqx.js → Select-B7VB4CHX.js} +1 -1
- package/dist/{Select-CGOTSJVh.js → Select-Dmr_Q332.js} +4 -3
- package/dist/{Select-Dz8akTqG.js → Select-zZ9NAS5C.js} +1 -1
- package/dist/{Single-BETJuNyR.js → Single-z7YLL5yh.js} +6 -5
- package/dist/{Statistic-DzF-1c5_.js → Statistic-SFo_gi_N.js} +5 -4
- package/dist/{Stock-9Ja_G9Dg.js → Stock-DInt0W2k.js} +1 -1
- package/dist/{Stock-CfI244Nf.js → Stock-cw7lE17E.js} +1 -1
- package/dist/{Stock.vue_vue_type_style_index_0_lang-DbTd0pjx.js → Stock.vue_vue_type_style_index_0_lang-DKGuyQ08.js} +4 -3
- package/dist/{Switch-HAej2klZ.js → Switch-gkN2GOAQ.js} +1 -1
- package/dist/{Table-Bes5hPBu.js → Table-BRSX9_5r.js} +2 -2
- package/dist/{Table-Q1QCTkqH.js → Table-ByUYlERR.js} +9 -8
- package/dist/Text-CXXJqJ8N.js +4 -0
- package/dist/{Text.vue_vue_type_style_index_0_lang-Bw2lRC5n.js → Text.vue_vue_type_style_index_0_lang-Cwyu-GMz.js} +4 -3
- package/dist/{TextLink-o-e-724y.js → TextLink-KC_xsgpi.js} +15 -14
- package/dist/{Textarea-2hZMIygc.js → Textarea-DoE5sGRR.js} +1 -1
- package/dist/{Timeline-B2unIcOQ.js → Timeline-CTj1FAtR.js} +4 -3
- package/dist/{Tree-DO2eaZZT.js → Tree-B2ILQtRK.js} +4 -3
- package/dist/{Tree-Bt7FIc2Z.js → Tree-DfY_7l-G.js} +22 -21
- package/dist/{TreeNode-k4qKfs3W.js → TreeNode-BV9BiCFt.js} +10 -9
- package/dist/{Update-BH1SivST.js → Update-C6EmSv2D.js} +10 -9
- package/dist/{Upload-Cw7Ln3cd.js → Upload-CQo4b32p.js} +25 -24
- package/dist/{Upload-Bhp3QMff.js → Upload-z2mEnrlN.js} +6 -5
- package/dist/{UploadApi-DdQy8bcl.js → UploadApi-C0wC0lME.js} +4 -3
- package/dist/{Year-Q2Y-HAuh.js → Year-CEHCOGTW.js} +1 -1
- package/dist/{main-iF34LtMW.js → main-CgmRyjET.js} +1296 -1161
- package/dist/main.js +55 -54
- package/esm/components/layouts/index.d.ts +2 -2
- package/esm/drivers/cdns/Cdn.d.ts +2 -1
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +4 -0
- package/esm/drivers/cdns/implements/BootCdn.d.ts +5 -1
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +3 -1
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +5 -1
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +9 -1
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +3 -1
- package/esm/drivers/driver-helper.d.ts +10 -0
- package/esm/drivers/encoders/Encoder.d.ts +11 -0
- package/esm/drivers/encoders/EncoderFactory.d.ts +16 -0
- package/esm/drivers/encoders/IEncoder.d.ts +22 -0
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +11 -0
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +10 -0
- package/esm/drivers/hashers/HasherFactory.d.ts +13 -0
- package/esm/drivers/hashers/IHasher.d.ts +19 -0
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +10 -0
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +10 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
- package/esm/drivers/requesters/Requester.d.ts +5 -2
- package/esm/drivers/requesters/RequesterFactory.d.ts +7 -1
- package/esm/drivers/requesters/implements/MkRequester.d.ts +39 -0
- package/esm/drivers/signers/ISigner.d.ts +1 -1
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/signers/implements/DefaultSigner.d.ts +3 -1
- package/esm/drivers/ssos/ISso.d.ts +1 -1
- package/esm/sdks/helpers/dictionary-helper.d.ts +10 -0
- package/esm/sdks/helpers/index.d.ts +3 -2
- package/esm/sdks/helpers/json-helper.d.ts +4 -0
- package/esm/sdks/helpers/object-helper.d.ts +2 -2
- package/esm/sdks/helpers/sign-helper.d.ts +14 -0
- package/esm/sdks/helpers/string-helper.d.ts +1 -1
- package/esm/sdks/helpers/time-helper.d.ts +2 -2
- package/esm/sdks/helpers/url-helper.d.ts +4 -4
- package/esm/stores/socket.d.ts +1 -1
- package/esm/stores/user.d.ts +1 -1
- package/package.json +4 -4
- package/dist/Code-RAklwsI8.js +0 -4
- package/dist/Code.vue_vue_type_style_index_0_lang-zfBqeJue.js +0 -62
- package/dist/Index-B_P8rY63.js +0 -4
- package/dist/Index-ujUgBmOq.js +0 -4
- package/dist/Text-DgINICKw.js +0 -4
package/dist/main.js
CHANGED
@@ -1,51 +1,51 @@
|
|
1
1
|
import "vue";
|
2
2
|
import "./vendor-pinia-yrN6kSxh.js";
|
3
|
-
import { A as o, af as H, w as t, C as
|
4
|
-
import { l as
|
5
|
-
import { h as
|
3
|
+
import { A as o, af as H, w as t, C as l, ag as p, ah as i, D as n, q as S, ai as u, au as c, F as m, B as d, _ as C, a1 as g, a2 as v, j as y, K as T, N as b, L as M, R as f, Q as h, ae as D, a8 as U, a9 as k, G as w, aa as P, y as x, t as F, o as I, n as L, a3 as R, a6 as W, m as j, a0 as A, ab as E, ac as K, a7 as O, r as q, a4 as z, a5 as G, V as J, ad as B, k as N, H as Q, ap as V, I as X, ao as Y, W as Z, at as _, v as $, M as aa, ak as ea, aj as sa, p as ra, O as oa, P as Ha, al as ta, x as la, f as pa, aq as ia, i as na, an as Sa, S as ua, am as ca, a as ma, T as da, c as Ca, U as ga, g as va, J as ya, as as Ta, s as ba, l as Ma, h as fa, $ as ha, u as Da, X as Ua, Y as ka, z as wa, d as Pa, Z as xa, e as Fa, ar as Ia } from "./main-CgmRyjET.js";
|
4
|
+
import { l as Ra } from "./vendor-@monaco-editor-DKC4UNw_.js";
|
5
|
+
import { h as ja } from "./vendor-moment-h96o7c8I.js";
|
6
6
|
export {
|
7
7
|
o as ArrayHelper,
|
8
8
|
H as ComponentHelper,
|
9
9
|
t as ComponentService,
|
10
|
-
|
11
|
-
|
12
|
-
i as
|
13
|
-
n as
|
14
|
-
S as
|
10
|
+
l as ControlService,
|
11
|
+
p as CookieHelper,
|
12
|
+
i as DictionaryHelper,
|
13
|
+
n as DomHelper,
|
14
|
+
S as DriverHelper,
|
15
15
|
u as EventHelper,
|
16
16
|
c as EventUtility,
|
17
17
|
m as FileHelper,
|
18
18
|
d as HaCaptcha,
|
19
19
|
C as HaCode,
|
20
|
-
|
21
|
-
|
20
|
+
g as HaCol,
|
21
|
+
v as HaCompare,
|
22
22
|
y as HaContainer,
|
23
23
|
T as HaCrud,
|
24
24
|
b as HaDrawer,
|
25
25
|
M as HaDriver,
|
26
26
|
f as HaFeedback,
|
27
27
|
h as HaForm,
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
P as
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
K as
|
43
|
-
O as
|
44
|
-
q as
|
45
|
-
z as
|
46
|
-
G as
|
47
|
-
J as
|
48
|
-
B as
|
28
|
+
D as HaGroup,
|
29
|
+
U as HaHeaderTab,
|
30
|
+
k as HaHeaderTabs,
|
31
|
+
w as HaLayout,
|
32
|
+
P as HaMenu,
|
33
|
+
x as HaMissComponent,
|
34
|
+
F as HaOperation,
|
35
|
+
I as HaPage,
|
36
|
+
L as HaPanel,
|
37
|
+
R as HaParticles,
|
38
|
+
W as HaProgress,
|
39
|
+
j as HaResizer,
|
40
|
+
A as HaRow,
|
41
|
+
E as HaSideTab,
|
42
|
+
K as HaSideTabs,
|
43
|
+
O as HaSpinner,
|
44
|
+
q as HaSwitch,
|
45
|
+
z as HaTable,
|
46
|
+
G as HaTableColumn,
|
47
|
+
J as HaWelcome,
|
48
|
+
B as HaWindow,
|
49
49
|
N as HtmlHelper,
|
50
50
|
Q as HttpService,
|
51
51
|
V as I18nHelper,
|
@@ -61,31 +61,32 @@ export {
|
|
61
61
|
oa as ObjectHelper,
|
62
62
|
Ha as PageService,
|
63
63
|
ta as ScriptHelper,
|
64
|
-
|
65
|
-
|
66
|
-
ia as
|
67
|
-
na as
|
68
|
-
Sa as
|
69
|
-
ua as
|
70
|
-
ca as
|
71
|
-
ma as
|
72
|
-
da as
|
73
|
-
Ca as
|
64
|
+
la as ScrollHelper,
|
65
|
+
pa as SettingService,
|
66
|
+
ia as SignHelper,
|
67
|
+
na as StandardService,
|
68
|
+
Sa as StorageHelper,
|
69
|
+
ua as StringHelper,
|
70
|
+
ca as TaskHelper,
|
71
|
+
ma as TimeHelper,
|
72
|
+
da as TreeHelper,
|
73
|
+
Ca as TypeHelper,
|
74
|
+
ga as UploadService,
|
74
75
|
va as UrlHelper,
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
76
|
+
ya as default,
|
77
|
+
Ta as loadEcharts,
|
78
|
+
Ra as loader,
|
79
|
+
ja as moment,
|
80
|
+
ba as useAppStore,
|
81
|
+
Ma as useComponentStore,
|
82
|
+
fa as useConfigStore,
|
83
|
+
ha as useDriverStore,
|
84
|
+
Da as useI18nStore,
|
84
85
|
Ua as useLayoutStore,
|
85
86
|
ka as useLogStore,
|
86
87
|
wa as useRouterStore,
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
Pa as useSettingStore,
|
89
|
+
xa as useSocketStore,
|
90
|
+
Fa as useUserStore,
|
91
|
+
Ia as useWindowStore
|
91
92
|
};
|
@@ -5,8 +5,9 @@ import ICdn from "./ICdn";
|
|
5
5
|
declare abstract class Cdn implements ICdn {
|
6
6
|
type: string;
|
7
7
|
baseUrl: string;
|
8
|
+
mappings: object;
|
8
9
|
abstract open(conn: string): void;
|
9
|
-
|
10
|
+
getPath(name: string): string;
|
10
11
|
loadPathAsync(path: string, files: string[]): Promise<void>;
|
11
12
|
loadAsync(name: string | string[]): Promise<void>;
|
12
13
|
}
|
@@ -2,7 +2,11 @@ import ICdn from "../ICdn";
|
|
2
2
|
import Cdn from "../Cdn";
|
3
3
|
declare class BootCdn extends Cdn implements ICdn {
|
4
4
|
type: string;
|
5
|
+
mappings: {
|
6
|
+
'element-plus': string;
|
7
|
+
'monaco-editor': string;
|
8
|
+
quill: string;
|
9
|
+
};
|
5
10
|
open(conn: string): void;
|
6
|
-
getPath(name: string): string;
|
7
11
|
}
|
8
12
|
export default BootCdn;
|
@@ -2,7 +2,11 @@ import Cdn from "../Cdn";
|
|
2
2
|
import ICdn from "../ICdn";
|
3
3
|
declare class LocalCdn extends Cdn implements ICdn {
|
4
4
|
type: string;
|
5
|
+
mappings: {
|
6
|
+
'element-plus': string;
|
7
|
+
quill: string;
|
8
|
+
'fort-awesome': string;
|
9
|
+
};
|
5
10
|
open(conn: string): void;
|
6
|
-
getPath(name: string): string;
|
7
11
|
}
|
8
12
|
export default LocalCdn;
|
@@ -1,8 +1,16 @@
|
|
1
1
|
import ICdn from "../ICdn";
|
2
2
|
import Cdn from "../Cdn";
|
3
|
+
/**
|
4
|
+
* StaticFile
|
5
|
+
*/
|
3
6
|
declare class StaticFileCdn extends Cdn implements ICdn {
|
4
7
|
type: string;
|
8
|
+
mappings: {
|
9
|
+
'element-plus': string;
|
10
|
+
'monaco-editor': string;
|
11
|
+
quill: string;
|
12
|
+
'fort-awesome': string;
|
13
|
+
};
|
5
14
|
open(conn: string): void;
|
6
|
-
getPath(name: string): string;
|
7
15
|
}
|
8
16
|
export default StaticFileCdn;
|
@@ -2,7 +2,9 @@ import Cdn from "../Cdn";
|
|
2
2
|
import ICdn from "../ICdn";
|
3
3
|
declare class UnpkgCdn extends Cdn implements ICdn {
|
4
4
|
type: string;
|
5
|
+
mappings: {
|
6
|
+
'monaco-editor': string[];
|
7
|
+
};
|
5
8
|
open(conn: string): void;
|
6
|
-
getPath(name: string): string;
|
7
9
|
}
|
8
10
|
export default UnpkgCdn;
|
@@ -4,6 +4,8 @@ import IFeature from "./features/IFeature";
|
|
4
4
|
import IProvider from "./providers/IProvider";
|
5
5
|
import IExcel from "./excels/IExcel";
|
6
6
|
import ICdn from "./cdns/ICdn";
|
7
|
+
import IEncoder from "./encoders/IEncoder";
|
8
|
+
import IHasher from "./hashers/IHasher";
|
7
9
|
/**
|
8
10
|
* 驱动帮助类
|
9
11
|
*/
|
@@ -32,5 +34,13 @@ declare class DriverHelper {
|
|
32
34
|
* 获取CDN实例
|
33
35
|
*/
|
34
36
|
static getCdn(type: string, baseUrl?: string): ICdn;
|
37
|
+
/**
|
38
|
+
* 获取编码器
|
39
|
+
*/
|
40
|
+
static getEncoder(type: string): IEncoder;
|
41
|
+
/**
|
42
|
+
* 获取Hasher
|
43
|
+
*/
|
44
|
+
static getHasher(type: string): IHasher;
|
35
45
|
}
|
36
46
|
export default DriverHelper;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import IEncoder from "./IEncoder";
|
2
|
+
/**
|
3
|
+
* 编码基类
|
4
|
+
*/
|
5
|
+
declare abstract class Encoder implements IEncoder {
|
6
|
+
type: string;
|
7
|
+
abstract open(conn: string): void;
|
8
|
+
abstract encode(value: string): string;
|
9
|
+
abstract decode(value: string): string;
|
10
|
+
}
|
11
|
+
export default Encoder;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import IEncoder from "./IEncoder";
|
2
|
+
/**
|
3
|
+
* 编码器工厂
|
4
|
+
*/
|
5
|
+
declare class EncoderFactory {
|
6
|
+
/**
|
7
|
+
* 创建执行类型的Hash实例
|
8
|
+
*/
|
9
|
+
static create(type: string): IEncoder;
|
10
|
+
private static base64;
|
11
|
+
/**
|
12
|
+
* 获取Base64 编码器对象
|
13
|
+
*/
|
14
|
+
static getBase64(): IEncoder;
|
15
|
+
}
|
16
|
+
export default EncoderFactory;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* 编码器接口
|
3
|
+
*/
|
4
|
+
interface IEncoder {
|
5
|
+
/**
|
6
|
+
* 类型
|
7
|
+
*/
|
8
|
+
type: string;
|
9
|
+
/**
|
10
|
+
* 开启
|
11
|
+
*/
|
12
|
+
open(conn: string): void;
|
13
|
+
/**
|
14
|
+
* 字符串编码
|
15
|
+
*/
|
16
|
+
encode(value: string): string;
|
17
|
+
/**
|
18
|
+
* 字符串解码
|
19
|
+
*/
|
20
|
+
decode(value: string): string;
|
21
|
+
}
|
22
|
+
export default IEncoder;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Hash接口
|
3
|
+
*/
|
4
|
+
interface IHasher {
|
5
|
+
/**
|
6
|
+
* 类型
|
7
|
+
*/
|
8
|
+
type: string;
|
9
|
+
/**
|
10
|
+
* 开启
|
11
|
+
*/
|
12
|
+
open(conn: string): void;
|
13
|
+
/**
|
14
|
+
* 计算字符串Hash值
|
15
|
+
* @param value
|
16
|
+
*/
|
17
|
+
compute(value: string): Promise<string>;
|
18
|
+
}
|
19
|
+
export default IHasher;
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import IRequester from "./IRequester";
|
2
2
|
import HttpRequest from "./entities/HttpRequest";
|
3
3
|
import HttpResponse from "./entities/HttpResponse";
|
4
|
+
/**
|
5
|
+
* 请求器基类
|
6
|
+
*/
|
4
7
|
declare abstract class Requester implements IRequester {
|
5
|
-
open(conn: string): void;
|
6
|
-
send(request: HttpRequest): Promise<HttpResponse>;
|
8
|
+
abstract open(conn: string): void;
|
9
|
+
abstract send(request: HttpRequest): Promise<HttpResponse>;
|
7
10
|
}
|
8
11
|
export default Requester;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import DefaultRequester from "./implements/DefaultRequester";
|
2
|
+
import IRequester from "./IRequester";
|
2
3
|
/**
|
3
4
|
* 请求器工厂类
|
4
5
|
*/
|
@@ -6,6 +7,11 @@ declare class RequesterFactory {
|
|
6
7
|
/**
|
7
8
|
* 获取指定请求器
|
8
9
|
*/
|
9
|
-
static
|
10
|
+
static create(type: string): DefaultRequester;
|
11
|
+
private static _default;
|
12
|
+
/**
|
13
|
+
* 获取默认请求器
|
14
|
+
*/
|
15
|
+
static getDefault(): IRequester;
|
10
16
|
}
|
11
17
|
export default RequesterFactory;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import Requester from "../Requester";
|
2
|
+
import HttpRequest from "../entities/HttpRequest";
|
3
|
+
import HttpResponse from "../entities/HttpResponse";
|
4
|
+
import IRequester from "../IRequester";
|
5
|
+
import IHasher from "../../hashers/IHasher";
|
6
|
+
/**
|
7
|
+
* MK请求器
|
8
|
+
*/
|
9
|
+
declare class MkRequester extends Requester {
|
10
|
+
/**
|
11
|
+
* 基准地址
|
12
|
+
*/
|
13
|
+
baseUrl: string;
|
14
|
+
/**
|
15
|
+
* AppId
|
16
|
+
*/
|
17
|
+
appId: string;
|
18
|
+
/**
|
19
|
+
* AppSecret
|
20
|
+
*/
|
21
|
+
appSecret: string;
|
22
|
+
/**
|
23
|
+
* 默认请求器
|
24
|
+
*/
|
25
|
+
requester: IRequester;
|
26
|
+
/**
|
27
|
+
* Hash计算器
|
28
|
+
*/
|
29
|
+
hasher: IHasher;
|
30
|
+
/**
|
31
|
+
* 危险操作,会暴露敏感信息
|
32
|
+
*/
|
33
|
+
open(conn: string): void;
|
34
|
+
/**
|
35
|
+
* 危险操作,会暴露敏感信息
|
36
|
+
*/
|
37
|
+
send(request: HttpRequest): Promise<HttpResponse>;
|
38
|
+
}
|
39
|
+
export default MkRequester;
|
@@ -24,7 +24,7 @@ interface ISigner {
|
|
24
24
|
/**
|
25
25
|
* 获取签名
|
26
26
|
*/
|
27
|
-
getSign(userId: string, url: string, body: any, timestamp: number, secret: string): string
|
27
|
+
getSign(userId: string, url: string, body: any, timestamp: number, secret: string): Promise<string>;
|
28
28
|
/**
|
29
29
|
* 释放资源
|
30
30
|
*/
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import ISigner from "../ISigner";
|
2
|
+
import IHasher from "../../hashers/IHasher";
|
2
3
|
/**
|
3
4
|
* 默认签名器
|
4
5
|
*/
|
5
6
|
declare class DefaultSigner implements ISigner {
|
6
7
|
type: string;
|
8
|
+
hasher: IHasher;
|
7
9
|
open(auth: {
|
8
10
|
url: string;
|
9
11
|
app_id: string;
|
10
12
|
}): void;
|
11
13
|
callback(token: string): void;
|
12
|
-
getSign(userId: string, url: string, body: object, timestamp: number, secret: string): string
|
14
|
+
getSign(userId: string, url: string, body: object, timestamp: number, secret: string): Promise<string>;
|
13
15
|
loginUrl(callback: string): string;
|
14
16
|
dispose(): void;
|
15
17
|
}
|
@@ -2,7 +2,7 @@ import ComponentHelper from './component-helper';
|
|
2
2
|
import ArrayHelper from "./array-helper";
|
3
3
|
import CookieHelper from "./cookie-helper";
|
4
4
|
import DomHelper from "./dom-helper";
|
5
|
-
import
|
5
|
+
import DictionaryHelper from "./dictionary-helper";
|
6
6
|
import EventHelper from "./event-helper";
|
7
7
|
import FileHelper from "./file-helper";
|
8
8
|
import HtmlHelper from "./html-helper";
|
@@ -22,4 +22,5 @@ import ScrollHelper from "./scroll-helper";
|
|
22
22
|
import JsonHelper from "./json-helper";
|
23
23
|
import I18nHelper from "./i18n-helper";
|
24
24
|
import UrlHelper from "./url-helper";
|
25
|
-
|
25
|
+
import SignHelper from "./sign-helper";
|
26
|
+
export { ComponentHelper, ArrayHelper, CookieHelper, DomHelper, DictionaryHelper, EventHelper, FileHelper, HtmlHelper, ImageHelper, MathHelper, MountHelper, ObjectHelper, MicroHelper, StringHelper, ScriptHelper, TaskHelper, TypeHelper, TimeHelper, TreeHelper, StorageHelper, ScrollHelper, JsonHelper, I18nHelper, UrlHelper, SignHelper };
|
@@ -23,9 +23,9 @@ declare class ObjectHelper {
|
|
23
23
|
*/
|
24
24
|
static clone: (obj: any, handler?: (n: any) => void) => any;
|
25
25
|
/**
|
26
|
-
*
|
26
|
+
* 合并来源对象到目标对象上
|
27
27
|
*/
|
28
|
-
static
|
28
|
+
static mergeTo: (target: any, from: any) => any;
|
29
29
|
/**
|
30
30
|
* 给对象添加属性集合,并赋值
|
31
31
|
*/
|
@@ -29,7 +29,7 @@ declare class StringHelper {
|
|
29
29
|
/**
|
30
30
|
* 忽略大小写包含判断,支持从数组中搜索关键词
|
31
31
|
*/
|
32
|
-
static containsIgnoreCase: (keywords: string, value: string) => boolean;
|
32
|
+
static containsIgnoreCase: (keywords: string, value: string | string[]) => boolean;
|
33
33
|
/**
|
34
34
|
* 从html中提取纯文本
|
35
35
|
*/
|
@@ -5,11 +5,11 @@ declare class TimeHelper {
|
|
5
5
|
/**
|
6
6
|
* 获取相对于1970年1月1日的时间戳(ms),不同时区结果相同
|
7
7
|
*/
|
8
|
-
static getTimestamp: (
|
8
|
+
static getTimestamp: (value?: any) => number;
|
9
9
|
/**
|
10
10
|
* 根据字符串获取可对比的时间
|
11
11
|
*/
|
12
|
-
static getTime: (
|
12
|
+
static getTime: (value?: any) => Date;
|
13
13
|
/**
|
14
14
|
* 格式化时间
|
15
15
|
*/
|