From 5404a95c15e176d25728bf1a319ddb9828b23625 Mon Sep 17 00:00:00 2001 From: Josh Kingsley Date: Sat, 25 Oct 2025 20:46:35 +0300 Subject: refactor(web): re-organize files --- web/components/app/index.ts | 13 ------------- web/components/grid/index.ts | 14 -------------- web/components/index.ts | 2 -- 3 files changed, 29 deletions(-) delete mode 100644 web/components/app/index.ts delete mode 100644 web/components/grid/index.ts delete mode 100644 web/components/index.ts (limited to 'web/components') 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; 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"; -- cgit v1.2.3