Ben Schlegel
d4c122646c
fix(explorer): default sortFn implementation ( #511 )
...
* fix: use `numeric` + `base` for localeCompare
* docs(explorer): update default sortFn
2023-09-28 08:39:44 -07:00
Ben Schlegel
fa69c2a565
fix(explorer): increase consistency, explicitly use font-family ( #496 )
...
* fix(explorer): display name for folders without `index` file
* docs(explorer): add section for folder display names
* docs(explorer): fix broken wikilink
* fix(consistency): explicitly set font + label/link fix
Use consistent styling between folders with `folderClickBehavior: "link"` and `"collapse`
* Update quartz/components/styles/explorer.scss
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Update quartz/components/styles/explorer.scss
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2023-09-21 19:35:11 +02:00
Ben Schlegel
8eb1554b13
fix(explorer): display names for folders without frontmatter ( #494 )
...
* fix(explorer): display name for folders without `index` file
* docs(explorer): add section for folder display names
2023-09-21 18:54:33 +02:00
Jacky Zhao
48452231d5
perf: memoize filetree computation ( #490 )
...
* perf: memoize filetree computation
* format
* var -> let
2023-09-20 16:09:18 -07:00
Jacky Zhao
16d33fb771
feat: display name for folders, expand explorer a little bit ( #489 )
...
* feat: display name for folders, expand explorer a little bit
* update docs
2023-09-20 16:08:54 -07:00
Ben Schlegel
b029eeadab
feat(explorer): improve accessibility and consistency (+ bug fix) ( #488 )
...
* feat(consistency): use `all: unset` on button
* style: improve accessibility and consistency for explorer
* fix: localStorage bug with folder name changes
* chore: bump quartz version
2023-09-20 13:55:29 -07:00
Jacky Zhao
6a9e6352e8
Revert "feat: Making Quartz available offline by making it a PWA ( #465 )"
...
This reverts commit d6301fae90
.
2023-09-20 13:52:45 -07:00
Jacky Zhao
70e029d151
Revert "docs: wording changes for offline support"
...
This reverts commit 52a172d1a4
.
2023-09-20 13:52:29 -07:00
Jacky Zhao
52a172d1a4
docs: wording changes for offline support
2023-09-20 11:40:36 -07:00
Adam Brangenberg
d6301fae90
feat: Making Quartz available offline by making it a PWA ( #465 )
...
* Adding PWA and chaching for offline aviability
* renamed workbox config to fit Quartz' scheme
* Documenting new configuration
* Added missig umami documentation
* Fixed formatting so the build passes, thank you prettier :)
* specified caching strategies to improve performance
* formatting...
* fixing "404 manifest.json not found" on subdirectories by adding a / to manifestpath
* turning it into a plugin
* Removed Workbox-cli and updated @types/node
* Added Serviceworkercode to offline.ts
* formatting
* Removing workbox from docs
* applied suggestions
* Removed path.join for sw path
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Removed path.join for manifest path
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Removing path module import
* Added absolute path to manifests start_url and manifest "import" using baseUrl
* Adding protocol to baseurl
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Adding protocol to start_url too then
* formatting...
* Adding fallback page
* Documenting offline plugin
* formatting...
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* merge suggestion
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* formatting...
* Fixing manifest path, all these nits hiding the actual issues .-.
* Offline fallback page through plugins, most things taken from 404 Plugin
* adding Offline Plugin to config
* formatting...
* Turned offline off as default and removed offline.md
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2023-09-20 11:38:13 -07:00
Jacky Zhao
1bf7e3d8b3
fix(nit): make defaultOptions on explorer not a function
2023-09-19 10:22:39 -07:00
David Fischer
cc31a40b0c
feat: support changes in system theme ( #484 )
...
* feat: support changes in system theme
* fix: run prettier
* fix: add content/.gitkeep
2023-09-19 09:25:51 -07:00
Ben Schlegel
6a2e0b3ad3
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
e67f409ec1
Merge pull request #479 from benschlegel/explorer-config
...
feat(explorer): add config for custom sort/map/filter functions
2023-09-17 21:36:04 +02:00
Ben Schlegel
4afb099bf3
docs: fix examples
2023-09-17 21:32:23 +02:00
Ben Schlegel
7ac772fca8
fix: darkmode scroll bars ( #480 )
2023-09-17 10:29:20 -07:00
Ben Schlegel
94a04ab1c9
fix(explorer): filter function in ExplorerNode
2023-09-17 15:51:08 +02:00
Ben Schlegel
9358f73f1c
fix: display name for file nodes
2023-09-17 12:41:06 +02:00
Ben Schlegel
f7029012df
feat: black magic
...
add config for `order` array, which determines the order in which all passed config functions for explorer will get executed in.
functions will now dynamically be called on `fileTree` via array accessor (e.g. fileTree["sort"].call(...)) with corresponding function from options being passed to call)
2023-09-16 21:58:38 +02:00
Ben Schlegel
fea352849c
fix: create deep copy of file passed into tree
2023-09-16 19:45:21 +02:00
Ben Schlegel
3d8c470c0d
feat(explorer): implement map
fn argument
...
Add a function for mapping over all FileNodes as an option for `Explorer`
2023-09-16 19:35:27 +02:00
Ben Schlegel
31d16fbd2c
feat(explorer): integrate filter option
2023-09-16 19:18:59 +02:00
Ben Schlegel
036a33f70b
fix: use correct import for QuartzPluginData
2023-09-16 17:47:44 +02:00
Ben Schlegel
58aea1cb07
feat: implement filter function for explorer
2023-09-16 17:28:58 +02:00
Ben Schlegel
c7d3474ba8
feat(explorer): add config to support custom sort fn
2023-09-16 12:40:19 +02:00
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
Oskar Manhart
14cbbdb8a2
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
cce389c81d
feat: note transclusion ( #475 )
...
* basic transclude
* feat: note transclusion
2023-09-13 11:28:53 -07:00
Jacky Zhao
60a3c54339
fix: 404 page styling for nested pages ( closes #458 )
2023-09-12 21:29:57 -07:00
Jacky Zhao
2525bfbab5
fix: links to index not showing in graph ( closes #450 )
2023-09-06 22:24:15 -07:00
Jacky Zhao
8d6029b7b8
feat: 404 page emitter
2023-09-06 21:02:21 -07:00
Ben Schlegel
7e42be8e46
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
8c354f6261
fix: clipboard button visible in search ( #445 )
2023-09-03 09:06:05 -07:00
Jacky Zhao
505673acd7
feat: pluralize things in lists
2023-09-02 18:07:26 -07:00
Ben Schlegel
23f43045c4
fix(search): matches getting highlighted in title ( #440 )
2023-09-01 14:12:32 -07:00
Ben Schlegel
90dac31216
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
c35cd422c6
fix: correct graph labels for index.md
nodes ( #431 )
2023-08-28 10:00:49 -07:00
Ben Schlegel
c91e62c376
Fix search bar after navigate ( #424 )
2023-08-26 17:19:45 -07:00
Jacky Zhao
c8412a5b0a
format
2023-08-24 10:03:14 -07:00
Jacky Zhao
fc4b8f3d3f
fix: ensure recentnotes uses proper date
2023-08-24 09:38:00 -07:00
Jacky Zhao
6cd0612d40
fix: add better warning when defaultDateType is not set due to upgrade
2023-08-24 09:17:43 -07:00
Jacky Zhao
c36a9f3fb7
feat: add defaultDateType config
2023-08-24 08:56:40 -07:00
Jacky Zhao
2e0e518f5d
format
2023-08-23 15:16:04 -07:00
Zane Helton
632c27b7ec
docs: update hosting.md
with Vercel hosting instructions ( #406 )
...
* Update hosting.md with Vercel hosting instructions
* Update docs/hosting.md
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Update docs/hosting.md
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
* Run npm run format
---------
Co-authored-by: Jacky Zhao <j.zhao2k19@gmail.com>
2023-08-23 15:14:23 -07:00
Jacky Zhao
bfb416b35a
fix: text wrap in popover
2023-08-23 13:10:23 -07:00
Jacky Zhao
36548d5986
fix: toc for cyrillic and other non-latin alphabets ( closes #396 )
2023-08-22 22:41:50 -07:00
Jacky Zhao
8b63ff882a
fix: tag support for non-latin alphabets ( fixes #398 )
2023-08-22 22:14:16 -07:00
Jacky Zhao
b991cf2ee8
fix: spa hijacks back button ( closes #400 )
2023-08-22 21:30:31 -07:00
Jacky Zhao
8c943f47d6
format, update default sidepanel width
2023-08-21 09:00:13 -07:00
松浦 知也 Matsuura Tomoya
2774e976d2
fix: opts being overriden in graph option ( #384 )
2023-08-21 08:45:47 -07:00
Jacky Zhao
777ff51c7a
format
2023-08-20 20:48:35 -07:00
Jacky Zhao
4e42d52e16
fix: ctrl + k breaking after page nav
2023-08-20 20:47:07 -07:00
Jacky Zhao
952d6cb3dd
fix: nav event with spa off, anchor nav refresh page
2023-08-20 18:08:44 -07:00
Jacky Zhao
173ec240d2
fix: jump to anchor on deployed site triggering spa refresh
2023-08-20 17:50:56 -07:00
Jacky Zhao
7b7064ad2b
fix: ensure code exists inside pre before adding clipboard
2023-08-20 15:38:37 -07:00
Jacky Zhao
ca17af4ae2
fix: dont show index page for folder in its own listing
2023-08-20 15:02:24 -07:00
Jacky Zhao
e65ea48fae
fix: add async-mutex to builds on large vaults
2023-08-20 14:27:44 -07:00
Jacky Zhao
b99d4cd8ce
recent notes css fixes
2023-08-20 14:05:37 -07:00
Jacky Zhao
236130ac22
css fixes, add recent notes, more robust quartz update
2023-08-20 12:46:37 -07:00
Jacky Zhao
9d77edaf94
fix description not being used in folder and tag listings
2023-08-20 01:08:18 -07:00
Jacky Zhao
78f4cdbe10
avoid 404 on icon for spa navigations with anchors
2023-08-19 16:40:02 -07:00
Jacky Zhao
dd47be1bc6
improve path resolution stability
2023-08-19 16:28:44 -07:00
Jacky Zhao
c874e7e937
base path refactor to better support subpath hosting
2023-08-19 15:52:25 -07:00
Jacky Zhao
07a327e05a
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
58d9dc0528
format
2023-08-17 00:55:52 -07:00
Jacky Zhao
0c199975f2
various path fixes for links to extensions, fix relative paths in links
2023-08-17 00:55:28 -07:00
Jacky Zhao
2dc0ae279c
fix import paths
2023-08-16 22:09:11 -07:00
Jacky Zhao
2f6747b166
fix relative path resolution in router and link crawling
2023-08-16 22:04:15 -07:00
Jacky Zhao
c89f8b1a9a
fix nested callout folding
2023-08-12 21:16:43 -07:00
Jacky Zhao
7bffc2183e
include home page in search
2023-08-12 00:24:30 -07:00
Jacky Zhao
827dd91847
format, make search async
2023-08-12 00:03:11 -07:00
Jacky Zhao
ed62ece491
fix broken tag listing links to tags
2023-08-11 23:27:59 -07:00
Jacky Zhao
736c3981c4
fix emit filepaths, tag emit being overriden by content
2023-08-11 23:25:44 -07:00
Jacky Zhao
e4950e06a1
fix getFileExtension missing numeric extensions (e.g. mp4)
2023-08-08 21:31:36 -07:00
Jacky Zhao
e21f0f9bb9
change reading time to content meta
2023-08-08 21:28:09 -07:00
Jacky Zhao
ee9ed4f287
fix head.tsx
2023-08-08 20:36:24 -07:00
Jacky Zhao
d02af6a8ae
architecture, fix vendor prefixing
2023-08-07 17:34:38 -07:00
Jacky Zhao
cd9dc6ecb5
fix css transforms for mobile
2023-08-06 22:07:08 -07:00
Jacky Zhao
1c1a569023
fix formatting
2023-07-25 21:11:06 -07:00
Jacky Zhao
cee2883c08
nested tag support and tag index page
2023-07-25 21:10:37 -07:00
Jacky Zhao
351b4ab13b
styling fixes for stacking order and overflow
2023-07-23 21:41:09 -07:00
Jacky Zhao
7c2bb4ee4c
bundleinfo flag, minify scripts
2023-07-23 17:58:35 -07:00
Jacky Zhao
5599eb590e
feat: process tags in content
2023-07-23 14:02:57 -07:00
Jacky Zhao
fd7c33c537
style fixes for search bar and title on mobile
2023-07-23 11:19:15 -07:00
Jacky Zhao
27a5f7ef8e
various typography and styling fixes
2023-07-23 11:02:45 -07:00
Jacky Zhao
7db2eda76c
run prettier
2023-07-22 17:27:41 -07:00
Jacky Zhao
3ac6b42e16
finish path refactoring, add sourcemap + better trace support
2023-07-15 23:02:12 -07:00
Jacky Zhao
906f91f8ee
base path refactor, more docs
2023-07-13 00:19:35 -07:00
Jacky Zhao
08f8e3b4a4
docs + various polish
2023-07-09 19:32:24 -07:00
Jacky Zhao
92ca787092
fix default callout state
2023-07-04 18:26:11 -07:00
Jacky Zhao
974b0da308
folder and tag descriptions, re-enable relative pathing
2023-07-04 18:02:59 -07:00
Jacky Zhao
2a17431460
fix popover zindex
2023-07-04 17:14:15 -07:00
Jacky Zhao
38cff2d670
more visual polish, adjust colours and spacing
2023-07-04 16:48:36 -07:00
Jacky Zhao
ab9da02c60
fix indexing causing main thread freeze, various polish
2023-07-04 10:08:32 -07:00
Jacky Zhao
e0ebee5aa9
various polish
2023-07-02 13:08:29 -07:00
Jacky Zhao
4c904d88ab
rss + sitemap
2023-07-01 13:35:27 -07:00
Jacky Zhao
ba9f243728
tag and folder pages
2023-07-01 00:03:01 -07:00
Jacky Zhao
24348b24a9
fix: parsing wikilinks that have codeblock anchors, scroll to anchor
2023-06-19 22:50:25 -07:00
Jacky Zhao
fd5c8d17d3
basic search implementation
2023-06-19 20:37:45 -07:00
Jacky Zhao
c4cf0dcb02
local and global graph
2023-06-18 10:47:07 -07:00
Jacky Zhao
8bfee04c8c
popovers
2023-06-17 16:05:46 -07:00
Jacky Zhao
cb89cce183
basic left,right layout
2023-06-17 14:36:06 -07:00
Jacky Zhao
b587782450
collapsible callout
2023-06-17 13:08:06 -07:00
Jacky Zhao
6d5491fdcb
collapsible toc
2023-06-17 12:07:40 -07:00
Jacky Zhao
917d5791ac
modern toc tweaks
2023-06-16 19:41:59 -07:00
Jacky Zhao
9d2024b11c
taglist, mermaid
2023-06-12 22:41:42 -07:00
Jacky Zhao
2bfe90b7e6
add config to components
2023-06-11 23:46:38 -07:00
Jacky Zhao
352075ae81
refactor plugins to be functions instead of classes
2023-06-11 23:26:43 -07:00
Jacky Zhao
b8c011410d
toc
2023-06-09 23:06:02 -07:00
Jacky Zhao
3a29f4c86e
add custom spa solution
2023-06-09 19:58:58 -07:00
Jacky Zhao
59109a8c1d
add flamethrower router
2023-06-07 22:38:45 -07:00
Jacky Zhao
317cce9314
generic quartz component for layout
2023-06-07 22:27:32 -07:00
Jacky Zhao
1cb4dadf13
codeblock copy
2023-06-06 21:19:00 -07:00
Jacky Zhao
0813f127a3
fix darkmode script load
2023-06-06 20:58:26 -07:00
Jacky Zhao
4d3579ca98
darkmode scripts
2023-06-06 19:48:37 -07:00
Jacky Zhao
4bdc17d4a1
inline scripts
2023-06-03 15:07:19 -04:00
Jacky Zhao
fcd81353f8
heading linking
2023-06-01 19:48:38 -04:00
Jacky Zhao
04eeb2d10c
syntax higlighting
2023-06-01 19:05:14 -04:00
Jacky Zhao
42d3a7de17
scss support
2023-06-01 17:35:31 -04:00
Jacky Zhao
21c007e2fc
rendering, link resolution, asset copying
2023-05-31 17:01:23 -04:00
Jacky Zhao
ad6ce0d73f
plugin integration round 2
2023-05-30 08:02:20 -07:00