Trevor Buckner
1c0eb720ad
Undo
2024-12-24 00:38:36 -05:00
Trevor Buckner
93482f9022
Only list one page when in single page mode
2024-12-24 00:37:03 -05:00
Trevor Buckner
8159c408c8
Move formatVisiblePages
...
After simplifying, this has become a single-line function used in only one place. Can just be placed directly in the one place it is used.
2024-12-24 00:24:52 -05:00
Trevor Buckner
0632d78f71
Remove toolbar checks for empty visiblePages list
...
With `centerPage`, ToolBar will never receive an empty visiblePages array. No need to check if visiblepages.length == 0
2024-12-24 00:18:37 -05:00
Trevor Buckner
c0155052ea
Further simplifying
2024-12-24 00:06:30 -05:00
Trevor Buckner
628b2542a0
Simplify logic for previous/next buttons
2024-12-24 00:02:55 -05:00
Trevor Buckner
85f1da942f
Restore looping over entries. Needed for very fast scrolling
2024-12-23 23:08:30 -05:00
Trevor Buckner
3909d5aef9
remove unused iFrameRef
...
iFrameRef is not used anywhere
2024-12-23 22:48:57 -05:00
Trevor Buckner
f0e047e7cc
Remove loop on intersectionObserver entries
...
Guaranteed to only be one entry each time, since we are attaching each page to its own observers.
2024-12-23 22:43:37 -05:00
Trevor Buckner
d588a92147
Change page range to only display a single range
...
Having multiple page ranges visible is a weird edge case that only happens in two-page view. Simplifying logic to just group all page ranges together if a middle page is partly obscured.
2024-12-23 18:37:20 -05:00
Trevor Buckner
2b7a1e1cb2
Reduce overlapping observer handlers
...
Combine handlePageVisibilityChange and handleCenterPageChange to reduce some of the infrastructure burden for handling centerPage.
2024-12-23 18:35:36 -05:00
Trevor Buckner
c8efca3120
useCallBack is not needed here.
2024-12-23 17:22:50 -05:00
Trevor Buckner
a53eacf055
remove CenterPage from ToolBar props
...
centerPage is not used in the toolbar component.
2024-12-23 17:17:13 -05:00
Trevor Buckner
1b10a4001a
Merge branch 'master' into pr/3845
2024-12-23 11:37:40 -05:00
Trevor Buckner
3f87b9f7d3
Merge branch 'master' into addGoogleRefreshInfoToErrorPage-#3955
2024-12-22 22:30:04 -05:00
Trevor Buckner
32561cf368
Moving to just HBErrorCode 01
...
02 is specifically for 404 errors when the file is actually missing. In that case, refreshing credentials probably won't work. (We should update the errorNav to make this distinction as well.)
2024-12-22 22:19:02 -05:00
Trevor Buckner
e8eedcf6d6
Import polyfill from core-js
...
Possible to have babel automatically detect and import polyfills as needed, but Browserify just can't handle it. Manually importing the one troublesome one into the root of our project.
2024-12-22 21:32:30 -05:00
G.Ambatte
fcfd3171bd
Tweak start of instructions
2024-12-22 18:00:27 +13:00
G.Ambatte
9a6cf8c5d2
Linter fix
2024-12-22 17:53:14 +13:00
G.Ambatte
91d928fd8a
End list properly
2024-12-22 17:52:58 +13:00
G.Ambatte
bca653bc4d
Add instructions to HBErrorCode 01 & 02
2024-12-22 17:52:09 +13:00
Trevor Buckner
962a46a670
Merge branch 'master' into fix-reddit-link-generation-crashing-website-if-encodeURI-fails
2024-12-15 23:46:54 -05:00
Trevor Buckner
cb16b32016
tabs
2024-12-15 23:45:54 -05:00
Trevor Buckner
56f348f7ed
Replace with toWellFormed()
2024-12-15 23:44:56 -05:00
Trevor Buckner
db0df82202
Change imports
2024-12-14 21:31:49 -05:00
Trevor Buckner
870a4c3363
small cleanups
2024-12-09 17:06:26 -05:00
Trevor Buckner
aa951ff96c
Small cleanups
2024-12-09 17:04:16 -05:00
Víctor Losada Hernández
3a20452214
hide unusable editors
2024-12-09 22:18:15 +01:00
Trevor Buckner
bae9fe939d
Merge branch 'master' into Intersection-Observer
2024-12-09 16:16:11 -05:00
Víctor Losada Hernández
3e4ba89ed9
change div selector
2024-12-09 22:11:10 +01:00
Víctor Losada Hernández
2c5c3d40df
revert toolbar changes
2024-12-09 22:08:39 +01:00
Víctor Losada Hernández
213240327d
resolve issues
2024-12-09 22:05:04 +01:00
Víctor Losada Hernández
eca0f59b40
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into adress-small-accessibility-concerns
2024-12-09 21:52:25 +01:00
Víctor Losada Hernández
ee9143fa35
Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-buttons
2024-12-03 20:20:42 +01:00
Víctor Losada Hernández
c62bb53660
turn back checkboxes to default, fix button styles and filter bar to correct font.
2024-12-03 20:16:42 +01:00
David Bolack
e252a39bd2
Implement Gazook89's suggested fix
2024-12-01 11:41:29 -06:00
Víctor Losada Hernández
7c09680939
add vault navitem to share and edit pages
2024-11-27 23:45:25 +01:00
Trevor Buckner
fb9148ada5
Site runs and all tests pass
2024-11-20 16:21:35 -05:00
Trevor Buckner
f4d4334a75
Merge branch 'master' into Functional-Tag-Editor
2024-11-13 13:52:01 -05:00
Víctor Losada Hernández
cf46a975aa
Merge branch 'master' into Update-core-and-reset
2024-11-12 22:05:27 +01:00
Trevor Buckner
2e9c7b1d9b
Shorten label
2024-11-12 00:20:37 -05:00
Trevor Buckner
0ddc3ae5b9
Merge branch 'master' into addAdminFixScriptTool-#3801
2024-11-12 00:16:07 -05:00
Trevor Buckner
8c6c8f861d
Automatically re-check for scripts
...
Adding a separate `keepText` field for the `updateBrew()` API might be a bandaid for something that should be looked at more deeply as a separate refactor, considering `updateBrew()` is configured to just return the stub and not the whole document.
For now, re-scanning for script tags after updating can be as simple as just re-looking up the brew.
2024-11-12 00:08:56 -05:00
David Bolack
4e4463fe4d
Fix Issue 3718 by bounds checking prerender.
2024-11-11 11:17:00 -06:00
Gazook89
9bc4b1fb56
Changes to core.less, reset.less, and toolbar
...
Making some changes to the reset.less so that some default UA button styling is removed.
Then, changing core.less so that the classic "HB" button styling is scoped to a certain class `.colorButton`. This will make it easier to use the button element in other places.
2024-11-10 21:48:01 -06:00
Gazook89
4bad047f93
Merge branch 'master' into Intersection-Observer
2024-11-10 15:56:03 -06:00
G.Ambatte
dc1d40512b
Reinstate length check
2024-11-10 21:45:17 +13:00
G.Ambatte
fcae147723
Merge branch 'master' into addAdminFixScriptTool-#3801
2024-11-10 19:34:17 +13:00
G.Ambatte
b3793a3330
Simplify scriptCount logic
2024-11-10 19:30:57 +13:00
G.Ambatte
952b67aed3
Remove checkForScript state
2024-11-10 19:29:28 +13:00