buttercat1791
d299017b9e
Jump to element via ToC
10 months ago
buttercat1791
166eb237c1
Update SvelteKit
10 months ago
buttercat1791
7b441dc0a5
Adjust some spacing
10 months ago
buttercat1791
15daf824c2
Correctly render hierarchy in ToC component
11 months ago
buttercat1791
31b5c2c324
Scroll sidebar on overflow
11 months ago
buttercat1791
3aebf1c00b
Remove unneeded TODO
11 months ago
buttercat1791
44a9d282a5
Use a reactive map to make ToC entry expansion react on click
11 months ago
buttercat1791
261b324d1b
Fix code mangled by git
11 months ago
buttercat1791
782be2a9c9
Change style of publication tree debug messages
11 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.
11 months ago
buttercat1791
2d6d38b3b3
Fix data flow between publication tree and ToC
11 months ago
buttercat1791
7219e68ca3
Make accordion non-flush
11 months ago
buttercat1791
052392d7f0
Add action bindings on ToC component elements
11 months ago
buttercat1791
b07914f963
Allow two ToC component variants
...
- A sidebar variant is meant for integration within a sidebar. This is used in the current Publication component.
- An accordion variant is intended for standalone use.
11 months ago
buttercat1791
29c06551cf
Remove ToC from page context
11 months ago
buttercat1791
db4991b229
Update Flowbite Svelte version
...
NB: Upgrading to v1.0.0 or above breaks our current stlying. DO NOT UPGRADE WITHOUT FIXING STYLES.
11 months ago
buttercat1791
cd204119f0
Tidy up code formatting in ArticleNav component
11 months ago
buttercat1791
d48ddd465a
Remove unneeded references to Pharos parser
11 months ago
buttercat1791
e384804522
Add stronger typing to publication layout store
11 months ago
buttercat1791
608ce2b8e4
First pass at ToC layout
11 months ago
buttercat1791
9a6a494f17
Fix `NDKEvent` type imports
11 months ago
buttercat1791
fa6265b346
Refactor and support tree node resolution via ToC entry closure
11 months ago
buttercat1791
f635d08982
Add doc comment for ToC
11 months ago
buttercat1791
ddf8b9006b
Update ToC on publication tree node resolution
11 months ago
buttercat1791
534fc23c8c
Update doc comment on `PublicationTree`
11 months ago
buttercat1791
7672a10337
Allow node resolution subscription on `SveltePublicationTree`
11 months ago
buttercat1791
d3a62c13f6
Add a `getParent` abstraction to `SveltePublicationTree`
11 months ago
buttercat1791
80c7514489
Allow bookmark observers
11 months ago
buttercat1791
e32354caba
Add option to walk entire publication tree, not just leaves
11 months ago
buttercat1791
1e450dd4b7
Improve abstraction and controllability of tree-walking methods
11 months ago
buttercat1791
f438e68726
Remove unused import
11 months ago
buttercat1791
c30484b9bc
Use `SveltePublicationTree` in ToC class
11 months ago
buttercat1791
1c47ea226e
Proxy `getChildAddresses`
11 months ago
buttercat1791
34942c5046
Make adding a node observable
11 months ago
buttercat1791
c6effb3839
Create Svelte-specific wrapper that proxies `PublicationTree`
...
The wrapper keeps the core implementation framework-agnostic, but lets us build Svelte's reactivity into the wrapper.
11 months ago
buttercat1791
d3ec3ad3e2
Add observability to node resolution
11 months ago
buttercat1791
2c3b9adf58
Set workspace tab size to 2 spaces
11 months ago
buttercat1791
640a126330
Compute depth of ToC entries when adding them
11 months ago
buttercat1791
4afbd04d5e
Add a TODO
11 months ago
buttercat1791
f9048c468c
Add doc comment on ToC constructor
11 months ago
buttercat1791
cb1ece7eae
Make ToC class iterable, and iterate to render ToC in component
11 months ago
buttercat1791
af4fae766f
Prevent duplicate nodes from being added to a `PublicationTree`
...
Suggestion from https://gitworkshop.dev/silberengel@gitcitadel.com/Alexandria/prs/note1jygtyvjnrd2yz674mqq5emd0pl69ezv2u6nhvr7f0zhcdnshlnqskf94df
11 months ago
buttercat1791
53ed81f032
Recursively build ToC from HTML markup
11 months ago
buttercat1791
feab392a44
Refactor `TableOfContents` class for least privilege
11 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>`.
11 months ago
buttercat1791
42cb538be5
Move publication components into their own sub-directory
11 months ago
buttercat1791
cfc89275be
Merge remote-tracking branch 'onedev/master' into issue#137#118-table-of-contents
11 months ago
silberengel
df53f69eec
Merges pull request #40
...
Svelte Project Rules for Cursor IDE
11 months ago
buttercat1791
072d41dd49
Remove redundant general rule
11 months ago
buttercat1791
e1b3ec95e1
Update Svelte component rules
11 months ago