Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental] Live AsciiDoc editor #96

Draft
wants to merge 37 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2910331
Rough? Gross? Cool?
benjaminleonard Apr 16, 2024
eecdbe0
Pre-demo commit
benjaminleonard Apr 30, 2024
7288132
Merge branch 'tome' into live-asciidoc-notes
benjaminleonard Dec 17, 2024
8fd2114
Switch to monaco
benjaminleonard Dec 17, 2024
cea30e3
Continued cleanup
benjaminleonard Dec 17, 2024
5e49280
Tweaks
benjaminleonard Dec 17, 2024
bf47ae8
Update API to use env vars and general type fixes
benjaminleonard Dec 17, 2024
f8e52a3
More type fixes
benjaminleonard Dec 17, 2024
f895851
Licenses
benjaminleonard Dec 17, 2024
d7788ee
Ignore notes subfolder
benjaminleonard Dec 17, 2024
2a4357e
Test user for preview
benjaminleonard Dec 18, 2024
b5f63d3
Missed an auth check
benjaminleonard Dec 18, 2024
a1585d2
Merge branch 'main' into live-asciidoc-notes
benjaminleonard Jan 15, 2025
0826a92
Updates
benjaminleonard Jan 24, 2025
6fedc26
Merge branch 'main' into live-asciidoc-notes
benjaminleonard Jan 24, 2025
c4c2791
Update app/routes/notes._index.tsx
benjaminleonard Jan 24, 2025
724ba5a
Lint
benjaminleonard Jan 24, 2025
a899da0
Try `noExternal` code mirror basic setup
benjaminleonard Jan 24, 2025
6942ac8
Add `@uiw/codemirror-themes` to `noExternal`
benjaminleonard Jan 24, 2025
adca510
API within Remix instead
benjaminleonard Jan 27, 2025
4994518
Switch to liveblocks
benjaminleonard Jan 31, 2025
541d86b
Remove unused deps
benjaminleonard Jan 31, 2025
01a9b70
Auth tweak
benjaminleonard Jan 31, 2025
4d7f5d6
Last updated / tweaks / use storage / live title update
benjaminleonard Feb 3, 2025
2d0071d
Move server stuff into `notes.server`
benjaminleonard Feb 3, 2025
81ff67f
Tweak errors and URL
benjaminleonard Feb 3, 2025
c667f14
Title input improvements
benjaminleonard Feb 3, 2025
5dcc881
Merge branch 'main' into live-asciidoc-notes
benjaminleonard Feb 3, 2025
7c00686
Licenses
benjaminleonard Feb 3, 2025
585956b
`allowImportingTsExtensions`
benjaminleonard Feb 3, 2025
ccb061f
Use react query for sidebar
benjaminleonard Feb 3, 2025
9837b90
Readd lodash types
benjaminleonard Feb 3, 2025
1be5a8a
Remove upload artifact
benjaminleonard Feb 3, 2025
f185d3c
Rough migration to tiptap instead of codemirror
benjaminleonard Feb 19, 2025
6c190d8
Update package-lock.json
benjaminleonard Feb 19, 2025
c03ef2d
Add window mode (add focus)
benjaminleonard Feb 20, 2025
bf18572
Upgrade DS
benjaminleonard Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into live-asciidoc-notes
  • Loading branch information
benjaminleonard committed Jan 15, 2025

Verified

This commit was signed with the committer’s verified signature.
Desvelao Antonio
commit a1585d2c80a62d573eb665390cb558ade8307f28
18 changes: 8 additions & 10 deletions app/components/AsciidocBlocks/Document.tsx
Original file line number Diff line number Diff line change
@@ -9,15 +9,13 @@ import { Content, type DocumentBlock } from '@oxide/react-asciidoc'

// add styles for main
// max-w-full flex-shrink overflow-hidden 800:overflow-visible 800:pr-10 1200:w-[calc(100%-var(--toc-width))] 1200:pr-16 print:p-0
const CustomDocument = ({ document }: { document: DocumentBlock }) => {
let ref = useRef<HTMLDivElement>(null)
useDelegatedReactRouterLinks(ref, document.title)

return (
<div id="content" className="asciidoc-body" ref={ref}>
<Content blocks={document.blocks} />
</div>
)
}
const CustomDocument = ({ document }: { document: DocumentBlock }) => (
<div
id="content"
className="asciidoc-body max-w-full flex-shrink overflow-hidden 800:overflow-visible 800:pr-10 1200:w-[calc(100%-var(--toc-width))] 1200:pr-16 print:p-0"
>
<Content blocks={document.blocks} />
</div>
)

export { CustomDocument }
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -19,8 +19,8 @@
"@meilisearch/instant-meilisearch": "^0.8.2",
"@monaco-editor/loader": "^1.4.0",
"@monaco-editor/react": "^4.6.0",
"@oxide/design-system": "^1.8.2",
"@oxide/react-asciidoc": "^1.0.2",
"@oxide/design-system": "^2.1.0",
"@oxide/react-asciidoc": "^1.0.3",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.0.4",
"@remix-run/node": "2.13.1",
You are viewing a condensed version of this merge commit. You can view the full changes here.