0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 14:18:40 +00:00
Commit Graph

6442 Commits

Author SHA1 Message Date
Gazook89 c5033db336 add editing of input functionality
Currently uses uncontrolled inputs with a `defaultValue` attribute set to the values passed in via props.  The input can then be edited, and when `Enter` is pressed, it updates the stored value state.  Later, this can be updated to be trigger with `Tab` or clicking outside the active input element.
2024-09-18 21:00:24 -05:00
Gazook89 36aa4ea508 Add click handler for readTags to open text input
Clicking on a readTag now converts that tag to a text input, and maintains the tag value.  It also closes any other open text inputs amongst the tags (but leaves the "new tag" input open).
2024-09-17 23:50:59 -05:00
Gazook89 d5c5b4315b Render tags as "write" or "read"
Tags are now either "readTag" or "writeTag", with the former being a div with the tag value and the latter a text input with the value.

Minor class name change in LESS.
2024-09-17 23:28:56 -05:00
Gazook89 d505e4e24c Render element for each value from props
Take an array of values from props, load it into valueContext state with an "editing" boolean for each value.  Then, when rendering the component, take each value in the valueContext array and create a div for each --

at this point, if the value is "being edited", it returns a div with text "editing".  If not being edited, it returns a div with the value as text.

Nothing is being edited at this point since that functionality doesn't exist yet.
2024-09-17 23:16:06 -05:00
Gazook89 ea7f18e3b0 Merge branch 'master' into Functional-Tag-Editor 2024-09-17 14:50:31 -05:00
Gazook89 e8e16f4d66 Initial commit: Rename component, set basic structure
No actual functionality implemented yet, just renames the component from "StringArrayEditor" to "TagInput", for brevity at the possible cost of clarity.  For now, the original StringArrayEditor is kept and named "TagInput-class.jsx" so that I can reference it as I work on the functional component.
2024-09-17 14:46:56 -05:00
Trevor Buckner a8e5a96c98 Merge pull request #3733 from naturalcrit/fix-history-state-snippetbar-error
fix
2024-09-17 15:33:57 -04:00
Víctor Losada Hernández 61d77b4d2d fix 2024-09-17 19:55:50 +02:00
Víctor Losada Hernández 30e042635c Merge pull request #3724 from dbolack-ab/Pagella
Add Pagella Font family to Blank
2024-09-17 08:11:13 +02:00
David Bolack 3c04d491e6 Merge branch 'master' into Pagella 2024-09-16 18:34:07 -05:00
David Bolack 41e08831c6 Update font format. 2024-09-16 18:30:59 -05:00
Trevor Buckner 32c583ece8 Merge pull request #3634 from naturalcrit/nav-wrapping 2024-09-16 19:29:51 -04:00
Víctor Losada Hernández a92b44427d lint 2024-09-16 23:17:12 +02:00
Víctor Losada Hernández 5961e9042a merge from master 2024-09-16 23:11:27 +02:00
Trevor Buckner 471de9df9f Merge pull request #3692 from 5e-Cleric/more-style-snippets
Style snippets, more page sizes, A3, A5, Card
2024-09-16 16:55:58 -04:00
Trevor Buckner 398e6ef6f2 Slight rearranging 2024-09-16 16:53:55 -04:00
Víctor Losada Hernández bb59f0bbae moving page sizes around 2024-09-16 22:38:58 +02:00
Víctor Losada Hernández c50ffe0723 linting 2024-09-16 22:38:08 +02:00
Víctor Losada Hernández 9bb21ddd04 Merge branch 'more-style-snippets' of https://github.com/5e-Cleric/homebrewery into more-style-snippets 2024-09-16 22:20:54 +02:00
Víctor Losada Hernández 746cd34087 suggested changes 2024-09-16 22:20:51 +02:00
Víctor Losada Hernández 313727035b suggested changes 2024-09-16 22:18:13 +02:00
Trevor Buckner 1a8611c528 Merge branch 'master' into more-style-snippets 2024-09-16 16:07:47 -04:00
Trevor Buckner f7aa9346e9 Merge pull request #3711 from G-Ambatte/experimentalLocalStorageHistory
Store limited Brew History in Local Storage
2024-09-16 16:05:28 -04:00
G.Ambatte 83a7636b6f Simplify historyExists state logic 2024-09-17 07:41:34 +12:00
G.Ambatte 53c05a3ef6 Remove unused default item 2024-09-17 07:27:52 +12:00
Trevor Buckner e20e681888 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 11:10:45 -04:00
Trevor Buckner f8fef1187c Merge pull request #3689 from dbolack-ab/GlobalToCToggles
Add Style Tab Snippets for Globally toggling additional header inclusion
2024-09-16 11:06:21 -04:00
Trevor Buckner a866b45c55 Merge branch 'master' into GlobalToCToggles 2024-09-16 09:45:35 -04:00
G.Ambatte 8ceb422156 Separate bundled setState calls 2024-09-16 19:40:11 +12:00
G.Ambatte 8315df33ae Change empty slot logic 2024-09-16 19:39:51 +12:00
G.Ambatte 59f6f40ace Add seconds to display options 2024-09-16 19:24:39 +12:00
G.Ambatte 91f9a76af2 Remove spaces from code indentation 2024-09-16 19:20:14 +12:00
G.Ambatte ae7404eb1f Remove comments 2024-09-16 19:15:16 +12:00
G.Ambatte 7a2fecf502 Set archiveBrew object directly
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2024-09-16 19:07:42 +12:00
Trevor Buckner dfd3b99232 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 01:50:54 -04:00
Trevor Buckner a953bf0555 Merge pull request #3731 from naturalcrit/dependabot/npm_and_yarn/express-static-gzip-2.1.8 2024-09-16 01:44:48 -04:00
Trevor Buckner 88ff10d229 Merge pull request #3732 from naturalcrit/Linting 2024-09-16 01:44:34 -04:00
Trevor Buckner 8d479b8cd1 Lint whitespace changes 2024-09-16 01:42:44 -04:00
Trevor Buckner 63675a46e0 Lint more things 2024-09-16 01:42:21 -04:00
Trevor Buckner 5cc5eec619 Lint toolbar and snippetbar 2024-09-16 01:41:46 -04:00
Trevor Buckner b5490e3a53 Lint editor.jsx 2024-09-16 01:40:21 -04:00
Trevor Buckner 1645a5acf4 Lint App.js
Just whitespace changes
2024-09-16 01:39:44 -04:00
Trevor Buckner 98c5b798a7 Merge branch 'master' into experimentalLocalStorageHistory 2024-09-16 01:03:29 -04:00
Trevor Buckner 295d878c3d Merge branch 'master' into dependabot/npm_and_yarn/express-static-gzip-2.1.8 2024-09-16 01:02:24 -04:00
Trevor Buckner a283438b28 Merge pull request #3484 from dbolack-ab/Issue_241_Part_II 2024-09-16 00:51:04 -04:00
Trevor Buckner 48bdc417fa More logic simplification 2024-09-16 00:39:04 -04:00
dependabot[bot] d2117259eb Bump express-static-gzip from 2.1.7 to 2.1.8
Bumps [express-static-gzip](https://github.com/tkoenig89/express-static-gzip) from 2.1.7 to 2.1.8.
- [Release notes](https://github.com/tkoenig89/express-static-gzip/releases)
- [Commits](https://github.com/tkoenig89/express-static-gzip/compare/v2.1.7...v2.1.8)

---
updated-dependencies:
- dependency-name: express-static-gzip
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-16 03:50:51 +00:00
Trevor Buckner 25a40e31c5 Remove console logs 2024-09-15 22:31:29 -04:00
Trevor Buckner a353425d07 More cleanup 2024-09-15 22:13:41 -04:00
Trevor Buckner c07c02f1d9 Remove unused variable 2024-09-15 21:44:02 -04:00