Gazook89
5ab867f21e
adjust prev/next page buttons to meet expectations
...
i hope
2024-10-22 22:36:13 -05:00
Gazook89
4126188df1
linting
2024-10-21 22:29:58 -05:00
Gazook89
26050e2134
add comment
2024-10-21 22:20:52 -05:00
Gazook89
5c0d6e6012
move formatting of visible pages to toolbar
...
Doesn't need to be set in brewRenderer state and passed as a prop, when it can just do it's work directly in the toolbar.
2024-10-21 22:18:25 -05:00
Gazook89
de7b13bc15
Add some comments and cleanup
...
Little changes like removing console.logs and adding comments.
2024-10-21 22:13:12 -05:00
Gazook89
b6bd7ccf67
Merge branch 'master' into Intersection-Observer
2024-10-21 21:33:30 -05:00
Gazook89
822d0c7738
Fix NaN/undefined showing on first load
...
Removes currentPage as a variable since it's been replaced.
2024-10-21 21:27:06 -05:00
Gazook89
183dd63021
style change on page text input
...
Reduce the visual prominence of the page input by using a darker background and a text color that matches the rest of the toolbar icons. Darker background still indicates this is an interactive item (is an input), hopefully.
2024-10-21 21:19:49 -05:00
Gazook89
0afc2ab2e6
modify effect to enable Jump Editor button
...
This fixes the "jump editor to preview position" button.
2024-10-21 20:43:32 -05:00
Trevor Buckner
effeef0d67
Merge pull request #3842 from naturalcrit/dependabot/npm_and_yarn/eslint-9.13.0
...
Bump eslint from 9.12.0 to 9.13.0
2024-10-21 13:28:22 -04:00
Trevor Buckner
cf3d5df582
Merge branch 'master' into dependabot/npm_and_yarn/eslint-9.13.0
2024-10-21 11:25:56 -04:00
Trevor Buckner
71cdbf1079
Merge pull request #3843 from naturalcrit/dependabot/npm_and_yarn/superagent-10.1.1
...
Bump superagent from 10.1.0 to 10.1.1
2024-10-21 11:25:41 -04:00
Trevor Buckner
712db7dfa7
Merge branch 'master' into dependabot/npm_and_yarn/superagent-10.1.1
2024-10-21 11:22:46 -04:00
Trevor Buckner
ed48c6664b
Merge pull request #3844 from G-Ambatte/catchIDBErrors
...
Catch IndexedDB errors
2024-10-21 09:59:29 -04:00
Gazook89
119755e23a
Merge branch 'master' into Intersection-Observer
2024-10-21 00:33:56 -05:00
Gazook89
41fdf48ad3
Setup Intersection Observers & more...
...
Bad commit here with too much stuff. I apologize.
This sets up two Intersection Observers: the first captures every page that is at least 30% visible inside the `.pages` container, and the second captures every page that has at least one pixel on the horizontal center line of `.pages`. Both can be arrays of integers (page index).
The "visiblePages" array is duplicated and formatted into a "formattedPages" state, which gets displayed in the toolbar.
The toolbar displays that, unless the user clicks into the page input and enters their own integer (only a single integer, no range), which can then jump the preview to that page on Enter or blur().
The Arrow 'change page' buttons jump the preview back and forth by a 'full set'.
If one page is viewed at a time, this is moved on page a time, and if 10 pages are viewed at a time it jumps the pages by 10.
Left to do: adapt the "jump editor to match preview" divider button to work with new "centerPage".
2024-10-21 00:30:45 -05:00
G.Ambatte
917f20cdd5
Merge branch 'master' into catchIDBErrors
2024-10-21 16:27:30 +13:00
G.Ambatte
0c98f832bb
Add catch to await calls
2024-10-21 16:21:41 +13:00
dependabot[bot]
41a60e6312
Bump superagent from 10.1.0 to 10.1.1
...
Bumps [superagent](https://github.com/ladjs/superagent ) from 10.1.0 to 10.1.1.
- [Release notes](https://github.com/ladjs/superagent/releases )
- [Changelog](https://github.com/ladjs/superagent/blob/master/HISTORY.md )
- [Commits](https://github.com/ladjs/superagent/compare/v10.1.0...v10.1.1 )
---
updated-dependencies:
- dependency-name: superagent
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-21 03:20:23 +00:00
dependabot[bot]
5994e0d0b3
Bump eslint from 9.12.0 to 9.13.0
...
Bumps [eslint](https://github.com/eslint/eslint ) from 9.12.0 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v9.12.0...v9.13.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-21 03:20:07 +00:00
Trevor Buckner
c723f820f7
Merge pull request #3635 from naturalcrit/snippet-bar-wrapping
...
Snippet bar wrapping
2024-10-20 13:04:48 -04:00
Trevor Buckner
0e9021049c
lint
2024-10-20 13:00:05 -04:00
Víctor Losada Hernández
1d663ef38d
last iteration
2024-10-20 12:19:38 +02:00
Víctor Losada Hernández
d3e11ead54
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into snippet-bar-wrapping
2024-10-20 12:19:26 +02:00
Trevor Buckner
79e1f4caf7
Merge pull request #3838 from naturalcrit/Allow-Markdown/styles-to-update-on-any-text-change
...
Allow Markdown/Style to update on any text change
2024-10-19 00:11:44 -04:00
Trevor Buckner
59e397a65a
Merge branch 'master' into Allow-Markdown/styles-to-update-on-any-text-change
2024-10-19 00:10:35 -04:00
Trevor Buckner
6b066c3fd3
Merge pull request #3837 from naturalcrit/dependabot/npm_and_yarn/mongoose-8.7.2
...
Bump mongoose from 8.7.1 to 8.7.2
2024-10-18 14:59:10 -04:00
Trevor Buckner
b7413714be
Merge branch 'master' into dependabot/npm_and_yarn/mongoose-8.7.2
2024-10-18 12:58:04 -04:00
Trevor Buckner
ec49d5e526
Merge pull request #3836 from dbolack-ab/MigrateGlobaltocToggles
...
Migrate .tocGlobalH? toggles
2024-10-18 10:56:33 -04:00
Trevor Buckner
d53a271c9f
Change to .page and tweak spacing/newlines to match other snippets
...
All of our "global" style snippets are just set at `.page`, not `.pages`. This still applies globally but is consistent with our current approach.
2024-10-18 10:53:16 -04:00
Trevor Buckner
9d81f50b60
Remove disabled = false
...
Don't need that tag at all when it's false.
2024-10-18 10:46:59 -04:00
Trevor Buckner
ac766f3b37
Update brewRenderer.jsx
2024-10-18 10:23:56 -04:00
dependabot[bot]
cd09408aa8
Bump mongoose from 8.7.1 to 8.7.2
...
Bumps [mongoose](https://github.com/Automattic/mongoose ) from 8.7.1 to 8.7.2.
- [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.7.1...8.7.2 )
---
updated-dependencies:
- dependency-name: mongoose
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-18 03:37:53 +00:00
David Bolack
631ef795b7
Fix .tocGlobalH?
...
Based on OH DEAR GOD THE LAG! discoveries related to the global toggles, these are being moved from a markup tag to a styles tab insert.
2024-10-17 18:30:31 -05:00
David Bolack
01c4e3ec1f
Merge branch 'master' of github.com:naturalcrit/homebrewery
2024-10-17 18:14:45 -05:00
Víctor Losada Hernández
5a75182aff
changes as requested, wrapping of editor tools, and linting
2024-10-18 00:52:26 +02:00
Víctor Losada Hernández
8538ccabe6
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into snippet-bar-wrapping
2024-10-17 23:47:02 +02:00
Trevor Buckner
a1d2b5314b
Merge pull request #3834 from naturalcrit/DisablePagesHasSelector
...
Disable Global ToC Snippet
2024-10-17 17:05:11 -04:00
Trevor Buckner
f2f06b23fd
Disable Global ToC Snippet
2024-10-17 16:42:57 -04:00
Trevor Buckner
4dd07a3c11
Merge pull request #3815 from G-Ambatte/tweakBrewRendererBackgroundStyle
...
Tweak color of Brew Renderer background text
2024-10-16 16:25:11 -04:00
Trevor Buckner
7888bfa878
Merge branch 'master' into tweakBrewRendererBackgroundStyle
2024-10-16 16:23:47 -04:00
Trevor Buckner
17b77f5460
Merge pull request #3832 from naturalcrit/memoizeRenderPages
2024-10-15 22:41:55 -04:00
Trevor Buckner
d348d1e689
Merge branch 'master' into memoizeRenderPages
2024-10-15 22:41:27 -04:00
Trevor Buckner
2aa60f793d
Fix /new
...
/new starts with no `text` so it will crash without `?.`
2024-10-15 22:39:13 -04:00
Trevor Buckner
72739f28e8
Merge pull request #3831 from naturalcrit/memoizeRenderPages
2024-10-15 22:18:46 -04:00
Trevor Buckner
f1aeea18d4
Only jump when on text panel
2024-10-15 22:07:55 -04:00
Trevor Buckner
321bbba4b8
Rearrange
2024-10-15 22:07:41 -04:00
Trevor Buckner
36af1cdb7f
Update brewRenderer.jsx
2024-10-15 21:47:27 -04:00
Trevor Buckner
0813daf01f
Merge pull request #3826 from naturalcrit/dependabot/npm_and_yarn/react-router-dom-6.27.0
...
Bump react-router-dom from 6.26.2 to 6.27.0
2024-10-15 10:39:10 -04:00
dependabot[bot]
6d137d9ca8
Bump react-router-dom from 6.26.2 to 6.27.0
...
Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom ) from 6.26.2 to 6.27.0.
- [Release notes](https://github.com/remix-run/react-router/releases )
- [Changelog](https://github.com/remix-run/react-router/blob/react-router-dom@6.27.0/packages/react-router-dom/CHANGELOG.md )
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.27.0/packages/react-router-dom )
---
updated-dependencies:
- dependency-name: react-router-dom
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-10-15 14:38:35 +00:00