quartz-research-note/quartz/components
Ben Schlegel 91f9ae2d71
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
..
pages feat: 404 page emitter 2023-09-06 21:02:21 -07:00
scripts feat: implement file explorer component (closes #201) (#452) 2023-09-15 09:39:16 -07:00
styles feat: implement file explorer component (closes #201) (#452) 2023-09-15 09:39:16 -07:00
ArticleTitle.tsx various polish 2023-07-02 13:08:29 -07:00
Backlinks.tsx base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00
Body.tsx run prettier 2023-07-22 17:27:41 -07:00
ContentMeta.tsx feat: add defaultDateType config 2023-08-24 08:56:40 -07:00
Darkmode.tsx run prettier 2023-07-22 17:27:41 -07:00
Date.tsx format 2023-08-24 10:03:14 -07:00
DesktopOnly.tsx more visual polish, adjust colours and spacing 2023-07-04 16:48:36 -07:00
Explorer.tsx feat: implement file explorer component (closes #201) (#452) 2023-09-15 09:39:16 -07:00
ExplorerNode.tsx feat: implement file explorer component (closes #201) (#452) 2023-09-15 09:39:16 -07:00
Footer.tsx run prettier 2023-07-22 17:27:41 -07:00
Graph.tsx feat: display tag in graph view (#466) 2023-09-13 20:55:59 -07:00
Head.tsx fix: 404 page styling for nested pages (closes #458) 2023-09-12 21:29:57 -07:00
Header.tsx various typography and styling fixes 2023-07-23 11:02:45 -07:00
index.ts feat: implement file explorer component (closes #201) (#452) 2023-09-15 09:39:16 -07:00
MobileOnly.tsx more visual polish, adjust colours and spacing 2023-07-04 16:48:36 -07:00
PageList.tsx feat: add defaultDateType config 2023-08-24 08:56:40 -07:00
PageTitle.tsx base path refactor to better support subpath hosting 2023-08-19 15:52:25 -07:00
RecentNotes.tsx fix: ensure recentnotes uses proper date 2023-08-24 09:38:00 -07:00
renderPage.tsx feat: note transclusion (#475) 2023-09-13 11:28:53 -07:00
Search.tsx run prettier 2023-07-22 17:27:41 -07:00
Spacer.tsx more visual polish, adjust colours and spacing 2023-07-04 16:48:36 -07:00
TableOfContents.tsx recent notes css fixes 2023-08-20 14:05:37 -07:00
TagList.tsx fix: tag support for non-latin alphabets (fixes #398) 2023-08-22 22:14:16 -07:00
types.ts fix import paths 2023-08-16 22:09:11 -07:00