71 Commits (main)
 

Author SHA1 Message Date
Tom Alexander 6db3dc65fa
Merge branch 'dark_mode' 3 months ago
Tom Alexander 43d65b4fe3
Disable spellcheck to remove red squiggles. 3 months ago
Tom Alexander ff3618b67d
Add dark mode support for the editor. 3 months ago
Tom Alexander 8c2c48a719
Add dark mode support for the AST tree. 3 months ago
Tom Alexander 43de54039b
Move the shadow to the left.
This is to make indentation depth easier to see.
3 months ago
Tom Alexander acaf757ce3
Merge branch 'isolate_editor' 3 months ago
Tom Alexander 1cc5dd7911
Move flexbox handling up to the explorer component. 3 months ago
Tom Alexander 083b0aa376
Move explorer styles into local styles. 3 months ago
Tom Alexander d158fafd77
Move the highlightable textarea into its own component. 3 months ago
Tom Alexander 33ed9c4f56
Add types to Explorer props. 3 months ago
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.
3 months ago
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.
3 months ago
Tom Alexander 6129bdad3e
Remove highlight when deselecting node despite hover status. 3 months ago
Tom Alexander f89e62b9e1
Allow de-selecting of nodes. 3 months ago
Tom Alexander 5d31d50863
Fix cursor for ast node bar. 3 months ago
Tom Alexander c2850fa879
Make sure the text box starts out in sync. 3 months ago
Tom Alexander d5020d3f24
Add a production release build. 3 months ago
Tom Alexander e881102ade
Rename from organic wasm demo to organic ast explorer. 3 months ago
Tom Alexander 536e364364
Delete old code. 3 months ago
Tom Alexander f60725b341
Use monospace font for source. 3 months ago
Tom Alexander d73f344dd0
Compact form for plain text nodes. 3 months ago
Tom Alexander 04b79631d7
Get rid of flexbox. 3 months ago
Tom Alexander 8f360fda4b
Show the portion of the original source for the AST node in the AST tree. 3 months ago
Tom Alexander bb15dbcbaf
Add support for optional pairs. 3 months ago
Tom Alexander 49905f1273
Lock the scroll of the div and textarea to keep the highlighting accurate. 3 months ago
Tom Alexander cc48040f11
Only re-parse the ast when value changes. 3 months ago
Tom Alexander 8627181480
Fix creation of shadow div.
If two highlights started at the same index, it would sometimes not render both of them.
3 months ago
Tom Alexander 5feac8e4d7
Fix a missing key. 3 months ago
Tom Alexander 0e02e09018
Add support for highlighting when hovering over a node. 3 months ago
Tom Alexander e89be0feff
Render object trees. 3 months ago
Tom Alexander 3f0ac05513
Moving the rendering of property values out to their own component.
There is going to be a bunch of logic associated with it to detect what type the value is, so I am moving it out to its own component.
3 months ago
Tom Alexander f435e73ec1
Remove noop entries.
The noop entries are not actually implemented in organic so it wouldn't make sense for them to be rendered in the UI.
3 months ago
Tom Alexander c03bf7458f
Fix line breaks in property list keys. 3 months ago
Tom Alexander 1507050128
Switch to using tables for properties. 3 months ago
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.
3 months ago
Tom Alexander 1c8f84ab4c
Very basic org properties rendering. 3 months ago
Tom Alexander c397688a4a
Pass uid down from parent.
This fixes an issue where lists of nodes did not have the key attribute.
3 months ago
Tom Alexander aac0ebe619
Move parsing up into the Editor. 3 months ago
Tom Alexander 3fa5ba1546
Update to using createRoot. 3 months ago
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.
3 months ago
Tom Alexander 6e791d119a
Setting highlight based on clicks. 3 months ago
Tom Alexander 41d4129cce
Improve the starting text for the editor. 3 months ago
Tom Alexander 87406ee0fd
Render the children. 4 months ago
Tom Alexander 6ede136e61
Show the standard properties. 4 months ago
Tom Alexander d1ce90ac42
Format the code. 4 months ago
Tom Alexander 4847ec07d8
Render if the node has children. 4 months ago
Tom Alexander 6901541fe4
Start rendering the Org Ast. 4 months ago
Tom Alexander c419a41998
Fix text alignment with shadow. 4 months ago
Tom Alexander ba2c646a6a
Remove style from textarea. 4 months ago
Tom Alexander bbf8ab0966
Highlighting text. 4 months ago