@flashist/appframework 0.0.21 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { BaseAppModule } from "../base/modules/BaseAppModule";
2
+ export declare class DeviceModule extends BaseAppModule {
3
+ init(): void;
4
+ activateCompleteHook(): void;
5
+ }
@@ -0,0 +1,37 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { DeviceTools, getInstance, serviceLocatorAdd } from "@flashist/flibs";
17
+ import { BaseAppModule } from "../base/modules/BaseAppModule";
18
+ import { DeviceInfoModel } from "./models/DeviceInfoModel";
19
+ var DeviceModule = /** @class */ (function (_super) {
20
+ __extends(DeviceModule, _super);
21
+ function DeviceModule() {
22
+ return _super !== null && _super.apply(this, arguments) || this;
23
+ }
24
+ DeviceModule.prototype.init = function () {
25
+ _super.prototype.init.call(this);
26
+ // Modules
27
+ serviceLocatorAdd(DeviceInfoModel, { isSingleton: true });
28
+ };
29
+ DeviceModule.prototype.activateCompleteHook = function () {
30
+ _super.prototype.activateCompleteHook.call(this);
31
+ var soundsStorageModule = getInstance(DeviceInfoModel);
32
+ soundsStorageModule.deviceInfo = DeviceTools.getDeviceInfo();
33
+ };
34
+ return DeviceModule;
35
+ }(BaseAppModule));
36
+ export { DeviceModule };
37
+ //# sourceMappingURL=DeviceModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceModule.js","sourceRoot":"","sources":["../../src/device/DeviceModule.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAE9E,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;IAAkC,gCAAa;IAA/C;;IAeA,CAAC;IAbG,2BAAI,GAAJ;QACI,iBAAM,IAAI,WAAE,CAAC;QAEb,UAAU;QACV,iBAAiB,CAAC,eAAe,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,2CAAoB,GAApB;QACI,iBAAM,oBAAoB,WAAE,CAAC;QAE7B,IAAM,mBAAmB,GAAoB,WAAW,CAAC,eAAe,CAAC,CAAC;QAC1E,mBAAmB,CAAC,UAAU,GAAG,WAAW,CAAC,aAAa,EAAE,CAAC;IACjE,CAAC;IACL,mBAAC;AAAD,CAAC,AAfD,CAAkC,aAAa,GAe9C"}
@@ -0,0 +1,5 @@
1
+ import { IDeviceInfoVO } from "@flashist/flibs";
2
+ import { BaseAppModel } from "../../base/models/BaseAppModel";
3
+ export declare class DeviceInfoModel extends BaseAppModel {
4
+ deviceInfo: IDeviceInfoVO;
5
+ }
@@ -0,0 +1,25 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { BaseAppModel } from "../../base/models/BaseAppModel";
17
+ var DeviceInfoModel = /** @class */ (function (_super) {
18
+ __extends(DeviceInfoModel, _super);
19
+ function DeviceInfoModel() {
20
+ return _super !== null && _super.apply(this, arguments) || this;
21
+ }
22
+ return DeviceInfoModel;
23
+ }(BaseAppModel));
24
+ export { DeviceInfoModel };
25
+ //# sourceMappingURL=DeviceInfoModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeviceInfoModel.js","sourceRoot":"","sources":["../../../src/device/models/DeviceInfoModel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D;IAAqC,mCAAY;IAAjD;;IAEA,CAAC;IAAD,sBAAC;AAAD,CAAC,AAFD,CAAqC,YAAY,GAEhD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashist/appframework",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "scripts": {
5
5
  "build": "gulp",
6
6
  "publish:patch": "npm version patch && npm run build && cd ./dist && npm publish",
@@ -16,8 +16,8 @@
16
16
  "main": "index.js",
17
17
  "typings": "index.d.ts",
18
18
  "dependencies": {
19
- "@flashist/flibs": "0.x",
20
- "@flashist/fconsole": "0.x"
19
+ "@flashist/fconsole": "0.x",
20
+ "@flashist/flibs": "0.0.130"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/webfontloader": "^1.6.29",