0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-09 22:48:39 +00:00
Commit Graph

328 Commits

Author SHA1 Message Date
G.Ambatte d534eddb29 Remove unnecessary useEffect import 2024-10-11 13:14:53 +13:00
G.Ambatte 9099db5ea1 Remove obsolete state and event handlers 2024-10-11 11:56:29 +13:00
G.Ambatte a9a8b4b9bb Shift static height style to LESS file 2024-10-11 11:55:51 +13:00
G.Ambatte 5d29d40c97 Implement suggested change 2024-10-11 11:42:03 +13:00
G.Ambatte 4291284252 Merge branch 'master' into experimentalDeploymentIdentification 2024-10-11 11:10:28 +13:00
Víctor Losada Hernández 6456c22c61 testing mutation Observer, don't review this yet 2024-10-09 21:33:26 +02:00
Gazook89 d6d6cc1e29 Add View Mode Options
Adds a new AnchoredBox component that is functionally a clone of the "saving error" notifications, but drops a lot of the JS in favor of the new (chrome-only!) CSS Anchor Positioning API.  In subsequent commits, either alternate styling or a polyfill will be added non-supported browsers.

The box contains a few inputs that modify the CSS applied to `.pages`, most critically a "start on right" toggle for the Facing Pages mode.
2024-10-06 21:51:44 -05:00
Trevor Buckner ae123a8310 Change the other page number values as well 2024-09-27 11:35:01 -04:00
G.Ambatte 1f047890ab Change default value of currentEditorCursorPageNum 2024-09-27 23:32:19 +12:00
Víctor Losada Hernández 2e5ebb861e simplify logic 2024-09-17 19:50:39 +02:00
Víctor Losada Hernández e92c169e71 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-09-16 23:01:40 +02:00
Trevor Buckner c07c02f1d9 Remove unused variable 2024-09-15 21:44:02 -04:00
Trevor Buckner 85401ba71b Fix BrewRenderer scrolling to 0 2024-09-15 21:26:49 -04:00
Víctor Losada Hernández e213eb0a78 "Refactor BrewRenderer: removed iframe load event listener, simplified page scrolling logic, and inlined getPageContainingElement functionality" 2024-09-15 18:37:27 +02:00
Víctor Losada Hernández 422829cbd8 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-09-15 16:52:12 +02:00
Trevor Buckner d4fa5d55d0 Merge branch 'master' into pr/3484 2024-09-14 19:15:12 -04:00
Trevor Buckner 76c9f2ee71 Lint 2024-09-14 18:58:23 -04:00
Trevor Buckner fa2874b18f Let brewRenderer pass changes up, and inherit values down 2024-09-14 18:50:38 -04:00
Trevor Buckner 3ef91cb1ea Add check for scroll event complete/ lift page state up 2024-09-12 12:55:11 -04:00
David Bolack 7a37bf47c5 Bodge Render side mirroring back into place. 2024-09-07 21:33:51 -05:00
Víctor Losada Hernández 3360b4e829 refctor logic 2024-09-07 19:12:59 +02:00
Víctor Losada Hernández 9e1a532105 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into scroll-to-element 2024-09-07 18:45:03 +02:00
G.Ambatte cc7fe99760 Initial functionality pass 2024-08-29 21:26:24 +12:00
David Bolack a4f30d687d Merge branch 'master' into Issue_241_Part_II 2024-08-28 21:17:10 -05:00
G.Ambatte a59135430c Fix missing comma 2024-08-26 15:30:58 +12:00
G.Ambatte bdf2c97942 Merge branch 'master' into experimentalHeaderNavigation 2024-08-26 15:28:46 +12:00
Trevor Buckner 4b0b56dd35 Lint the jsx files 2024-08-24 23:55:17 -04:00
Trevor Buckner 3377d6645d Tidy up brewRenderer 2024-08-24 23:53:44 -04:00
David Bolack e27e61aaca Bind livescrolling when done via scrollbars. 2024-08-24 00:47:06 -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 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 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
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
Gazook89 83244485ab Move scrollToPage to toolbar component
Keeps toolbar functions within the toolbar component and reduces props that need to be sent down.
2024-08-20 15:15:36 -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 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 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 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 8be3154865 rename functions/attributes
updateZoom() => handleZoom

updateZoom prop => onZoomChange

More clarity of prop versus handler function.
2024-08-17 20:48:30 -05:00
Gazook89 9aa7c67c5b remove "makeZoom" function
The makeZoom function is redundant if we just insert the style a little further down when the `.pages` div is initialized, as a `style` attribute on the tag.
2024-08-17 20:41:59 -05:00
Víctor Losada Hernández f0765b5aaa "refactored ToolBar component to use a single state object, and updated styles in toolBar.less" 2024-08-15 20:05:23 +02:00
Víctor Losada Hernández 1452920fbd Merge branch 'master' of https://github.com/naturalcrit/homebrewery into pdf-tools 2024-08-15 17:41:27 +02:00
G.Ambatte 933451b1ec Merge branch 'master' into experimentalHeaderNavigation 2024-08-01 12:45:29 +12:00
G.Ambatte e3586f0734 Fix errors introduced during merge conflict resolution 2024-07-31 22:17:31 +12:00
G.Ambatte 8d49422061 Link clean up 2024-07-31 21:43:49 +12:00
G.Ambatte 59790bd005 Merge branch 'master' into fixLinks-#3547 2024-07-31 21:42:42 +12:00
Trevor Buckner 32fa50d608 Fallback to showing "Blank" theme if themes fail to load. 2024-07-29 12:30:13 -04:00
Trevor Buckner 82f73fb21d cleanup 2024-07-23 17:24:50 -04:00