halo-fe 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/dist/main.js +1282 -804
  2. package/dist/style.css +1 -0
  3. package/esm/coms/Code.vue.d.ts +41 -0
  4. package/esm/coms/Col.vue.d.ts +11 -0
  5. package/esm/coms/Compare.vue.d.ts +40 -0
  6. package/esm/coms/Container.vue.d.ts +23 -0
  7. package/esm/coms/Empty.vue.d.ts +26 -0
  8. package/esm/coms/Progress.vue.d.ts +8 -0
  9. package/esm/coms/Row.vue.d.ts +21 -0
  10. package/esm/coms/index.d.ts +8 -0
  11. package/esm/coms/types/CodeEmit.d.ts +23 -0
  12. package/esm/coms/types/CodeProps.d.ts +18 -0
  13. package/esm/coms/types/RowProps.d.ts +14 -0
  14. package/esm/coms/types/index.d.ts +4 -0
  15. package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
  16. package/esm/drivers/cdns/index.d.ts +2 -0
  17. package/esm/drivers/encoders/EncoderFactory.d.ts +2 -2
  18. package/esm/drivers/encoders/index.d.ts +2 -0
  19. package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
  20. package/esm/drivers/excels/index.d.ts +2 -1
  21. package/esm/drivers/explainers/index.d.ts +2 -0
  22. package/esm/drivers/factories/DriverFactory.d.ts +12 -12
  23. package/esm/drivers/factories/Factory.d.ts +1 -1
  24. package/esm/drivers/factories/IFactory.d.ts +1 -1
  25. package/esm/drivers/factories/index.d.ts +13 -1
  26. package/esm/drivers/features/FeatureFactory.d.ts +1 -1
  27. package/esm/drivers/features/index.d.ts +2 -1
  28. package/esm/drivers/hashers/HasherFactory.d.ts +2 -2
  29. package/esm/drivers/hashers/index.d.ts +2 -1
  30. package/esm/drivers/https/Http.d.ts +24 -0
  31. package/esm/drivers/https/HttpFactory.d.ts +20 -0
  32. package/esm/drivers/https/IHttp.d.ts +49 -0
  33. package/esm/drivers/https/entities/HttpMessage.d.ts +32 -0
  34. package/esm/drivers/https/entities/HttpRequest.d.ts +19 -0
  35. package/esm/drivers/{requesters → https}/entities/HttpResponse.d.ts +2 -5
  36. package/esm/drivers/{requesters/implements/DefaultRequester.d.ts → https/implements/DefaultHttp.d.ts} +4 -4
  37. package/esm/drivers/https/implements/HaloHttp.d.ts +37 -0
  38. package/esm/drivers/{requesters/implements/MkRequester.d.ts → https/implements/MkHttp.d.ts} +7 -7
  39. package/esm/drivers/https/index.d.ts +6 -0
  40. package/esm/drivers/index.d.ts +8 -8
  41. package/esm/drivers/providers/ProviderFactory.d.ts +3 -3
  42. package/esm/drivers/providers/index.d.ts +2 -1
  43. package/esm/drivers/signers/ISigner.d.ts +2 -2
  44. package/esm/drivers/signers/Signer.d.ts +13 -0
  45. package/esm/drivers/signers/SignerFactory.d.ts +1 -1
  46. package/esm/drivers/signers/implements/DefaultSigner.d.ts +4 -4
  47. package/esm/drivers/signers/index.d.ts +2 -1
  48. package/esm/drivers/ssos/ISso.d.ts +1 -1
  49. package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
  50. package/esm/drivers/ssos/implements/AnonymousSso.d.ts +1 -1
  51. package/esm/drivers/ssos/implements/BearerSso.d.ts +1 -3
  52. package/esm/drivers/ssos/implements/NioSso.d.ts +1 -1
  53. package/esm/drivers/ssos/implements/SecretSso.d.ts +3 -3
  54. package/esm/drivers/ssos/implements/WeiXinSso.d.ts +1 -1
  55. package/esm/drivers/ssos/index.d.ts +2 -1
  56. package/esm/helpers/json-helper.d.ts +12 -4
  57. package/esm/helpers/object-helper.d.ts +4 -0
  58. package/esm/helpers/types/index.d.ts +0 -0
  59. package/esm/helpers/url-helper.d.ts +2 -2
  60. package/esm/main.d.ts +14 -3
  61. package/esm/services/index.d.ts +6 -12
  62. package/esm/services/types/IMessage.d.ts +14 -0
  63. package/esm/services/types/IMessager.d.ts +14 -0
  64. package/esm/services/types/index.d.ts +2 -0
  65. package/esm/stores/config.d.ts +10 -6
  66. package/esm/stores/driver.d.ts +2 -6
  67. package/esm/stores/index.d.ts +3 -2
  68. package/esm/stores/setting.d.ts +0 -4
  69. package/esm/stores/user.d.ts +3 -7
  70. package/esm/utilities/AffixUtility.d.ts +10 -0
  71. package/esm/utilities/EventUtility.d.ts +30 -0
  72. package/esm/utilities/KeyboardUtility.d.ts +73 -0
  73. package/esm/utilities/MouseUtility.d.ts +24 -0
  74. package/esm/utilities/index.d.ts +4 -0
  75. package/package.json +7 -7
  76. package/dist/vendor-axios-ud9O0vdJ.js +0 -1670
  77. package/esm/drivers/driver-helper.d.ts +0 -46
  78. package/esm/drivers/requesters/IRequester.d.ts +0 -25
  79. package/esm/drivers/requesters/Requester.d.ts +0 -13
  80. package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
  81. package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
  82. package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
  83. package/esm/drivers/requesters/index.d.ts +0 -5
  84. /package/esm/{thirds → plugins}/index.d.ts +0 -0
@@ -1,46 +0,0 @@
1
- import ISso from "./ssos/ISso";
2
- import ISigner from "./signers/ISigner";
3
- import IFeature from "./features/IFeature";
4
- import IProvider from "./providers/IProvider";
5
- import IExcel from "./excels/IExcel";
6
- import ICdn from "./cdns/ICdn";
7
- import IEncoder from "./encoders/IEncoder";
8
- import IHasher from "./hashers/IHasher";
9
- /**
10
- * 驱动帮助类
11
- */
12
- declare class DriverHelper {
13
- /**
14
- * 获取SSO
15
- */
16
- static getSso(type: string): ISso;
17
- /**
18
- * 获取签名器
19
- */
20
- static getSigner(type: string): ISigner;
21
- /**
22
- * 获取特征
23
- */
24
- static getFeature(type: string): IFeature;
25
- /**
26
- * 获取并开启 指定类型的驱动程序
27
- */
28
- static getProviderAsync(type: string, store?: string): Promise<IProvider>;
29
- /**
30
- * 获取Excel实例
31
- */
32
- static getExcel(type: string): IExcel;
33
- /**
34
- * 获取CDN实例
35
- */
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;
45
- }
46
- export default DriverHelper;
@@ -1,25 +0,0 @@
1
- import HttpRequest from "./entities/HttpRequest";
2
- import HttpResponse from "./entities/HttpResponse";
3
- import IDriver from "../IDriver";
4
- /**
5
- * 请求器接口
6
- */
7
- interface IRequester extends IDriver {
8
- /**
9
- * 开启
10
- */
11
- open(conn: string): void;
12
- /**
13
- * 发送Post请求
14
- */
15
- post<T>(path: string, body: any): Promise<T>;
16
- /**
17
- * 发送Post请求
18
- */
19
- post(path: string, body: any): Promise<HttpResponse>;
20
- /**
21
- * 发送请求
22
- */
23
- send(request: HttpRequest): Promise<HttpResponse>;
24
- }
25
- export default IRequester;
@@ -1,13 +0,0 @@
1
- import IRequester from "./IRequester";
2
- import HttpRequest from "./entities/HttpRequest";
3
- import HttpResponse from "./entities/HttpResponse";
4
- /**
5
- * 请求器基类
6
- */
7
- declare abstract class Requester implements IRequester {
8
- type: string;
9
- abstract open(conn: string): void;
10
- post(path: string, body: any): Promise<HttpResponse>;
11
- abstract send(request: HttpRequest): Promise<HttpResponse>;
12
- }
13
- export default Requester;
@@ -1,21 +0,0 @@
1
- import IRequester from "./IRequester";
2
- import Factory from "../factories/Factory";
3
- /**
4
- * 请求器工厂类
5
- */
6
- declare class RequesterFactory extends Factory<IRequester> {
7
- getInstances(): IRequester[];
8
- create(type: string, conn?: string): IRequester;
9
- private _default;
10
- /**
11
- * 获取默认请求器
12
- */
13
- getDefault(): IRequester;
14
- private local;
15
- /**
16
- * 获取本地请求实例
17
- * 获取完毕后,下游第一行代码就要配置消息服务
18
- */
19
- getLocal(): IRequester;
20
- }
21
- export default RequesterFactory;
@@ -1,34 +0,0 @@
1
- /**
2
- * Http请求
3
- */
4
- declare class HttpRequest {
5
- /**
6
- * 请求路径
7
- */
8
- path: string;
9
- /**
10
- * 请求方法
11
- */
12
- method: string;
13
- /**
14
- * 实际请求地址
15
- */
16
- url?: string;
17
- /**
18
- * 请求头
19
- */
20
- headers?: [string, string];
21
- /**
22
- * 内容类型
23
- */
24
- contentType: string;
25
- /**
26
- * 请求数据
27
- */
28
- data: any;
29
- /**
30
- * 请求体
31
- */
32
- body: string;
33
- }
34
- export default HttpRequest;
@@ -1,43 +0,0 @@
1
- import { AxiosError, AxiosInstance, AxiosResponse } from "axios";
2
- import Requester from "../Requester";
3
- import HttpRequest from "../entities/HttpRequest";
4
- import HttpResponse from "../entities/HttpResponse";
5
- import { IMessageService } from "../../../services";
6
- /**
7
- * 本地请求器
8
- */
9
- declare class LocalRequester extends Requester {
10
- type: string;
11
- request: AxiosInstance;
12
- /**
13
- * 消息服务实例
14
- */
15
- messageService: IMessageService;
16
- open(conn: string): void;
17
- send(request: HttpRequest): Promise<HttpResponse>;
18
- /**
19
- * GET请求
20
- */
21
- get(url: string, params?: any, headers?: object): Promise<any>;
22
- /**
23
- * POST请求
24
- */
25
- post(url: string, body?: any, config?: any): Promise<any>;
26
- /**
27
- * PATCH请求
28
- */
29
- patch(url: string, body?: any, config?: any): Promise<any>;
30
- /**
31
- * 处理响应信息 或 响应体信息
32
- */
33
- handleResponse(res: AxiosResponse): Promise<any>;
34
- /**
35
- * 处理响应体信息,并自动添加响应通知
36
- */
37
- handleResponseBody(body: any, tip?: boolean): Promise<any>;
38
- /**
39
- * 处理网络错误和响应错误场景
40
- */
41
- handleError(error: AxiosError | any): Promise<never>;
42
- }
43
- export default LocalRequester;
@@ -1,5 +0,0 @@
1
- import RequesterFactory from "./RequesterFactory";
2
- import type IRequester from "./IRequester";
3
- import type HttpRequest from "./entities/HttpRequest";
4
- import type HttpResponse from "./entities/HttpResponse";
5
- export { RequesterFactory, IRequester, HttpRequest, HttpResponse };
File without changes