diff options
| author | Josh Kingsley <josh@joshkingsley.me> | 2025-10-25 20:46:35 +0300 |
|---|---|---|
| committer | Josh Kingsley <josh@joshkingsley.me> | 2025-10-25 22:09:48 +0300 |
| commit | 5404a95c15e176d25728bf1a319ddb9828b23625 (patch) | |
| tree | 639d175e15170618d36c0b22b3c8ad7764925175 /web/src/components/app | |
| parent | 2a4d7a7fc3b968ed8cdfd958a5e65fbe140042da (diff) | |
refactor(web): re-organize files
Diffstat (limited to 'web/src/components/app')
| -rw-r--r-- | web/src/components/app/index.css | 3 | ||||
| -rw-r--r-- | web/src/components/app/index.ts | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/web/src/components/app/index.css b/web/src/components/app/index.css new file mode 100644 index 0000000..3eeaee9 --- /dev/null +++ b/web/src/components/app/index.css @@ -0,0 +1,3 @@ +ntv-app { + display: block; +} diff --git a/web/src/components/app/index.ts b/web/src/components/app/index.ts new file mode 100644 index 0000000..5967a46 --- /dev/null +++ b/web/src/components/app/index.ts @@ -0,0 +1,14 @@ +import ntvGrid from "../grid"; +import "./index.css"; + +class NotiveAppElement extends HTMLElement { + connectedCallback() { + this.append( + ...window.notive.doc.grids.map((_grid) => { + return ntvGrid(); + }), + ); + } +} + +customElements.define("ntv-app", NotiveAppElement); |
