0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-22 07:08:40 +00:00
Commit Graph

755 Commits

Author SHA1 Message Date
Víctor Losada Hernández 305a668799 Merge branch 'master' into Open-Sans---Installed-vs-Google-Fonts 2026-05-22 22:48:16 +02:00
Gazook89 029d2c9f33 Merge branch 'master' into Lazy-Load-Images 2026-05-22 15:04:17 -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 137b6bc690 remove unused 300 & 600 font weights
Only 400 and "800" are used in the codebase for Open Sans.  And, we've only ever had up to 700 as available weights, so everything that is set to "800" is actually getting weight 700 (which looks better).
2026-05-01 11:03:52 -05:00
Gazook89 d3566d896b Move Code Bold/Light to fonts directory 2026-04-30 22:28:56 -05:00
Gazook89 e34c5f9b32 Add font files, remove google fonts references
Adds a `shared/naturalcrit/styles/fonts` directory, and Open Sans font files for the 4 weights we were pulling from Google Fonts.
2026-04-30 22:28:04 -05: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
Gazook89 a2e5688ede Add lazy loading to images 2026-04-28 22:21:35 -05:00
G.Ambatte af98694e48 Experimental fix for broken internal document links 2026-04-05 21:16:23 +12: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
Víctor Losada Hernández 8d18529c6d linting 2026-03-03 23:44:02 +01:00
Víctor Losada Hernández a29dd1fa62 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into vitreum-to-vite 2026-03-02 00:01:18 +01:00
Víctor Losada Hernández bff71319e9 Merge pull request #4646 from Gazook89/Custom-Snippet-Allow-Inline
Custom Snippets: Allow Inline
2026-02-27 22:51:13 +01:00
David Bolack 1f7662adb7 Merge branch 'master' into HTMLDownload 2026-02-27 09:59:13 -06:00
Víctor Losada Hernández 0a6c0a1eae not sure why those were like that 2026-02-25 18:27:48 +01:00
Víctor Losada Hernández d1d89d033e Merge branch 'master' of https://github.com/naturalcrit/homebrewery into vitreum-to-vite 2026-02-24 20:52:48 +01:00
Víctor Losada Hernández 533a79d4e2 last of tooltips 2026-02-23 14:10:25 +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
Víctor Losada Hernández ba4b30228a proper tooltips 2026-02-19 14:04:54 +01: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 7a89f942fe Merge branch 'master' into HTMLDownload 2026-02-06 17:00:25 -06:00
Víctor Losada Hernández 390ff68a6b stable version, small fixes 2026-01-30 18:56:24 +01:00
Víctor Losada Hernández d6b763e62d update import paths 2026-01-23 18:44:51 +01:00
Víctor Losada Hernández 14a2e3f8fd Merge branch 'master' of https://github.com/naturalcrit/homebrewery into vitreum-to-vite 2026-01-22 22:38:18 +01:00
Víctor Losada Hernández cc65b6826d linting 2026-01-22 15:55:03 +01:00
Víctor Losada Hernández fc8656e05b all imports 2026-01-20 22:14:34 +01:00
Víctor Losada Hernández 0d6c3c7e33 fix module.exports 2026-01-20 19:56:37 +01:00
Víctor Losada Hernández 9b93be7e23 first stage, unfinished 2026-01-20 19:40:52 +01: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 31c034c029 Rework Marked custom HTML renderer to skip preprocess step
Marked Variables are getting cleared when the custom HTML renderer runs, because Marked.parse re-runs the whole pipeline, including the preprocessor.

Preprocess should only be run once globally during the pipeline, or the original results get overwritten (Marked Variables clears its global array of variables each time it is run)
2025-11-19 23:53:39 -05:00
Víctor Losada Hernández 8d2744d106 Merge branch 'master' into Move-Nav.JSX 2025-11-10 23:38:21 +01:00
Gazook89 f9f33955bc Merge branch 'master' into move-codeEditor-to-components 2025-11-09 23:30:53 -06:00
Gazook89 6db4bf2274 Merge branch 'master' into Move-Nav.JSX 2025-11-09 23:24:21 -06:00
Trevor Buckner 1c8ef9ff3e Merge branch 'master' into move-SVGs-to-components 2025-11-09 18:37:20 -05:00
Trevor Buckner e6e66ec1cc Merge branch 'master' into Move-Nav.JSX 2025-11-09 18:19:28 -05:00
Trevor Buckner af348e7b2c Merge branch 'master' into move-markdown.js 2025-11-08 21:47:02 -05:00
Gazook89 c5aa774daa Move markdown.js and markdownlegacy.js
Moves the two files up a level, directly in `/shared/`.  Everything else is just updating paths for that.
2025-11-04 22:29:28 -06:00
Gazook89 29fe6430ce Move codeEditor to components directory
This simply moves the codeEditor folder to the components directory.  `codeEditor.jsx` simply builds a component which is then used elsewhere, and isn't shared between client and server, so it should be in the client directory.

Arguably it could go in `client/homebrew/editor` but I think the `/homebrew/` folder should be eliminated down the line and it's contents just re-sorted.

When working on the editor right now it's a pain to switch between `shared` and `client` hunting for the right file.
2025-11-04 13:12:56 -06:00
Gazook89 c38cc77fd0 Move SVG components to components folder
Move the SVGs out of the `shared` directory, closer to where they are actually used.  They are svg jsx files, setup as components, so i've moved them to the components directory.

Deleted `combat.svg.jsx` because we don't use it anywhere.

renamed the remaining two to be more descriptive of the image for additional clarity.
2025-11-04 12:52:12 -06:00
Gazook89 fc569e560b Move renderWarnings from shared to client
Moving this component to the component folder so it's closer to where it is actually used.  Not moving to the `homebrew` folder because ultimately i think pretty much everything in that folder should move to the components as well (`homebrew` isn't a helpful folder distinction).

Deletes a directory, moves 2 files.
2025-11-03 21:50:31 -06:00
Gazook89 081fd6f39d Move nav.jsx from shared to client directory
Moving the one file, changing a lot of imports (18 files), and deleting a directory.
2025-11-03 20:58:00 -06:00
Trevor Buckner 873a009833 Merge branch 'master' into pr/4451 2025-11-02 22:51:27 -05:00
Trevor Buckner af5720c7e2 Update to marked-variables v1.0.4 2025-11-02 22:48:25 -05:00
David Bolack 7e4facb478 Remove greater than and less than from evaluation.
Use calc's more concise regex

Remove errant space.
2025-10-16 10:45:00 -05:00
David Bolack c9f1413a2d Merge branch 'master' into issue_4201 2025-10-16 10:34:26 -05:00