simple-boot-front 1.0.95 → 1.0.99
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.
- package/README.MD +335 -335
- package/SimpleBootFront.d.ts +32 -25
- package/SimpleBootFront.js +327 -231
- package/decorators/Component.d.ts +11 -11
- package/decorators/Component.js +30 -54
- package/decorators/Script.d.ts +10 -10
- package/decorators/Script.js +31 -31
- package/decorators/inject/InjectFrontSituationType.d.ts +3 -0
- package/decorators/inject/InjectFrontSituationType.js +7 -0
- package/fetch/Fetcher.d.ts +4 -4
- package/fetch/Fetcher.js +9 -9
- package/lifecycle/OnChangedRender.d.ts +3 -3
- package/lifecycle/OnChangedRender.js +2 -2
- package/lifecycle/OnDestroy.d.ts +3 -3
- package/lifecycle/OnDestroy.js +2 -2
- package/lifecycle/OnFinish.d.ts +3 -3
- package/lifecycle/OnFinish.js +2 -2
- package/lifecycle/OnInit.d.ts +8 -3
- package/lifecycle/OnInit.js +2 -2
- package/lifecycle/OnInitedChild.d.ts +3 -3
- package/lifecycle/OnInitedChild.js +2 -2
- package/option/SimFrontOption.d.ts +14 -14
- package/option/SimFrontOption.js +45 -45
- package/package.json +84 -82
- package/script/ScriptRunnable.d.ts +7 -7
- package/script/ScriptRunnable.js +22 -22
- package/service/CookieService.d.ts +11 -8
- package/service/CookieService.js +54 -42
- package/service/HttpService.d.ts +3 -3
- package/service/HttpService.js +23 -23
- package/service/MetaTagService.d.ts +11 -0
- package/service/MetaTagService.js +52 -0
- package/service/Navigation.d.ts +18 -12
- package/service/Navigation.js +117 -75
- package/service/ScriptService.d.ts +7 -7
- package/service/ScriptService.js +39 -39
- package/service/StorageService.d.ts +12 -0
- package/service/StorageService.js +67 -0
- package/service/view/View.d.ts +6 -6
- package/service/view/View.js +29 -29
- package/service/view/ViewService.d.ts +7 -7
- package/service/view/ViewService.js +46 -46
- package/throwable/RouterError.d.ts +4 -4
- package/throwable/RouterError.js +27 -27
- package/throwable/RouterIntentError.d.ts +4 -4
- package/throwable/RouterIntentError.js +27 -27
- package/throwable/RouterNotFount.d.ts +4 -4
- package/throwable/RouterNotFount.js +27 -27
- package/utils/dom/DomUtils.d.ts +0 -13
- package/utils/dom/DomUtils.js +0 -45
- package/utils/node/NodeUtils.d.ts +0 -10
- package/utils/node/NodeUtils.js +0 -25
- package/utils/window/LocationUtils.d.ts +0 -8
- package/utils/window/LocationUtils.js +0 -34
package/decorators/Component.js
CHANGED
@@ -1,54 +1,30 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
ReflectUtils_1.ReflectUtils.defineMetadata(exports.ComponentMetadataKey, config, target);
|
32
|
-
return (function (_super) {
|
33
|
-
__extends(class_1, _super);
|
34
|
-
function class_1() {
|
35
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
36
|
-
_this.__componentInstances = {};
|
37
|
-
return _this;
|
38
|
-
}
|
39
|
-
return class_1;
|
40
|
-
}(target));
|
41
|
-
};
|
42
|
-
};
|
43
|
-
exports.Component = Component;
|
44
|
-
var getComponent = function (target) {
|
45
|
-
if (target && typeof target === 'object') {
|
46
|
-
target = target.constructor;
|
47
|
-
}
|
48
|
-
try {
|
49
|
-
return ReflectUtils_1.ReflectUtils.getMetadata(exports.ComponentMetadataKey, target);
|
50
|
-
}
|
51
|
-
catch (e) {
|
52
|
-
}
|
53
|
-
};
|
54
|
-
exports.getComponent = getComponent;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getComponent = exports.Component = exports.ComponentMetadataKey = exports.componentSelectors = void 0;
|
4
|
+
var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
|
5
|
+
exports.componentSelectors = new Map();
|
6
|
+
exports.ComponentMetadataKey = Symbol('Component');
|
7
|
+
var Component = function (config) {
|
8
|
+
return function (target) {
|
9
|
+
if (!config) {
|
10
|
+
config = {};
|
11
|
+
}
|
12
|
+
if (!config.selector) {
|
13
|
+
config.selector = target.name;
|
14
|
+
}
|
15
|
+
ReflectUtils_1.ReflectUtils.defineMetadata(exports.ComponentMetadataKey, config, target);
|
16
|
+
exports.componentSelectors.set(config.selector.toLowerCase(), target);
|
17
|
+
};
|
18
|
+
};
|
19
|
+
exports.Component = Component;
|
20
|
+
var getComponent = function (target) {
|
21
|
+
if (target && typeof target === 'object') {
|
22
|
+
target = target.constructor;
|
23
|
+
}
|
24
|
+
try {
|
25
|
+
return ReflectUtils_1.ReflectUtils.getMetadata(exports.ComponentMetadataKey, target);
|
26
|
+
}
|
27
|
+
catch (e) {
|
28
|
+
}
|
29
|
+
};
|
30
|
+
exports.getComponent = getComponent;
|
package/decorators/Script.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ConstructorType, GenericClassDecorator } from 'simple-boot-core/types/Types';
|
2
|
-
import { ScriptRunnable } from 'script/ScriptRunnable';
|
3
|
-
export declare const scripts: Map<string, ConstructorType<ScriptRunnable>>;
|
4
|
-
export interface ScriptConfig {
|
5
|
-
name?: string;
|
6
|
-
using?: (ConstructorType<any>)[];
|
7
|
-
}
|
8
|
-
export declare const ScriptMetadataKey: unique symbol;
|
9
|
-
export declare const Script: (config?: ScriptConfig | undefined) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
|
10
|
-
export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
|
1
|
+
import { ConstructorType, GenericClassDecorator } from 'simple-boot-core/types/Types';
|
2
|
+
import { ScriptRunnable } from 'script/ScriptRunnable';
|
3
|
+
export declare const scripts: Map<string, ConstructorType<ScriptRunnable>>;
|
4
|
+
export interface ScriptConfig {
|
5
|
+
name?: string;
|
6
|
+
using?: (ConstructorType<any>)[];
|
7
|
+
}
|
8
|
+
export declare const ScriptMetadataKey: unique symbol;
|
9
|
+
export declare const Script: (config?: ScriptConfig | undefined) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
|
10
|
+
export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
|
package/decorators/Script.js
CHANGED
@@ -1,31 +1,31 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getScript = exports.Script = exports.ScriptMetadataKey = exports.scripts = void 0;
|
4
|
-
var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
|
5
|
-
exports.scripts = new Map();
|
6
|
-
exports.ScriptMetadataKey = Symbol('Script');
|
7
|
-
var Script = function (config) {
|
8
|
-
return function (target) {
|
9
|
-
if (!config) {
|
10
|
-
config = {};
|
11
|
-
}
|
12
|
-
if (!config.name) {
|
13
|
-
config.name = target.name;
|
14
|
-
}
|
15
|
-
exports.scripts.set(config.name, target);
|
16
|
-
ReflectUtils_1.ReflectUtils.defineMetadata(exports.ScriptMetadataKey, config, target);
|
17
|
-
return target;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
exports.Script = Script;
|
21
|
-
var getScript = function (target) {
|
22
|
-
if (target && typeof target === 'object') {
|
23
|
-
target = target.constructor;
|
24
|
-
}
|
25
|
-
try {
|
26
|
-
return ReflectUtils_1.ReflectUtils.getMetadata(exports.ScriptMetadataKey, target);
|
27
|
-
}
|
28
|
-
catch (e) {
|
29
|
-
}
|
30
|
-
};
|
31
|
-
exports.getScript = getScript;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getScript = exports.Script = exports.ScriptMetadataKey = exports.scripts = void 0;
|
4
|
+
var ReflectUtils_1 = require("simple-boot-core/utils/reflect/ReflectUtils");
|
5
|
+
exports.scripts = new Map();
|
6
|
+
exports.ScriptMetadataKey = Symbol('Script');
|
7
|
+
var Script = function (config) {
|
8
|
+
return function (target) {
|
9
|
+
if (!config) {
|
10
|
+
config = {};
|
11
|
+
}
|
12
|
+
if (!config.name) {
|
13
|
+
config.name = target.name;
|
14
|
+
}
|
15
|
+
exports.scripts.set(config.name, target);
|
16
|
+
ReflectUtils_1.ReflectUtils.defineMetadata(exports.ScriptMetadataKey, config, target);
|
17
|
+
return target;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
exports.Script = Script;
|
21
|
+
var getScript = function (target) {
|
22
|
+
if (target && typeof target === 'object') {
|
23
|
+
target = target.constructor;
|
24
|
+
}
|
25
|
+
try {
|
26
|
+
return ReflectUtils_1.ReflectUtils.getMetadata(exports.ScriptMetadataKey, target);
|
27
|
+
}
|
28
|
+
catch (e) {
|
29
|
+
}
|
30
|
+
};
|
31
|
+
exports.getScript = getScript;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InjectFrontSituationType = void 0;
|
4
|
+
var InjectFrontSituationType;
|
5
|
+
(function (InjectFrontSituationType) {
|
6
|
+
InjectFrontSituationType["OPENER"] = "SIMPLE_BOOT_FRONT://OPENER";
|
7
|
+
})(InjectFrontSituationType = exports.InjectFrontSituationType || (exports.InjectFrontSituationType = {}));
|
package/fetch/Fetcher.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare abstract class Fetcher {
|
2
|
-
abstract text(path: string, param?: any, dname?: string): Promise<string | void>;
|
3
|
-
abstract json<T = any>(url: string, param?: any): Promise<T | void>;
|
4
|
-
}
|
1
|
+
export declare abstract class Fetcher {
|
2
|
+
abstract text(path: string, param?: any, dname?: string): Promise<string | void>;
|
3
|
+
abstract json<T = any>(url: string, param?: any): Promise<T | void>;
|
4
|
+
}
|
package/fetch/Fetcher.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Fetcher = void 0;
|
4
|
-
var Fetcher = (function () {
|
5
|
-
function Fetcher() {
|
6
|
-
}
|
7
|
-
return Fetcher;
|
8
|
-
}());
|
9
|
-
exports.Fetcher = Fetcher;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Fetcher = void 0;
|
4
|
+
var Fetcher = (function () {
|
5
|
+
function Fetcher() {
|
6
|
+
}
|
7
|
+
return Fetcher;
|
8
|
+
}());
|
9
|
+
exports.Fetcher = Fetcher;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export interface onChangedRender {
|
2
|
-
onChangedRender(): void;
|
3
|
-
}
|
1
|
+
export interface onChangedRender {
|
2
|
+
onChangedRender(): void;
|
3
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lifecycle/OnDestroy.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export interface OnDestroy {
|
2
|
-
onDestroy(): void;
|
3
|
-
}
|
1
|
+
export interface OnDestroy {
|
2
|
+
onDestroy(): void;
|
3
|
+
}
|
package/lifecycle/OnDestroy.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lifecycle/OnFinish.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export interface OnFinish {
|
2
|
-
onFinish(): void;
|
3
|
-
}
|
1
|
+
export interface OnFinish {
|
2
|
+
onFinish(): void;
|
3
|
+
}
|
package/lifecycle/OnFinish.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lifecycle/OnInit.d.ts
CHANGED
package/lifecycle/OnInit.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export interface OnInitedChild {
|
2
|
-
onInitedChild(): void;
|
3
|
-
}
|
1
|
+
export interface OnInitedChild {
|
2
|
+
onInitedChild(): void;
|
3
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { SimOption } from 'simple-boot-core/SimOption';
|
2
|
-
import { ConstructorType } from 'simple-boot-core/types/Types';
|
3
|
-
export declare enum UrlType {
|
4
|
-
path = "path",
|
5
|
-
hash = "hash"
|
6
|
-
}
|
7
|
-
export declare class SimFrontOption extends SimOption {
|
8
|
-
window: Window;
|
9
|
-
selector: string;
|
10
|
-
urlType: UrlType;
|
11
|
-
constructor(window: Window, advice?: ConstructorType<any>[]);
|
12
|
-
setSelector(selector: string): SimFrontOption;
|
13
|
-
setUrlType(urlType: UrlType): SimFrontOption;
|
14
|
-
}
|
1
|
+
import { SimOption } from 'simple-boot-core/SimOption';
|
2
|
+
import { ConstructorType } from 'simple-boot-core/types/Types';
|
3
|
+
export declare enum UrlType {
|
4
|
+
path = "path",
|
5
|
+
hash = "hash"
|
6
|
+
}
|
7
|
+
export declare class SimFrontOption extends SimOption {
|
8
|
+
window: Window;
|
9
|
+
selector: string;
|
10
|
+
urlType: UrlType;
|
11
|
+
constructor(window: Window, advice?: ConstructorType<any>[]);
|
12
|
+
setSelector(selector: string): SimFrontOption;
|
13
|
+
setUrlType(urlType: UrlType): SimFrontOption;
|
14
|
+
}
|
package/option/SimFrontOption.js
CHANGED
@@ -1,45 +1,45 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
3
|
-
var extendStatics = function (d, b) {
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
-
return extendStatics(d, b);
|
8
|
-
};
|
9
|
-
return function (d, b) {
|
10
|
-
if (typeof b !== "function" && b !== null)
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
-
extendStatics(d, b);
|
13
|
-
function __() { this.constructor = d; }
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
-
};
|
16
|
-
})();
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
-
exports.SimFrontOption = exports.UrlType = void 0;
|
19
|
-
var SimOption_1 = require("simple-boot-core/SimOption");
|
20
|
-
var UrlType;
|
21
|
-
(function (UrlType) {
|
22
|
-
UrlType["path"] = "path";
|
23
|
-
UrlType["hash"] = "hash";
|
24
|
-
})(UrlType = exports.UrlType || (exports.UrlType = {}));
|
25
|
-
var SimFrontOption = (function (_super) {
|
26
|
-
__extends(SimFrontOption, _super);
|
27
|
-
function SimFrontOption(window, advice) {
|
28
|
-
if (advice === void 0) { advice = []; }
|
29
|
-
var _this = _super.call(this, advice) || this;
|
30
|
-
_this.window = window;
|
31
|
-
_this.selector = '#app';
|
32
|
-
_this.urlType = UrlType.path;
|
33
|
-
return _this;
|
34
|
-
}
|
35
|
-
SimFrontOption.prototype.setSelector = function (selector) {
|
36
|
-
this.selector = selector;
|
37
|
-
return this;
|
38
|
-
};
|
39
|
-
SimFrontOption.prototype.setUrlType = function (urlType) {
|
40
|
-
this.urlType = urlType;
|
41
|
-
return this;
|
42
|
-
};
|
43
|
-
return SimFrontOption;
|
44
|
-
}(SimOption_1.SimOption));
|
45
|
-
exports.SimFrontOption = SimFrontOption;
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.SimFrontOption = exports.UrlType = void 0;
|
19
|
+
var SimOption_1 = require("simple-boot-core/SimOption");
|
20
|
+
var UrlType;
|
21
|
+
(function (UrlType) {
|
22
|
+
UrlType["path"] = "path";
|
23
|
+
UrlType["hash"] = "hash";
|
24
|
+
})(UrlType = exports.UrlType || (exports.UrlType = {}));
|
25
|
+
var SimFrontOption = (function (_super) {
|
26
|
+
__extends(SimFrontOption, _super);
|
27
|
+
function SimFrontOption(window, advice) {
|
28
|
+
if (advice === void 0) { advice = []; }
|
29
|
+
var _this = _super.call(this, advice) || this;
|
30
|
+
_this.window = window;
|
31
|
+
_this.selector = '#app';
|
32
|
+
_this.urlType = UrlType.path;
|
33
|
+
return _this;
|
34
|
+
}
|
35
|
+
SimFrontOption.prototype.setSelector = function (selector) {
|
36
|
+
this.selector = selector;
|
37
|
+
return this;
|
38
|
+
};
|
39
|
+
SimFrontOption.prototype.setUrlType = function (urlType) {
|
40
|
+
this.urlType = urlType;
|
41
|
+
return this;
|
42
|
+
};
|
43
|
+
return SimFrontOption;
|
44
|
+
}(SimOption_1.SimOption));
|
45
|
+
exports.SimFrontOption = SimFrontOption;
|
package/package.json
CHANGED
@@ -1,82 +1,84 @@
|
|
1
|
-
{
|
2
|
-
"name": "simple-boot-front",
|
3
|
-
"version": "1.0.
|
4
|
-
"main": "SimpleApplication.js",
|
5
|
-
"license": "MIT",
|
6
|
-
"description": "front end SPA frameworks",
|
7
|
-
"keywords": [
|
8
|
-
"front",
|
9
|
-
"spa",
|
10
|
-
"SPA",
|
11
|
-
"module",
|
12
|
-
"front-end",
|
13
|
-
"framwork",
|
14
|
-
"node"
|
15
|
-
],
|
16
|
-
"author": "visualkhh <visualkhh@gmail.com> (https://github.com/visualkhh)",
|
17
|
-
"contributors": [
|
18
|
-
"sewoo <sewooimda@nate.com> (https://github.com/sewoo)",
|
19
|
-
"SeoDH <adonis_84@naver.com> (https://github.com/SeoDH)",
|
20
|
-
"tkyung (https://github.com/tkyungDev)",
|
21
|
-
"Hoil-Gang (https://github.com/khl1154)",
|
22
|
-
"hwangsero (https://github.com/hwangsero)"
|
23
|
-
],
|
24
|
-
"homepage": "https://github.com/visualkhh/simple-boot-front",
|
25
|
-
"bugs": {
|
26
|
-
"url": "https://github.com/visualkhh/simple-boot-front",
|
27
|
-
"email": "visualkhh@gmail.com"
|
28
|
-
},
|
29
|
-
"repository": {
|
30
|
-
"type": "git",
|
31
|
-
"url": "https://github.com/visualkhh/simple-boot-front"
|
32
|
-
},
|
33
|
-
"jest": {
|
34
|
-
"transform": {
|
35
|
-
"^.+\\.ts$": "ts-jest"
|
36
|
-
},
|
37
|
-
"testRegex": "\\.test\\.ts$",
|
38
|
-
"moduleFileExtensions": [
|
39
|
-
"ts",
|
40
|
-
"tsx",
|
41
|
-
"js",
|
42
|
-
"json"
|
43
|
-
],
|
44
|
-
"globals": {
|
45
|
-
"ts-jest": {
|
46
|
-
"diagnostics": true
|
47
|
-
}
|
48
|
-
}
|
49
|
-
},
|
50
|
-
"scripts": {
|
51
|
-
"build": "rm -rf dist && tsc --outDir dist --declarationDir dist",
|
52
|
-
"dev:serve": "npm run serve --workspace=dev",
|
53
|
-
"dev-onepage:serve": "npm run serve --workspace=dev-onepage",
|
54
|
-
"npm-build": "rm -rf dist && tsc --outDir dist --declarationDir dist && cp package-prod.json dist/package.json && cp README.MD dist",
|
55
|
-
"npm-publish": "npm run npm-build && npm publish ./dist",
|
56
|
-
"tsc": "tsc",
|
57
|
-
"
|
58
|
-
"tsc:
|
59
|
-
"
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
"@
|
67
|
-
"eslint": "^
|
68
|
-
"eslint
|
69
|
-
"eslint
|
70
|
-
"eslint-
|
71
|
-
"eslint-plugin-
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
"
|
81
|
-
|
82
|
-
|
1
|
+
{
|
2
|
+
"name": "simple-boot-front",
|
3
|
+
"version": "1.0.99",
|
4
|
+
"main": "SimpleApplication.js",
|
5
|
+
"license": "MIT",
|
6
|
+
"description": "front end SPA frameworks",
|
7
|
+
"keywords": [
|
8
|
+
"front",
|
9
|
+
"spa",
|
10
|
+
"SPA",
|
11
|
+
"module",
|
12
|
+
"front-end",
|
13
|
+
"framwork",
|
14
|
+
"node"
|
15
|
+
],
|
16
|
+
"author": "visualkhh <visualkhh@gmail.com> (https://github.com/visualkhh)",
|
17
|
+
"contributors": [
|
18
|
+
"sewoo <sewooimda@nate.com> (https://github.com/sewoo)",
|
19
|
+
"SeoDH <adonis_84@naver.com> (https://github.com/SeoDH)",
|
20
|
+
"tkyung (https://github.com/tkyungDev)",
|
21
|
+
"Hoil-Gang (https://github.com/khl1154)",
|
22
|
+
"hwangsero (https://github.com/hwangsero)"
|
23
|
+
],
|
24
|
+
"homepage": "https://github.com/visualkhh/simple-boot-front",
|
25
|
+
"bugs": {
|
26
|
+
"url": "https://github.com/visualkhh/simple-boot-front",
|
27
|
+
"email": "visualkhh@gmail.com"
|
28
|
+
},
|
29
|
+
"repository": {
|
30
|
+
"type": "git",
|
31
|
+
"url": "https://github.com/visualkhh/simple-boot-front"
|
32
|
+
},
|
33
|
+
"jest": {
|
34
|
+
"transform": {
|
35
|
+
"^.+\\.ts$": "ts-jest"
|
36
|
+
},
|
37
|
+
"testRegex": "\\.test\\.ts$",
|
38
|
+
"moduleFileExtensions": [
|
39
|
+
"ts",
|
40
|
+
"tsx",
|
41
|
+
"js",
|
42
|
+
"json"
|
43
|
+
],
|
44
|
+
"globals": {
|
45
|
+
"ts-jest": {
|
46
|
+
"diagnostics": true
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
"scripts": {
|
51
|
+
"build": "rm -rf dist && tsc --outDir dist --declarationDir dist",
|
52
|
+
"dev:serve": "npm run serve --workspace=dev",
|
53
|
+
"dev-onepage:serve": "npm run serve --workspace=dev-onepage",
|
54
|
+
"npm-build": "rm -rf dist && tsc --outDir dist --declarationDir dist && cp package-prod.json dist/package.json && cp README.MD dist",
|
55
|
+
"npm-publish": "npm run npm-build && npm publish ./dist",
|
56
|
+
"tsc": "tsc",
|
57
|
+
"setting:root-dist": "rm -rf ../dist-simple-boot-front && mkdirp ../dist-simple-boot-front && cp package-root-dist.json ../dist-simple-boot-front/package.json",
|
58
|
+
"tsc:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-front --declarationDir ../dist-simple-boot-front",
|
59
|
+
"tsc:watch": "rm -rf ./dist && mkdir dist && cp package.json dist && tsc --watch --sourceMap true",
|
60
|
+
"tsc:watch:root-dist": "npm run setting:root-dist && tsc --outDir ../dist-simple-boot-front --declarationDir ../dist-simple-boot-front --watch --sourceMap true",
|
61
|
+
"tsc:watch:dev": "rm -rf ./dist && mkdir dist && cp package-dev.json dist && tsc --watch --sourceMap true",
|
62
|
+
"test": "jest --detectOpenHandles --forceExit"
|
63
|
+
},
|
64
|
+
"alias": {},
|
65
|
+
"devDependencies": {
|
66
|
+
"@types/jest": "^26.0.22",
|
67
|
+
"@typescript-eslint/eslint-plugin": "^4.16.1",
|
68
|
+
"@typescript-eslint/parser": "^4.16.1",
|
69
|
+
"eslint": "^7.21.0",
|
70
|
+
"eslint-config-standard": "^16.0.2",
|
71
|
+
"eslint-plugin-import": "^2.22.1",
|
72
|
+
"eslint-plugin-node": "^11.1.0",
|
73
|
+
"eslint-plugin-promise": "^4.3.1",
|
74
|
+
"jest": "^26.6.3",
|
75
|
+
"supertest": "^6.1.3",
|
76
|
+
"ts-jest": "^26.5.4",
|
77
|
+
"typescript": "^4.4.3"
|
78
|
+
},
|
79
|
+
"dependencies": {
|
80
|
+
"dom-render": "^1.0.68",
|
81
|
+
"simple-boot-core": "^1.0.23",
|
82
|
+
"reflect-metadata": "^0.1.13"
|
83
|
+
}
|
84
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Runnable } from 'simple-boot-core/run/Runnable';
|
2
|
-
import { RawSet } from 'dom-render/RawSet';
|
3
|
-
export declare abstract class ScriptRunnable implements Runnable {
|
4
|
-
rawSets: Map<RawSet, any>;
|
5
|
-
render(): void;
|
6
|
-
abstract run(...arg: any): any;
|
7
|
-
}
|
1
|
+
import { Runnable } from 'simple-boot-core/run/Runnable';
|
2
|
+
import { RawSet } from 'dom-render/RawSet';
|
3
|
+
export declare abstract class ScriptRunnable implements Runnable {
|
4
|
+
rawSets: Map<RawSet, any>;
|
5
|
+
render(): void;
|
6
|
+
abstract run(...arg: any): any;
|
7
|
+
}
|
package/script/ScriptRunnable.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ScriptRunnable = void 0;
|
4
|
-
var ScriptRunnable = (function () {
|
5
|
-
function ScriptRunnable() {
|
6
|
-
this.rawSets = new Map();
|
7
|
-
}
|
8
|
-
ScriptRunnable.prototype.render = function () {
|
9
|
-
var _this = this;
|
10
|
-
this.rawSets.forEach(function (value, key) {
|
11
|
-
var _a;
|
12
|
-
if (key.isConnected) {
|
13
|
-
(_a = value._DomRender_proxy) === null || _a === void 0 ? void 0 : _a.render([key]);
|
14
|
-
}
|
15
|
-
else {
|
16
|
-
_this.rawSets.delete(key);
|
17
|
-
}
|
18
|
-
});
|
19
|
-
};
|
20
|
-
return ScriptRunnable;
|
21
|
-
}());
|
22
|
-
exports.ScriptRunnable = ScriptRunnable;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ScriptRunnable = void 0;
|
4
|
+
var ScriptRunnable = (function () {
|
5
|
+
function ScriptRunnable() {
|
6
|
+
this.rawSets = new Map();
|
7
|
+
}
|
8
|
+
ScriptRunnable.prototype.render = function () {
|
9
|
+
var _this = this;
|
10
|
+
this.rawSets.forEach(function (value, key) {
|
11
|
+
var _a;
|
12
|
+
if (key.isConnected) {
|
13
|
+
(_a = value._DomRender_proxy) === null || _a === void 0 ? void 0 : _a.render([key]);
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
_this.rawSets.delete(key);
|
17
|
+
}
|
18
|
+
});
|
19
|
+
};
|
20
|
+
return ScriptRunnable;
|
21
|
+
}());
|
22
|
+
exports.ScriptRunnable = ScriptRunnable;
|