From a9ae4f988848101b944298db1303f213b81bce22 Mon Sep 17 00:00:00 2001 From: Joeri Exelmans Date: Sun, 11 May 2025 22:54:23 +0200 Subject: [PATCH] decent progress --- src/App.tsx | 9 ++- src/CallBlock.css | 24 +------ src/CallBlock.tsx | 113 +++++++++++++++++++------------- src/Editor.css | 8 +++ src/Editor.tsx | 135 +++++++++++++++++++++------------------ src/InputBlock.css | 37 ++++++++++- src/InputBlock.tsx | 66 ++++++++++++------- src/Type.tsx | 2 +- src/Value.css | 9 +++ src/Value.tsx | 54 ++++++++++++++++ src/index.css | 10 +++ src/util/dom_trickery.ts | 4 +- src/util/extra.ts | 5 +- tsconfig.app.json | 4 +- 14 files changed, 318 insertions(+), 162 deletions(-) create mode 100644 src/Editor.css create mode 100644 src/Value.css create mode 100644 src/Value.tsx diff --git a/src/App.tsx b/src/App.tsx index 1c8859e..031f3b6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,11 +3,11 @@ import { useEffect, useState } from 'react'; import './App.css' import { Editor, initialEditorState, type EditorState } from './Editor' - export function App() { const [state, setState] = useState(initialEditorState); useEffect(() => { + window['APP_STATE'] = state; // console.log("EDITOR STATE:", state); }, [state]); @@ -18,7 +18,12 @@ export function App() {
- + {console.log("toplevel resolved")}} + onCancel={() => {console.log("toplevel canceled")}} + />