Commit Graph

35 Commits

Author SHA1 Message Date
Tom Alexander
c397688a4a Pass uid down from parent.
This fixes an issue where lists of nodes did not have the key attribute.
2024-01-27 15:01:37 -05:00
Tom Alexander
aac0ebe619 Move parsing up into the Editor. 2024-01-27 14:56:12 -05:00
Tom Alexander
3fa5ba1546 Update to using createRoot. 2024-01-27 14:38:34 -05:00
Tom Alexander
8be7f3c290 Switch to using unique id for node selection.
This lets us pass the selected node down from the top instead of propagating calls to set/clear the selected boolean in each node.
2024-01-27 14:27:23 -05:00
Tom Alexander
6e791d119a Setting highlight based on clicks. 2024-01-27 14:27:22 -05:00
Tom Alexander
41d4129cce Improve the starting text for the editor. 2024-01-27 14:27:22 -05:00
Tom Alexander
87406ee0fd Render the children. 2024-01-23 23:08:20 -05:00
Tom Alexander
6ede136e61 Show the standard properties. 2024-01-23 22:27:31 -05:00
Tom Alexander
d1ce90ac42 Format the code. 2024-01-23 22:06:47 -05:00
Tom Alexander
4847ec07d8 Render if the node has children. 2024-01-23 22:06:22 -05:00
Tom Alexander
6901541fe4 Start rendering the Org Ast. 2024-01-23 21:44:49 -05:00
Tom Alexander
c419a41998 Fix text alignment with shadow. 2024-01-22 22:52:00 -05:00
Tom Alexander
ba2c646a6a Remove style from textarea. 2024-01-22 22:39:52 -05:00
Tom Alexander
bbf8ab0966 Highlighting text. 2024-01-22 22:20:14 -05:00
Tom Alexander
7390132d02 Add CSS reset sheet. 2024-01-22 20:01:30 -05:00
Tom Alexander
f777e4a856 Add an App component. 2024-01-22 19:41:07 -05:00
Tom Alexander
0d0a99c73b Run format. 2024-01-21 21:13:03 -05:00
Tom Alexander
8c3dd2cee3 Add prettier. 2024-01-21 21:13:02 -05:00
Tom Alexander
c1a58bbbf3 Add CSS to the build system. 2024-01-21 20:55:09 -05:00
Tom Alexander
c644845d61 Integrate the editor from the old attempt into the new build. 2024-01-21 19:46:23 -05:00
Tom Alexander
323019136c Merge remote-tracking branch 'old/main' 2024-01-21 18:53:51 -05:00
Tom Alexander
7a5784fd66 Prepare for merging. 2024-01-21 18:52:40 -05:00
Tom Alexander
ff62983ac0 Add organic wasm module. 2024-01-21 18:32:19 -05:00
Tom Alexander
b232c8d7da React hello world. 2024-01-21 17:54:00 -05:00
Tom Alexander
3c19a105b1 Add initial package.json. 2024-01-21 17:26:02 -05:00
Tom Alexander
5b9b3d1195 Initial commit. 2024-01-21 17:22:54 -05:00
Tom Alexander
89b8b18fea Add functions to add and clear highlights. 2024-01-21 15:51:40 -05:00
Tom Alexander
66bfc2da25 Make the font transparent in the underlay. 2024-01-12 23:16:07 -05:00
Tom Alexander
e6f16c854c Duplicate the input text in the underlay div. 2024-01-12 23:15:06 -05:00
Tom Alexander
b52ee91745 Switch from an overlay to an underlay so the highlight colors do not impact the text. 2024-01-12 22:39:00 -05:00
Tom Alexander
949e02af2f Add an overlay that is invisible.
We will put a second copy of the input text in here invisibly, so we can create overlay spans.
2024-01-12 22:30:55 -05:00
Tom Alexander
636f2dabb8 Wrap the textarea. 2024-01-12 22:16:31 -05:00
Tom Alexander
a1b1e9e5c5 Add a pane to render the AST. 2024-01-12 22:12:14 -05:00
Tom Alexander
b6f74c9a6e Add a textarea. 2024-01-12 21:42:12 -05:00
Tom Alexander
8fa6eecae0 Initialize project using Create React App 2024-01-12 20:19:47 -05:00