Commit Graph

51 Commits

Author SHA1 Message Date
Ben Schlegel
f030418822 fix: bad visibility for last explorer item (#478)
* fix: bad visibility for last explorer item

* feat(explorer): add pseudo element for observer
2023-09-17 22:04:44 +02:00
Ben Schlegel
515ac8d9a1 feat: implement file explorer component (closes #201) (#452)
* feat: add basic explorer structure„

* feat: integrate new component/plugin

* feat: add basic explorer structure

* feat: add sort to FileNodes

* style: improve style for explorer

* refactor: remove unused explorer plugin

* refactor: clean explorer structure, fix base (toc)

* refactor: clean css, respect displayClass

* style: add styling to chevron

* refactor: clean up debug statements

* refactor: remove unused import

* fix: clicking folder icon sometimes turns invisible

* refactor: clean css

* feat(explorer): add config for title

* feat: add config for folder click behavior

* fix: `no-pointer` not being set for all elements

new approach, have one `no-pointer` class, that removes pointer events and one `clickable` class on the svg and button (everything that can normally be clicked). then, find all children with `clickable` and toggle `no-pointer`

* fix: bug where nested folders got incorrect height

this fixes the bug where nested folders weren't calculating their total height correctly. done by adding class to main container of all children and calculating total

* feat: introduce `folderDefaultState` config

* feat: store depth for explorer nodes

* feat: implement option for collapsed state + bug fixes

folderBehavior: "link" still has bad styling, but major bugs with pointers fixed (not clean yet, but working)

* fix: default folder icon rotation

* fix: hitbox problem with folder links, fix style

* fix: redirect url for nested folders

* fix: inconsistent behavior with 'collapseFolders' opt

* chore: add comments to `ExplorerNode`

* feat: save explorer state to local storage (not clean)

* feat: rework `getFolders()`, fix localstorage read + write

* feat: set folder state from localStorage

needs serious refactoring but functional (except folder icon orientation)

* fix: folder icon orientation after local storage

* feat: add config for `useSavedState`

* refactor: clean `explorer.inline.ts`

remove unused functions, comments, unused code, add types to EventHandler

* refactor: clean explorer

merge `isSvg` paths, remove console logs

* refactor: add documentation, remove unused funcs

* feat: rework folder collapse logic

use grids instead of jank scuffed solution with calculating total heights

* refactor: remove depth arg from insert

* feat: restore collapse functionality to clicks

allow folder icon + folder label to collapse folders again

* refactor: remove `pointer-event` jank

* feat: improve svg viewbox + remove unused props

* feat: use css selector to toggle icon

rework folder icon to work purely with css instead of JS manipulation

* refactor: remove unused cfg

* feat: move TOC to right sidebar

* refactor: clean css

* style: fix overflow + overflow margin

* fix: use `resolveRelative` to resolve file paths

* fix: `defaultFolderState` config option

* refactor: rename import, rename `folderLi` + ul

* fix: use `QuartzPluginData` type

* docs: add explorer documentation
2023-09-15 09:39:16 -07:00
Oskar Manhart
4b177ed03e feat: display tag in graph view (#466)
* feat: tags in graph view

* fix: revert changing graph forces

* fix: run prettier
2023-09-13 20:55:59 -07:00
Jacky Zhao
425592d09a fix: links to index not showing in graph (closes #450) 2023-09-06 22:24:15 -07:00
Ben Schlegel
50da33ea4d feat(search): add arrow key navigation (#442)
* feat(search): add arrow navigation

* chore: format

* refactor: simplify arrow navigation

* chore: remove comment

* feat: rework arrow navigation to work without state

* feat: make pressing enter work with arrow navigation

* fix: remove unused css class

* chore: correct comment

* refactor(search): use optional chaining
2023-09-03 09:32:46 -07:00
Ben Schlegel
53dd86727b fix(search): matches getting highlighted in title (#440) 2023-09-01 14:12:32 -07:00
Ben Schlegel
fa0629716f feat: Implement search for tags (#436)
* Quartz sync: Aug 29, 2023, 10:17 PM

* style: add basic style to tags in search

* feat: add SearchType + tags to search preview

* feat: support multiple matches

* style(search): add style to matching tags

* feat(search): add content to preview for tag search

* fix: only display tags on tag search

* feat: support basic + tag search

* refactor: extract common `fillDocument`, format

* feat: add hotkey to search for tags

* chore: remove logs

* fix: dont render empty `<ul>` if tags not present

* fix(search-tag): make case insensitive

* refactor: clean `hideSearch` and `showSearch`

* feat: trim content similar to `description.ts`

* fix(search-tag): hotkey for windows

* perf: re-use main index for tag search
2023-09-01 10:09:58 -07:00
Ben Schlegel
e815256517 fix: correct graph labels for index.md nodes (#431) 2023-08-28 10:00:49 -07:00
Ben Schlegel
3233d5b08a Fix search bar after navigate (#424) 2023-08-26 17:19:45 -07:00
Jacky Zhao
709ad94180 fix: toc for cyrillic and other non-latin alphabets (closes #396) 2023-08-22 22:41:50 -07:00
Jacky Zhao
a8272d4a9c fix: spa hijacks back button (closes #400) 2023-08-22 21:30:31 -07:00
Jacky Zhao
57e9297173 format 2023-08-20 20:48:35 -07:00
Jacky Zhao
61d67c9057 fix: ctrl + k breaking after page nav 2023-08-20 20:47:07 -07:00
Jacky Zhao
487e0c8473 fix: nav event with spa off, anchor nav refresh page 2023-08-20 18:08:44 -07:00
Jacky Zhao
95b9358c0d fix: jump to anchor on deployed site triggering spa refresh 2023-08-20 17:50:56 -07:00
Jacky Zhao
3b9ed2ab7b fix: ensure code exists inside pre before adding clipboard 2023-08-20 15:38:37 -07:00
Jacky Zhao
9e2fbabc20 avoid 404 on icon for spa navigations with anchors 2023-08-19 16:40:02 -07:00
Jacky Zhao
f7c2fc36f3 improve path resolution stability 2023-08-19 16:28:44 -07:00
Jacky Zhao
303a867d60 base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00
Jacky Zhao
a3cba52362 fix back button in spa not working between two pages that both have hash fragments 2023-08-17 01:34:50 -07:00
Jacky Zhao
c65451519e format 2023-08-17 00:55:52 -07:00
Jacky Zhao
cdaec963ed various path fixes for links to extensions, fix relative paths in links 2023-08-17 00:55:28 -07:00
Jacky Zhao
b5ab38cb7e fix relative path resolution in router and link crawling 2023-08-16 22:04:15 -07:00
Jacky Zhao
d256e359b8 fix nested callout folding 2023-08-12 21:16:43 -07:00
Jacky Zhao
7b9e986f2e include home page in search 2023-08-12 00:24:30 -07:00
Jacky Zhao
b62827a782 format, make search async 2023-08-12 00:03:11 -07:00
Jacky Zhao
0b769e854b bundleinfo flag, minify scripts 2023-07-23 17:58:35 -07:00
Jacky Zhao
617ea80db1 run prettier 2023-07-22 17:27:41 -07:00
Jacky Zhao
2c0f21a97d finish path refactoring, add sourcemap + better trace support 2023-07-15 23:02:12 -07:00
Jacky Zhao
ffb2c9ba57 base path refactor, more docs 2023-07-13 00:19:35 -07:00
Jacky Zhao
33c8c9c5f6 docs + various polish 2023-07-09 19:32:24 -07:00
Jacky Zhao
70dcf6acc2 fix default callout state 2023-07-04 18:26:11 -07:00
Jacky Zhao
7e3781c6d0 fix popover zindex 2023-07-04 17:14:15 -07:00
Jacky Zhao
a90142ba2d more visual polish, adjust colours and spacing 2023-07-04 16:48:36 -07:00
Jacky Zhao
1547c8af0d fix indexing causing main thread freeze, various polish 2023-07-04 10:08:32 -07:00
Jacky Zhao
20b2d88a06 various polish 2023-07-02 13:08:29 -07:00
Jacky Zhao
3e0e06025c tag and folder pages 2023-07-01 00:03:01 -07:00
Jacky Zhao
fc03f3dcec fix: parsing wikilinks that have codeblock anchors, scroll to anchor 2023-06-19 22:50:25 -07:00
Jacky Zhao
1c7b5c88d8 basic search implementation 2023-06-19 20:37:45 -07:00
Jacky Zhao
2a9ed21823 local and global graph 2023-06-18 10:47:07 -07:00
Jacky Zhao
d5b51a8e29 popovers 2023-06-17 16:05:46 -07:00
Jacky Zhao
f078f20c08 basic left,right layout 2023-06-17 14:36:06 -07:00
Jacky Zhao
23624105fb collapsible callout 2023-06-17 13:08:06 -07:00
Jacky Zhao
5162c3c977 collapsible toc 2023-06-17 12:07:40 -07:00
Jacky Zhao
09b5f4b10a modern toc tweaks 2023-06-16 19:41:59 -07:00
Jacky Zhao
b3cbcaf0f5 add custom spa solution 2023-06-09 19:58:58 -07:00
Jacky Zhao
8e36d2a677 add flamethrower router 2023-06-07 22:38:45 -07:00
Jacky Zhao
e16cc9be37 codeblock copy 2023-06-06 21:19:00 -07:00
Jacky Zhao
4c94432a8f fix darkmode script load 2023-06-06 20:58:26 -07:00
Jacky Zhao
229f615790 darkmode scripts 2023-06-06 19:48:37 -07:00