0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 08:57:38 +00:00
Commit Graph

3487 Commits

Author SHA1 Message Date
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
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
Gazook89 5c50f35570 Merge branch 'master' into Better-Dropdowns 2026-07-02 23:08:37 -05:00
Gazook89 b791bcefdb revert the work done in earlier commit with anchor properties
revert commit 1fe19578c2 which changed `anchor()` values to `position-area`.

I'm not sure what compelled me to do that change initially, except the easier to understand syntax.  Hopefully it wasn't important.

But oddbird polyfill expects `anchor()` values, which it converts to pixel values for positioning.
2026-07-02 22:53:33 -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
Víctor Losada Hernández 0d1e57d393 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-cleaning-tool-to-admin 2026-06-17 16:23:16 +02:00
Víctor Losada Hernández edf5a6f9e8 a few touches as gazook requested 2026-06-17 16:22:03 +02:00
G.Ambatte 1e69cf2e13 Merge branch 'master' into fixDividerBug 2026-06-14 22:46:22 +12:00
G.Ambatte e7ec8a2174 Initial attempt at bug fix 2026-06-14 22:34:07 +12:00
Gazook89 1fe19578c2 change anchor method
This updates the position try results by using a different method of setting the area of the anchored element.  Rather than using the inset properties with `anchor()`, it uses `position-area`.
2026-06-10 16:28:34 -05:00
Gazook89 1861d036b9 add key to dropdown menuitem 2026-06-09 06:25:31 -05:00
Víctor Losada Hernández b65105598a going for 6 years for now 2026-06-02 14:34:18 +02: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
Víctor Losada Hernández ed6bf9f1bb last changes 2026-05-30 00:08:07 +02:00
Gazook89 a3469a172a Move tests to tests/components directory 2026-05-29 15:58:00 -05:00
Gazook89 cf8f809eec Cleanup some loose ends. 2026-05-29 15:57:41 -05:00
Gazook89 fa07af2d82 Add tests for the Dropdown structure and behavior
Largely this is written by an LLM after I provided the targets, and I've looked through the tests themselves to confirm they are accurate.  There may be improvements in how to actually *set up* the tests, though, as I am less familiar with those.

This has two test suites:  the first for html structure, the second for behavior.  Each of them calls another script that provides helper functions for setting things up and taking them down.  This keeps the test suites themselves fairly lean.
2026-05-29 11:08:05 -05:00
Gazook89 f716c390b9 Add some defaults to dropdown 2026-05-29 10:54:58 -05:00
Víctor Losada Hernández 1838a57e53 final version 2026-05-29 11:32:09 +02:00
Gazook89 c12a188196 Be sure snippet icon is getting passed in 2026-05-28 11:45:14 -05:00
Gazook89 13196941eb popovertarget is typically not camelcase in html 2026-05-28 11:43:33 -05:00
Gazook89 3110d2cc69 Add icons to menu triggers
This fixes the odd alignments of menu-wrapper names by ensuring that both menuitems and menu-wrappers (actually their child triggers) both have space for icons.
2026-05-28 11:43:05 -05:00
Gazook89 2e4439c9f4 Remove ID collisions on repeated menu names
Add React `useId()` method, safely stripped of invalid characters for use in CSS/HTML, to make each trigger/menu unique to avoid collisions.
2026-05-28 11:41:27 -05:00
Víctor Losada Hernández 3b71f6fa0b change prime to found 2026-05-28 10:36:24 +02: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 e7680ef80b proper cleaning function 2026-05-27 22:43:57 +02:00
Víctor Losada Hernández fff0b4d670 moving to try catch better 2026-05-27 18:49:48 +02:00
Víctor Losada Hernández 5f7a3db441 brewCleanup to functional component 2026-05-27 18:42:47 +02:00
Víctor Losada Hernández 72610c03ff Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-23 09:19:25 +02:00
Víctor Losada Hernández 7a0348536c fix image request going crazy 2026-05-23 09:18:04 +02: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
Víctor Losada Hernández 15df8f2a22 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-21 00:34:58 +02: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
David Bolack ea9d114156 Merge branch 'master' of github.com:naturalcrit/homebrewery 2026-05-18 21:25:05 -05:00
Víctor Losada Hernández 15db3c9f66 lint client 2026-05-18 16:21:57 +02:00
Víctor Losada Hernández 074af5e8e0 more solid block tokenizing 2026-05-16 16:28:53 +02:00
Víctor Losada Hernández 16948f451f add a comment 2026-05-14 11:08:09 +02:00
David Bolack f0b381417d Merge branch 'master' of github.com:naturalcrit/homebrewery 2026-05-13 13:59:38 -05:00
Víctor Losada Hernández 0bee33efc0 file removal 2026-05-13 20:58:40 +02:00