G.Ambatte
341b3c24a4
Merge branch 'master' into fixSafeHTML
2026-07-26 11:08:44 +12:00
G.Ambatte
cd8df1c4b3
Merge branch 'master' into sandbox-renderer-iframe
2026-07-26 09:48:31 +12:00
Víctor Losada Hernández
71c13a89a8
Merge branch 'master' into render_a11y_squash
2026-07-25 23:44:49 +02:00
durstann
7d434fe939
Revert linter change
2026-07-23 18:57:01 -07:00
ReinaSweet
5fa7b95e19
Add a sandbox property to the renderer iframe to prevent any script execution
...
But still allow for print (via allow-modals), same-origin downloads, and top navigation (so that links work).
2026-07-18 03:02:41 -07:00
G.Ambatte
e078f1f6fa
Change safeHTML attribute check
2026-07-15 21:25:28 +12:00
Gazook89
fd6fd98fdc
Add @components aliases to vite config
...
And update all the files to point to that directory to use the alias.
2026-07-11 17:41:49 -05:00
Gazook89
f67ab5bb16
update brewRenderer.jsx
2026-07-04 20:25:01 -05:00
Gazook89
9048253c9c
revert some unintended changes from an earlier merge
...
commit e02ce4f898 unintentionally undid some changes for v4 by dbolack, I'm not really sure how. It's evidently not possible to directly "revert" those changes without having a conflicted file, i think something was borked in the process.
manually reverting the changes here, hopefully it works out.
2026-07-04 20:16:02 -05:00
Gazook89
416161e617
fix to previous commit.
2026-07-02 23:44:19 -05:00
Gazook89
3836150e42
hide arrows on snippetbar triggers, improve spacing
...
to decrease the width used for the snippet bar triggers, removed the down arrows (for the top level triggers only). And, reduced the padding on the icons in the snippetbar while retaining it inside the menus.
The icons still align between the menu list and the menu trigger, but the text labels do not.
2026-07-02 23:40:01 -05:00
durstann
8c77da246c
Don't add lang tag to iframe content. It's not strictly necessary since the brew content will set it's own language later in the DOM.
2026-06-19 14:38:49 -07:00
durstann
487d7956e9
Accessibility: Add lang and title to the brew render iframe.
2026-06-18 12:58:11 -07:00
Gazook89
1861d036b9
add key to dropdown menuitem
2026-06-09 06:25:31 -05:00
David Bolack
36ae3734fb
Merge branch 'master' into V4_Persistant_Templates
...
Change enable_v4 to enableV4 to shut up linter.
2026-05-29 21:06:55 -05:00
Gazook89
c12a188196
Be sure snippet icon is getting passed in
2026-05-28 11:45:14 -05:00
Gazook89
5e122626d4
Merge branch 'master' into Better-Dropdowns
2026-05-27 22:22:34 -05:00
Gazook89
612614fa12
menu items dismiss menu on click by default
...
Unless a menu item has the `no-dismiss` attribute (set to either `''` or `'true'`), clicking a menu item will dismiss the menu. Clicking a submenu trigger will not dismiss the menu.
The `no-dismiss` attribute must take a string, either empty or `'true'` because react doesn't allow boolean custom attributes.
2026-05-27 22:21:28 -05:00
Víctor Losada Hernández
305a668799
Merge branch 'master' into Open-Sans---Installed-vs-Google-Fonts
2026-05-22 22:48:16 +02:00
Gazook89
029d2c9f33
Merge branch 'master' into Lazy-Load-Images
2026-05-22 15:04:17 -05:00
David Bolack
dff93002d0
Clarify Regex behavior
...
Add short circuit so the full hoisting only happens on brew load rather than every parse.
Remove stray CR in unrelated file.
2026-05-18 21:59:56 -05:00
David Bolack
84fbf75f0c
Merge branch 'master' into preloadVars
2026-05-18 21:50:32 -05:00
Víctor Losada Hernández
15db3c9f66
lint client
2026-05-18 16:21:57 +02:00
Gazook89
f5acb27c34
Revert "Fix font snippet "Open Sans""
...
This reverts commit 34d634a349 .
2026-05-05 22:38:43 -05:00
Trevor Buckner
b75c83901b
Merge branch 'fix-save-on-load' of https://github.com/5e-Cleric/homebrewery into pr/4772
2026-05-04 16:01:43 -04:00
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
Trevor Buckner
614d9fd7b3
Merge branch 'master' into fix-save-on-load
2026-05-04 11:50:13 -04:00
Víctor Losada Hernández
65d1106974
this should fix it
2026-05-04 00:42:10 +02:00
Gazook89
34d634a349
Fix font snippet "Open Sans"
...
Previously it was using 'OpenSans' as the font name, when it's actually 'Open Sans'.
2026-05-01 15:17:30 -05:00
Gazook89
e34c5f9b32
Add font files, remove google fonts references
...
Adds a `shared/naturalcrit/styles/fonts` directory, and Open Sans font files for the 4 weights we were pulling from Google Fonts.
2026-04-30 22:28:04 -05:00
Gazook89
9af2577c6e
Add print cycle events and loading msg
...
Since the print cycle now loads all images not-yet-loaded (due to lazy loading), there can be a moment of time where it appears pressing Get PDF is doing nothing, depending on connection speed. To add a "loading" message, a custom event is fired at the start and end of the print cycle (before the print dialog comes up).
2026-04-30 21:05:08 -05:00
Gazook89
00efbb7244
fix state variable themeSelector
2026-04-26 21:09:18 -05: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
Gazook89
359d87440b
add oddbird polyfill - not quite working
...
Not quite working yet. polyfill is loaded, but positioned elements are spanning whole viewport. Parking this for now.
2026-04-24 22:06:52 -05:00
Víctor Losada Hernández
19106f89a8
Merge branch 'master' into feature/copy-url-with-page
2026-04-24 09:54:25 +02:00
Gazook89
285522d820
all snippet buttons are actually buttons now
2026-04-23 22:56:29 -05:00
Gazook89
904b14af19
icons in triggers and menus are aligned.
2026-04-23 22:52:39 -05:00
Gazook89
0c78a23c76
remove testing menu
2026-04-23 22:28:21 -05:00
Gazook89
992b72ee6f
empty menus styled as disabled
2026-04-23 22:17:52 -05:00
Gazook89
8bebbdac5d
restore styling to work with new structure.
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-23 22:10:51 -05:00
Gazook89
3b6c7acdbf
snippet submenu triggers don't fire events onclick
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-23 10:42:58 -05: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
David Bolack
88c36fc287
Merge branch 'master' into preloadVars
2026-04-20 14:05:12 -05:00
David Bolack
59cdfcb19e
Rework "force" to attempt to find variable references and only force those pages
2026-04-19 14:34:30 -05:00