0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 09:32:51 +00:00
Commit Graph

2371 Commits

Author SHA1 Message Date
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
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
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
ac766f3b37 Update brewRenderer.jsx 2024-10-18 10:23:56 -04: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
f2f06b23fd Disable Global ToC Snippet 2024-10-17 16:42:57 -04:00
Trevor Buckner
7888bfa878 Merge branch 'master' into tweakBrewRendererBackgroundStyle 2024-10-16 16:23:47 -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
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
1c47d743d6 Remove 429 error 2024-10-11 23:20:32 -04:00
Trevor Buckner
086d85c08b Remove Error 55 2024-10-11 23:18:03 -04:00
Trevor Buckner
836dfbade2 SetSaveDelayTo10s 2024-10-11 23:15:03 -04:00
Trevor Buckner
52a7ce9866 Merge branch 'master' into v3.15.2 2024-10-11 23:08:41 -04:00
G.Ambatte
bec830c3b8 Tweak color of Brew Renderer background text 2024-10-12 08:09:51 +13:00
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
c47974cb49 suggested changes 2024-10-10 23:00:39 +02:00
Víctor Losada Hernández
27f939201d Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-vulnerability-admin-pages 2024-10-10 22:54:22 +02:00
Víctor Losada Hernández
47f2703388 remove unrelated change 2024-10-10 22:38:50 +02:00
Víctor Losada Hernández
52e929ee68 remove spaces added 2024-10-10 22:36:59 +02:00
G.Ambatte
ab6861675d Comment out history testing values 2024-10-10 09:07:54 +13:00
G.Ambatte
0deb9073cd Remove obsolete file 2024-10-10 08:57:41 +13:00
G.Ambatte
d5cda45d4d Merge branch 'master' into addIndexedDM-#3763 2024-10-10 08:50:39 +13:00
G.Ambatte
36674f4cf2 Add explicit guard clause to renderHistoryItems 2024-10-10 08:48:14 +13:00
G.Ambatte
618de544bf Remove unnecessary check 2024-10-10 08:43:38 +13:00
G.Ambatte
8f5b421531 Fix infinite loop 2024-10-10 08:34:24 +13:00
G.Ambatte
8db12739d3 Remove obsolete function 2024-10-10 08:34:15 +13:00
Trevor Buckner
e873dcf3a8 Fix error messages crashing page 2024-10-09 14:35:16 -04:00
Trevor Buckner
269dd6107c Merge branch 'master' into experimentalNotificationDB 2024-10-09 11:12:23 -04:00
G.Ambatte
dc66d36b2d Simplify history loading 2024-10-09 19:35:48 +13:00
G.Ambatte
0bd3b53dd1 Merge branch 'master' into addIndexedDM-#3763 2024-10-09 19:00:45 +13:00