Repository navigation
feat(ui): three-column notes UI, markdown preview and image proxy - #14
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5, closes #9, closes #10.
Three-column UI: category sidebar (create, counts, uncategorized), note list with search, month grouping and a resizable width, and an editor with a markdown toolbar, undo/redo, emoji picker, category selector, star, view modes and a 760px reading column. Settings cover view type, notes folder, suffix, editor font and size. The preview renders markdown through markdown-it and DOMPurify, and links open in a new tab.
Embedded images (#10) go through a backend proxy with HMAC-signed URLs, an SSRF guard and a disk cache. The preview signs external image URLs at render time, so note content is never rewritten.
The sporadic 502s (#9) came from
ReadHeaderTimeout: 10 * 1024, that is 10 microseconds. Now 10s, with read and write at 30s and idle at 120s.Verification:
go build,go vetandgo test -race ./...passvue-tsc --noEmitpassesFollow-ups: #6, #7, #8, #11, #12, #13.