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/index.ts | |
| parent | 2a4d7a7fc3b968ed8cdfd958a5e65fbe140042da (diff) | |
refactor(web): re-organize files
Diffstat (limited to 'web/index.ts')
| -rw-r--r-- | web/index.ts | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/web/index.ts b/web/index.ts deleted file mode 100644 index 1524b04..0000000 --- a/web/index.ts +++ /dev/null @@ -1,37 +0,0 @@ -interface Cell { - value: string; -} - -interface Row { - cells: Cell[]; -} - -interface Part { - rows: Row[]; -} - -interface Grid { - parts: Part[]; -} - -interface Doc { - grids: Grid[]; -} - -function defaultDoc(): Doc { - const defaultCells = Array(16).map(() => ({ value: "1" })); - - return { - grids: [ - { parts: [{ rows: Array(4).map(() => ({ cells: [...defaultCells] })) }] }, - ], - }; -} - -export default class Notive { - doc: Doc = defaultDoc(); -} - -window.notive = new Notive(); - -window.dispatchEvent(new CustomEvent("ntv:initialized")); |
