fix(core): update

This commit is contained in:
Philipp Kunz 2020-11-26 02:50:50 +00:00
parent b1350c463b
commit c5eec2ac22
4 changed files with 939 additions and 2935 deletions

View File

@ -15,7 +15,7 @@
"properties": { "properties": {
"projectType": { "projectType": {
"type": "string", "type": "string",
"enum": ["website", "element", "service", "npm"] "enum": ["website", "element", "service", "npm", "wcc"]
} }
} }
} }

3863
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -81,6 +81,8 @@ export class WccDashboard extends LitElement {
.dashboardRef=${this} .dashboardRef=${this}
.warning="${this.warning}" .warning="${this.warning}"
.selectedItem=${this.selectedItem} .selectedItem=${this.selectedItem}
.selectedViewport=${this.selectedViewport}
.selectedTheme=${this.selectedTheme}
@selectedViewport=${(eventArg) => { @selectedViewport=${(eventArg) => {
this.selectedViewport = eventArg.detail; this.selectedViewport = eventArg.detail;
this.performUpdate(); this.performUpdate();
@ -138,6 +140,7 @@ export class WccDashboard extends LitElement {
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport); domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
this.selectedViewport = routeInfo.params.viewport as TViewport; this.selectedViewport = routeInfo.params.viewport as TViewport;
this.selectedTheme = routeInfo.params.theme as TTheme; this.selectedTheme = routeInfo.params.theme as TTheme;
domtoolsInstance.themeManager.goBrightBoolean = this.selectedTheme === 'bright';
}); });
} }
@ -150,10 +153,8 @@ export class WccDashboard extends LitElement {
await this.domtools.router._handleRouteState(); await this.domtools.router._handleRouteState();
this.updating = true; this.updating = true;
const storeElement = this.selectedItem; const storeElement = this.selectedItem;
setTimeout(async () => { setTimeout(async () => {
this.selectedItem = null; this.selectedItem = null;
setTimeout(async () => { setTimeout(async () => {
this.selectedItem = storeElement; this.selectedItem = storeElement;
setTimeout(() => { setTimeout(() => {