aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/z-component.js
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-05-28 16:30:26 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-05-28 16:30:26 +0200
commitcd32a3ca0173676ed31486b5fa4dbd8c744cdec5 (patch)
treea9d0888c7a0e425ef8006cc9aade5889b78c074c /src/frontend/z-component.js
parente749e2ccf97e6e7a2d1c124c4e5bed688e4c06f2 (diff)
implement frontend framework
Diffstat (limited to 'src/frontend/z-component.js')
-rw-r--r--src/frontend/z-component.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/frontend/z-component.js b/src/frontend/z-component.js
deleted file mode 100644
index 5e430b5..0000000
--- a/src/frontend/z-component.js
+++ /dev/null
@@ -1,16 +0,0 @@
-customElements.define(
- "z-component",
- class extends HTMLElement {
- constructor() {
- super();
- this.attachShadow({ mode: 'open' });
- }
-
- connectedCallback() {
- const type = this.getAttribute('type');
- const template = document.getElementById(`--${type}`);
- const node = document.importNode(template.content, true);
- this.shadowRoot.appendChild(node);
- }
- }
-);