@things-factory/shell
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{60:function(e,i,t){"use strict";t.r(i),t.d(i,"AuthProfile",function(){return r});var s=t(0),l=t(62),n=t(26);class r extends l.a{static get properties(){return{email:String,login:String,name:String,locale:String,stomp_url:String,exclusive_role:String,super_user:Boolean,admin_flag:Boolean}}static get styles(){return[s.b` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{61:function(e,i,t){"use strict";t.r(i),t.d(i,"AuthProfile",function(){return r});var s=t(0),l=t(63),n=t(26);class r extends l.a{static get properties(){return{email:String,login:String,name:String,locale:String,stomp_url:String,exclusive_role:String,super_user:Boolean,admin_flag:Boolean}}static get styles(){return[s.b` | ||
:host { | ||
@@ -60,2 +60,2 @@ display: flex; | ||
</div> | ||
`}}customElements.define("auth-profile",r)},62:function(e,i,t){"use strict";t.d(i,"a",function(){return l});var s=t(0);class l extends s.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); | ||
`}}customElements.define("auth-profile",r)},63:function(e,i,t){"use strict";t.d(i,"a",function(){return l});var s=t(0);class l extends s.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{59:function(t,e,n){"use strict";n.r(e),n.d(e,"AuthSignin",function(){return r});var i=n(0),s=n(62),a=n(26);class r extends s.a{static get styles(){return[i.b` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{60:function(t,e,n){"use strict";n.r(e),n.d(e,"AuthSignin",function(){return r});var i=n(0),s=n(63),a=n(26);class r extends s.a{static get styles(){return[i.b` | ||
:host { | ||
@@ -17,2 +17,2 @@ display: flex; | ||
<a href=${a.b.fullpage(a.b.signupPage)}>Sign Up</a> | ||
`}async handleSubmit(t){t.preventDefault();const e=t.target,n=new FormData(e);let i={};for(const[t,e]of n.entries())i[t]=e;await a.b.signin(i),e.reset()}}customElements.define("auth-signin",r)},62:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0);class s extends i.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); | ||
`}async handleSubmit(t){t.preventDefault();const e=t.target,n=new FormData(e);let i={};for(const[t,e]of n.entries())i[t]=e;await a.b.signin(i),e.reset()}}customElements.define("auth-signin",r)},63:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(0);class s extends i.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{58:function(e,t,n){"use strict";n.r(t),n.d(t,"AuthSignup",function(){return r});var i=n(0),a=n(62),s=n(26);class r extends a.a{static get styles(){return[i.b` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{59:function(e,t,n){"use strict";n.r(t),n.d(t,"AuthSignup",function(){return r});var i=n(0),a=n(63),s=n(26);class r extends a.a{static get styles(){return[i.b` | ||
:host { | ||
@@ -19,2 +19,2 @@ display: flex; | ||
<a href=${s.b.fullpage(s.b.signinPage)}>Sign In</a> | ||
`}async handleSubmit(e){e.preventDefault();const t=e.target,n=new FormData(t);let i={};for(const[e,t]of n.entries())i[e]=t;await s.b.signup(i),t.reset()}}customElements.define("auth-signup",r)},62:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(0);class a extends i.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); | ||
`}async handleSubmit(e){e.preventDefault();const t=e.target,n=new FormData(t);let i={};for(const[e,t]of n.entries())i[e]=t;await s.b.signup(i),t.reset()}}customElements.define("auth-signup",r)},63:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(0);class a extends i.a{shouldUpdate(){return this.active}static get properties(){return{active:{type:Boolean}}}}}}]); |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{56:function(e,t,a){"use strict";a.r(t);var s=a(0),n=(a(32),a(31));window.customElements.define("board-player",class extends s.a{static get styles(){return[n.a]}render(){return s.d` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{57:function(e,t,a){"use strict";a.r(t);var s=a(0),n=(a(33),a(32));window.customElements.define("board-player",class extends s.a{static get styles(){return[n.a]}render(){return s.d` | ||
<page-toolbar></page-toolbar> | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{55:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(32),s(31));window.customElements.define("board-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{56:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(33),s(32));window.customElements.define("board-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
<page-toolbar></page-toolbar> | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{54:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(32),s(31));window.customElements.define("form-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{55:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(33),s(32));window.customElements.define("form-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
<page-toolbar></page-toolbar> | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{53:function(t,i,e){"use strict";e.r(i);var n=e(0),s=(e(32),e(31));window.customElements.define("menu-list",class extends n.a{static get styles(){return[s.a,n.b` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{54:function(t,i,e){"use strict";e.r(i);var n=e(0),s=(e(33),e(32));window.customElements.define("menu-list",class extends n.a{static get styles(){return[s.a,n.b` | ||
#main { | ||
@@ -3,0 +3,0 @@ display: flex; |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{61:function(e,n,t){"use strict";t.r(n);var o=t(0),s=(t(32),t(31));window.customElements.define("page-404",class extends o.a{static get styles(){return[s.a]}render(){return o.d` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{62:function(e,n,t){"use strict";t.r(n);var o=t(0),s=(t(33),t(32));window.customElements.define("page-404",class extends o.a{static get styles(){return[s.a]}render(){return o.d` | ||
<page-toolbar></page-toolbar> | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{57:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(32),s(31));window.customElements.define("report-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{58:function(e,t,s){"use strict";s.r(t);var n=s(0),o=(s(33),s(32));window.customElements.define("report-viewer",class extends n.a{static get styles(){return[o.a]}render(){return n.d` | ||
<page-toolbar></page-toolbar> | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@things-factory/shell", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "things app starter kit", | ||
@@ -40,3 +40,2 @@ "main": "src/index.js", | ||
"@babel/preset-env": "^7.4.2", | ||
"args": "^5.0.1", | ||
"babel-loader": "^8.0.5", | ||
@@ -46,11 +45,6 @@ "clean-webpack-plugin": "^2.0.1", | ||
"html-webpack-plugin": "^3.2.0", | ||
"koa": "^2.7.0", | ||
"koa-history-api-fallback": "^0.1.3", | ||
"koa-static": "^5.0.0", | ||
"koa-webpack": "^5.2.2", | ||
"webpack": "^4.29.6", | ||
"webpack-cli": "^3.3.0", | ||
"webpack-dev-server": "^3.2.1", | ||
"webpack-hot-client": "^4.1.1" | ||
"webpack-dev-server": "^3.2.1" | ||
} | ||
} |
@@ -8,2 +8,4 @@ import { i18next } from '../app/i18next' | ||
import modules from '../module-importer.import' | ||
export const navigate = path => dispatch => { | ||
@@ -54,4 +56,11 @@ const page = path === '/' ? 'list' : path.slice(1) | ||
default: | ||
page = 'page404' | ||
import('../app/pages/page-404.js') | ||
for (var module of modules) { | ||
var success = module.route(page) | ||
if (success) break | ||
} | ||
if (!success) { | ||
page = 'page404' | ||
import('../app/pages/page-404.js') | ||
} | ||
} | ||
@@ -58,0 +67,0 @@ |
@@ -13,12 +13,12 @@ const HTMLWebpackPlugin = require('html-webpack-plugin') | ||
}) | ||
var thingsShellModulePath = path.resolve(path, '../..') | ||
var externModulesPath = path.resolve(path, '../../../..') | ||
var shellModulePath = path.resolve(path, '../..') | ||
var nodeModulePath = path.resolve(path, '../../../..') | ||
} catch (e) { | ||
console.log('@things-factory/shell module not found.') | ||
var thingsShellModulePath = path.resolve(__dirname) | ||
var externModulesPath = path.resolve(__dirname, 'node_modules') | ||
var shellModulePath = path.resolve(__dirname) | ||
var nodeModulePath = path.resolve(__dirname, 'node_modules') | ||
} | ||
console.log('FactoryShell Module Path', thingsShellModulePath) | ||
console.log('Extern Module Path', externModulesPath) | ||
console.log('FactoryShell Module Path', shellModulePath) | ||
console.log('Extern Module Path', nodeModulePath) | ||
@@ -32,2 +32,8 @@ module.exports = { | ||
}, | ||
resolve: { | ||
modules: [nodeModulePath] | ||
}, | ||
resolveLoader: { | ||
modules: [nodeModulePath, path.resolve(shellModulePath, 'web-loaders')] | ||
}, | ||
// entry: { | ||
@@ -43,12 +49,21 @@ // bundle: [ | ||
// }, | ||
// module: { | ||
// rules: [ | ||
// { | ||
// test: /\.js$/, | ||
// use: { | ||
// loader: 'babel-loader' | ||
// } | ||
// } | ||
// ] | ||
// }, | ||
module: { | ||
rules: [ | ||
// { | ||
// test: /\.js$/, | ||
// use: { | ||
// loader: 'babel-loader' | ||
// } | ||
// } | ||
{ | ||
test: /\module-importer.import$/, | ||
use: { | ||
loader: 'things-factory-module-loader', | ||
options: { | ||
module_path: nodeModulePath | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
plugins: [ | ||
@@ -55,0 +70,0 @@ new HTMLWebpackPlugin({ |
Sorry, the diff of this file is too big to display
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
199020
14
55
2392
5