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

@@ -2,10 +2,10 @@ import { controller } from "@github/catalyst";
import { closest, update } from "core/utils";
import { html, render } from "@github/jtml";
import { AppMainElement } from "components/";
import { BasePageElement } from "common/";
@controller
class NotFoundElement extends HTMLElement {
@closest appMain: AppMainElement;
class NotFoundElement extends BasePageElement {
constructor() {
super();
}
@@ -19,8 +19,4 @@ class NotFoundElement extends HTMLElement {
<div><app-link data-to="/" data-title="Homepage"></app-link></div>
`;
};
update = () => {
render(this.render(), this);
};
}