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.
Files changed (131) hide show
  1. package/dist/{Article-D4qXG55i.js → Article-DievbQaS.js} +5 -4
  2. package/dist/{Autocomplete-BOxOjTFs.js → Autocomplete-9Dw6RZUJ.js} +7 -5
  3. package/dist/{Autocomplete-CV4D7693.js → Autocomplete-BC9yw7bd.js} +16 -16
  4. package/dist/{Autocomplete-BdKldPfG.js → Autocomplete-CA9lAfcX.js} +1 -1
  5. package/dist/{CSharp-D_fhmKNi.js → CSharp-9TTxxjTd.js} +1 -1
  6. package/dist/{Calender-B1bjnNK5.js → Calender-Cvt1swho.js} +1 -1
  7. package/dist/{Callback-DjHhgx-q.js → Callback-3bTaCoQy.js} +1 -1
  8. package/dist/{Cascader-K4fh1YbW.js → Cascader-B8DEKaGU.js} +22 -21
  9. package/dist/{Cascader-B6OhUHVe.js → Cascader-DCbx-Xfo.js} +4 -3
  10. package/dist/{Checkbox-CkfHA52y.js → Checkbox-BPaKVuvv.js} +1 -1
  11. package/dist/{Code-3c6-02U1.js → Code--ryEmiLJ.js} +7 -6
  12. package/dist/Code-CnU5c_Xk.js +4 -0
  13. package/dist/{Code-BTDq_0B6.js → Code-DS9dwk0s.js} +13 -12
  14. package/dist/{Code-C4HjQm82.js → Code-DVUf05Qa.js} +1 -1
  15. package/dist/Code.vue_vue_type_style_index_0_lang-BQQ6Jatk.js +63 -0
  16. package/dist/{Column-D9Kx2OQ2.js → Column-BzM9a1Ai.js} +4 -3
  17. package/dist/{Comment-DCArar0n.js → Comment-5gH4WF9C.js} +9 -8
  18. package/dist/{Copy-DkFCsKxT.js → Copy-DcAUXAJq.js} +1 -1
  19. package/dist/{Custom-a5LNK1fz.js → Custom-lSjUvIAb.js} +7 -6
  20. package/dist/{DataExport-CNacxrr6.js → DataExport-Cl2LRmuu.js} +1 -1
  21. package/dist/{DataExport.vue_vue_type_script_setup_true_lang-Dnt8MHYd.js → DataExport.vue_vue_type_script_setup_true_lang-DFuUWnTj.js} +14 -13
  22. package/dist/{DataImport-Dm86g3rr.js → DataImport-C8MggQON.js} +1 -1
  23. package/dist/{DataImport.vue_vue_type_script_setup_true_lang-DieNCc_-.js → DataImport.vue_vue_type_script_setup_true_lang-Qgy5ODur.js} +3 -3
  24. package/dist/{Date-2zsvAlTg.js → Date-BRd0o_ib.js} +1 -1
  25. package/dist/{DateRange-DM7_QCBw.js → DateRange-Q6osbxfF.js} +4 -3
  26. package/dist/{DateTime-DMECNCs4.js → DateTime-DSUMg60T.js} +1 -1
  27. package/dist/{Daterange-b5lnauDR.js → Daterange-0qtKemST.js} +4 -3
  28. package/dist/{Decimal-DtTHo5uv.js → Decimal-BBYZHN-L.js} +1 -1
  29. package/dist/{Delete-CJYIlwyA.js → Delete-DkSX4BUu.js} +1 -1
  30. package/dist/{Detail-vOrhBm_q.js → Detail-DlJeIF7u.js} +11 -10
  31. package/dist/{Dictionary-B9oe1_S6.js → Dictionary-DH3ukOm9.js} +4 -3
  32. package/dist/{File-Bmnp2oNs.js → File-27vOsF_i.js} +16 -15
  33. package/dist/{Image-8u9oIiGp.js → Image-BejU08yZ.js} +1 -1
  34. package/dist/Index-BaxI_lNq.js +4 -0
  35. package/dist/Index-BnNuVSxA.js +4 -0
  36. package/dist/{Index-DtM8VZwV.js → Index-BtK4Riqs.js} +1 -1
  37. package/dist/{Index-CS11p-lU.js → Index-ByC6qZPq.js} +9 -8
  38. package/dist/{Index-DiMWhBFC.js → Index-CtQ5rwyH.js} +1 -1
  39. package/dist/{Index-BNXlbQ4E.js → Index-DEDLWObm.js} +1 -1
  40. package/dist/{Index-CSqSf17l.js → Index-DMdBkj-p.js} +1 -1
  41. package/dist/{Index.vue_vue_type_script_setup_true_lang-BPj8s6sN.js → Index.vue_vue_type_script_setup_true_lang-3zk23es9.js} +4 -3
  42. package/dist/{Index.vue_vue_type_script_setup_true_lang-CKE6hz5m.js → Index.vue_vue_type_script_setup_true_lang-CCdCOtFc.js} +1 -1
  43. package/dist/{Index.vue_vue_type_style_index_0_lang-CqDJToNR.js → Index.vue_vue_type_style_index_0_lang-DZJCAfOb.js} +5 -4
  44. package/dist/{Install-DU27ycRi.js → Install-DzOXL82w.js} +12 -11
  45. package/dist/{Int-BuRUWpC5.js → Int-D3k7ZnH3.js} +9 -8
  46. package/dist/{List-DmUA_Qjf.js → List-BeoZ2a1r.js} +9 -8
  47. package/dist/{Maintaince-BxK8vEL8.js → Maintaince-BMLmBQI9.js} +1 -1
  48. package/dist/{Markdown-DuJREXXg.js → Markdown-BVhD-lo1.js} +1 -1
  49. package/dist/{Month-D366v-0Q.js → Month--2hXaJkd.js} +1 -1
  50. package/dist/{Normal-CPn8hp3t.js → Normal-B3Xs7sFU.js} +27 -26
  51. package/dist/{Paging-D1DvQER2.js → Paging-CqpaB0Mn.js} +29 -28
  52. package/dist/{QueryApi-B7_jCs5e.js → QueryApi-BqpLpqXT.js} +1 -1
  53. package/dist/{Racebar-ng-7K86M.js → Racebar-CvsmozFH.js} +5 -4
  54. package/dist/{Radio-DW7t0gUT.js → Radio-DMlWrRLV.js} +1 -1
  55. package/dist/{Register-oG9MMCqJ.js → Register-B7KEYSdN.js} +4 -3
  56. package/dist/{RichText-Bpw54w7L.js → RichText-BX7WZjO-.js} +4 -3
  57. package/dist/{SearchFooter-TOtn9psJ.js → SearchFooter-BSHxMoTL.js} +1 -1
  58. 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
  59. package/dist/{SearchForm-tCH9rcrw.js → SearchForm-CH5YWxKr.js} +1 -1
  60. package/dist/{SearchForm.vue_vue_type_style_index_0_lang-U5f9oExf.js → SearchForm.vue_vue_type_style_index_0_lang-By2w2biv.js} +4 -3
  61. package/dist/{Select-DhpaFdqx.js → Select-B7VB4CHX.js} +1 -1
  62. package/dist/{Select-CGOTSJVh.js → Select-Dmr_Q332.js} +4 -3
  63. package/dist/{Select-Dz8akTqG.js → Select-zZ9NAS5C.js} +1 -1
  64. package/dist/{Single-BETJuNyR.js → Single-z7YLL5yh.js} +6 -5
  65. package/dist/{Statistic-DzF-1c5_.js → Statistic-SFo_gi_N.js} +5 -4
  66. package/dist/{Stock-9Ja_G9Dg.js → Stock-DInt0W2k.js} +1 -1
  67. package/dist/{Stock-CfI244Nf.js → Stock-cw7lE17E.js} +1 -1
  68. package/dist/{Stock.vue_vue_type_style_index_0_lang-DbTd0pjx.js → Stock.vue_vue_type_style_index_0_lang-DKGuyQ08.js} +4 -3
  69. package/dist/{Switch-HAej2klZ.js → Switch-gkN2GOAQ.js} +1 -1
  70. package/dist/{Table-Bes5hPBu.js → Table-BRSX9_5r.js} +2 -2
  71. package/dist/{Table-Q1QCTkqH.js → Table-ByUYlERR.js} +9 -8
  72. package/dist/Text-CXXJqJ8N.js +4 -0
  73. 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
  74. package/dist/{TextLink-o-e-724y.js → TextLink-KC_xsgpi.js} +15 -14
  75. package/dist/{Textarea-2hZMIygc.js → Textarea-DoE5sGRR.js} +1 -1
  76. package/dist/{Timeline-B2unIcOQ.js → Timeline-CTj1FAtR.js} +4 -3
  77. package/dist/{Tree-DO2eaZZT.js → Tree-B2ILQtRK.js} +4 -3
  78. package/dist/{Tree-Bt7FIc2Z.js → Tree-DfY_7l-G.js} +22 -21
  79. package/dist/{TreeNode-k4qKfs3W.js → TreeNode-BV9BiCFt.js} +10 -9
  80. package/dist/{Update-BH1SivST.js → Update-C6EmSv2D.js} +10 -9
  81. package/dist/{Upload-Cw7Ln3cd.js → Upload-CQo4b32p.js} +25 -24
  82. package/dist/{Upload-Bhp3QMff.js → Upload-z2mEnrlN.js} +6 -5
  83. package/dist/{UploadApi-DdQy8bcl.js → UploadApi-C0wC0lME.js} +4 -3
  84. package/dist/{Year-Q2Y-HAuh.js → Year-CEHCOGTW.js} +1 -1
  85. package/dist/{main-iF34LtMW.js → main-CgmRyjET.js} +1296 -1161
  86. package/dist/main.js +55 -54
  87. package/esm/components/layouts/index.d.ts +2 -2
  88. package/esm/drivers/cdns/Cdn.d.ts +2 -1
  89. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  90. package/esm/drivers/cdns/ICdn.d.ts +4 -0
  91. package/esm/drivers/cdns/implements/BootCdn.d.ts +5 -1
  92. package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +3 -1
  93. package/esm/drivers/cdns/implements/LocalCdn.d.ts +5 -1
  94. package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +9 -1
  95. package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +3 -1
  96. package/esm/drivers/driver-helper.d.ts +10 -0
  97. package/esm/drivers/encoders/Encoder.d.ts +11 -0
  98. package/esm/drivers/encoders/EncoderFactory.d.ts +16 -0
  99. package/esm/drivers/encoders/IEncoder.d.ts +22 -0
  100. package/esm/drivers/encoders/implement/Base64Encoder.d.ts +11 -0
  101. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  102. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  103. package/esm/drivers/hashers/Hasher.d.ts +10 -0
  104. package/esm/drivers/hashers/HasherFactory.d.ts +13 -0
  105. package/esm/drivers/hashers/IHasher.d.ts +19 -0
  106. package/esm/drivers/hashers/implement/Md5Hasher.d.ts +10 -0
  107. package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +10 -0
  108. package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
  109. package/esm/drivers/requesters/Requester.d.ts +5 -2
  110. package/esm/drivers/requesters/RequesterFactory.d.ts +7 -1
  111. package/esm/drivers/requesters/implements/MkRequester.d.ts +39 -0
  112. package/esm/drivers/signers/ISigner.d.ts +1 -1
  113. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  114. package/esm/drivers/signers/implements/DefaultSigner.d.ts +3 -1
  115. package/esm/drivers/ssos/ISso.d.ts +1 -1
  116. package/esm/sdks/helpers/dictionary-helper.d.ts +10 -0
  117. package/esm/sdks/helpers/index.d.ts +3 -2
  118. package/esm/sdks/helpers/json-helper.d.ts +4 -0
  119. package/esm/sdks/helpers/object-helper.d.ts +2 -2
  120. package/esm/sdks/helpers/sign-helper.d.ts +14 -0
  121. package/esm/sdks/helpers/string-helper.d.ts +1 -1
  122. package/esm/sdks/helpers/time-helper.d.ts +2 -2
  123. package/esm/sdks/helpers/url-helper.d.ts +4 -4
  124. package/esm/stores/socket.d.ts +1 -1
  125. package/esm/stores/user.d.ts +1 -1
  126. package/package.json +4 -4
  127. package/dist/Code-RAklwsI8.js +0 -4
  128. package/dist/Code.vue_vue_type_style_index_0_lang-zfBqeJue.js +0 -62
  129. package/dist/Index-B_P8rY63.js +0 -4
  130. package/dist/Index-ujUgBmOq.js +0 -4
  131. 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 p, ag as l, D as i, q as n, E as S, ah as u, as as c, F as m, B as d, _ as C, a1 as v, a2 as g, j as y, K as T, N as b, L as M, R as f, Q as h, ae as U, a8 as k, a9 as w, aa as D, y as P, t as E, o as x, n as F, a3 as I, a6 as L, m as R, a0 as W, ab as j, ac as A, a7 as K, r as O, a4 as q, a5 as z, V as G, ad as J, G as B, k as N, H as Q, ao as V, I as X, an as Y, W as Z, ar as _, v as $, M as aa, aj as ea, ai as sa, p as ra, O as oa, P as Ha, ak as ta, x as pa, f as la, i as ia, am as na, S as Sa, al as ua, a as ca, T as ma, c as da, U as Ca, g as va, J as ga, aq as ya, s as Ta, l as ba, h as Ma, $ as fa, u as ha, X as Ua, Y as ka, z as wa, d as Da, Z as Pa, e as Ea, ap as xa } from "./main-iF34LtMW.js";
4
- import { l as Ia } from "./vendor-@monaco-editor-DKC4UNw_.js";
5
- import { h as Ra } from "./vendor-moment-h96o7c8I.js";
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
- p as ControlService,
11
- l as CookieHelper,
12
- i as DomHelper,
13
- n as DriverHelper,
14
- S as EncryptHelper,
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
- v as HaCol,
21
- g as HaCompare,
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
- U as HaGroup,
29
- k as HaHeaderTab,
30
- w as HaHeaderTabs,
31
- D as HaMenu,
32
- P as HaMissComponent,
33
- E as HaOperation,
34
- x as HaPage,
35
- F as HaPanel,
36
- I as HaParticles,
37
- L as HaProgress,
38
- R as HaResizer,
39
- W as HaRow,
40
- j as HaSideTab,
41
- A as HaSideTabs,
42
- K as HaSpinner,
43
- O as HaSwitch,
44
- q as HaTable,
45
- z as HaTableColumn,
46
- G as HaWelcome,
47
- J as HaWindow,
48
- B as HoLayout,
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
- pa as ScrollHelper,
65
- la as SettingService,
66
- ia as StandardService,
67
- na as StorageHelper,
68
- Sa as StringHelper,
69
- ua as TaskHelper,
70
- ca as TimeHelper,
71
- ma as TreeHelper,
72
- da as TypeHelper,
73
- Ca as UploadService,
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
- ga as default,
76
- ya as loadEcharts,
77
- Ia as loader,
78
- Ra as moment,
79
- Ta as useAppStore,
80
- ba as useComponentStore,
81
- Ma as useConfigStore,
82
- fa as useDriverStore,
83
- ha as useI18nStore,
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
- Da as useSettingStore,
88
- Pa as useSocketStore,
89
- Ea as useUserStore,
90
- xa as useWindowStore
88
+ Pa as useSettingStore,
89
+ xa as useSocketStore,
90
+ Fa as useUserStore,
91
+ Ia as useWindowStore
91
92
  };
@@ -1,7 +1,7 @@
1
- import HoLayout from "./Index.vue";
1
+ import HaLayout from "./Index.vue";
2
2
  interface ITaskBar {
3
3
  id: string;
4
4
  menu: string;
5
5
  url: string;
6
6
  }
7
- export { HoLayout, ITaskBar };
7
+ export { HaLayout, ITaskBar };
@@ -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
- abstract getPath(name: string): string;
10
+ getPath(name: string): string;
10
11
  loadPathAsync(path: string, files: string[]): Promise<void>;
11
12
  loadAsync(name: string | string[]): Promise<void>;
12
13
  }
@@ -6,6 +6,6 @@ declare class CdnFactory {
6
6
  /**
7
7
  * 获取指定CDN实例
8
8
  */
9
- static getCdn(type: string): ICdn;
9
+ static create(type: string): ICdn;
10
10
  }
11
11
  export default CdnFactory;
@@ -10,6 +10,10 @@ interface ICdn {
10
10
  * 根路径
11
11
  */
12
12
  baseUrl: string;
13
+ /**
14
+ * CDN资源映射
15
+ */
16
+ mappings: object;
13
17
  /**
14
18
  * 开启
15
19
  */
@@ -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;
@@ -5,7 +5,9 @@ import Cdn from "../Cdn";
5
5
  */
6
6
  declare class JsdelivrCdn extends Cdn implements ICdn {
7
7
  type: string;
8
+ mappings: {
9
+ 'monaco-editor': string;
10
+ };
8
11
  open(conn: string): void;
9
- getPath(name: string): string;
10
12
  }
11
13
  export default JsdelivrCdn;
@@ -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,11 @@
1
+ import Encoder from "../Encoder";
2
+ /**
3
+ * MD5 hash计算
4
+ */
5
+ declare class Base64Encoder extends Encoder {
6
+ type: string;
7
+ open(conn: string): void;
8
+ encode(value: string): string;
9
+ decode(value: string): string;
10
+ }
11
+ export default Base64Encoder;
@@ -6,6 +6,6 @@ declare class ExcelFactory {
6
6
  /**
7
7
  * 获取Excel实例
8
8
  */
9
- static getExcel(type: string): IExcel;
9
+ static create(type: string): IExcel;
10
10
  }
11
11
  export default ExcelFactory;
@@ -6,6 +6,6 @@ declare class FeatureFactory {
6
6
  /**
7
7
  * 获取指定特征实例
8
8
  */
9
- static getFeature(type: string): IFeature;
9
+ static create(type: string): IFeature;
10
10
  }
11
11
  export default FeatureFactory;
@@ -0,0 +1,10 @@
1
+ import IHasher from "./IHasher";
2
+ /**
3
+ * Hash计算基类
4
+ */
5
+ declare abstract class Hasher implements IHasher {
6
+ type: string;
7
+ abstract open(conn: string): void;
8
+ abstract compute(value: string): Promise<string>;
9
+ }
10
+ export default Hasher;
@@ -0,0 +1,13 @@
1
+ import IHasher from "./IHasher";
2
+ declare class HasherFactory {
3
+ /**
4
+ * 创建执行类型的Hash实例
5
+ */
6
+ static create(type: string): IHasher;
7
+ private static md5;
8
+ /**
9
+ * 获取MD5 Hash对象
10
+ */
11
+ static getMd5(): IHasher;
12
+ }
13
+ export default HasherFactory;
@@ -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;
@@ -0,0 +1,10 @@
1
+ import Hasher from "../Hasher";
2
+ /**
3
+ * MD5 hash计算
4
+ */
5
+ declare class Md5Hasher extends Hasher {
6
+ type: string;
7
+ open(conn: string): void;
8
+ compute(value: string): Promise<string>;
9
+ }
10
+ export default Md5Hasher;
@@ -0,0 +1,10 @@
1
+ import Hasher from "../Hasher";
2
+ /**
3
+ * Sha256 Hash计算
4
+ */
5
+ declare class Sha256Hasher extends Hasher {
6
+ type: string;
7
+ open(conn: string): void;
8
+ compute(value: string): Promise<string>;
9
+ }
10
+ export default Sha256Hasher;
@@ -6,6 +6,6 @@ declare class ProviderFactory {
6
6
  /**
7
7
  * 获取指定类型的提供程序
8
8
  */
9
- static getProvider(type: string): IProvider;
9
+ static create(type: string): IProvider;
10
10
  }
11
11
  export default ProviderFactory;
@@ -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 getRequester(type: string): DefaultRequester;
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
  */
@@ -6,6 +6,6 @@ declare class SignerFactory {
6
6
  /**
7
7
  * 获取指定签名实例
8
8
  */
9
- static getSigner(type: string): ISigner;
9
+ static create(type: string): ISigner;
10
10
  }
11
11
  export default SignerFactory;
@@ -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
  }
@@ -32,7 +32,7 @@ interface ISso {
32
32
  /**
33
33
  * 获取授权头,不能泄露域账号等用户标识
34
34
  */
35
- getAuthorization(token: string, timestamp: number, signature: string, env: string): string;
35
+ getAuthorization(token: string, timestamp: number, sign: string, env: string): string;
36
36
  /**
37
37
  * 退出
38
38
  */
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 字典帮助类
3
+ */
4
+ declare class DictionaryHelper {
5
+ /**
6
+ * 从指定字典中提取忽略大小写的key的值
7
+ */
8
+ static getValueIgnoreCase(key: string, value: object): string;
9
+ }
10
+ export default DictionaryHelper;
@@ -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 EncryptHelper from "./encrypt-helper";
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
- export { ComponentHelper, ArrayHelper, CookieHelper, DomHelper, EventHelper, FileHelper, HtmlHelper, ImageHelper, MathHelper, MountHelper, ObjectHelper, MicroHelper, StringHelper, ScriptHelper, TaskHelper, TypeHelper, TimeHelper, TreeHelper, EncryptHelper, StorageHelper, ScrollHelper, JsonHelper, I18nHelper, UrlHelper, };
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,5 +23,9 @@ declare class JsonHelper {
23
23
  * 根据props中的.自动分割得到属性值
24
24
  */
25
25
  static getValue(value: string, props: string): string;
26
+ /**
27
+ * 把json字符串合并到目标对象上
28
+ */
29
+ static mergeTo(target: any, from: string): void;
26
30
  }
27
31
  export default JsonHelper;
@@ -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 merge: (target: any, source: any) => any;
28
+ static mergeTo: (target: any, from: any) => any;
29
29
  /**
30
30
  * 给对象添加属性集合,并赋值
31
31
  */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 签名帮助类
3
+ */
4
+ declare class SignHelper {
5
+ /**
6
+ * 清空对象中的空值
7
+ */
8
+ static clean(obj: object): void;
9
+ /**
10
+ * 签名字典
11
+ */
12
+ static signDictionary(dictionary: object): string;
13
+ }
14
+ export default SignHelper;
@@ -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: (str?: any) => number;
8
+ static getTimestamp: (value?: any) => number;
9
9
  /**
10
10
  * 根据字符串获取可对比的时间
11
11
  */
12
- static getTime: (str?: any) => Date;
12
+ static getTime: (value?: any) => Date;
13
13
  /**
14
14
  * 格式化时间
15
15
  */