Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-boot-front

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-boot-front - npm Package Compare versions

Comparing version 1.0.101 to 1.0.102

4

package.json
{
"name": "simple-boot-front",
"version": "1.0.101",
"version": "1.0.102",
"main": "SimpleApplication.js",

@@ -80,5 +80,5 @@ "license": "MIT",

"dependencies": {
"dom-render": "^1.0.70",
"dom-render": "^1.0.71",
"simple-boot-core": "^1.0.29"
}
}

@@ -33,16 +33,16 @@ ![Single Page Application Framworks](assets/banner.png)

┌─ assets
├──dist (out put directory)
├──src (source)
│ ├──pages (your pages)
├─ dist (out put directory)
├─ src (source)
│ ├─ pages (your pages)
│ │ ├ home.ts (sample page)
│ │ └ user.ts (sample page)
│ ├──index.css (index route page css)
│ ├──index.html (index route page template)
│ └──index.ts (simple-boot-fornt start and route point)
├──types (typescript type)
│ ├─ index.css (index route page css)
│ ├─ index.html (index route page template)
│ └─ index.ts (simple-boot-fornt start and route point)
├─ types (typescript type)
│ └ index.d.ts (type definition)
├──index.html start (point html)
├──package.json (project config)
├──rollup.config.js (rollup bundler config)
└──tsconfig.json (typescript config)
├─ index.html start (point html)
├─ package.json (project config)
├─ rollup.config.js (rollup bundler config)
└─ tsconfig.json (typescript config)
```

@@ -49,0 +49,0 @@

@@ -24,5 +24,7 @@ import { SimFrontOption } from './option/SimFrontOption';

private initRun;
initWriteRootRouter(): void;
writeRootRouter(): SimAtomic<any>;
goRouting(url: string): Promise<RouterModule<SimAtomic<Object>, any>>;
runRouting(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): Promise<RouterModule<SimAtomic<Object>, any> | undefined>;
run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): SimpleBootFront;
run(otherInstanceSim?: Map<ConstructorType<any>, any>, url?: string): void;
private afterSetting;

@@ -29,0 +31,0 @@ initDomRenderScripts(): void;

@@ -177,3 +177,2 @@ "use strict";

var _this = this;
var _a, _b, _c, _d, _e;
_super.prototype.run.call(this, otherInstanceSim);

@@ -183,13 +182,3 @@ this.initDomRenderScripts();

this.navigation = this.simstanceManager.getOrNewSim(Navigation_1.Navigation);
var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager());
var target = this.option.window.document.querySelector(this.option.selector);
if (target && routerAtomic.value) {
var component = routerAtomic.getConfig(Component_1.ComponentMetadataKey);
var styles = ((_b = (_a = component === null || component === void 0 ? void 0 : component.styles) === null || _a === void 0 ? void 0 : _a.map(function (it) { return "<style>".concat(it, "</style>"); })) !== null && _b !== void 0 ? _b : []).join(' ');
target.innerHTML = "".concat(styles, " ").concat((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : '');
var val = routerAtomic.value;
var domRenderProxy = val._DomRender_proxy;
domRenderProxy.initRender(target);
(_e = (_d = val) === null || _d === void 0 ? void 0 : _d.onInit) === null || _e === void 0 ? void 0 : _e.call(_d);
}
this.initWriteRootRouter();
this.option.window.addEventListener('intent', function (event) {

@@ -207,2 +196,24 @@ var cevent = event;

};
SimpleBootFront.prototype.initWriteRootRouter = function () {
var _a, _b;
var routerAtomic = this.writeRootRouter();
var target = this.option.window.document.querySelector(this.option.selector);
if (target && routerAtomic && routerAtomic.value) {
var val = routerAtomic.value;
var domRenderProxy = val._DomRender_proxy;
domRenderProxy.initRender(target);
(_b = (_a = val) === null || _a === void 0 ? void 0 : _a.onInit) === null || _b === void 0 ? void 0 : _b.call(_a);
}
};
SimpleBootFront.prototype.writeRootRouter = function () {
var _a, _b, _c;
var routerAtomic = new SimAtomic_1.SimAtomic(this.rootRouter, this.getSimstanceManager());
var target = this.option.window.document.querySelector(this.option.selector);
if (target && routerAtomic.value) {
var component = routerAtomic.getConfig(Component_1.ComponentMetadataKey);
var styles = ((_b = (_a = component === null || component === void 0 ? void 0 : component.styles) === null || _a === void 0 ? void 0 : _a.map(function (it) { return "<style>".concat(it, "</style>"); })) !== null && _b !== void 0 ? _b : []).join(' ');
target.innerHTML = "".concat(styles, " ").concat((_c = component === null || component === void 0 ? void 0 : component.template) !== null && _c !== void 0 ? _c : '');
}
return routerAtomic;
};
SimpleBootFront.prototype.goRouting = function (url) {

@@ -253,3 +264,2 @@ var _a;

this.option.window.dispatchEvent(new Event('popstate'));
return this;
};

@@ -256,0 +266,0 @@ SimpleBootFront.prototype.afterSetting = function () {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc