Commit Graph
43 Commits
Author SHA1 Message Date
David Bolack 2fe733cc06 Add test for custom page settings vs defaults and extended metadata
Tweak SplitMetadataAndText based on faulty assumptions for setting defaults.
2026-04-11 10:19:37 -05:00
David Bolack d3287b7cd7 Update defaults based on RPGNow POD
https://help.drivethrupartners.com/hc/en-us/articles/12780800178583-Quick-Specifications-for-Print-Books#h_01HP59NC7WJ9C84PEDSFM1WBR9
2026-04-11 09:46:16 -05:00
David Bolack 522b54838e Add metadata values to split in helpers. 2026-04-10 23:38:51 -05:00
Víctor Losada Hernández 489bc2e74f let mongo systems and tags override google drive's 2026-03-07 15:02:20 +01:00
Gazook89 f8683ebbc8 Update custom snippets to allow inline
Removes the additional line after a snippet, so it doesn't effectively create a `\n` at the end of the snippet.  This allows snippets to be inline with text.
2026-02-22 22:38:01 -06:00
Trevor Buckner 63bebe1efd Lint everything
Catching up on a bunch of linting so random changes stop showing up on PRs when the linter is run.
2025-10-06 00:02:24 -04:00
Trevor Buckner 518a3434be Changes fetchThemeBundle helper to not need "this" parameter
Looks a bit ugly but this is temporary toward converting edit/home/new into functional components
2025-08-30 19:02:39 -04:00
Trevor Buckner c5805af935 On patch failure, compare client and server text bytewise 2025-07-10 11:12:42 -04:00
David Bolack c6cd6e9864 A little bit of cleanup and structure flattening
Fixes failed tests.
2025-04-08 20:29:32 -05:00
David Bolack d0c3765f8f Move Snippets store to metadata block.
Note this still stores the snippets as a string for the passed about brew object.
2025-04-07 23:22:47 -05:00
David Bolack a62588a4c9 Fix fouled up regex that only worked by accident 2025-03-24 14:58:14 -05:00
David Bolack b605346c7d Fix regeression in snippets 2025-03-14 18:36:18 -05:00
David Bolack ab6c1ae402 Merge branch 'master' into localSnippetEditor 2025-03-14 17:44:32 -05:00
Trevor Buckner 50bda9455f Immediately clear errors if a theme successfully loads 2025-02-13 15:51:22 -05:00
Trevor Buckner 659510e364 Remove unused function 2025-02-09 12:07:09 -05:00
David Bolack 74122d9057 Display name of write in theme next to write-in
Clear user's active ThemeBundle when an incomplete/broken/invalid writein.

Needs theming help.
2025-01-07 22:11:01 -06:00
David Bolack 70f86c6ebd Merge branch 'master' into localSnippetEditor 2024-12-04 21:31:10 -06:00
Trevor Buckner 9f9948f531 Add comment 2024-12-02 12:23:54 -05:00
G.Ambatte e17db0788c Convert any tags strings to arrays 2024-12-02 16:18:18 +13:00
David Bolack 008b31e530 Correct failing test. 2024-11-24 18:58:50 -06:00
David Bolack b6e445c445 Convert storage of snippets in Brew to yaml by request. 2024-11-24 18:13:32 -06:00
David Bolack 5f67494f77 Merge branch 'master' into localSnippetEditor 2024-11-23 01:39:38 -06:00
Trevor Buckner fb9148ada5 Site runs and all tests pass 2024-11-20 16:21:35 -05:00
David Bolack d541a70da5 Remove unneeded dedent 2024-11-14 06:54:36 -06:00
David Bolack e0400c0425 Snippets should go after existing tab sections 2024-11-12 18:41:31 -06:00
David Bolack f4e9516233 Remove testing helper 2024-11-03 12:41:04 -06:00
David Bolack 7f7f3557b3 Mostly working. Needs tweakages. Presentable 2024-11-03 12:30:14 -06:00
David Bolack b9b3d284cf WOrking snippet editor - menu population regression 2024-11-03 11:14:31 -06:00
David Bolack 4f240bf110 WIP 2024-11-02 22:30:18 -05:00
David Bolack 7cd82ffc4e WOrking snippets insertion from local. 2024-11-02 17:37:43 -05:00
David Bolack 4448410c3e Partial implementation 2024-11-01 14:02:27 -05:00
David Bolack 1ed7e43db1 Implement G-Ambette's cleaner fix. 2024-08-13 12:09:45 -05:00
Trevor Buckner 8221579b6a Linting 2024-07-28 18:03:25 -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 113f9b3fe3 No need to stringify Theme Bundle object 2024-07-27 02:00:38 -04: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
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 8a55658bd7 Rename printPage function to printCurrentBrew()
Avoid confusion with other "page" components.
2024-05-28 16:11:18 -04:00
Trevor Buckner 01d60c4520 lint 2024-05-28 13:22:33 -04:00
Trevor Buckner ac3168e365 Move "printPage()" to helpers.js for reuse in multiple pages 2024-05-24 19:28:02 -04:00
Trevor Buckner e62e185214 Lint a bunch of things 2024-05-21 17:32:17 -04:00
Víctor Losada Hernández f93af38fa6 split-style-and-metadata moved to helpers.js 2024-03-06 18:09:26 +01:00