0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 00:52:48 +00:00
Commit Graph

6755 Commits

Author SHA1 Message Date
Gazook89
1741abc3fe Refactor AnchoredBox for greater flexibility
Big change to how the AnchoredBox component is structured so that it can be used in more than just one spot.  Now composed of the wrapper Anchored, with two children AnchoredTrigger and AnchoredBox, each of which can have their own arbitrary children.

Next steps will involve renaming the component file to Anchored.jsx, moving most styling out of the attached stylesheet (and into brewRenderer.less), and adding props to pass in Anchor Positioning properties.
2024-10-12 23:12:27 -05:00
Gazook89
27f471791d Small change in title phrasing 2024-10-12 13:28:25 -05:00
Gazook89
ae11da2bc7 Fix the styles overriding previous styles
If there were two inputs sending styles to the same target (ie row and column gap), they would override each other.

This change fixes that by deepening the merges.  Admittedly, I turned to cGPT to help me with this as the nesting was throwing me for a loop.  It works, though, and I understand it now that I can read it.
2024-10-12 11:53:52 -05:00
Gazook89
b58b9ca8f0 Merge branch 'View-Modes-Radio-Options' into View-Modes 2024-10-12 11:06:09 -05:00
Gazook89
ba0b3e7d93 Add toggle for Page Shadows
Reworks the pagesStyles to a broader object previewStyles.  This new object has this structure:

```
{
  targetElement : { cssProperty: value }
}
```
2024-10-12 11:05:23 -05:00
Gazook89
6fca21b6ed set defaultValue of gap sliders
defaultValue matches the normal styled values of the gap property on the .pages element.

removed the "tooltip" that showed the current value from the range sliders inside the anchoredbox (the gap sliders).
2024-10-11 22:53:38 -05:00
Gazook89
a3dbaf9e6a refactor anchoredBox to handle focus
Refactoring the AnchoredBox component because I wanted to set focus on the trigger button when the expanded box was closed.  Wrapping the trigger into it's own component, with forwardRef, allows for passing the `ref` to the actual DOM node.  Then the `.focus()` method will work on it.
2024-10-11 22:34:40 -05:00
Gazook89
835305bcf6 Add a title to each button
add a role to the toolbr.
2024-10-11 22:32:53 -05:00
Gazook89
395f2d16fa change view mode toggles to indiv buttons
Rather than a single button with three states, it is three buttons.  Went with buttons with `role='radio'` rather than true radios mostly because that is what Radix does.
2024-10-11 22:06:41 -05:00
Gazook89
6cabdc0a67 add alternative icons in
the `-alt` icons have better sizing/readability than the originals.  The originals likely will be removed.

Also adds back in 'fit-width' icon which was mistakenly overwritten earlier.
2024-10-11 22:05:18 -05:00
Gazook89
e80588b234 Add icons 2024-10-11 13:51:41 -05:00
Gazook89
73504a3386 Setting a padding-top to avoid pages hugging toolbar 2024-10-11 13:51:06 -05:00
Gazook89
9c4b936ddd bump node to avoid experimental flag issues from another merge 2024-10-11 13:50:40 -05:00
Gazook89
c4074d67f5 Merge branch 'master' into View-Modes 2024-10-10 23:34:26 -05:00
Trevor Buckner
5f9dfc9258 Merge pull request #3688 from G-Ambatte/experimentalDeploymentIdentification 2024-10-10 23:11:14 -04:00
G.Ambatte
d534eddb29 Remove unnecessary useEffect import 2024-10-11 13:14:53 +13:00
G.Ambatte
9099db5ea1 Remove obsolete state and event handlers 2024-10-11 11:56:29 +13:00
G.Ambatte
a9a8b4b9bb Shift static height style to LESS file 2024-10-11 11:55:51 +13:00
G.Ambatte
5d29d40c97 Implement suggested change 2024-10-11 11:42:03 +13:00
G.Ambatte
4291284252 Merge branch 'master' into experimentalDeploymentIdentification 2024-10-11 11:10:28 +13:00
Víctor Losada Hernández
fcede5448e Merge pull request #3492 from 5e-Cleric/fix-vulnerability-admin-pages
Fix admin vulnerability to Brute Force
2024-10-10 23:05:06 +02:00
Víctor Losada Hernández
c47974cb49 suggested changes 2024-10-10 23:00:39 +02:00
Víctor Losada Hernández
4fde4600bc fix pack 2024-10-10 22:58:55 +02:00
Víctor Losada Hernández
27f939201d Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vulnerability-admin-pages 2024-10-10 22:54:22 +02:00
Víctor Losada Hernández
6e2cde507d revert package completely 2024-10-10 22:50:29 +02:00
Víctor Losada Hernández
95d6e39a44 Revert "remove changes package lock"
This reverts commit 00f1d4a27e.
2024-10-10 22:49:19 +02:00
Víctor Losada Hernández
39b8cbae2a Revert "remove package 2"
This reverts commit 0162232053.
2024-10-10 22:49:16 +02:00
Víctor Losada Hernández
0162232053 remove package 2 2024-10-10 22:44:51 +02:00
Víctor Losada Hernández
00f1d4a27e remove changes package lock 2024-10-10 22:43:13 +02:00
Víctor Losada Hernández
db618fe2ad linting changes 2024-10-10 22:42:47 +02:00
Víctor Losada Hernández
47f2703388 remove unrelated change 2024-10-10 22:38:50 +02:00
Víctor Losada Hernández
52e929ee68 remove spaces added 2024-10-10 22:36:59 +02:00
Víctor Losada Hernández
f74e72a35f remove rate-limit 2024-10-10 22:32:17 +02:00
Trevor Buckner
e3d256aaaf Merge pull request #3800 from G-Ambatte/addIndexedDM-#3763
Change local version history to use Indexed DB
2024-10-10 15:38:52 -04:00
G.Ambatte
f65dee28cb Merge branch 'master' into addIndexedDM-#3763 2024-10-11 07:44:05 +13:00
Trevor Buckner
58dd1b147d Merge pull request #3807 from naturalcrit/dependabot/npm_and_yarn/globals-15.11.0
Bump globals from 15.10.0 to 15.11.0
2024-10-10 13:45:14 -04:00
Trevor Buckner
f84dcd9fce Merge branch 'master' into dependabot/npm_and_yarn/globals-15.11.0 2024-10-10 11:52:18 -04:00
Trevor Buckner
cc1ab35255 Merge pull request #3806 from naturalcrit/dependabot/npm_and_yarn/mongoose-8.7.1
Bump mongoose from 8.7.0 to 8.7.1
2024-10-10 11:52:09 -04:00
G.Ambatte
803ca09ab6 Merge branch 'master' into addIndexedDM-#3763 2024-10-10 21:55:00 +13:00
dependabot[bot]
8a60a4a5cc Bump globals from 15.10.0 to 15.11.0
Bumps [globals](https://github.com/sindresorhus/globals) from 15.10.0 to 15.11.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v15.10.0...v15.11.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-10 03:23:29 +00:00
dependabot[bot]
a345b67ffe Bump mongoose from 8.7.0 to 8.7.1
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.7.0 to 8.7.1.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/8.7.0...8.7.1)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-10 03:23:22 +00:00
Trevor Buckner
456cefd535 Merge pull request #3786 from dbolack-ab/nanoid-fix 2024-10-09 22:24:03 -04:00
G.Ambatte
ab6861675d Comment out history testing values 2024-10-10 09:07:54 +13:00
G.Ambatte
0deb9073cd Remove obsolete file 2024-10-10 08:57:41 +13:00
G.Ambatte
d5cda45d4d Merge branch 'master' into addIndexedDM-#3763 2024-10-10 08:50:39 +13:00
G.Ambatte
36674f4cf2 Add explicit guard clause to renderHistoryItems 2024-10-10 08:48:14 +13:00
G.Ambatte
618de544bf Remove unnecessary check 2024-10-10 08:43:38 +13:00
G.Ambatte
8f5b421531 Fix infinite loop 2024-10-10 08:34:24 +13:00
G.Ambatte
8db12739d3 Remove obsolete function 2024-10-10 08:34:15 +13:00
Trevor Buckner
4cb093c0c0 Merge branch 'master' into nanoid-fix 2024-10-09 15:10:03 -04:00