0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 07:02:38 +00:00
Commit Graph

6215 Commits

Author SHA1 Message Date
David Bolack
bb18ed7eda Merge branch 'master' into Issue_1430_Unique_HeaderIDs 2024-08-20 13:41:29 -05:00
David Bolack
a6969a9ce2 Merge branch 'master' into actualPageNumber 2024-08-20 13:38:26 -05:00
dependabot[bot]
f8895721fc Bump mongoose from 8.5.2 to 8.5.3
Bumps [mongoose](https://github.com/Automattic/mongoose) from 8.5.2 to 8.5.3.
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Automattic/mongoose/compare/8.5.2...8.5.3)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 18:36:57 +00:00
David Bolack
ba340f033a Merge branch 'master' into preservePREColons 2024-08-20 13:36:29 -05:00
Trevor Buckner
4c30a8f6a3 Merge pull request #3641 from naturalcrit/dependabot/npm_and_yarn/stylelint-16.8.2
Bump stylelint from 16.8.1 to 16.8.2
2024-08-20 14:35:39 -04:00
David Bolack
cbcb712587 Merge branch 'master' into Issue_241 2024-08-20 13:34:47 -05:00
Trevor Buckner
187b6a9e8a Merge branch 'master' into dependabot/npm_and_yarn/stylelint-16.8.2 2024-08-20 14:27:37 -04:00
Trevor Buckner
2816a39ff9 Merge pull request #3652 from dbolack-ab/saveTheClones
Prevent reload from clobbering modified fresh clones
2024-08-20 14:27:24 -04:00
David Bolack
1ad88c2fca Merge branch 'master' into actualPageNumber 2024-08-20 13:25:24 -05:00
David Bolack
9203cc2a6a Merge branch 'master' into preservePREColons 2024-08-20 13:24:24 -05:00
David Bolack
9e19ba2d4e Merge branch 'master' into saveTheClones 2024-08-20 13:22:56 -05:00
David Bolack
a706c9ff9b Merge branch 'master' into Issue_241 2024-08-20 13:22:25 -05:00
David Bolack
4957a0d2ef Flip which arror is which. 2024-08-20 13:18:48 -05:00
David Bolack
727f2bd80e use replaceState instead 2024-08-20 13:15:32 -05:00
Trevor Buckner
11790fa438 Merge branch 'master' into dependabot/npm_and_yarn/stylelint-16.8.2 2024-08-20 13:53:56 -04:00
Trevor Buckner
c4049ec5fa Merge pull request #3642 from naturalcrit/dependabot/npm_and_yarn/react-router-dom-6.26.1
Bump react-router-dom from 6.26.0 to 6.26.1
2024-08-20 13:53:35 -04:00
Trevor Buckner
02fca27f85 Merge branch 'master' into dependabot/npm_and_yarn/react-router-dom-6.26.1 2024-08-20 13:51:07 -04:00
Trevor Buckner
7f717b92fd Merge pull request #3653 from naturalcrit/dependabot/npm_and_yarn/elliptic-6.5.7
Bump elliptic from 6.5.6 to 6.5.7
2024-08-20 13:50:52 -04:00
dependabot[bot]
e2272b078b Bump elliptic from 6.5.6 to 6.5.7
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.6 to 6.5.7.
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.6...v6.5.7)

---
updated-dependencies:
- dependency-name: elliptic
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 17:47:02 +00:00
dependabot[bot]
01161752c6 Bump react-router-dom from 6.26.0 to 6.26.1
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.26.0 to 6.26.1.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.26.1/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 17:46:53 +00:00
Trevor Buckner
3237a4f2eb Merge branch 'master' into dependabot/npm_and_yarn/stylelint-16.8.2 2024-08-20 13:45:58 -04:00
Trevor Buckner
d87e07e9ba Merge pull request #3649 from naturalcrit/dependabot/npm_and_yarn/stylistic/stylelint-plugin-3.0.1
Bump @stylistic/stylelint-plugin from 3.0.0 to 3.0.1
2024-08-20 13:45:38 -04:00
dependabot[bot]
82529e0b06 Bump stylelint from 16.8.1 to 16.8.2
Bumps [stylelint](https://github.com/stylelint/stylelint) from 16.8.1 to 16.8.2.
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint/stylelint/compare/16.8.1...16.8.2)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 17:44:18 +00:00
dependabot[bot]
641303d1ad Bump @stylistic/stylelint-plugin from 3.0.0 to 3.0.1
Bumps [@stylistic/stylelint-plugin](https://github.com/stylelint-stylistic/stylelint-stylistic) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/stylelint-stylistic/stylelint-stylistic/releases)
- [Changelog](https://github.com/stylelint-stylistic/stylelint-stylistic/blob/main/CHANGELOG.md)
- [Commits](https://github.com/stylelint-stylistic/stylelint-stylistic/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@stylistic/stylelint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-20 17:44:14 +00:00
Trevor Buckner
845c2eca76 Merge pull request #3650 from naturalcrit/dependabot/npm_and_yarn/googleapis/drive-8.11.1
Bump @googleapis/drive from 8.11.0 to 8.11.1
2024-08-20 13:42:58 -04:00
David Bolack
e957f40775 Revert previous simplification as it breaks the original purpose of this PR
Added test for inside a code block.
2024-08-20 12:17:51 -05:00
David Bolack
3985afade9 Remove need for Definition exceptios
Retool original `:` break to insert `\n\n`s between each `:` so that
the definition lists never have a chance for a mismatch.

Rename token to "hardbreak"
Add tests for hardBreaks for `:`, `::`, and `:::` which should verify it works and does not collide with definitionlists.
2024-08-20 11:46:43 -05:00
Gazook89
f5ee55d0ca keep current page number within existing page range
Make it so that if a user enters a page number higher than the total page count, it jumps them to last page.  if lower than 1, it jumps them to first page.
2024-08-19 23:40:21 -05:00
Gazook89
2cf73698e8 white space lint 2024-08-19 23:38:48 -05:00
Gazook89
28a06348ab style tool groups, minor tweaks to spacing 2024-08-19 23:15:02 -05:00
Gazook89
9510b4d097 wrap each set of toolbars into groups
Allows more styling options, including flex wrapping by group rather than individual button.
2024-08-19 23:14:45 -05:00
Gazook89
37c8ea4fd7 Add total page count and some styling
Displaying the total page count near the current page number means we can lose the bottom right toolbar entirely (the renderer could be added to top toolbar, or just left for the metadata info in title bar).
2024-08-19 23:01:55 -05:00
Gazook89
9adc3e2e1a linting 2024-08-19 22:49:38 -05:00
Gazook89
fd00a9f81d remove some console logs and some linting 2024-08-19 22:46:25 -05:00
Gazook89
720e43e9d9 update page increment/decrement buttons
putting the `pageInput - 1` modifier in the `scrollToPage` method allows for more understandable button function ('back button' is `- 1` and 'forward button' is `+ 1`).
2024-08-19 22:43:41 -05:00
Gazook89
176977dd2a change input type to 'text'
Changing input type to text removes the "spinner" controls from within the text box.  The spinner buttons are an accessibility issue (the tiny buttons are tiny), and we already have better buttons for incrementing/decrementing page number.

Text box only accepts numbers.
2024-08-19 22:40:50 -05:00
Gazook89
a42b867bcb create handler function for controlled input
Moved onChange handler function to a component method and simplified it a smidge.

Must use parseInt now because the input type will change to 'text' rather than 'number'
2024-08-19 22:38:46 -05:00
Gazook89
1196a1577f update minZoom and maxZoom variable names
Forgot to update the zoom variable names after making them all uppercase at their assignments.
2024-08-19 22:35:35 -05:00
Gazook89
54b11b1a4c refactor useEffect for updating currentPage state
The current page and the current page input share the same value, so the useEffect hook can be simplified.
2024-08-19 22:34:32 -05:00
Gazook89
7fa9b3cdd2 rearrange state declarations for pages
totalPages shouldn't need to be in state, since this component won't be changing it.

renamed pageNumberInput to just pageInput.  Was just something that happened in the course of working on it.

currentPage doesn't need to have it's own state separate from pageInput, they should always be the same *value*.
2024-08-19 22:32:02 -05:00
Gazook89
2f42c3f857 change top level constants to all caps
Better matches style of top level constants elsewhere in repo
2024-08-19 22:27:49 -05:00
David Bolack
67e868b5ee Rewrite path oncomponant load for cloned brews to prevent losing active changes on the "new" document. 2024-08-19 20:35:23 -05:00
David Bolack
3a81521e6f Work around users using Definition lists as paragraph indents. 2024-08-19 19:40:55 -05:00
David Bolack
a30608a8ae Promote : paragraph breaks shortcut to a token. 2024-08-19 10:36:26 -05:00
dependabot[bot]
6a129aebdb Bump @googleapis/drive from 8.11.0 to 8.11.1
Bumps [@googleapis/drive](https://github.com/googleapis/google-api-nodejs-client) from 8.11.0 to 8.11.1.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/drive-v8.11.0...drive-v8.11.1)

---
updated-dependencies:
- dependency-name: "@googleapis/drive"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-19 03:58:19 +00:00
David Bolack
184f182b3a Short term fix for the colons in codeblocks issue. 2024-08-18 21:52:29 -05:00
Gazook89
05dd5e4c04 Change .toolbar position to absolute
Set as relative position, the toolbar (and mysteriously, the pageInfo box) would jump up 29px (toolbar height) when the "next page" button was clicked.  absolute pos fixes this.
2024-08-18 18:51:46 -05:00
Gazook89
499c640a11 Move the Toolbar component out of the iframe
The website UI should stay out of the iframe if possible.  Otherwise, users can style the UI on their brew which may or may not be a pain, and it's simple enough to avoid it.
2024-08-18 18:50:36 -05:00
Gazook89
5a11b7918e refactor slider onChange and button onClick
Moved the zoomLevel state assignment to a newer useState hook function, making it easier (and shorter) to update that state within event handlers.

The slider onChange is a single easy line, and the buttons handlers are two lines for clarity.
2024-08-18 00:02:49 -05:00
Gazook89
36ab6923ed remove zoomInput state property
zoomLevel and zoomInput should always be the same, so I've removed one.
2024-08-17 23:43:32 -05:00