halo-fe 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/@intlify-BISCQg1h.js +2189 -0
- package/dist/{vendor-@monaco-editor-DKC4UNw_.js → assets/@monaco-editor-BCDRi0Ti.js} +1 -1
- package/dist/assets/@vue-aVYGocXp.js +93 -0
- package/dist/assets/clone-DtpAsLoe.js +139 -0
- package/dist/{vendor-file-saver-DKXzEV2Q.js → assets/file-saver-Cnua3zoa.js} +1 -1
- package/dist/assets/liquidjs-C-LVcoaY.js +2893 -0
- package/dist/{vendor-underscore.string-vrHhfBaT.js → assets/underscore.string-oDfap0sE.js} +3 -3
- package/dist/{vendor-util-deprecate-BfbfwJhs.js → assets/util-deprecate-BqFawLoO.js} +1 -1
- package/dist/assets/vue-i18n-CLr3brPz.js +1670 -0
- package/dist/main.js +2383 -1579
- package/dist/style.css +1 -1
- package/esm/coms/Empty.vue.d.ts +1 -0
- package/esm/coms/conditions/Condition.vue.d.ts +12 -0
- package/esm/coms/conditions/Index.vue.d.ts +12 -0
- package/esm/coms/conditions/index.d.ts +3 -0
- package/esm/coms/conditions/types/ConditionGroupProps.d.ts +11 -0
- package/esm/coms/conditions/types/ConditionProps.d.ts +18 -0
- package/esm/coms/conditions/types/index.d.ts +3 -0
- package/esm/coms/{Code.vue.d.ts → controls/Code.vue.d.ts} +11 -3
- package/esm/coms/controls/Option.vue.d.ts +2 -0
- package/esm/coms/controls/Select.vue.d.ts +2 -0
- package/esm/coms/controls/index.d.ts +7 -0
- package/esm/coms/{types → controls/types}/CodeEmit.d.ts +1 -1
- package/esm/coms/controls/types/CodeProps.d.ts +28 -0
- package/esm/coms/controls/types/Range.d.ts +26 -0
- package/esm/coms/controls/types/index.d.ts +6 -0
- package/esm/coms/index.d.ts +5 -8
- package/esm/coms/layouts/index.d.ts +5 -0
- package/esm/coms/layouts/types/index.d.ts +2 -0
- package/esm/coms/types/index.d.ts +1 -6
- package/esm/drivers/bridges/IBridge.d.ts +7 -1
- package/esm/drivers/builders/Builder.d.ts +4 -1
- package/esm/drivers/builders/BuilderFactory.d.ts +1 -1
- package/esm/drivers/builders/IBuilder.d.ts +9 -0
- package/esm/drivers/builders/entities/ProviderTable.d.ts +22 -0
- package/esm/drivers/builders/entities/index.d.ts +2 -0
- package/esm/drivers/builders/implement/JsonBuilder.d.ts +3 -0
- package/esm/drivers/builders/implement/MongoBuilder.d.ts +6 -0
- package/esm/drivers/builders/implement/MySqlBuilder.d.ts +3 -0
- package/esm/drivers/builders/implement/SqlBuilder.d.ts +6 -0
- package/esm/drivers/builders/index.d.ts +3 -1
- package/esm/drivers/builders/types/ProviderTable.d.ts +6 -0
- package/esm/drivers/builders/types/index.d.ts +2 -0
- package/esm/drivers/cdns/Cdn.d.ts +20 -7
- package/esm/drivers/cdns/CdnFactory.d.ts +1 -1
- package/esm/drivers/cdns/ICdn.d.ts +28 -11
- package/esm/drivers/cdns/implements/LocalCdn.d.ts +13 -6
- package/esm/drivers/cdns/implements/ThirdCdn.d.ts +34 -0
- package/esm/drivers/cdns/index.d.ts +2 -1
- package/esm/drivers/encoders/Encoder.d.ts +1 -1
- package/esm/drivers/encoders/EncoderFactory.d.ts +1 -1
- package/esm/drivers/encoders/IEncoder.d.ts +1 -1
- package/esm/drivers/encoders/implement/Base64Encoder.d.ts +2 -1
- package/esm/drivers/excels/ExcelFactory.d.ts +1 -1
- package/esm/drivers/excels/implements/XlsxExcel.d.ts +1 -0
- package/esm/drivers/explainers/ExplainerFactory.d.ts +1 -1
- package/esm/drivers/features/FeatureFactory.d.ts +1 -1
- package/esm/drivers/hashers/Hasher.d.ts +1 -1
- package/esm/drivers/hashers/HasherFactory.d.ts +1 -1
- package/esm/drivers/hashers/IHasher.d.ts +1 -1
- package/esm/drivers/hashers/implement/Md5Hasher.d.ts +2 -1
- package/esm/drivers/hashers/implement/Sha256Hasher.d.ts +1 -1
- package/esm/drivers/https/Http.d.ts +2 -2
- package/esm/drivers/https/HttpFactory.d.ts +1 -1
- package/esm/drivers/https/entities/HttpMessage.d.ts +14 -3
- package/esm/drivers/https/entities/HttpRequest.d.ts +6 -2
- package/esm/drivers/https/implements/DefaultHttp.d.ts +9 -1
- package/esm/drivers/index.d.ts +2 -0
- package/esm/{plugins/types → drivers/messengers}/IMessenger.d.ts +2 -1
- package/esm/drivers/messengers/Messenger.d.ts +15 -0
- package/esm/drivers/messengers/MessengerFactory.d.ts +13 -0
- package/esm/drivers/messengers/implement/ConsoleMessenger.d.ts +15 -0
- package/esm/drivers/messengers/index.d.ts +4 -0
- package/esm/drivers/providers/IProvider.d.ts +6 -2
- package/esm/drivers/providers/Provider.d.ts +2 -0
- package/esm/drivers/providers/ProviderFactory.d.ts +1 -1
- package/esm/drivers/providers/helpers/SqlHelper.d.ts +11 -0
- package/esm/drivers/providers/helpers/index.d.ts +2 -0
- package/esm/drivers/providers/implements/CookieProvider.d.ts +2 -0
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -0
- package/esm/drivers/providers/implements/StorageProvider.d.ts +3 -9
- package/esm/drivers/providers/index.d.ts +1 -0
- package/esm/drivers/signers/SignerFactory.d.ts +1 -1
- package/esm/drivers/ssos/SsoFactory.d.ts +1 -1
- package/esm/drivers/tasks/ITask.d.ts +5 -0
- package/esm/drivers/tasks/Task.d.ts +1 -0
- package/esm/drivers/tasks/TaskFactory.d.ts +1 -1
- package/esm/drivers/tasks/implement/MemoryTask.d.ts +15 -0
- package/esm/drivers/templates/ITemplate.d.ts +11 -0
- package/esm/drivers/templates/Template.d.ts +6 -0
- package/esm/drivers/templates/TemplateFactory.d.ts +9 -0
- package/esm/drivers/templates/implement/LiquidTemplate.d.ts +6 -0
- package/esm/drivers/templates/index.d.ts +3 -0
- package/esm/drivers/videos/VideoFactory.d.ts +1 -1
- package/esm/drivers/voices/VoiceFactory.d.ts +1 -1
- package/esm/factorying/Factories.d.ts +27 -13
- package/esm/factorying/Factory.d.ts +16 -8
- package/esm/factorying/IFactory.d.ts +6 -6
- package/esm/factorying/index.d.ts +12 -3
- package/esm/helpers/DictionaryHelper.d.ts +3 -1
- package/esm/helpers/DomHelper.d.ts +24 -3
- package/esm/helpers/JsonHelper.d.ts +18 -10
- package/esm/helpers/ObjectHelper.d.ts +7 -3
- package/esm/helpers/TreeHelper.d.ts +1 -1
- package/esm/helpers/index.d.ts +1 -2
- package/esm/helpers/types/JsonConfig.d.ts +10 -0
- package/esm/helpers/types/TreeNodeProp.d.ts +3 -0
- package/esm/helpers/types/index.d.ts +2 -1
- package/esm/main.d.ts +2 -2
- package/esm/plugins/index.d.ts +0 -1
- package/esm/svcs/ISvc.d.ts +2 -1
- package/esm/svcs/Svc.d.ts +1 -0
- package/esm/svcs/SvcFactory.d.ts +4 -1
- package/esm/svcs/implement/ConfigSvc.d.ts +4 -0
- package/esm/svcs/implement/I18nSvc.d.ts +83 -0
- package/esm/svcs/implement/SettingSvc.d.ts +4 -0
- package/esm/svcs/implement/index.d.ts +2 -0
- package/esm/svcs/index.d.ts +14 -1
- package/esm/types/CreateFeOptions.d.ts +24 -0
- package/esm/types/{CreateOptions.d.ts → CreatePcOptions.d.ts} +2 -5
- package/esm/types/index.d.ts +3 -2
- package/esm/utilities/EventUtility.d.ts +11 -0
- package/esm/utilities/types/DragOptions.d.ts +2 -2
- package/esm/utilities/types/Rect.d.ts +4 -0
- package/esm/utilities/types/index.d.ts +2 -2
- package/package.json +16 -12
- package/dist/vendor-clone-NGbTzSwJ.js +0 -159
- package/dist/vendor-crypto-js-DWn5nTKL.js +0 -4997
- package/dist/vendor-xlsx-js-style-DMPNZPOx.js +0 -11862
- package/esm/coms/types/CodeProps.d.ts +0 -18
- package/esm/drivers/IDisposable.d.ts +0 -10
- package/esm/drivers/IDriver.d.ts +0 -10
- package/esm/drivers/cdns/implements/BootCdn.d.ts +0 -12
- package/esm/drivers/cdns/implements/JsdelivrCdn.d.ts +0 -13
- package/esm/drivers/cdns/implements/StaticFileCdn.d.ts +0 -16
- package/esm/drivers/cdns/implements/UnpkgCdn.d.ts +0 -10
- package/esm/drivers/driver-helper.d.ts +0 -46
- package/esm/drivers/factories/DriverFactory.d.ts +0 -64
- package/esm/drivers/factories/Factories.d.ts +0 -55
- package/esm/drivers/factories/Factory.d.ts +0 -25
- package/esm/drivers/factories/IFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/CdnFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/EncoderFactory.d.ts +0 -17
- package/esm/drivers/factories/implement/ExcelFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/ExplainerFactory.d.ts +0 -6
- package/esm/drivers/factories/implement/FeatureFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/HasherFactory.d.ts +0 -11
- package/esm/drivers/factories/implement/HttpFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/ProviderFactory.d.ts +0 -18
- package/esm/drivers/factories/implement/SignerFactory.d.ts +0 -13
- package/esm/drivers/factories/implement/SsoFactory.d.ts +0 -17
- package/esm/drivers/factories/implement/TaskFactory.d.ts +0 -9
- package/esm/drivers/factories/implement/VideoFactory.d.ts +0 -3
- package/esm/drivers/factories/implement/VoiceFactory.d.ts +0 -6
- package/esm/drivers/factories/implement/index.d.ts +0 -11
- package/esm/drivers/factories/index.d.ts +0 -21
- package/esm/drivers/providers/implements/StorageHelper.d.ts +0 -34
- package/esm/drivers/requesters/IRequester.d.ts +0 -25
- package/esm/drivers/requesters/Requester.d.ts +0 -13
- package/esm/drivers/requesters/RequesterFactory.d.ts +0 -21
- package/esm/drivers/requesters/entities/HttpRequest.d.ts +0 -34
- package/esm/drivers/requesters/entities/HttpResponse.d.ts +0 -19
- package/esm/drivers/requesters/implements/DefaultRequester.d.ts +0 -12
- package/esm/drivers/requesters/implements/LocalRequester.d.ts +0 -43
- package/esm/drivers/requesters/implements/MkRequester.d.ts +0 -40
- package/esm/drivers/requesters/index.d.ts +0 -5
- package/esm/factories/Factories.d.ts +0 -55
- package/esm/factories/Factory.d.ts +0 -38
- package/esm/factories/IFactory.d.ts +0 -27
- package/esm/factories/index.d.ts +0 -26
- package/esm/helpers/ScriptHelper.d.ts +0 -31
- package/esm/helpers/array-helper.d.ts +0 -97
- package/esm/helpers/component-helper.d.ts +0 -10
- package/esm/helpers/cookie-helper.d.ts +0 -6
- package/esm/helpers/dictionary-helper.d.ts +0 -18
- package/esm/helpers/dom-helper.d.ts +0 -86
- package/esm/helpers/event-helper.d.ts +0 -30
- package/esm/helpers/file-helper.d.ts +0 -22
- package/esm/helpers/html-helper.d.ts +0 -10
- package/esm/helpers/i18n-helper.d.ts +0 -14
- package/esm/helpers/image-helper.d.ts +0 -10
- package/esm/helpers/json-helper.d.ts +0 -31
- package/esm/helpers/math-helper.d.ts +0 -46
- package/esm/helpers/micro-helper.d.ts +0 -10
- package/esm/helpers/mount-helper.d.ts +0 -14
- package/esm/helpers/object-helper.d.ts +0 -34
- package/esm/helpers/script-helper.d.ts +0 -31
- package/esm/helpers/scroll-helper.d.ts +0 -14
- package/esm/helpers/sign-helper.d.ts +0 -14
- package/esm/helpers/storage-helper.d.ts +0 -34
- package/esm/helpers/string-helper.d.ts +0 -94
- package/esm/helpers/task-helper.d.ts +0 -26
- package/esm/helpers/time-helper.d.ts +0 -62
- package/esm/helpers/tree-helper.d.ts +0 -54
- package/esm/helpers/type-helper.d.ts +0 -26
- package/esm/helpers/url-helper.d.ts +0 -96
- package/esm/plugins/types/IMessager.d.ts +0 -34
- package/esm/plugins/types/index.d.ts +0 -10
- package/esm/services/SettingService.d.ts +0 -5
- package/esm/services/index.d.ts +0 -15
- package/esm/servs/IServ.d.ts +0 -6
- package/esm/servs/Serv.d.ts +0 -4
- package/esm/servs/ServFactory.d.ts +0 -11
- package/esm/servs/implement/ConfigServ.d.ts +0 -66
- package/esm/servs/implement/DriverServ.d.ts +0 -36
- package/esm/servs/implement/EnvServ.d.ts +0 -14
- package/esm/servs/implement/LogServ.d.ts +0 -19
- package/esm/servs/implement/SettingServ.d.ts +0 -42
- package/esm/servs/implement/SocketServ.d.ts +0 -38
- package/esm/servs/implement/UserServ.d.ts +0 -47
- package/esm/servs/index.d.ts +0 -15
- package/esm/stores/config.d.ts +0 -59
- package/esm/stores/driver.d.ts +0 -41
- package/esm/stores/env.d.ts +0 -12
- package/esm/stores/index.d.ts +0 -7
- package/esm/stores/log.d.ts +0 -20
- package/esm/stores/setting.d.ts +0 -47
- package/esm/stores/socket.d.ts +0 -27
- package/esm/stores/user.d.ts +0 -44
- package/esm/svcs/proxies/driverSvc.d.ts +0 -18
- package/esm/svcs/proxies/index.d.ts +0 -2
- package/esm/thirds/index.d.ts +0 -8
- package/esm/vite.config.d.ts +0 -6
- /package/dist/{vendor-moment-h96o7c8I.js → assets/moment-h96o7c8I.js} +0 -0
- /package/dist/{vendor-sprintf-js-BPTdvBYM.js → assets/sprintf-js-BPTdvBYM.js} +0 -0
- /package/dist/{vendor-state-local-CEworIRt.js → assets/state-local-CEworIRt.js} +0 -0
- /package/dist/{vendor-underscore-B0BCaBxV.js → assets/underscore-B0BCaBxV.js} +0 -0
- /package/esm/coms/{Compare.vue.d.ts → controls/Compare.vue.d.ts} +0 -0
- /package/esm/coms/{RichText.vue.d.ts → controls/RichText.vue.d.ts} +0 -0
- /package/esm/coms/{types → controls/types}/RichTextOptions.d.ts +0 -0
- /package/esm/coms/{types → controls/types}/RichTextProps.d.ts +0 -0
- /package/esm/coms/{Col.vue.d.ts → layouts/Col.vue.d.ts} +0 -0
- /package/esm/coms/{Container.vue.d.ts → layouts/Container.vue.d.ts} +0 -0
- /package/esm/coms/{Row.vue.d.ts → layouts/Row.vue.d.ts} +0 -0
- /package/esm/coms/{types → layouts/types}/RowProps.d.ts +0 -0
package/esm/drivers/IDriver.d.ts
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
import Cdn from "../Cdn";
|
2
|
-
/**
|
3
|
-
* StaticFile
|
4
|
-
*/
|
5
|
-
declare class StaticFileCdn extends Cdn {
|
6
|
-
type: string;
|
7
|
-
baseUrl: string;
|
8
|
-
mappings: {
|
9
|
-
'element-plus': string;
|
10
|
-
'monaco-editor': string;
|
11
|
-
quill: string;
|
12
|
-
'fort-awesome': string;
|
13
|
-
};
|
14
|
-
open(conn: string): void;
|
15
|
-
}
|
16
|
-
export default StaticFileCdn;
|
@@ -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,64 +0,0 @@
|
|
1
|
-
import { HttpFactory } from "../https";
|
2
|
-
import { EncoderFactory } from "../encoders";
|
3
|
-
import { SignerFactory } from "../signers";
|
4
|
-
import { SsoFactory } from "../ssos";
|
5
|
-
import { CdnFactory } from "../cdns";
|
6
|
-
import { ExplainerFactory } from "../explainers";
|
7
|
-
import { ExcelFactory } from "../excels";
|
8
|
-
import { FeatureFactory } from "../features";
|
9
|
-
import { HasherFactory } from "../hashers";
|
10
|
-
import { ProviderFactory } from "../providers";
|
11
|
-
/**
|
12
|
-
* 驱动工厂类
|
13
|
-
*/
|
14
|
-
declare class DriverFactory {
|
15
|
-
/**
|
16
|
-
* 工厂缓存
|
17
|
-
*/
|
18
|
-
static mappings: {};
|
19
|
-
/**
|
20
|
-
* 获取并缓存工厂实例
|
21
|
-
*/
|
22
|
-
static create(name: string, type: any): any;
|
23
|
-
/**
|
24
|
-
*获取CDN工厂
|
25
|
-
*/
|
26
|
-
static getCdn(): CdnFactory;
|
27
|
-
/**
|
28
|
-
*获取编码器工厂
|
29
|
-
*/
|
30
|
-
static getEncoder(): EncoderFactory;
|
31
|
-
/**
|
32
|
-
*获取Excel工厂
|
33
|
-
*/
|
34
|
-
static getExcel(): ExcelFactory;
|
35
|
-
/**
|
36
|
-
*获取Explainer工厂
|
37
|
-
*/
|
38
|
-
static getExplainer(): ExplainerFactory;
|
39
|
-
/**
|
40
|
-
*获取特征工厂
|
41
|
-
*/
|
42
|
-
static getFeature(): FeatureFactory;
|
43
|
-
/**
|
44
|
-
*获取哈希工厂
|
45
|
-
*/
|
46
|
-
static getHasher(): HasherFactory;
|
47
|
-
/**
|
48
|
-
*获取提供程序工厂
|
49
|
-
*/
|
50
|
-
static getProvider(): ProviderFactory;
|
51
|
-
/**
|
52
|
-
*获取Http请求工厂
|
53
|
-
*/
|
54
|
-
static getHttp(): HttpFactory;
|
55
|
-
/**
|
56
|
-
*获取签名工厂
|
57
|
-
*/
|
58
|
-
static getSigner(): SignerFactory;
|
59
|
-
/**
|
60
|
-
*获取SSO工厂
|
61
|
-
*/
|
62
|
-
static getSso(): SsoFactory;
|
63
|
-
}
|
64
|
-
export default DriverFactory;
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { HttpFactory, EncoderFactory, CdnFactory, ExplainerFactory, ExcelFactory, FeatureFactory, HasherFactory, ProviderFactory, SignerFactory, SsoFactory } from "./implement";
|
2
|
-
/**
|
3
|
-
* 驱动工厂类
|
4
|
-
*/
|
5
|
-
declare class Factories {
|
6
|
-
/**
|
7
|
-
* 工厂缓存
|
8
|
-
*/
|
9
|
-
static mappings: {};
|
10
|
-
/**
|
11
|
-
* 并缓存工厂实例
|
12
|
-
*/
|
13
|
-
static create(name: string, type: any): any;
|
14
|
-
/**
|
15
|
-
*CDN工厂
|
16
|
-
*/
|
17
|
-
static get cdn(): CdnFactory;
|
18
|
-
/**
|
19
|
-
*编码器工厂
|
20
|
-
*/
|
21
|
-
static get encoder(): EncoderFactory;
|
22
|
-
/**
|
23
|
-
*Excel工厂
|
24
|
-
*/
|
25
|
-
static get excel(): ExcelFactory;
|
26
|
-
/**
|
27
|
-
*Explainer工厂
|
28
|
-
*/
|
29
|
-
static get explainer(): ExplainerFactory;
|
30
|
-
/**
|
31
|
-
*特征工厂
|
32
|
-
*/
|
33
|
-
static get feature(): FeatureFactory;
|
34
|
-
/**
|
35
|
-
*哈希工厂
|
36
|
-
*/
|
37
|
-
static get hasher(): HasherFactory;
|
38
|
-
/**
|
39
|
-
*提供程序工厂
|
40
|
-
*/
|
41
|
-
static get provider(): ProviderFactory;
|
42
|
-
/**
|
43
|
-
*Http请求工厂
|
44
|
-
*/
|
45
|
-
static get http(): HttpFactory;
|
46
|
-
/**
|
47
|
-
*签名工厂
|
48
|
-
*/
|
49
|
-
static get signer(): SignerFactory;
|
50
|
-
/**
|
51
|
-
*SSO工厂
|
52
|
-
*/
|
53
|
-
static get sso(): SsoFactory;
|
54
|
-
}
|
55
|
-
export default Factories;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import IFactory from "./IFactory";
|
2
|
-
import IDriver from "../IDriver";
|
3
|
-
/**
|
4
|
-
* 工厂基类
|
5
|
-
*/
|
6
|
-
declare abstract class Factory<T extends IDriver> implements IFactory<T> {
|
7
|
-
/**
|
8
|
-
* 实例集合
|
9
|
-
* 或者使用:Record<string, string>
|
10
|
-
*/
|
11
|
-
private instances;
|
12
|
-
/**
|
13
|
-
* 获取当前驱动所有实例
|
14
|
-
*/
|
15
|
-
abstract getInstances(): T[];
|
16
|
-
/**
|
17
|
-
* 创建指定类型驱动
|
18
|
-
*/
|
19
|
-
create(type: string, conn?: string): Promise<T>;
|
20
|
-
/**
|
21
|
-
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
22
|
-
*/
|
23
|
-
createIfAbsent(name: string, type?: string, open?: (entity: T) => void): Promise<T>;
|
24
|
-
}
|
25
|
-
export default Factory;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 工厂接口
|
3
|
-
*/
|
4
|
-
interface IFactory<T> {
|
5
|
-
/**
|
6
|
-
* 获取当前驱动所有实例
|
7
|
-
*/
|
8
|
-
getInstances(): T[];
|
9
|
-
/**
|
10
|
-
* 创建指定类型的实例
|
11
|
-
*/
|
12
|
-
create(type: string, conn?: string): Promise<T>;
|
13
|
-
/**
|
14
|
-
* 从缓存中获取指定名称的驱动,不存在则创建并执行初始化
|
15
|
-
*/
|
16
|
-
createIfAbsent(name: string, type: string, open?: (entity: T) => void): Promise<T>;
|
17
|
-
}
|
18
|
-
export default IFactory;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import ICdn from "../../cdns/ICdn";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* CDN工厂类
|
5
|
-
*/
|
6
|
-
declare class CdnFactory extends Factory<ICdn> {
|
7
|
-
getInstances(): ICdn[];
|
8
|
-
/**
|
9
|
-
* 获取指定CDN实例
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<ICdn>;
|
12
|
-
}
|
13
|
-
export default CdnFactory;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import IEncoder from "../../encoders/IEncoder";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* 编码器工厂
|
5
|
-
*/
|
6
|
-
declare class EncoderFactory extends Factory<IEncoder> {
|
7
|
-
getInstances(): IEncoder[];
|
8
|
-
/**
|
9
|
-
* 创建执行类型的Hash实例
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<IEncoder>;
|
12
|
-
/**
|
13
|
-
* 获取Base64 编码器对象
|
14
|
-
*/
|
15
|
-
getBase64(): Promise<IEncoder>;
|
16
|
-
}
|
17
|
-
export default EncoderFactory;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import IExcel from "../../excels/IExcel";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* Excel工厂
|
5
|
-
*/
|
6
|
-
declare class ExcelFactory extends Factory<IExcel> {
|
7
|
-
getInstances(): IExcel[];
|
8
|
-
/**
|
9
|
-
* 获取Excel实例
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<IExcel>;
|
12
|
-
}
|
13
|
-
export default ExcelFactory;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import IFeature from "../../features/IFeature";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* 特征工厂类
|
5
|
-
*/
|
6
|
-
declare class FeatureFactory extends Factory<IFeature> {
|
7
|
-
getInstances(): IFeature[];
|
8
|
-
/**
|
9
|
-
* 获取指定特征实例
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<IFeature>;
|
12
|
-
}
|
13
|
-
export default FeatureFactory;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import IHasher from "../../hashers/IHasher";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
declare class HasherFactory extends Factory<IHasher> {
|
4
|
-
getInstances(): IHasher[];
|
5
|
-
create(type: string, conn?: string): Promise<IHasher>;
|
6
|
-
/**
|
7
|
-
* 获取MD5 Hash对象
|
8
|
-
*/
|
9
|
-
getMd5(): Promise<IHasher>;
|
10
|
-
}
|
11
|
-
export default HasherFactory;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import IHttp from "../../https/IHttp";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* 请求器工厂类
|
5
|
-
*/
|
6
|
-
declare class HttpFactory extends Factory<IHttp> {
|
7
|
-
getInstances(): IHttp[];
|
8
|
-
/**
|
9
|
-
* 获取默认请求器
|
10
|
-
*/
|
11
|
-
getDefault(): Promise<IHttp>;
|
12
|
-
/**
|
13
|
-
* 获取本地请求实例
|
14
|
-
* 获取完毕后,下游第一行代码就要配置消息服务
|
15
|
-
*/
|
16
|
-
getHalo(): Promise<IHttp>;
|
17
|
-
}
|
18
|
-
export default HttpFactory;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import IProvider from "../../providers/IProvider";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* 数据库提供程序工厂类
|
5
|
-
*/
|
6
|
-
declare class ProviderFactory extends Factory<IProvider> {
|
7
|
-
getInstances(): IProvider[];
|
8
|
-
/**
|
9
|
-
* 获取指定类型的提供程序
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<IProvider>;
|
12
|
-
private _default;
|
13
|
-
/**
|
14
|
-
* 获取并开启默认驱动程序
|
15
|
-
*/
|
16
|
-
getDefault(store: string): Promise<IProvider>;
|
17
|
-
}
|
18
|
-
export default ProviderFactory;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import ISigner from "../../signers/ISigner";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* 签名工厂类
|
5
|
-
*/
|
6
|
-
declare class SignerFactory extends Factory<ISigner> {
|
7
|
-
getInstances(): ISigner[];
|
8
|
-
/**
|
9
|
-
* 获取指定签名实例
|
10
|
-
*/
|
11
|
-
create(type: string, conn?: string): Promise<ISigner>;
|
12
|
-
}
|
13
|
-
export default SignerFactory;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import ISso from "../../ssos/ISso";
|
2
|
-
import Factory from "../Factory";
|
3
|
-
/**
|
4
|
-
* SSO工厂类
|
5
|
-
* @extends {Factory<ISso>}
|
6
|
-
*/
|
7
|
-
declare class SsoFactory extends Factory<ISso> {
|
8
|
-
/**
|
9
|
-
* @extends {getInstances}
|
10
|
-
*/
|
11
|
-
getInstances(): ISso[];
|
12
|
-
/**
|
13
|
-
* 获取指定SSO实例
|
14
|
-
*/
|
15
|
-
create(type: string, conn?: string): Promise<ISso>;
|
16
|
-
}
|
17
|
-
export default SsoFactory;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import HttpFactory from "./HttpFactory";
|
2
|
-
import EncoderFactory from "./EncoderFactory";
|
3
|
-
import CdnFactory from "./CdnFactory";
|
4
|
-
import ExplainerFactory from "./ExplainerFactory";
|
5
|
-
import ExcelFactory from "./ExcelFactory";
|
6
|
-
import FeatureFactory from "./FeatureFactory";
|
7
|
-
import HasherFactory from "./HasherFactory";
|
8
|
-
import ProviderFactory from "./ProviderFactory";
|
9
|
-
import SignerFactory from "./SignerFactory";
|
10
|
-
import SsoFactory from "./SsoFactory";
|
11
|
-
export { HttpFactory, EncoderFactory, CdnFactory, ExplainerFactory, ExcelFactory, FeatureFactory, HasherFactory, ProviderFactory, SignerFactory, SsoFactory, };
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import Factories from "./Factories";
|
2
|
-
import { IEncoder } from "../encoders";
|
3
|
-
import { IHttp } from "../https";
|
4
|
-
import { IHasher } from "../hashers";
|
5
|
-
/**
|
6
|
-
* 默认base64编码
|
7
|
-
*/
|
8
|
-
declare let base64: IEncoder;
|
9
|
-
/**
|
10
|
-
* 默认Http请求对象
|
11
|
-
*/
|
12
|
-
declare let http: IHttp;
|
13
|
-
/**
|
14
|
-
* MD5 hash计算
|
15
|
-
*/
|
16
|
-
declare let md5: IHasher;
|
17
|
-
/**
|
18
|
-
* 初始化默认驱动实例
|
19
|
-
*/
|
20
|
-
declare let initDriver: () => Promise<void>;
|
21
|
-
export { Factories, base64, http, md5, initDriver };
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 存储帮助类
|
3
|
-
*/
|
4
|
-
declare class StorageHelper {
|
5
|
-
/**
|
6
|
-
* 获取本地存储
|
7
|
-
*/
|
8
|
-
static get: (key: string, value?: any) => any;
|
9
|
-
/**
|
10
|
-
* 设置本地存储
|
11
|
-
*/
|
12
|
-
static set: (key: string, value: string) => void;
|
13
|
-
/**
|
14
|
-
* 获取本地存储
|
15
|
-
*/
|
16
|
-
static getObject: (key: string) => any;
|
17
|
-
/**
|
18
|
-
* 设置本地存储
|
19
|
-
*/
|
20
|
-
static setObject: (key: string, value: any) => void;
|
21
|
-
/**
|
22
|
-
* 移除存储数据
|
23
|
-
*/
|
24
|
-
static remove: (key: string) => void;
|
25
|
-
/**
|
26
|
-
* 以5M为基准,获取剩余可用容量(KB)
|
27
|
-
*/
|
28
|
-
static getLeftStorage: () => number;
|
29
|
-
/**
|
30
|
-
* 判断指定值是否能够存储到storage中
|
31
|
-
*/
|
32
|
-
static canStorage: (value: object) => boolean;
|
33
|
-
}
|
34
|
-
export default StorageHelper;
|
@@ -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,19 +0,0 @@
|
|
1
|
-
import HttpRequest from "./HttpRequest";
|
2
|
-
/**
|
3
|
-
* Http响应
|
4
|
-
*/
|
5
|
-
declare class HttpResponse {
|
6
|
-
/**
|
7
|
-
* 请求耗时
|
8
|
-
*/
|
9
|
-
elapsed: number;
|
10
|
-
/**
|
11
|
-
* 请求体
|
12
|
-
*/
|
13
|
-
body: string;
|
14
|
-
/**
|
15
|
-
* 对应的请求信息
|
16
|
-
*/
|
17
|
-
request: HttpRequest;
|
18
|
-
}
|
19
|
-
export default HttpResponse;
|