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": {
"projectType": {
"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}
.warning="${this.warning}"
.selectedItem=${this.selectedItem}
.selectedViewport=${this.selectedViewport}
.selectedTheme=${this.selectedTheme}
@selectedViewport=${(eventArg) => {
this.selectedViewport = eventArg.detail;
this.performUpdate();
@ -138,6 +140,7 @@ export class WccDashboard extends LitElement {
domtoolsInstance.setVirtualViewport(routeInfo.params.viewport as TViewport);
this.selectedViewport = routeInfo.params.viewport as TViewport;
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();
this.updating = true;
const storeElement = this.selectedItem;
setTimeout(async () => {
this.selectedItem = null;
setTimeout(async () => {
this.selectedItem = storeElement;
setTimeout(() => {