fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-24 18:30:54 +01:00
parent 68375a5e58
commit 2e2ad98ed8
3 changed files with 10 additions and 11 deletions

14
package-lock.json generated
View File

@ -16,7 +16,7 @@
"@pushrocks/smartexpress": "^4.0.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.60",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.101",
"@gitzone/tswatch": "^1.0.73",
"@pushrocks/projectinfo": "^4.0.5",
@ -1889,9 +1889,9 @@
}
},
"node_modules/@gitzone/tsbuild": {
"version": "2.1.60",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.60.tgz",
"integrity": "sha512-uGFp5Al8hGz/XsYnaWOvfIDHa34bik06JH/fo248TDmpBxk4dgmA2N/VV3qEnUEwGNaO7n2x+4Tc8K6ZnhRhEg==",
"version": "2.1.61",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.61.tgz",
"integrity": "sha512-wKMl3OK6YcXcPutQqOtuZvt2GhxpO+DrvLJ/75zyfEF5JVzOtBdfdfd4Nv3prDKBpViXaqgQVVf1BARKQVA7wA==",
"dev": true,
"license": "MIT",
"dependencies": {
@ -11541,9 +11541,9 @@
}
},
"@gitzone/tsbuild": {
"version": "2.1.60",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.60.tgz",
"integrity": "sha512-uGFp5Al8hGz/XsYnaWOvfIDHa34bik06JH/fo248TDmpBxk4dgmA2N/VV3qEnUEwGNaO7n2x+4Tc8K6ZnhRhEg==",
"version": "2.1.61",
"resolved": "https://verdaccio.lossless.one/@gitzone%2ftsbuild/-/tsbuild-2.1.61.tgz",
"integrity": "sha512-wKMl3OK6YcXcPutQqOtuZvt2GhxpO+DrvLJ/75zyfEF5JVzOtBdfdfd4Nv3prDKBpViXaqgQVVf1BARKQVA7wA==",
"dev": true,
"requires": {
"@pushrocks/early": "^3.0.6",

View File

@ -21,7 +21,7 @@
"@pushrocks/smartexpress": "^4.0.0"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.60",
"@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.101",
"@gitzone/tswatch": "^1.0.73",
"@pushrocks/projectinfo": "^4.0.5",

View File

@ -99,17 +99,16 @@ export class WccDashboard extends DeesElement {
></wcc-properties>
<wcc-frame id="wccFrame" viewport=${this.selectedViewport}>
${(() => {
console.log('jojo');
if (this.selectedType === 'page' && this.selectedItem) {
if (typeof this.selectedItem === 'function') {
console.log('jojo page')
console.log('slotting page.');
return this.selectedItem();
} else {
console.error('The selected item looks strange:');
console.log(this.selectedItem);
}
} else if (this.selectedType === 'element' && this.selectedItem) {
// console.log(this.selectedItem);
console.log('slotting element.');
const anonItem: any = this.selectedItem;
if (!anonItem.demo) {
this.setWarning(`component ${anonItem.name} does not expose a demo property.`);