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.
- package/dist/main.js +875 -819
- package/esm/drivers/factories/DriverFactory.d.ts +2 -1
- package/esm/drivers/index.d.ts +0 -2
- package/esm/drivers/providers/Provider.d.ts +17 -0
- package/esm/drivers/providers/implements/IndexedDbProvider.d.ts +2 -2
- package/esm/drivers/providers/implements/StorageProvider.d.ts +4 -0
- package/package.json +1 -1
@@ -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():
|
62
|
+
static getSso(): SsoFactory;
|
62
63
|
}
|
63
64
|
export default DriverFactory;
|
package/esm/drivers/index.d.ts
CHANGED
@@ -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
|
1
|
+
import Provider from "../Provider";
|
2
2
|
/**
|
3
3
|
* IndexedDB提供程序实现
|
4
4
|
*/
|
5
|
-
declare class IndexedDbProvider
|
5
|
+
declare class IndexedDbProvider extends Provider {
|
6
6
|
type: string;
|
7
7
|
database: string;
|
8
8
|
store: string;
|