Commit Graph
67 Commits
Author SHA1 Message Date
David Bolack c1315b3512 Update Download endpoint to export four shapes of Markdown files
Restructures PDF download into an Export menu containing the PDF export and 4 Markdown Options
Slightly tweaks tests
Effectively moves the api.mergeBrewText to helpers. I think this makes more sense.
Changes the download extension from txt to 'md`.
The Commonmark, TOML, and JSON exports are the same with the frontmatter in a slightly different shape. These were selected based on lightweight research into Markdown Frontmatter.

If specific formats - such as Obsidian - are different enough in terms of formatting the frontmatter or desired metadata content, this is fairly easy
2026-10-13 12:34:51 -05:00
David Bolack e59b60fe0e Merge branch 'master' into coverageImprovement_helpers 2026-09-18 21:54:40 -05:00
G.Ambatte 6e0ef96ccb Set default values on function parameters for fetchThemeBundle 2026-09-09 18:49:44 +12:00
David Bolack 758ba7b049 Add additional coverage tests for shared/helpers.js 2026-08-27 15:51:38 -05:00
David Bolack 002e03b572 Convert literal member copies to spread operators for simplicity and future-proofing 2026-08-21 11:59:38 -05:00
David Bolack bb449254b4 Merge branch 'master' into v4Metadata 2026-08-21 11:55:31 -05:00
Víctor Losada Hernández cc590a8b48 update js-yaml 2026-08-15 14:37:12 +02:00
David Bolack ed2b246494 Change bleed to bleedSize 2026-08-07 10:52:14 -05:00
David Bolack 1472e39bc8 Reduce unnecessary linespacing and comments. 2026-07-17 20:19:16 -05:00
David Bolack 6d40525286 Remove relocate failover defaults to brewDefaults 2026-07-17 20:09:26 -05:00
David Bolack 7cc3611e4c Directly access metadata attributes instead of _.picking the object. 2026-07-17 20:01:29 -05:00
David Bolack ecc90b376e Merge branch 'master' into v4Metadata 2026-07-04 15:13:39 -05:00
David Bolack f0dc66bf2b Bleed should follow safetySpace dimension names ( inner/outer vs left/right ) 2026-06-27 16:03:10 -05:00
Gazook89 029d2c9f33 Merge branch 'master' into Lazy-Load-Images 2026-05-22 15:04:17 -05:00
David Bolack 6542451cbc Merge branch 'master' into v4Metadata 2026-05-18 22:05:14 -05:00
G.Ambatte 9e4d9ee35d Fix missing character 2026-05-10 12:23:06 +12:00
G.Ambatte cc2963b765 Increase information about mismatch brew content 2026-05-10 12:14:54 +12:00
Gazook89 9af2577c6e Add print cycle events and loading msg
Since the print cycle now loads all images not-yet-loaded (due to lazy loading), there can be a moment of time where it appears pressing Get PDF is doing nothing, depending on connection speed.  To add a "loading" message, a custom event is fired at the start and end of the print cycle (before the print dialog comes up).
2026-04-30 21:05:08 -05:00
Gazook89 d04f401c90 Fix lazy loading Print issues
When initiating the print dialog, it first grabs all img elements with `loading="lazy"` attribute, flips that to `eager`,  and then waits for every image to load before resolving a promise and opening the Print dialog.
2026-04-29 23:38:37 -05:00
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
Trevor Buckner 67b4d3b760 Revert "Embed Endpoint" 2026-04-04 21:15:57 -04:00
David Bolack 8ad208600d Clear error in helpers? 2026-03-28 15:01:28 -05:00
David Bolack fe0f0c56af Merge branch 'master' into HTMLDownload 2026-03-16 10:39:14 -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
David Bolack 2791c2259b Rework HTML Download options to use a DOM snatch and grab
Still requires path manipulation.

Stubs the same for Zipfiles.
2026-02-08 19:48:57 -06:00
David Bolack 5faa12a79e Initial Commit
Adds menu items for "regular", zipped, and inline output.

Currently only displays inline output with *no* URL massaging ( all relative path references are still relative )

Displays, not downloads
2026-01-09 16:22:07 -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