halo-fe 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  import { RequesterFactory } from "../requesters";
2
2
  import EncoderFactory from "../encoders/EncoderFactory";
3
3
  import SignerFactory from "../signers/SignerFactory";
4
+ import SsoFactory from "../ssos/SsoFactory";
4
5
  import CdnFactory from "../cdns/CdnFactory";
5
6
  import ExplainerFactory from "../explainers/ExplainerFactory";
6
7
  import ExcelFactory from "../excels/ExcelFactory";
@@ -58,6 +59,6 @@ declare class DriverFactory {
58
59
  /**
59
60
  *获取SSO工厂
60
61
  */
61
- static getSso(): SignerFactory;
62
+ static getSso(): SsoFactory;
62
63
  }
63
64
  export default DriverFactory;
@@ -1,4 +1,3 @@
1
- import DriverHelper from "./driver-helper";
2
1
  export * from "./excels/index";
3
2
  export * from "./factories/index";
4
3
  export * from "./features/index";
@@ -7,4 +6,3 @@ export * from "./providers/index";
7
6
  export * from "./requesters/index";
8
7
  export * from "./signers/index";
9
8
  export * from "./ssos/index";
10
- export { DriverHelper, };
@@ -0,0 +1,17 @@
1
+ import IProvider from "./IProvider";
2
+ /**
3
+ * 提供程序基类
4
+ */
5
+ declare abstract class Provider implements IProvider {
6
+ type: string;
7
+ createAsync(store: string): Promise<any>;
8
+ deleteAsync(id: any): Promise<any>;
9
+ getAsync(id: any): Promise<any>;
10
+ insertAsync(id: any, entity: any): Promise<any>;
11
+ openAsync(conn: string): Promise<number>;
12
+ saveAsync(id: any, entity: any): Promise<any>;
13
+ updateAsync(id: any, entity: any): Promise<any>;
14
+ commit(): void;
15
+ dispose(): void;
16
+ }
17
+ export default Provider;
@@ -1,8 +1,8 @@
1
- import IProvider from "../IProvider";
1
+ import Provider from "../Provider";
2
2
  /**
3
3
  * IndexedDB提供程序实现
4
4
  */
5
- declare class IndexedDbProvider implements IProvider {
5
+ declare class IndexedDbProvider extends Provider {
6
6
  type: string;
7
7
  database: string;
8
8
  store: string;
@@ -0,0 +1,4 @@
1
+ import Provider from "../Provider";
2
+ declare class StorageProvider extends Provider {
3
+ }
4
+ export default StorageProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halo-fe",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Halo front end sdk",
5
5
  "scripts": {
6
6
  "halo-fe:tsc": "vue-tsc",