0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 16:38:38 +00:00
Commit Graph

9322 Commits

Author SHA1 Message Date
Trevor Buckner 339d2844a7 Change logic to fire on button click, rather than on state change
Ideally side effects (server calls, etc.) should happen outside of useEffect anyway for reasons like this; Putting the save in the button click keeps the logic in one place instead of spread across multiple functions and renders,

(This change was already made in my local copy toward combining Edit/New/Home pages.)
2026-05-04 16:01:39 -04:00
Víctor Losada Hernández adfb9a2128 remove log on themes 2026-04-25 18:26:28 +02:00
Víctor Losada Hernández 59fc123f7d remove log 2026-04-25 18:25:41 +02:00
Víctor Losada Hernández ce2406992a fix save on load 2026-04-25 18:22:44 +02:00
Víctor Losada Hernández c12bdcd042 Merge pull request #4752 from Frederlk/feature/copy-url-with-page
Add "copy url (page N)" share option in edit and share views
2026-04-24 09:57:31 +02:00
Víctor Losada Hernández 19106f89a8 Merge branch 'master' into feature/copy-url-with-page 2026-04-24 09:54:25 +02:00
Víctor Losada Hernández 0323d4d2f6 Merge pull request #4765 from naturalcrit/add-cm-themes
update codemirror themes
2026-04-24 01:08:34 +02:00
Víctor Losada Hernández cadf9ca63b update codemirror themes 2026-04-24 01:05:29 +02:00
Trevor Buckner 21bca02eee Merge pull request #4764 from naturalcrit/Fix-Colons-break-highlighting
Fix multiline Definition List highlight breaking
2026-04-23 14:39:32 -04:00
Trevor Buckner 4fee82d3b7 Simplify regex, fix crash on empty desc.length, only highlight if there is a Term line with content 2026-04-23 14:36:55 -04:00
Trevor Buckner c341e8ffdc Merge pull request #4763 from naturalcrit/Fix-bold/italic-hotkey-selection
Make common "wrapSelected" function
2026-04-23 13:04:52 -04:00
Trevor Buckner 1cd4a69854 Make common "wrapSelected" function 2026-04-23 13:00:32 -04:00
Trevor Buckner fa487ede6e Merge pull request #4757 from naturalcrit/fix-CM-bugs
Fix codemirror bugs 2 (they just keep coming)
2026-04-22 21:34:17 -04:00
Víctor Losada Hernández 7139993e15 repair shortcuts to put the cursor at the center if there is no selection 2026-04-22 17:32:26 +02:00
Víctor Losada Hernández f863871173 move darkvision to library, and sort themes 2026-04-22 17:05:17 +02:00
Víctor Losada Hernández 49e4f0a597 css reordering 2026-04-22 12:34:50 +02:00
Trevor Buckner 2f49ef0f62 Merge pull request #4750 from naturalcrit/add-cm-themes
add back cm5-themes
2026-04-21 20:43:38 -04:00
Víctor Losada Hernández 93ce778c0d fix tests and update library 2026-04-22 01:29:37 +02:00
Víctor Losada Hernández db82bd8123 fix darkbrewery 2026-04-22 01:26:34 +02:00
Víctor Losada Hernández 0f5404fef8 lock sync 2026-04-22 01:19:28 +02:00
Víctor Losada Hernández 5c675fe04a update themes 2026-04-22 01:09:48 +02:00
Víctor Losada Hernández e0ee22a8df add important 2026-04-22 00:49:42 +02:00
Víctor Losada Hernández 649f606a0e lets try this 2026-04-22 00:46:12 +02:00
Víctor Losada Hernández a46c776398 proper selection highlight 2026-04-22 00:38:57 +02:00
Víctor Losada Hernández 7d19c4bcd7 fix cm error 2026-04-22 00:03:29 +02:00
Víctor Losada Hernández f59d8f9b05 add back things we had 2026-04-21 23:57:32 +02:00
Víctor Losada Hernández a253e5d85a restore two keybinds 2026-04-21 23:50:28 +02:00
Víctor Losada Hernández cd946bffaf remove old cm themes library 2026-04-21 23:19:02 +02:00
Víctor Losada Hernández 21cb91e0c6 update cm theme library 2026-04-21 23:10:32 +02:00
Petrinich Sergey 899737b558 use fa-hashtag icon for copy-url-with-page item 2026-04-21 23:01:24 +03:00
Petrinich Sergey 01b3d91232 add copy-url-with-page to share/edit pages
Adds a "copy url (page N)" option to the Share dropdown (edit page) and
the source dropdown (share page). Copies a URL with a #pN hash anchor.
The existing scrollToHash handler in brewRenderer already navigates to
the correct page when the URL is opened.
2026-04-21 22:54:09 +03:00
Víctor Losada Hernández 0ed772b054 add back cm5-themes 2026-04-21 20:50:04 +02:00
Trevor Buckner 1c6b47c5f2 Merge pull request #4746 from naturalcrit/fix-CM-bugs
fix newpage keybind
2026-04-20 21:57:31 -04:00
Víctor Losada Hernández 710ddbdd38 foldAll now folds pages only 2026-04-20 23:02:02 +02:00
Víctor Losada Hernández c856439191 fix newpage keybind 2026-04-20 21:54:11 +02:00
Trevor Buckner b41d4715e3 Merge pull request #4744 from naturalcrit/v3.22.0
Up to v3.22.0 and changelog
2026-04-20 09:58:27 -04:00
Trevor Buckner b5c60b3180 Up to v3.22.0 and changelog 2026-04-20 09:57:44 -04:00
Trevor Buckner c199d2d749 Merge pull request #4689 from naturalcrit/update-Codemirror
Update Codemirror
2026-04-19 22:43:21 -04:00
Trevor Buckner b3d6b82c66 Restore debugTextMismatch 2026-04-19 22:41:23 -04:00
Trevor Buckner c5163487fd Merge branch 'update-Codemirror' of https://github.com/naturalcrit/homebrewery into update-Codemirror 2026-04-19 15:18:35 -04:00
Trevor Buckner ef207c3936 Fix "onbeforeunload not a function"
should be window.onbeforeunload = xyz. However in this case, it's not needed anyway since we are only adding the event listener once on page load, which already gets cleared when you reload the page.
2026-04-19 15:18:31 -04:00
Víctor Losada Hernández 00fb71f2e9 lock sync 2026-04-19 21:14:46 +02:00
Víctor Losada Hernández e9d411222a Merge branch 'update-Codemirror' of https://github.com/naturalcrit/homebrewery into update-Codemirror 2026-04-19 21:11:00 +02:00
Víctor Losada Hernández 1fd318d545 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into update-Codemirror 2026-04-19 21:10:44 +02:00
Trevor Buckner a1624dc649 Merge branch 'master' into update-Codemirror 2026-04-19 11:56:51 -04:00
G.Ambatte 9f39d1e33c Merge pull request #4734 from G-Ambatte/fixLinkNavigationPartDeux
Add Navigation API check
2026-04-16 06:41:36 +12:00
Víctor Losada Hernández 98749ed3e0 lint pass 2026-04-15 10:28:28 +02:00
Víctor Losada Hernández 44d2f6c548 remove unused theme 2026-04-15 10:24:08 +02:00
Víctor Losada Hernández 0621efe674 last fixes i think 2026-04-14 18:31:44 +02:00
Víctor Losada Hernández 326fc63f19 small changes 2026-04-14 00:12:18 +02:00