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

3017 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 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 19106f89a8 Merge branch 'master' into feature/copy-url-with-page 2026-04-24 09:54:25 +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
Víctor Losada Hernández cd946bffaf remove old cm themes library 2026-04-21 23:19:02 +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 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
Trevor Buckner a1624dc649 Merge branch 'master' into update-Codemirror 2026-04-19 11:56:51 -04:00
Víctor Losada Hernández 98749ed3e0 lint pass 2026-04-15 10:28:28 +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 9e72fad9e4 small changes 2026-04-13 23:29:40 +02:00
Víctor Losada Hernández 150c9de6fb fix snippets 2026-04-13 17:50:52 +02:00
G.Ambatte be2484d807 Switch to HashChange event listener 2026-04-13 18:12:28 +12:00
Víctor Losada Hernández 2e990238d3 lint 2026-04-13 01:30:17 +02:00
Víctor Losada Hernández 9dba69e8da fix lock 2026-04-13 01:29:14 +02:00
Víctor Losada Hernández 95c0b409b9 safe jumps 2 2026-04-13 00:59:33 +02:00
Víctor Losada Hernández 40246d8493 safe jumps 2026-04-13 00:59:26 +02:00
Víctor Losada Hernández ed5e5004e0 handle scroll remake 2026-04-12 23:42:20 +02:00
G.Ambatte 86f8898ee4 Check if Navigation API exists, use setInterval if not 2026-04-12 18:24:41 +12:00
Víctor Losada Hernández ca2d95ef4a Merge branch 'master' of https://github.com/naturalcrit/homebrewery into update-Codemirror 2026-04-06 19:21:46 +02:00
Víctor Losada Hernández 21e2619a99 Merge branch 'fixLinkNavigation' of https://github.com/G-Ambatte/homebrewery into v3.21-fixes 2026-04-05 13:47:29 +02:00
Víctor Losada Hernández 1f1dbfbb89 fix movebrew 2026-04-05 12:14:40 +02:00
G.Ambatte 01a9950d7c Remove unnecessary console.log 2026-04-05 21:41:39 +12:00
G.Ambatte af98694e48 Experimental fix for broken internal document links 2026-04-05 21:16:23 +12:00
Trevor Buckner 67b4d3b760 Revert "Embed Endpoint" 2026-04-04 21:15:57 -04:00
Víctor Losada Hernández a350fcc254 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into update-Codemirror 2026-04-04 22:02:17 +02:00
Víctor Losada Hernández a0e496bf1c fix snippetbar just in case 2026-04-03 23:09:51 +02:00
David Bolack 893deac57e Fix CSS 2026-04-03 15:25:16 -05:00
David Bolack 3f7cc4682b Override the .homebrew class background on the embed page per recommendation. 2026-03-29 11:57:21 -05:00
David Bolack edaff80bd3 Fixed! 2026-03-28 22:36:04 -05:00
Víctor Losada Hernández fb42675574 fold all and unfold all restored 2026-03-29 01:36:37 +01:00
Víctor Losada Hernández 1d02fb9565 simplify page count 2026-03-29 01:12:21 +01:00
David Bolack 0be91191aa a little better but WTF 2026-03-28 19:07:46 -05:00
David Bolack 16bfffe78f I need extra eyes. 2026-03-28 18:29:15 -05:00
David Bolack e61556e43b I feel like there is a cleaner way to handle this, but this embeds as desired and it doesn't blink 2026-03-28 15:24:49 -05:00
db ca160d7d83 Start adding new class 2026-03-28 13:44:43 -05:00
Víctor Losada Hernández 82aa5b76ea erase reference to old file 2026-03-27 20:00:01 +01:00
Víctor Losada Hernández 94080ba952 file org update 2026-03-27 19:53:49 +01:00
Víctor Losada Hernández 1f2a329553 darkbrewery 2026-03-27 19:49:00 +01:00
Víctor Losada Hernández 4bce4a9489 simplify fold export & restore legacy higlights 2026-03-27 19:11:52 +01:00
Víctor Losada Hernández c996bee932 fix snippet editor height 2026-03-27 16:16:46 +01:00
Víctor Losada Hernández 901f84bf34 that should do it 2026-03-27 16:14:14 +01:00
Víctor Losada Hernández 98f73dd57c good styling 2026-03-27 13:29:31 +01:00
Víctor Losada Hernández ad9f4773b0 default cm5 theme back 2026-03-27 13:13:36 +01:00
Víctor Losada Hernández c0b3a1940f final fixes 2026-03-27 12:16:27 +01:00
Víctor Losada Hernández 9edb0e2fc6 fix brewjump functions 2026-03-27 11:59:56 +01:00