buttercat1791
d8c64260b3
Refactor markup generator for embedded events into Svelte snippets
...
- Eliminate a component that is no longer needed.
- Reduce duplicate code.
- Tidy up code along the way.
- Ran `deno fmt` to auto-format code (hence the large diff).
7 months ago
silberengel
5ceaced771
ran prettier
8 months ago
buttercat1791
e714ac2631
Pass publication section DOM into ToC class
8 months ago
buttercat1791
70e7674a77
Parallelize ToC initialization step
8 months ago
buttercat1791
d62e2fef5f
Add contextual and todo comments
8 months ago
buttercat1791
ff8cfd39ad
Remove unused function
8 months ago
buttercat1791
f0d35e0f29
Add time complexity notes on child sort function
8 months ago
buttercat1791
eae495fa77
Ensure correct sorting of children of tree nodes
9 months ago
buttercat1791
15daf824c2
Correctly render hierarchy in ToC component
9 months ago
buttercat1791
44a9d282a5
Use a reactive map to make ToC entry expansion react on click
9 months ago
buttercat1791
261b324d1b
Fix code mangled by git
9 months ago
buttercat1791
c235646ffe
Ensure ToC addresses update correctly
...
Closing and reopening the ToC component shows updates, but it is not responsive to clicks. This will be fixed in a future commit.
9 months ago
buttercat1791
2d6d38b3b3
Fix data flow between publication tree and ToC
9 months ago
buttercat1791
fa6265b346
Refactor and support tree node resolution via ToC entry closure
9 months ago
buttercat1791
f635d08982
Add doc comment for ToC
9 months ago
buttercat1791
ddf8b9006b
Update ToC on publication tree node resolution
9 months ago
buttercat1791
c30484b9bc
Use `SveltePublicationTree` in ToC class
10 months ago
buttercat1791
640a126330
Compute depth of ToC entries when adding them
10 months ago
buttercat1791
f9048c468c
Add doc comment on ToC constructor
10 months ago
buttercat1791
cb1ece7eae
Make ToC class iterable, and iterate to render ToC in component
10 months ago
buttercat1791
53ed81f032
Recursively build ToC from HTML markup
10 months ago
buttercat1791
feab392a44
Refactor `TableOfContents` class for least privilege
10 months ago
buttercat1791
a408c54323
Reorganize ToC modules
...
The `<TableOfContents>` component is moved to the same subdirectory as the publication components. Most of the component logic is moved into a class defined in `table_of_contents.svelte.ts`, which will serve as a companion module for `<TableOfContents>`.
10 months ago
buttercat1791
ee85059dee
Add more supporting functions for ToC component
10 months ago
buttercat1791
78e4d23f71
Add a function to extract ToC entries from HTML
10 months ago
buttercat1791
650aa280d4
Add comments with implementation plan
10 months ago
buttercat1791
899ee46615
Init TableOfContents Svelte component
10 months ago