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

2692 Commits

Author SHA1 Message Date
G.Ambatte
eb852b8045 Add IDB Proxy 2024-10-26 09:50:07 +13:00
G.Ambatte
07e7f3e70c Merge branch 'master' into refactorVersionHistory 2024-10-25 20:54:34 +13:00
G.Ambatte
28894adeab Add error check for no brew found 2024-10-25 11:17:44 +13:00
Víctor Losada Hernández
9770fea3fd update navitems call as suggested
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-10-24 21:13:49 +02:00
Víctor Losada Hernández
422257743e accept navitems suggestion
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-10-24 20:39:59 +02:00
G.Ambatte
e3619bb1fc Add global flag to regex 2024-10-25 00:11:02 +13:00
G.Ambatte
db1fdca3ab Automatically check for SCRIPT tags 2024-10-24 20:45:12 +13:00
G.Ambatte
c2f56833f3 Merge branch 'addAdminFixScriptTool-#3801' of https://github.com/G-Ambatte/homebrewery into addAdminFixScriptTool-#3801 2024-10-24 17:21:00 +13:00
G.Ambatte
d3cc5c890b Display number of SCRIPT tags detected in brew 2024-10-24 17:20:55 +13:00
G.Ambatte
8eac8eff4b Merge branch 'master' into addAdminFixScriptTool-#3801 2024-10-24 16:22:29 +13:00
Víctor Losada Hernández
55a50ce261 always stretch 2024-10-24 01:23:26 +02:00
Víctor Losada Hernández
5b675918ad real fix for the meta tab 2024-10-24 01:10:47 +02:00
Víctor Losada Hernández
70046e00f8 fix min-width in meta tab 2024-10-24 01:07:52 +02:00
Víctor Losada Hernández
e129eb2f5d Merge branch 'fix-snippetbar-behaviour' of https://github.com/5e-Cleric/homebrewery into fix-snippetbar-behaviour 2024-10-24 01:04:23 +02:00
Víctor Losada Hernández
56c9413ab5 next iteration 2024-10-24 01:04:22 +02:00
Víctor Losada Hernández
04baabc27d Merge branch 'master' into addAdminFixScriptTool-#3801 2024-10-23 21:25:36 +02:00
Víctor Losada Hernández
66451a3b1e Merge branch 'master' into refactorVersionHistory 2024-10-23 21:24:21 +02:00
Víctor Losada Hernández
41cbb67155 Merge branch 'master' into fix-snippetbar-behaviour 2024-10-23 21:21:45 +02:00
G.Ambatte
27c5f86205 Merge branch 'master' into addAdminFixScriptTool-#3801 2024-10-24 07:32:52 +13:00
G.Ambatte
361d1c1aff Merge branch 'master' into refactorVersionHistory 2024-10-24 07:32:09 +13:00
Víctor Losada Hernández
88e5f26dd8 not render snippets element if empty 2024-10-23 20:16:30 +02:00
Víctor Losada Hernández
ddfccba822 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-notification-client-side 2024-10-23 19:48:45 +02:00
Víctor Losada Hernández
069d054e30 remove console logs and lint 2024-10-23 19:47:12 +02:00
Víctor Losada Hernández
1f7ff4386b fix html in notifs 2024-10-23 19:45:47 +02:00
Trevor Buckner
6373c398bc Fix scroll PR when no hash 2024-10-23 13:45:10 -04:00
Víctor Losada Hernández
7a78408415 Merge branch 'add-notification-client-side' of https://github.com/5e-Cleric/homebrewery; branch 'master' of https://github.com/naturalcrit/homebrewery into add-notification-client-side 2024-10-23 19:33:14 +02:00
Víctor Losada Hernández
52311f989d Merge branch 'userpage-to-func-comp' of https://github.com/5e-Cleric/homebrewery into userpage-to-func-comp 2024-10-23 17:03:02 +02:00
Víctor Losada Hernández
b9bf9c7e70 "Refactor UserPage component: removed unnecessary import, updated function signature, and moved useState hook declaration" 2024-10-23 17:03:00 +02:00
Víctor Losada Hernández
49db31426c Merge branch 'master' into refactor-errorBar-to-functional-and-using-dialog 2024-10-23 12:48:42 +02:00
Víctor Losada Hernández
45ada35a11 Merge branch 'master' into userpage-to-func-comp 2024-10-23 12:48:17 +02:00
Víctor Losada Hernández
ce31d30ed7 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into refactor-brewItem-component 2024-10-23 12:48:01 +02:00
Víctor Losada Hernández
68831c759f initial commit 2024-10-23 12:45:13 +02:00
Víctor Losada Hernández
9d2a305f03 initial commit 2024-10-23 09:02:23 +02:00
Gazook89
5ab867f21e adjust prev/next page buttons to meet expectations
i hope
2024-10-22 22:36:13 -05:00
Víctor Losada Hernández
999a96b5ce "Rename dismissKeys to dismisskeys in Dialog component and its usage" 2024-10-22 21:46:57 +02:00
Trevor Buckner
d5f498cbf9 Merge branch 'master' into scroll-to-element 2024-10-22 14:09:49 -04:00
Trevor Buckner
5040b9528f cleanup 2024-10-22 14:08:20 -04:00
Trevor Buckner
83a48b8d0c Simplify observer 2024-10-22 13:58:35 -04:00
Trevor Buckner
9fbdd24d01 Cleanup 2024-10-22 13:52:34 -04:00
Trevor Buckner
5b136f651c Call scrollToHash from our existing "frameDidMount`
`frameDidMount` is equivalent to using iframe.addEventListener('load');

Let's not add a new listener and just use the existing event we already have. Functionality still works.
2024-10-22 13:03:12 -04: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