0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 20:58:40 +00:00
Commit Graph

5831 Commits

Author SHA1 Message Date
Trevor Buckner 3377d6645d Tidy up brewRenderer 2024-08-24 23:53:44 -04:00
Trevor Buckner 5069eadd0a Manual tidying of .less files 2024-08-24 23:53:07 -04:00
Trevor Buckner 7a5b0b32c4 restore deleted line from helpers.js 2024-08-24 23:26:45 -04:00
Gazook89 504bb78a8d switching padding to margin
using `padding-top` was breaking the navbar dropdowns (they would lose focus).
2024-08-24 22:02:43 -05:00
Gazook89 690c683943 select text when clicking into page input 2024-08-24 09:08:19 -05:00
Gazook89 3acf90dfdb Add handlePageChange() to control input
Reintroducing handlePageChange() method to handle the page input separately from the scroll function.  It tests the regex pattern on the string, parses to integer, and sets pageNum state.

scrollToPage also now sets the pageNum state after performing the scroll so the input box matches the new current page.
2024-08-24 09:05:43 -05:00
Gazook89 370c480670 Merge branch 'master' into pr/3499 2024-08-23 22:55:13 -05:00
Gazook89 a351013359 remove some odd if statement in onChange 2024-08-23 22:54:29 -05:00
Gazook89 1f86b4c3d0 add mainRef back in
This was previously in the .pageInfo widget, probably not for any good reason, but I'm moving it to the popups div for probably not a good reason.

It's used to get the parent .pane div, and pull its `height` value which is then passed to the `.brewRenderer` div to set the height.

I tried alternate methods that would make this obsolete (CSS methods mostly), but due to some complexity am just ditching those alternatives and popping this sucker into `.popups` for now.
2024-08-23 22:41:12 -05:00
Gazook89 627a6a732b remove .ppr_msg styling
This message doesn't exist anymore (i'm pretty sure), so this is just unused styling.  Unrleated to the PR, but just minor.
2024-08-23 19:26:41 -05:00
Gazook89 77421c2950 remove .pageInfo widget in bottom of preview
page counter function is in toolbar now, so this isn't necessary.
2024-08-23 19:25:49 -05:00
Gazook89 f3ed174b0e eslint and stylelint
stylelint has a problem with the `:horizontal` pseudo selector in brewRenderer.jsx, which is being used to apply some styling to the custom scrollbars.  As far as i can tell, the selector is not standards-track, so that is probably why.  Not sure if we want to adjsut our stylelint config to allow it?
2024-08-23 19:16:59 -05:00
Gazook89 977d0ea73a eslint 2024-08-23 19:05:23 -05:00
Gazook89 04effa2150 removed whitepsace 2024-08-23 18:59:32 -05:00
Gazook89 7f694e6ca7 fold handlePageChange directly into input onChange
Moved the single-line handler to operate directly in the onChange handler of the input that is calling it.

Considered doing the same with handleZoomChange, but that handler is used by two buttons rather than just one.
2024-08-23 18:58:51 -05:00
Gazook89 769a03916b rename pageInput state variable to pageNum 2024-08-23 18:48:36 -05:00
Gazook89 e3c90a8295 unset padding on brewRenderer in @print
Fixes an issue with the padding being reflected in pdfs as a white stripe at the top.
2024-08-23 18:45:08 -05:00
Gazook89 561ff6283a remove redundant handleScroll() method
handleScroll is replaced by getCurrentPage(), which effectively does the same thing.  The math is slightly different, though very similar, and result seems to be the same.
2024-08-23 18:33:14 -05:00
Víctor Losada Hernández 505ac0c1d5 Merge pull request #3515 from dbolack-ab/Issue_1430_Unique_HeaderIDs
Create globally unique Header IDs when marked parses.
2024-08-23 23:12:02 +02:00
Víctor Losada Hernández 987d1c881b Merge branch 'master' of https://github.com/naturalcrit/homebrewery into Issue_1430_Unique_HeaderIDs 2024-08-23 23:08:20 +02:00
Gazook89 f34107ee1d fix typo 2024-08-23 15:06:48 -05:00
Gazook89 2246944dd2 Remove duplicate ErrorBar/popups tray
Removed duplicated components.

Restyled the popups to accomodate extra height of viewer tools.
2024-08-23 14:40:19 -05:00
Trevor Buckner 717ced28d6 Merge pull request #3662 from naturalcrit/dependabot/npm_and_yarn/babel/preset-env-7.25.4
Bump @babel/preset-env from 7.25.3 to 7.25.4
2024-08-23 01:17:02 -04:00
dependabot[bot] fb836df8d5 Bump @babel/preset-env from 7.25.3 to 7.25.4
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.25.3 to 7.25.4.
- [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.4/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 05:03:02 +00:00
Trevor Buckner fba08262d3 Merge pull request #3661 from naturalcrit/dependabot/npm_and_yarn/babel/plugin-transform-runtime-7.25.4
Bump @babel/plugin-transform-runtime from 7.24.7 to 7.25.4
2024-08-23 01:01:49 -04:00
dependabot[bot] 56582b6b24 Bump @babel/plugin-transform-runtime from 7.24.7 to 7.25.4
Bumps [@babel/plugin-transform-runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-runtime) from 7.24.7 to 7.25.4.
- [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.4/packages/babel-plugin-transform-runtime)

---
updated-dependencies:
- dependency-name: "@babel/plugin-transform-runtime"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-23 04:58:49 +00:00
Trevor Buckner 43e4e43c7c Merge pull request #3663 from naturalcrit/updateEsLintV9
up ESLint to v9.9
2024-08-23 00:57:34 -04:00
Trevor Buckner 3f3f113305 More typos 2024-08-23 00:54:00 -04:00
Trevor Buckner 96e23ee2ea fix accidental deletion 2024-08-23 00:52:48 -04:00
Trevor Buckner c57c9e236b Update config file to new format 2024-08-23 00:49:36 -04:00
Gazook89 32c6224f40 remove console.log 2024-08-22 23:30:36 -05:00
Trevor Buckner 4fa8351f7f Merge pull request #3643 from G-Ambatte/fixMaskSkewing-#3636
Change order of operations in mask img transform
2024-08-22 22:14:46 -04:00
Trevor Buckner fa669f32fc Merge branch 'master' into fixMaskSkewing-#3636 2024-08-22 22:12:10 -04:00
Trevor Buckner a9fe516675 Merge pull request #3657 from naturalcrit/dependabot/npm_and_yarn/stylelint-config-recess-order-5.1.0
Bump stylelint-config-recess-order from 5.0.1 to 5.1.0
2024-08-22 22:09:53 -04:00
Trevor Buckner 6502847b95 Merge pull request #3648 from dbolack-ab/preservePREColons
Fix for the colons in codeblocks issue.
2024-08-22 22:09:34 -04:00
Trevor Buckner eeedc5f7d4 Merge branch 'master' into preservePREColons 2024-08-22 21:53:16 -04:00
Trevor Buckner fff357d08b Make 'block-level' extension. Tweaks to pass new tests
'block-level' because it never occurs inside another block ('inline-level' always occurs inside something else); starts and stops on on its own line without anything else on the same line.
2024-08-22 21:52:40 -04:00
Trevor Buckner e0b69dce14 add more test cases
Test a large number of breaks, and interaction with paragraphs
2024-08-22 21:49:40 -04:00
Trevor Buckner e6c5e6451c Add more tests for edge conflicts with definition lists 2024-08-22 21:46:42 -04:00
Trevor Buckner 26866c337f Add tests to circleci 2024-08-22 21:45:44 -04:00
Trevor Buckner 073076e011 Merge pull request #3654 from naturalcrit/RerouteInvalidPaths
Add catch-all for invalid paths
2024-08-22 16:38:25 -04:00
Trevor Buckner 71b505d55b Merge branch 'master' into RerouteInvalidPaths 2024-08-22 16:37:55 -04:00
Trevor Buckner 40ab2c2283 rearrange code 2024-08-22 14:24:33 -04:00
Trevor Buckner d70c5a6fe3 Merge pull request #3658 from naturalcrit/UpdateMarkedHelperFunctions
Update `cleanURL` helper function to match later Marked version
2024-08-22 11:53:51 -04:00
Trevor Buckner 645c9a122c Update cleanURL helper function to match later Marked version 2024-08-22 11:51:24 -04:00
Trevor Buckner b774c89bdb Merge branch 'master' into RerouteInvalidPaths 2024-08-22 10:41:00 -04:00
dependabot[bot] c75ebb36cb Bump stylelint-config-recess-order from 5.0.1 to 5.1.0
Bumps [stylelint-config-recess-order](https://github.com/stormwarning/stylelint-config-recess-order) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/stormwarning/stylelint-config-recess-order/releases)
- [Changelog](https://github.com/stormwarning/stylelint-config-recess-order/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stormwarning/stylelint-config-recess-order/compare/v5.0.1...v5.1.0)

---
updated-dependencies:
- dependency-name: stylelint-config-recess-order
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-22 03:10:12 +00:00
David Bolack 1c03138968 Merge branch 'master' into Issue_1430_Unique_HeaderIDs 2024-08-21 21:23:09 -05:00
David Bolack 1313772adc Merge branch 'master' into preservePREColons 2024-08-21 21:21:06 -05:00
Víctor Losada Hernández fb06ae0d03 Merge branch 'master' into pdf-tools 2024-08-21 23:07:25 +02:00