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/index.ts | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 web/index.ts (limited to 'web/index.ts') 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")); -- cgit v1.2.3