summaryrefslogtreecommitdiff
path: root/web/components
diff options
context:
space:
mode:
authorJosh Kingsley <josh@joshkingsley.me>2025-10-25 20:46:35 +0300
committerJosh Kingsley <josh@joshkingsley.me>2025-10-25 22:09:48 +0300
commit5404a95c15e176d25728bf1a319ddb9828b23625 (patch)
tree639d175e15170618d36c0b22b3c8ad7764925175 /web/components
parent2a4d7a7fc3b968ed8cdfd958a5e65fbe140042da (diff)
refactor(web): re-organize files
Diffstat (limited to 'web/components')
-rw-r--r--web/components/app/index.ts13
-rw-r--r--web/components/grid/index.ts14
-rw-r--r--web/components/index.ts2
3 files changed, 0 insertions, 29 deletions
diff --git a/web/components/app/index.ts b/web/components/app/index.ts
deleted file mode 100644
index f4eaff1..0000000
--- a/web/components/app/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import ntvGrid from "../grid";
-
-class NotiveAppElement extends HTMLElement {
- connectedCallback() {
- this.append(
- ...window.notive.doc.grids.map((_grid) => {
- return ntvGrid({ foo: "1" });
- }),
- );
- }
-}
-
-customElements.define("ntv-app", NotiveAppElement);
diff --git a/web/components/grid/index.ts b/web/components/grid/index.ts
deleted file mode 100644
index 7faf6b1..0000000
--- a/web/components/grid/index.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import h, { type CreateElement } from "../../html";
-
-class NotiveGridElement extends HTMLElement {
- foo: string;
-
- connectedCallback() {
- this.appendChild(h.p("OK: " + this.foo));
- }
-}
-
-customElements.define("ntv-grid", NotiveGridElement);
-
-export default ((...args: any[]): NotiveGridElement =>
- (h as any)["ntv-grid"](...args)) as CreateElement<NotiveGridElement>;
diff --git a/web/components/index.ts b/web/components/index.ts
deleted file mode 100644
index 8bc14e7..0000000
--- a/web/components/index.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import "./app";
-import "./grid";