David Bolack
e82411d3d2
Merge branch 'master' into Issue_1958
2024-10-07 14:35:19 -05:00
Trevor Buckner
58b0e12fcc
Update app.js
2024-09-27 00:34:35 -04:00
Trevor Buckner
51f4c83ec0
Update app.js
2024-09-27 00:34:12 -04:00
Trevor Buckner
15fde76209
Merge branch 'master' into v3.15.1
2024-09-27 00:13:32 -04:00
Trevor Buckner
ff9a75f6b6
Remove duplicate error logs for google drive update / new
...
Errors are now logged once in the central error handler in app.js
2024-09-26 19:00:07 -04:00
David Bolack
931566636b
Merge branch 'master' into Issue_1958
2024-09-18 16:26:39 -05:00
David Bolack
dc67c75130
Merge branch 'master' into Issue_1958
2024-09-15 18:15:19 -05:00
G.Ambatte
2f392a7517
Lint fixes
2024-09-15 14:19:32 +12:00
G.Ambatte
531e6efa5e
Get configuration from config files
2024-09-15 14:19:24 +12:00
Trevor Buckner
29460edca9
Merge branch 'master' into metadata-api-endpoint
2024-09-10 13:26:40 -04:00
Gazook89
03c14e5847
adds meta tags for the Vault page
...
So they show up when sharing the link in Discord or wherever.
2024-09-05 11:24:59 -05:00
David Bolack
4dc5746c71
Merge branch 'master' into Issue_1958
2024-09-04 20:52:46 -05:00
Víctor Losada Hernández
8d2a9ed9cb
adress app.js changes requested
2024-08-31 22:08:21 +02:00
Víctor Losada Hernández
f7c3e81b7b
"Added new route for '/vault' and updated catch-all for invalid routes"
2024-08-31 19:35:44 +02:00
Víctor Losada Hernández
c7f695e86a
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimental-development
2024-08-31 19:21:06 +02:00
David Bolack
5e8f74b9bc
Merge branch 'master' into Issue_1958
2024-08-28 21:09:07 -05:00
Trevor Buckner
a124bd8657
I'm dumb.
2024-08-28 16:59:22 -04:00
Trevor Buckner
e8aceac133
Move check for account up a little
2024-08-28 15:21:43 -04:00
Víctor Losada Hernández
6436e62ec0
set up error page
2024-08-28 21:10:28 +02:00
Víctor Losada Hernández
c9947d7f91
handle invalid account in account page, redirect to home
2024-08-28 20:42:53 +02:00
Víctor Losada Hernández
ca5a7a1dbb
Merge branch 'master' into addCSSRoute-#1097
2024-08-23 23:16:19 +02:00
Trevor Buckner
40ab2c2283
rearrange code
2024-08-22 14:24:33 -04:00
Trevor Buckner
0f969ce383
Add catch-all for invalid paths
...
res.route is the currently-matched route. If nothing has been matched by this point (route = undefined), we have an invalid route.
2024-08-20 17:11:50 -04:00
G.Ambatte
00e113ff67
Move getCSS to homebrew.api.js
2024-08-13 22:02:54 +12:00
G.Ambatte
7d699e455e
Switch CSS route to call a function
2024-08-12 18:48:28 +12:00
Víctor Losada Hernández
fa0d1d6bc1
Merge branch 'master' into metadata-api-endpoint
2024-08-01 23:44:00 +02:00
Trevor Buckner
4b3b44ecc8
Merge branch 'master' into addCSSRoute-#1097
2024-08-01 14:28:10 -04:00
David Bolack
73e579703a
Merge branch 'master' into Issue_1958
2024-08-01 11:19:17 -05:00
Víctor Losada Hernández
aa0d0bed48
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimental-development
2024-07-31 23:12:47 +02:00
Trevor Buckner
27a4831ea0
Add a theme to our reference pages (changelog, FAQ, migrate)
2024-07-31 16:53:54 -04:00
Víctor Losada Hernández
51c7549b45
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimental-development
2024-07-31 08:57:28 +02:00
Trevor Buckner
8aa88a2e45
Add proper error popup when theme fails to load
2024-07-28 16:45:01 -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
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
Víctor Losada Hernández
73a400b882
Merge branch 'metadata-api-endpoint' of https://github.com/naturalcrit/homebrewery into metadata-api-endpoint
2024-07-19 08:58:21 +02:00
Víctor Losada Hernández
bcef4006dc
Remove console.log statement in /metadata/:id route handler
2024-07-19 08:58:19 +02:00
Trevor Buckner
484b0a6dff
simplify getThemeBundle() by using just one loop
...
Also, removes need for special handling of the "first" theme.
2024-07-15 16:38:19 -04:00
Trevor Buckner
4951b9bf1a
Add async error handler to /edit and /new
...
Since /edit and /new endpoints now have an `await` inside that could return an error (`getUsersBrewThemes()`), asyncHandler must be added to pass errors along instead of just crashing
2024-07-13 19:46:12 -04:00
Trevor Buckner
f392216ff4
Spacing
2024-07-13 18:08:29 -04:00
Trevor Buckner
e222811d03
Rename engine to renderer to unify naming
...
This value is named `renderer` everywhere else. Relabeling to a consistent name.
2024-07-13 18:06:46 -04:00
Trevor Buckner
47f912750b
Extract getting userThemes from getBrew()
...
`getBrew()` should do one thing only; retrieve a brew. UI elements like the list of themes available to the user are not part of a brew.
Moved into the handers for the `/edit/` and `/new/` endpoints
2024-07-13 17:44:23 -04:00
David Bolack
ade819c70c
A not so light rework.
...
This removes the existing endpoints and replaces them with /theme.
/theme/:id - return a theme bundle containing all styling from this USER theme and any parents.
/theme/:engine/:id - return a theme bundle containing all styling from this STATIC theme and any parents
The theme bundle returns a marshalled JSON object containing:
styles - an array of strings representing the collected styles in loading order
snippets - an array ( currently empty ) of collected snippets.
The various bits of theme rendering code for <style> an style <link> have been swapped out with an 'onDidMount' call that loads the thendpoint and appends a series of <style> blocks to the brewRender's head.
This loses some caching advantages, but probably won't matter in the long run.
2024-07-13 12:12:05 -05:00
Trevor Buckner
a6f787ea8f
Remove getBrewThemeParentCSS
2024-07-10 17:56:39 -04:00
Trevor Buckner
a247e50c9f
renaming "get" functions
...
rename `getStaticTheme` to `getStaticThemeCSS`
rename `getBrewThemeWithCSS` to `getBrewThemeCSS`
rename `getBrewThemeParent` to `getBrewThemeParentCSS`
to avoid confusion with other "get" endpoints like `getBrew`, and unify naming for endpoint functions that return CSS.
Simplify `isStaticTheme` function (getting the parent theme is handled elsewhere)
2024-07-10 14:15:03 -04:00
Víctor Losada Hernández
90431efbc9
"Removed ArchivePage and related files, replaced with VaultPage, updated routes and API endpoints, and made minor changes to theme configuration and error handling."
2024-06-11 00:33:36 +02:00
Víctor Losada Hernández
99b0c2b54e
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimental-development
2024-06-10 23:25:42 +02:00
Víctor Losada Hernández
8c09772605
Merge branch 'master' into metadata-api-endpoint
2024-06-06 01:02:10 +02:00
David Bolack
587831652c
Merge branch 'master' into Issue_1958
2024-06-02 12:33:14 -05:00