closed shadowRoot and changed pages, components, layout to extend base class

This commit is contained in:
Fran Jurmanović
2021-06-02 13:19:32 +02:00
parent f01c328716
commit 91032927fd
25 changed files with 206 additions and 109 deletions

View File

@@ -3,11 +3,11 @@ import { closest, index, update, isTrue } from "core/utils";
import { html, render, until } from "@github/jtml";
import { PingService } from "services/";
import { AppMainElement } from "components/";
import { BasePageElement } from "common/";
@controller
class HomePageElement extends HTMLElement {
class HomePageElement extends BasePageElement {
private pingService: PingService;
@closest appMain: AppMainElement;
constructor() {
super();
}
@@ -48,8 +48,4 @@ class HomePageElement extends HTMLElement {
<button data-action="click:home-page#openModal">Test</button>
`;
};
update = () => {
render(this.render(), this);
};
}