fix(core): update

This commit is contained in:
Philipp Kunz 2020-05-24 19:37:43 +00:00
parent 88ed2f294f
commit fdd6e38e0c
6 changed files with 153 additions and 89 deletions

View File

@ -21,6 +21,6 @@
<script src="../ts_web/index.ts"></script> <script src="../ts_web/index.ts"></script>
</head> </head>
<body> <body>
<></> <wcc-dashboard></wcc-dashboard>
</body> </body>
</html> </html>

179
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "@losslessone_private/dees-wcctools", "name": "@designestate/dees-wcctools",
"version": "1.0.21", "version": "1.0.21",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
@ -1001,11 +1001,12 @@
} }
}, },
"@gitzone/tsbuild": { "@gitzone/tsbuild": {
"version": "2.1.23", "version": "2.1.24",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.23.tgz", "resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.24.tgz",
"integrity": "sha512-eu2tNoIdfggZ7P4XakD4ylLGkdhUBfLaGrfa44lHxUSrvknxORFzdcoUEJ3NsEUyfgoTvpFIjxCZM6O9b5OtFw==", "integrity": "sha512-VBLZtedG8G3AFnQdYvUoyVEIUuZkwsQRcpSADbDe9Sq9cRrtBoD2M8aaY4Kn8TBGUl1Kqbpge2xSnutkQ5xpHQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@pushrocks/early": "^3.0.3",
"@pushrocks/smartcli": "^3.0.7", "@pushrocks/smartcli": "^3.0.7",
"@pushrocks/smartfile": "^7.0.2", "@pushrocks/smartfile": "^7.0.2",
"@pushrocks/smartlog": "^2.0.19", "@pushrocks/smartlog": "^2.0.19",
@ -1025,24 +1026,42 @@
} }
}, },
"@gitzone/tswatch": { "@gitzone/tswatch": {
"version": "1.0.39", "version": "1.0.46",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftswatch/-/tswatch-1.0.39.tgz", "resolved": "https://verdaccio.lossless.one/@gitzone%2ftswatch/-/tswatch-1.0.46.tgz",
"integrity": "sha512-v7MYM9lZk3chjBx69ZlvZ2eqO9Jozndl/rvEnxfm2sInfwaX32DeX/qRWE/sHNjS7el/InGcNDqPBUMKjNHcUQ==", "integrity": "sha512-6idhXyAunGETAtO1FurTi6/A84VAXxlk+BitJKgHKR9zGojJZeT6/8K8ZRkk9mGGDtVV2/6bm1ndpsTvdD03wg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@gitzone/tsrun": "^1.2.8", "@gitzone/tsrun": "^1.2.8",
"@pushrocks/early": "^3.0.3", "@pushrocks/early": "^3.0.3",
"@pushrocks/lik": "^3.0.19", "@pushrocks/lik": "^4.0.0",
"@pushrocks/smartchok": "^1.0.23", "@pushrocks/smartchok": "^1.0.23",
"@pushrocks/smartcli": "^3.0.7", "@pushrocks/smartcli": "^3.0.11",
"@pushrocks/smartdelay": "^2.0.6", "@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smartlog": "^2.0.21", "@pushrocks/smartlog": "^2.0.21",
"@pushrocks/smartlog-destination-local": "^8.0.2", "@pushrocks/smartlog-destination-local": "^8.0.2",
"@pushrocks/smartserve": "^1.1.39", "@pushrocks/smartserve": "^1.1.39",
"@pushrocks/smartshell": "^2.0.25", "@pushrocks/smartshell": "^2.0.26",
"@pushrocks/taskbuffer": "^2.1.1", "@pushrocks/taskbuffer": "^2.1.1",
"@types/parcel-bundler": "^1.12.1", "@types/parcel-bundler": "^1.12.1",
"parcel-bundler": "^1.12.4" "parcel-bundler": "^1.12.4"
},
"dependencies": {
"@pushrocks/lik": {
"version": "4.0.0",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2flik/-/lik-4.0.0.tgz",
"integrity": "sha512-M1IabZQIZZdxxx1AQiOu34nU2W/RCWvYPdobzLzSiVJVRxshpmNF/u7dTnj9eyt9hwNXDeRbjkYXn77Bt3+HuQ==",
"dev": true,
"requires": {
"@pushrocks/smartdelay": "^2.0.6",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartrx": "^2.0.5",
"@pushrocks/smarttime": "^3.0.12",
"@pushrocks/smartunique": "^3.0.1",
"@types/minimatch": "^3.0.3",
"minimatch": "^3.0.4",
"symbol-tree": "^3.2.4"
}
}
} }
}, },
"@iarna/toml": { "@iarna/toml": {
@ -2246,15 +2265,16 @@
} }
}, },
"@pushrocks/smartshell": { "@pushrocks/smartshell": {
"version": "2.0.25", "version": "2.0.26",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartshell/-/smartshell-2.0.25.tgz", "resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartshell/-/smartshell-2.0.26.tgz",
"integrity": "sha512-sYVHOhBRdr+CkjS+o1SDtB5058ZYxTPAYuexx2ydl2g+57KNdEcSRWN/2mOv5+NFH+tvvgtnUjC3AclC9CwJ4A==", "integrity": "sha512-5ynxufz/HogctNARgrKxS9om4zT73uzrYJKTnPTJ4FoU7GU1vCVVDZ2F8CqsdkYxWpKiqtwwoF6l7QBWPUoHiw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@pushrocks/smartdelay": "^2.0.3", "@pushrocks/smartdelay": "^2.0.3",
"@pushrocks/smartexit": "^1.0.15", "@pushrocks/smartexit": "^1.0.15",
"@pushrocks/smartpromise": "^3.0.2", "@pushrocks/smartpromise": "^3.0.2",
"@types/which": "^1.3.1", "@types/which": "^1.3.1",
"tree-kill": "^1.2.2",
"which": "^1.3.1" "which": "^1.3.1"
} }
}, },
@ -2449,9 +2469,9 @@
} }
}, },
"@types/q": { "@types/q": {
"version": "1.5.2", "version": "1.5.4",
"resolved": "https://verdaccio.lossless.one/@types%2fq/-/q-1.5.2.tgz", "resolved": "https://verdaccio.lossless.one/@types%2fq/-/q-1.5.4.tgz",
"integrity": "sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==", "integrity": "sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==",
"dev": true "dev": true
}, },
"@types/qs": { "@types/qs": {
@ -2516,9 +2536,9 @@
"dev": true "dev": true
}, },
"@types/yargs": { "@types/yargs": {
"version": "15.0.4", "version": "15.0.5",
"resolved": "https://verdaccio.lossless.one/@types%2fyargs/-/yargs-15.0.4.tgz", "resolved": "https://verdaccio.lossless.one/@types%2fyargs/-/yargs-15.0.5.tgz",
"integrity": "sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg==", "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==",
"dev": true, "dev": true,
"requires": { "requires": {
"@types/yargs-parser": "*" "@types/yargs-parser": "*"
@ -2713,9 +2733,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -2789,9 +2809,9 @@
"dev": true "dev": true
}, },
"aws4": { "aws4": {
"version": "1.9.1", "version": "1.10.0",
"resolved": "https://verdaccio.lossless.one/aws4/-/aws4-1.9.1.tgz", "resolved": "https://verdaccio.lossless.one/aws4/-/aws4-1.10.0.tgz",
"integrity": "sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug==", "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==",
"dev": true "dev": true
}, },
"babel-plugin-dynamic-import-node": { "babel-plugin-dynamic-import-node": {
@ -2943,9 +2963,9 @@
} }
}, },
"bn.js": { "bn.js": {
"version": "5.1.1", "version": "5.1.2",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-5.1.1.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-5.1.2.tgz",
"integrity": "sha512-IUTD/REb78Z2eodka1QZyyEk66pciRcP6Sroka0aI3tG/iwIdYLrBD62RsubR7vqdt3WyX8p4jxeatzmRSphtA==", "integrity": "sha512-40rZaf3bUNKTVYu9sIeeEGOg7g14Yvnj9kH7b50EiwX0Q7A6umbvfI5tvHaOERH0XigqKkfLkFQxzb4e6CIXnA==",
"dev": true "dev": true
}, },
"body-parser": { "body-parser": {
@ -3123,17 +3143,17 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
}, },
"browserify-sign": { "browserify-sign": {
"version": "4.1.0", "version": "4.2.0",
"resolved": "https://verdaccio.lossless.one/browserify-sign/-/browserify-sign-4.1.0.tgz", "resolved": "https://verdaccio.lossless.one/browserify-sign/-/browserify-sign-4.2.0.tgz",
"integrity": "sha512-VYxo7cDCeYUoBZ0ZCy4UyEUCP3smyBd4DRQM5nrFS1jJjPJjX7rP3oLRpPoWfkhQfyJ0I9ZbHbKafrFD/SGlrg==", "integrity": "sha512-hEZC1KEeYuoHRqhGhTy6gWrpJA3ZDjFWv0DE61643ZnOXAKJb3u7yWcrU0mMc9SwAqK1n7myPGndkp0dFG7NFA==",
"dev": true, "dev": true,
"requires": { "requires": {
"bn.js": "^5.1.1", "bn.js": "^5.1.1",
@ -3143,7 +3163,8 @@
"elliptic": "^6.5.2", "elliptic": "^6.5.2",
"inherits": "^2.0.4", "inherits": "^2.0.4",
"parse-asn1": "^5.1.5", "parse-asn1": "^5.1.5",
"readable-stream": "^3.6.0" "readable-stream": "^3.6.0",
"safe-buffer": "^5.2.0"
} }
}, },
"browserify-zlib": { "browserify-zlib": {
@ -3291,9 +3312,9 @@
} }
}, },
"caniuse-lite": { "caniuse-lite": {
"version": "1.0.30001054", "version": "1.0.30001064",
"resolved": "https://verdaccio.lossless.one/caniuse-lite/-/caniuse-lite-1.0.30001054.tgz", "resolved": "https://verdaccio.lossless.one/caniuse-lite/-/caniuse-lite-1.0.30001064.tgz",
"integrity": "sha512-jiKlTI6Ur8Kjfj8z0muGrV6FscpRvefcQVPSuMuXnvRCfExU7zlVLNjmOz1TnurWgUrAY7MMmjyy+uTgIl1XHw==", "integrity": "sha512-hdBcQMFvJIrOhkpAZiRXz04Cmetwc9NekeuNl0qZfHOugxOhJKxsjF1RmISMPFjIF4PPx1reliIzbfN42EiQ5A==",
"dev": true "dev": true
}, },
"caseless": { "caseless": {
@ -3755,9 +3776,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -4276,9 +4297,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -4435,9 +4456,9 @@
"integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0="
}, },
"electron-to-chromium": { "electron-to-chromium": {
"version": "1.3.432", "version": "1.3.451",
"resolved": "https://verdaccio.lossless.one/electron-to-chromium/-/electron-to-chromium-1.3.432.tgz", "resolved": "https://verdaccio.lossless.one/electron-to-chromium/-/electron-to-chromium-1.3.451.tgz",
"integrity": "sha512-/GdNhXyLP5Yl2322CUX/+Xi8NhdHBqL6lD9VJVKjH6CjoPGakvwZ5CpKgj/oOlbzuWWjOvMjDw1bBuAIRCNTlw==", "integrity": "sha512-2fvco0F2bBIgqzO8GRP0Jt/91pdrf9KfZ5FsmkYkjERmIJG585cFeFZV4+CO6oTmU3HmCTgfcZuEa7kW8VUh3A==",
"dev": true "dev": true
}, },
"elliptic": { "elliptic": {
@ -4456,9 +4477,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -5443,9 +5464,9 @@
} }
}, },
"terser": { "terser": {
"version": "4.6.13", "version": "4.7.0",
"resolved": "https://verdaccio.lossless.one/terser/-/terser-4.6.13.tgz", "resolved": "https://verdaccio.lossless.one/terser/-/terser-4.7.0.tgz",
"integrity": "sha512-wMvqukYgVpQlymbnNbabVZbtM6PN63AzqexpwJL8tbh/mRT9LE5o+ruVduAGL7D6Fpjl+Q+06U5I9Ul82odAhw==", "integrity": "sha512-Lfb0RiZcjRDXCC3OSHJpEkxJ9Qeqs6mp2v4jf2MHfy8vGERmVDuvjXdd/EnP5Deme5F2yBRBymKmKHCBg2echw==",
"dev": true, "dev": true,
"requires": { "requires": {
"commander": "^2.20.0", "commander": "^2.20.0",
@ -6391,9 +6412,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -6626,9 +6647,9 @@
} }
}, },
"node-releases": { "node-releases": {
"version": "1.1.55", "version": "1.1.56",
"resolved": "https://verdaccio.lossless.one/node-releases/-/node-releases-1.1.55.tgz", "resolved": "https://verdaccio.lossless.one/node-releases/-/node-releases-1.1.56.tgz",
"integrity": "sha512-H3R3YR/8TjT5WPin/wOoHOUPHgvj8leuU/Keta/rwelEQN9pA/S2Dx8/se4pZ2LBxSd0nAGzsNzhqwa77v7F1w==", "integrity": "sha512-EVo605FhWLygH8a64TjgpjyHYOihkxECwX1bHHr8tETJKWEiWS2YJjPbvsX2jFjnjTNEgBCmk9mLjKG1Mf11cw==",
"dev": true "dev": true
}, },
"normalize-html-whitespace": { "normalize-html-whitespace": {
@ -7166,9 +7187,9 @@
"dev": true "dev": true
}, },
"postcss": { "postcss": {
"version": "7.0.29", "version": "7.0.30",
"resolved": "https://verdaccio.lossless.one/postcss/-/postcss-7.0.29.tgz", "resolved": "https://verdaccio.lossless.one/postcss/-/postcss-7.0.30.tgz",
"integrity": "sha512-ba0ApvR3LxGvRMMiUa9n0WR4HjzcYm7tS+ht4/2Nd0NLtHpPIH77fuB9Xh1/yJVz9O/E/95Y/dn8ygWsyffXtw==", "integrity": "sha512-nu/0m+NtIzoubO+xdAlwZl/u5S5vi/y6BCsoL8D+8IxsD3XvBS8X4YEADNIVXKVuQvduiucnRv+vPIqj56EGMQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"chalk": "^2.4.2", "chalk": "^2.4.2",
@ -7709,9 +7730,9 @@
}, },
"dependencies": { "dependencies": {
"bn.js": { "bn.js": {
"version": "4.11.8", "version": "4.11.9",
"resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.8.tgz", "resolved": "https://verdaccio.lossless.one/bn.js/-/bn.js-4.11.9.tgz",
"integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==",
"dev": true "dev": true
} }
} }
@ -8093,9 +8114,9 @@
} }
}, },
"regjsgen": { "regjsgen": {
"version": "0.5.1", "version": "0.5.2",
"resolved": "https://verdaccio.lossless.one/regjsgen/-/regjsgen-0.5.1.tgz", "resolved": "https://verdaccio.lossless.one/regjsgen/-/regjsgen-0.5.2.tgz",
"integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", "integrity": "sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A==",
"dev": true "dev": true
}, },
"regjsparser": { "regjsparser": {
@ -9199,6 +9220,12 @@
"punycode": "^2.1.0" "punycode": "^2.1.0"
} }
}, },
"tree-kill": {
"version": "1.2.2",
"resolved": "https://verdaccio.lossless.one/tree-kill/-/tree-kill-1.2.2.tgz",
"integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",
"dev": true
},
"ts-node": { "ts-node": {
"version": "8.10.1", "version": "8.10.1",
"resolved": "https://verdaccio.lossless.one/ts-node/-/ts-node-8.10.1.tgz", "resolved": "https://verdaccio.lossless.one/ts-node/-/ts-node-8.10.1.tgz",
@ -9217,9 +9244,9 @@
"integrity": "sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg==" "integrity": "sha512-tTSkux6IGPnUGUd1XAZHcpu85MOkIl5zX49pO+jfsie3eP0B6pyhOlLXm3cAC6T7s+euSDDUUV+Acop5WmtkVg=="
}, },
"tslint": { "tslint": {
"version": "5.20.1", "version": "6.1.2",
"resolved": "https://verdaccio.lossless.one/tslint/-/tslint-5.20.1.tgz", "resolved": "https://verdaccio.lossless.one/tslint/-/tslint-6.1.2.tgz",
"integrity": "sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg==", "integrity": "sha512-UyNrLdK3E0fQG/xWNqAFAC5ugtFyPO4JJR1KyyfQAyzR8W0fTRrC91A8Wej4BntFzcvETdCSDa/4PnNYJQLYiA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@babel/code-frame": "^7.0.0", "@babel/code-frame": "^7.0.0",
@ -9230,10 +9257,10 @@
"glob": "^7.1.1", "glob": "^7.1.1",
"js-yaml": "^3.13.1", "js-yaml": "^3.13.1",
"minimatch": "^3.0.4", "minimatch": "^3.0.4",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.3",
"resolve": "^1.3.2", "resolve": "^1.3.2",
"semver": "^5.3.0", "semver": "^5.3.0",
"tslib": "^1.8.0", "tslib": "^1.10.0",
"tsutils": "^2.29.0" "tsutils": "^2.29.0"
} }
}, },
@ -9304,9 +9331,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "3.8.3", "version": "3.9.3",
"resolved": "https://verdaccio.lossless.one/typescript/-/typescript-3.8.3.tgz", "resolved": "https://verdaccio.lossless.one/typescript/-/typescript-3.9.3.tgz",
"integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==" "integrity": "sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ=="
}, },
"uncss": { "uncss": {
"version": "0.17.3", "version": "0.17.3",

View File

@ -17,13 +17,13 @@
"@pushrocks/smartexpress": "^3.0.10", "@pushrocks/smartexpress": "^3.0.10",
"lit-element": "^2.0.0-rc.5", "lit-element": "^2.0.0-rc.5",
"lit-html": "^1.0.0-rc.2", "lit-html": "^1.0.0-rc.2",
"typescript": "^3.2.2" "typescript": "^3.9.3"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.8", "@gitzone/tsbuild": "^2.1.24",
"@gitzone/tswatch": "^1.0.30", "@gitzone/tswatch": "^1.0.46",
"@pushrocks/projectinfo": "^4.0.2", "@pushrocks/projectinfo": "^4.0.2",
"tslint": "^5.11.0", "tslint": "^6.1.2",
"tslint-config-prettier": "^1.17.0" "tslint-config-prettier": "^1.17.0"
}, },
"files": [ "files": [
@ -37,5 +37,8 @@
"cli.js", "cli.js",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
],
"browserslist": [
"last 2 Chrome versions"
] ]
} }

View File

@ -24,6 +24,9 @@ export class WccDashboard extends LitElement {
@property() @property()
public elements: { [key: string]: LitElement } = {}; public elements: { [key: string]: LitElement } = {};
@property()
public warning: string = null;
constructor(elementsArg?: { [key: string]: LitElement }, pagesArg?: { [key: string]: TemplateResult }) { constructor(elementsArg?: { [key: string]: LitElement }, pagesArg?: { [key: string]: TemplateResult }) {
super(); super();
if (elementsArg) { if (elementsArg) {
@ -52,7 +55,7 @@ export class WccDashboard extends LitElement {
<wcc-sidebar .pages=${this.pages} .elements=${this.elements} @selectedItem=${eventArg => { <wcc-sidebar .pages=${this.pages} .elements=${this.elements} @selectedItem=${eventArg => {
this.selectedItem = eventArg.detail; this.selectedItem = eventArg.detail;
}}></wcc-sidebar> }}></wcc-sidebar>
<wcc-properties .selectedItem=${this.selectedItem} .selectedInstance=${this.selectedInstance} @selectedViewport=${eventArg => {this.selectedViewport = eventArg.detail; this.updateSlot();}}></wcc-properties> <wcc-properties .warning="${this.warning}" .selectedItem=${this.selectedItem} .selectedInstance=${this.selectedInstance} @selectedViewport=${eventArg => {this.selectedViewport = eventArg.detail; this.updateSlot();}}></wcc-properties>
<wcc-frame id="wccFrame" viewport=${this.selectedViewport}> <wcc-frame id="wccFrame" viewport=${this.selectedViewport}>
${(() => { ${(() => {
if (this.selectedItem instanceof TemplateResult) { if (this.selectedItem instanceof TemplateResult) {
@ -60,13 +63,18 @@ export class WccDashboard extends LitElement {
} else if (this.selectedItem) { } else if (this.selectedItem) {
console.log(this.selectedItem); console.log(this.selectedItem);
const anonItem: any = this.selectedItem; const anonItem: any = this.selectedItem;
if (anonItem.demo) { if (!anonItem.demo) {
return html`${anonItem.demo}`; this.setWarning(`component ${anonItem.name} does not expose a demo property.`);
} else { return;
alert(`component does not expose a demo property.`);
} }
if (!(typeof anonItem.demo === 'function')) {
this.setWarning(`component ${anonItem.name} has demo property, but it is not of type function`);
return;
}
this.setWarning(null);
return html`${anonItem.demo()}`;
} else { } else {
this.selectedItem = WccDefaultElement as any;
} }
})()} })()}
</wcc-frame> </wcc-frame>
@ -83,5 +91,13 @@ export class WccDashboard extends LitElement {
}, 0); }, 0);
} }
public setWarning(warningTextArg: string) {
if (this.warning !== warningTextArg) {
console.log(warningTextArg);
this.warning = warningTextArg;
setTimeout(() => {
super.performUpdate();
}, 0);
}
}
} }

View File

@ -3,7 +3,7 @@ import { TemplateResult } from 'lit-html';
@customElement('wcc-defaultelement') @customElement('wcc-defaultelement')
export class WccDefaultElement extends LitElement { export class WccDefaultElement extends LitElement {
public static demo = html`<wcc-defaultelement></wcc-defaultelement>`; public static demo = () => html`<wcc-defaultelement></wcc-defaultelement>`;
@property() @property()
public footerText = `Lossless GmbH - 2018`; public footerText = `Lossless GmbH - 2018`;

View File

@ -19,6 +19,9 @@ export class WccProperties extends LitElement {
@property() @property()
public selectedViewport = 'native'; public selectedViewport = 'native';
@property()
public warning: string = null;
public render(): TemplateResult { public render(): TemplateResult {
return html` return html`
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
@ -98,6 +101,18 @@ export class WccProperties extends LitElement {
color: #333; color: #333;
background: #fff; background: #fff;
} }
.warning {
position: absolute;
background: #800000;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
text-align: center;
padding: 20px;
font-size: 25px;
}
</style> </style>
<div class="grid"> <div class="grid">
<div class="properties"> <div class="properties">
@ -167,6 +182,9 @@ ${(() => {
</div> </div>
<div class="docs">Docs</div> <div class="docs">Docs</div>
</div> </div>
${this.warning ? html`<div class="warning">
${this.warning}
</div>` : null}
`; `;
} }