Gazook89
2ce13f61e1
update relative paths to absolute paths
2025-11-09 23:29:55 -06:00
Trevor Buckner
e6e66ec1cc
Merge branch 'master' into Move-Nav.JSX
2025-11-09 18:19:28 -05:00
Gazook89
c5aa774daa
Move markdown.js and markdownlegacy.js
...
Moves the two files up a level, directly in `/shared/`. Everything else is just updating paths for that.
2025-11-04 22:29:28 -06:00
Gazook89
081fd6f39d
Move nav.jsx from shared to client directory
...
Moving the one file, changing a lot of imports (18 files), and deleting a directory.
2025-11-03 20:58:00 -06:00
Víctor Losada Hernández
7502a260ea
initial commit
2025-10-15 23:21:00 +02:00
Trevor Buckner
63bebe1efd
Lint everything
...
Catching up on a bunch of linting so random changes stop showing up on PRs when the linter is run.
2025-10-06 00:02:24 -04:00
Trevor Buckner
41aebf084b
Make the renderSaveButton() function common between edit/new/home
...
Each of the edit/home/new pages renders its save button differently. This makes it a common function with all the same possible render states (does the document have unsaved changes? Is it already saved? Was it auto-saved?).
- Common save button
- Adds the "save" button to /home page which wasn't there before
- Animates the "save" button in /home and /new when the user makes their first change to signal that yes, you do have to actually click the save button if you want to keep this.
- "reminder... you haven't saved for X minutes" still not functional on /new and /home since that involves more moving pieces.
2025-10-05 21:57:19 -04:00
Trevor Buckner
2c4c4b8f92
Make unsavedChanges state common
...
/editPage.jsx uses `unsavedChanges` state to detect when autosave should fire, or unsaved changes warning should display.
/homePage.jsx uses a similar check (different variables) to detect when to show the popup "save now"! button
/newPage.jsx doesn't do any of this, but probably should pop up a warning when saving hasn't happened for a long time
This commit just gives all of the pages the same common `unsavedChanges` state, calculated in the same way, and updates any sections that depend on that updated state.
This is precursor work to adding "unsaved changes" warnings to all three pages.
2025-10-04 22:17:24 -04:00
Trevor Buckner
ba23763294
Merge branch 'master' into UnifyNewHomeEdit-Structure&Naming
2025-10-02 19:45:42 -04:00
Trevor Buckner
1c6a39363c
Combine handleText/Style/Snippet/Meta functions into common function
...
Also adds any related imports and key names
2025-10-02 19:33:15 -04:00
Trevor Buckner
bcca5fa97d
In /homepage, rename brew state to currentBrew to match /new and /edit
2025-10-02 19:27:45 -04:00
Trevor Buckner
07495b0dea
Make Print/Vault/New common nav buttons to all pages
2025-09-29 12:48:25 -04:00
Trevor Buckner
788324fe31
Merge handText/Style/Snip/MetaChange into handleBrewChange
2025-09-11 22:03:25 -04:00
Trevor Buckner
da8772daa7
Use setXXXPageNum instead of handleXXXPageNum
...
No need for separate wrapper functions when we can just pass the setState functions directly.
2025-09-11 16:14:45 -04:00
Trevor Buckner
93b86632fc
Change from require to import
2025-08-30 20:14:29 -04:00
Trevor Buckner
d01860d4de
Merge branch 'master' into MakeHomePageFunctionalComponent
2025-08-30 19:47:10 -04:00
Trevor Buckner
9c336062c6
Fix typo
2025-08-30 19:39:15 -04:00
Trevor Buckner
2cd47c46f6
Merge branch 'master' into Convert-ErrorNavItem-to-functional-component
2025-08-30 19:35:50 -04:00
Trevor Buckner
8671404bdc
Refactor ErrorNavItem to not need "this" parameter
...
Toward making edit/new/home pages functional, which do not have "this"
2025-08-30 19:35:22 -04:00
Trevor Buckner
518a3434be
Changes fetchThemeBundle helper to not need "this" parameter
...
Looks a bit ugly but this is temporary toward converting edit/home/new into functional components
2025-08-30 19:02:39 -04:00
Trevor Buckner
15c04ef37e
Update homePage.jsx
2025-08-30 17:14:37 -04:00
Trevor Buckner
8cf55932a9
Fix useEffect and Refs; Update fetchThemeBundle to work with functional
2025-08-30 17:10:20 -04:00
Trevor Buckner
759dcb5833
Change functions to const vars
2025-08-30 16:49:54 -04:00
Trevor Buckner
83c3eacf83
Change props and state to functional style
2025-08-30 16:45:47 -04:00
Trevor Buckner
719edd82c5
Moving splitPane over to the components folder
...
Just to reduce the number of changes needed to review on the UI overhaul #4122 PR
2025-07-29 16:35:25 -04:00
David Bolack
9d1601f424
Seems to be working - no idea why...
2025-03-29 19:14:10 -05:00
David Bolack
7525e087ff
Regression Fix WIP
2025-03-29 18:47:03 -05:00
Víctor Losada Hernández
8e37806791
jsx files
2025-03-18 19:47:49 +01:00
Víctor Losada Hernández
163e3927b5
style lint
2025-03-18 19:38:58 +01:00
Trevor Buckner
fb9148ada5
Site runs and all tests pass
2024-11-20 16:21:35 -05:00
Víctor Losada Hernández
3d7d90104b
revert content deletion
2024-11-01 20:37:28 +01:00
Víctor Losada Hernández
0663e82fa1
remove unnecessary space in homepage markdown
2024-10-13 10:58:24 +02:00
Víctor Losada Hernández
6e241c5bcd
remove splitpane parent
2024-10-13 10:53:05 +02:00
Trevor Buckner
25a40e31c5
Remove console logs
2024-09-15 22:31:29 -04:00
Trevor Buckner
81ab9417d3
Clean up unused code
2024-09-15 21:42:55 -04:00
Trevor Buckner
76c9f2ee71
Lint
2024-09-14 18:58:23 -04:00
Trevor Buckner
7e776df4d4
Add Current Page states up into editor components, pass down to children
2024-09-14 18:50:09 -04:00
Víctor Losada Hernández
d50f23354a
minor changes
2024-08-01 15:57:27 +02:00
Víctor Losada Hernández
662a2d776a
Merge branch 'experimental-development' of https://github.com/5e-Cleric/homebrewery into experimental-development
2024-08-01 15:55:09 +02:00
Víctor Losada Hernández
80f07bf0b0
Nav item
2024-08-01 15:55:04 +02:00
Trevor Buckner
915f9aafa8
restore snippetBundle field somehow lost from /new and /home
2024-07-31 17:27:58 -04:00
David Bolack
d2afa7adea
Move fetchThemeBundle into /shared/helpers
...
This might not be the best rework - I was unsure if the *this* that would be available when called would see the appropriate object so I assumed not and pass it as a parameter.
Works, but may be bad form.
2024-07-23 22:17:52 -05:00
Trevor Buckner
ac82e3ecb2
Add to home page
2024-07-23 16:50:29 -04:00
Gazook89
7c9cc25923
update editor ref's in edit, home, and new pages.
2024-05-16 23:29:30 -05:00
Gazook89
78ce8aa6e3
remove unused ref attributes
...
from editPage, homePage, newPage, and printPage, as well as splitPane. The refs were declared, but never used.
2024-05-16 23:25:22 -05:00
David Bolack
bf874c55af
Add a column break before the Tables header on page 2
...
Small formatting fix.
2024-02-23 14:46:13 -06:00
Trevor Buckner
7bb1f16946
Always render currently-edited page first, so variables update across pages properly
2024-02-20 22:56:37 -05:00
Trevor Buckner
d75ea8943b
rewrite Editing and Sharing to better fit
2023-09-14 17:15:05 -04:00
Víctor Losada Hernández
9dc19d996d
reviewed fixes
2023-09-13 23:40:33 +02:00
Víctor Losada Hernández
dbb4476eb4
newline necessary
2023-06-22 23:32:26 +02:00