Trevor Buckner
915f9aafa8
restore snippetBundle field somehow lost from /new and /home
2024-07-31 17:27:58 -04:00
Trevor Buckner
11f8809c5e
Merge pull request #3606 from naturalcrit/FixUserThemesCrashes
...
Fix user themes crashes
2024-07-31 17:05:52 -04:00
Trevor Buckner
27a4831ea0
Add a theme to our reference pages (changelog, FAQ, migrate)
2024-07-31 16:53:54 -04:00
Trevor Buckner
1abced20d6
Do not fetch user themes if there is no user.
2024-07-31 16:53:34 -04:00
G.Ambatte
251d03b7be
Merge branch 'master' into addSignedFunction-#3537
2024-07-31 20:58:40 +12:00
David Bolack
29bbf3fef9
Merge branch 'master' into Issue_2563
2024-07-30 10:59:43 -05:00
David Bolack
a7f8b52966
Change default value for pageNumber on markdopwn.render()
2024-07-30 08:56:06 -05:00
David Bolack
6629bc64d8
Merge branch 'Issue_1430_Unique_HeaderIDs' of github.com:dbolack-ab/homebrewery into Issue_1430_Unique_HeaderIDs
2024-07-30 08:36:47 -05:00
David Bolack
bfd46fb6fd
Merge branch 'master' into Issue_1430_Unique_HeaderIDs
2024-07-30 08:35:12 -05:00
David Bolack
2d335ef7fc
Merge branch 'master' into Issue_241
2024-07-30 02:30:57 -05:00
dependabot[bot]
fac0d151b6
Bump @babel/preset-env from 7.24.7 to 7.25.2
...
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env ) from 7.24.7 to 7.25.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.25.2/packages/babel-preset-env )
---
updated-dependencies:
- dependency-name: "@babel/preset-env"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-30 03:27:30 +00:00
dependabot[bot]
4f950b6024
Bump @babel/core from 7.24.7 to 7.25.2
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.24.7 to 7.25.2.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.25.2/packages/babel-core )
---
updated-dependencies:
- dependency-name: "@babel/core"
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-07-30 03:27:04 +00:00
Trevor Buckner
1c1d331df9
Merge pull request #3597 from naturalcrit/v3.14.0
...
Up to v3.14.0
2024-07-29 21:55:19 -04:00
Trevor Buckner
8609925da8
Merge branch 'master' into v3.14.0
2024-07-29 21:54:38 -04:00
Trevor Buckner
607244d6e1
Merge pull request #3321 from dbolack-ab/brew_themes_user_selection
...
Enable User Brew theme selection
2024-07-29 21:54:28 -04:00
Trevor Buckner
9cc81d2ff9
Up to v3.14.0
2024-07-29 21:52:09 -04:00
Trevor Buckner
32fa50d608
Fallback to showing "Blank" theme if themes fail to load.
2024-07-29 12:30:13 -04:00
Trevor Buckner
8221579b6a
Linting
2024-07-28 18:03:25 -04:00
Trevor Buckner
88eaebfd49
Raise test coverage threshold
...
This PR adds tests which means we are now covering a larger % of the codebase. Raise the coverage thresholds to match.
2024-07-28 18:00:33 -04:00
Trevor Buckner
ee9f2c8c83
Remove unused CSS endpoints in favor of #3075
...
Now that we have a dedicated /theme/ route for the recursive theming, the CSS endpoint can be simpler for only getting the `style` of a single brew. #3075 already has this simpler version, but no testing, so I have copied this into a comment there for implementation when it is ready.
2024-07-28 17:53:25 -04:00
Trevor Buckner
2870caaae6
Clean up metadataEditor theme dropdown
2024-07-28 17:18:30 -04:00
Trevor Buckner
e0425ec6c0
Simplify API call url
2024-07-28 16:47:16 -04:00
Trevor Buckner
8aa88a2e45
Add proper error popup when theme fails to load
2024-07-28 16:45:01 -04:00
Trevor Buckner
edec9369ec
Finish adding test cases
2024-07-27 19:17:19 -04:00
Trevor Buckner
f2d933410e
Add error handling for missing themes
2024-07-27 19:17:05 -04:00
Trevor Buckner
b64a0c5200
Start adding tests for /theme/ endpoint
2024-07-27 03:30:51 -04:00
Trevor Buckner
113f9b3fe3
No need to stringify Theme Bundle object
2024-07-27 02:00:38 -04:00
Víctor Losada Hernández
2c4f4ff5fc
Merge branch 'master' into pdf-tools
2024-07-26 14:14:57 +02:00
David Bolack
d2afa7adea
Move fetchThemeBundle into /shared/helpers
...
This might not be the best rework - I was unsure if the *this* that would be available when called would see the appropriate object so I assumed not and pass it as a parameter.
Works, but may be bad form.
2024-07-23 22:17:52 -05:00
Trevor Buckner
8e7baca47d
Fix tests
2024-07-23 17:40:32 -04:00
Trevor Buckner
ddc5693778
revert package-lock
2024-07-23 17:31:07 -04:00
Trevor Buckner
82f73fb21d
cleanup
2024-07-23 17:24:50 -04:00
Trevor Buckner
27c52fc244
Fix loading CSS for Legacy
2024-07-23 17:11:48 -04:00
Trevor Buckner
ac82e3ecb2
Add to home page
2024-07-23 16:50:29 -04:00
Trevor Buckner
22b6aa14f0
Add to /new page
2024-07-23 16:43:23 -04:00
Trevor Buckner
24ab3d3392
Merge branch 'brew_themes_user_selection' of https://github.com/dbolack-ab/homebrewery into pr/3321
2024-07-23 16:26:35 -04:00
Trevor Buckner
0b01f27d11
Load theme bundles on /share page
2024-07-23 16:26:33 -04:00
David Bolack
d640ad6bb7
Update Node version for Docker
2024-07-22 19:13:38 -05:00
Víctor Losada Hernández
fd91bf0fff
Merge branch 'master' into Issue_1430_Unique_HeaderIDs
2024-07-22 23:07:06 +02:00
Víctor Losada Hernández
270aa9e0f9
Merge branch 'master' into brew_themes_user_selection
2024-07-22 22:46:12 +02:00
Trevor Buckner
6ae249a527
Lint
2024-07-22 02:46:26 -04:00
Trevor Buckner
c0123b96eb
Support snippet compilation
...
Original handling of snippets only worked if the current selected theme was a staticTheme. This now fully merges all snippets through the theme chain no matter what the top-level theme is. So user themes built on 5ePHB can benefit from 5ePHB snippets too.
User input of user snippets will be a later PR, but merging them into static snippets is now supported.
2024-07-22 02:44:41 -04:00
Trevor Buckner
45f7080afd
Move loadAllBrewStylesAndSnippets to the parent page component
...
Themes contain both CSS and Snippets. The brewRenderer only cares about the CSS, but other components need the Snippets. Better to have the parent "editPage", etc. load the theme bundles and pass them down to each child that needs it, rather than trying to pass from the child up.
This also fixes the `metadataEditor.jsx` not being able to change themes live; A new theme bundle is now loaded when a new theme is selected, instead of only the first time the BrewRenderer mounts.
Also renamed to "fetchThemeBundle"
2024-07-21 16:25:24 -04:00
David Bolack
2af2ad629d
Try to account for situations where the URL folding is past the max length for the truncation so the user can see why this is a fold.
...
Remove missed debug messages.
2024-07-21 12:58:21 -05:00
David Bolack
2fc7aa454f
Add data: URL folding for CSS.
...
Regex might need tweaking to catch all cases, but it catches the basics.
2024-07-21 12:40:49 -05:00
David Bolack
fde797c044
Rename prevLine to activeLine for better reading clarity.
2024-07-20 21:51:03 -05:00
David Bolack
6693fb1c13
reduce redundant trim()s
2024-07-20 21:40:22 -05:00
G.Ambatte
17f8de48a8
Add disableMeta prop to SharePage
2024-07-21 13:33:23 +12:00
Trevor Buckner
0a5ff213de
use same theme endpoint for user and static themes
...
`getThemeBundle()` rework no longer needs two separate endpoints
2024-07-20 11:39:23 -04:00
G.Ambatte
aebfcc7885
Add new var math functions
2024-07-21 00:18:06 +12:00