Tom Alexander
33ed9c4f56
Add types to Explorer props.
2024-01-28 17:32:27 -05:00
Tom Alexander
a11201363e
Rename Editor to Explorer.
...
This component was both the editor and the AST view so it doesn't make sense to call it Editor. Instead the highlightable textarea is going to be moved into a new Editor component.
2024-01-28 17:28:43 -05:00
Tom Alexander
3b3ef70d3b
Put a headline in the starting text.
...
This is because headlines have a lot of properties which will be more interesting to users. Since the org is not rendered, it barely takes up any additional space.
2024-01-28 14:39:25 -05:00
Tom Alexander
c2850fa879
Make sure the text box starts out in sync.
2024-01-28 00:39:01 -05:00
Tom Alexander
e881102ade
Rename from organic wasm demo to organic ast explorer.
2024-01-27 22:55:16 -05:00
Tom Alexander
8f360fda4b
Show the portion of the original source for the AST node in the AST tree.
2024-01-27 21:46:44 -05:00
Tom Alexander
49905f1273
Lock the scroll of the div and textarea to keep the highlighting accurate.
2024-01-27 20:16:59 -05:00
Tom Alexander
cc48040f11
Only re-parse the ast when value changes.
2024-01-27 19:31:29 -05:00
Tom Alexander
0e02e09018
Add support for highlighting when hovering over a node.
2024-01-27 18:52:18 -05:00
Tom Alexander
b8eacd9c79
Clear highlights when changing the text.
...
I'm not a big fan of this behavior but we need some form of clearing and this is the simplest right now.
2024-01-27 15:29: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
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
d1ce90ac42
Format the code.
2024-01-23 22:06:47 -05:00
Tom Alexander
6901541fe4
Start rendering the Org Ast.
2024-01-23 21:44:49 -05:00
Tom Alexander
bbf8ab0966
Highlighting text.
2024-01-22 22:20:14 -05:00
Tom Alexander
0d0a99c73b
Run format.
2024-01-21 21:13:03 -05:00
Tom Alexander
c644845d61
Integrate the editor from the old attempt into the new build.
2024-01-21 19:46:23 -05:00