mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
created main shadow element to store main app
This commit is contained in:
26
src/components/app-shadow/AppShadowElement.ts
Normal file
26
src/components/app-shadow/AppShadowElement.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { attr, targets, controller, target } from "@github/catalyst";
|
||||
import { closest, index, update, isTrue } from "core/utils";
|
||||
import { html, render, until } from "@github/jtml";
|
||||
import { PingService } from "services/";
|
||||
import { AppService, HttpClient, RouterService } from "core/services";
|
||||
import { AuthStore } from "core/store";
|
||||
|
||||
@controller
|
||||
class AppShadowElement extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
@update
|
||||
connectedCallback() {
|
||||
this.attachShadow({ mode: "open" });
|
||||
}
|
||||
|
||||
render() {
|
||||
return html` <app-main></app-main> `;
|
||||
}
|
||||
|
||||
update() {
|
||||
render(this.render(), this.shadowRoot!);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user