0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-26 20:22:42 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
G.Ambatte
42878ea99d Merge branch 'master' into addMetadata-#820 2022-04-13 09:13:37 +12:00
Charlie Humphreys
9f69763572 fix deletion request 2022-04-06 11:14:34 -05:00
Charlie Humphreys
92d8027640 update app to use a single endpoint for google and non-google stored brews 2022-03-24 08:13:34 -05:00
G.Ambatte
a11e93ef54 Initial pass at social metadata tags 2022-03-15 18:47:46 +13:00
Alexey Sachkov
78d4487c58 Fix linter errors 2021-12-29 21:30:03 +03:00
Alexey Sachkov
8a3f52b704 [NFC] Add display name for custom React components
This improves readability of "Components" tab from React Development Tools extension for Chrome
2021-12-29 21:18:54 +03:00
Trevor Buckner
f4529594a2 Revert "Add <meta> tags to template" 2021-11-03 22:07:58 -04:00
G.Ambatte
95f1561f0d Change to locally hosted thumbnail image 2021-10-30 18:57:53 +13:00
G.Ambatte
056024372b Fix button arrow size. 2021-10-30 18:25:51 +13:00
G.Ambatte
cd8962f68b Nudge Metadata Editor elements 2021-10-30 18:14:46 +13:00
G.Ambatte
bade8ad32f Remove showThumbnail from MetadataEditor props 2021-10-30 18:14:21 +13:00
G.Ambatte
785b859d63 Changed label from thumbnail URL to thumbnail 2021-10-30 14:03:01 +13:00
G.Ambatte
de39ef938a Added placeholder to text input 2021-10-30 14:02:09 +13:00
G.Ambatte
6295b7561e Modularize default icon location 2021-10-30 13:51:59 +13:00
G.Ambatte
defae3cc3a Add overflow control to URL textbox 2021-10-30 13:51:28 +13:00
G.Ambatte
47c2b4bbde Add max-height to thumbnail preview 2021-10-30 13:38:41 +13:00
G.Ambatte
029077b92b Default thumbnail to visible rather than hidden 2021-10-30 13:26:08 +13:00
G.Ambatte
ed042a66a4 Fix label line height 2021-10-29 12:03:13 +13:00
G.Ambatte
7499a0d9ab Add thumbnail preview to Metadata Editor 2021-10-29 11:54:56 +13:00
G.Ambatte
20d7193fb2 Add thumbnail to metadata and saving functions 2021-10-28 00:29:42 +13:00
Gazook89
45101b7c09 Add Share to Reddit and Copy Share URL to Share Menu 2021-10-04 16:34:40 -05:00
Gazook89
0d2624bf3b Merge branch 'master' into metadata-panel-css-tweak 2021-08-16 13:30:07 -05:00
Trevor Buckner
425d03f6b5 Link in metadata panel 2021-08-16 10:16:25 -04:00
Gazook89
a7e6d0a513 Update metadataEditor.less "small" text 2021-08-14 23:34:12 -05:00
Gazook89
c4c5e21ce0 Vertically center button labels
Set labels as inline-flex containers and vertically align children to center.
2021-07-29 12:28:02 -05:00
Gazook89
0c0ba0b6ca Update metadataEditor.less
- Fix Publish button and following small text so there is no overlap
- set `nowrap` on checkbox inputs/labels so that the labels do not wrap to the next line from their input.
- set min-width on values so that text boxes shrink to the same width; and can flex to any larger size.
2021-07-29 11:26:41 -05:00
Trevor Buckner
2661e2cfa0 Update all naturalcrit links to https 2021-06-28 20:58:00 -04:00
G.Ambatte
70bdb07c1e Update client/homebrew/editor/metadataEditor/metadataEditor.jsx
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2021-06-09 21:42:12 +12:00
G.Ambatte
23e773ce64 Update client/homebrew/editor/metadataEditor/metadataEditor.jsx
Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2021-05-18 16:37:13 +12:00
G.Ambatte
3b34fe72b9 Lint fix. 2021-05-17 19:23:35 +12:00
Sean Robertson
34f620c59b Fix 'Share to Reddit' link for Google brews
Fix 'Share to Reddit' generating incorrect links for brews stored on Google Drive
2021-05-17 12:16:22 +12:00
Trevor Buckner
468b7319d1 Unify brew structure in all pages 2021-02-20 21:59:18 -05:00
Trevor Buckner
ee4ecc0b41 Default 'legacy' if not set. Auto-change styles.
* Fix brew styles overwriting each other.

* Word wrapping, start fixing spacing on Title letter

* Fix \page in legacy brews when not at line start

* Fix Page Padding

* Set 'legacy' as default value if not set in brew saved file.
2021-02-08 15:09:09 -05:00
Trevor Buckner
e2cd7d9f07 Legacy renderer (#1184)
* Include two versions of Marked.js

* Include two versions of Marked.js

* Working two different render pipelines

Adds stylesheet "styleLegacy.less"
Adds markdownHandler "markdownLegacy.js"
The BrewRenderer will switch between these and the new pipeline dependent on the "version" prop passed in.

* Mustache-style div blocks

* Legacy snippets & columnbreak

* Codemirror styling for Div Blocks

* Lint

* Codemirror highlights for inline Divs as well

These will turn red `{{class Content}}`

Multi-line divs will turn purple

```
{{class,class2
content
}}
```

No real need for these to be different colors. Just for testing.

* More lint

* Update dependencies.

* Adding Button to switch render pipelines

* Update Marked.js

* Popup alert to refresh page when renderer changed

* Don't compress files in Development (very slow)

* Block DIV or inline Span depending on {{ placement

* \column emits a Div instead of Span

* Allow share page to use new renderer

* {{ divs no longer need empty lines. Spans work in lists.

* Typo

* Typo

* Enforce \page must be at start of line. Code cleanup.

* Inject newlines after/before {{/}} to avoid needing blank lines

* Fixes issues with tables.

* Remove console.log

* Fix spacing issue for Spans

* Move things from Brewrenderer to Markdown

Try to keep all custom text fiddling in one spot.

* Rename variables

* Update Font-Awesome to v5.15. Fix style issues on popups.

* Update {{ Divs/Spans, Fix nested hilighting

* Fixed Spans/divs with no tags or just commas

* Use blacklist for {{ to allow more characters

* Update package-lock.json

* Update all icons to Font-awesome 5

* V3 hidden behind config variable

Add "globalThis.enable_v3 = true" in the console to enable.

* lint
2021-02-02 20:38:25 -05:00
Trevor Buckner
22a9799674 Update vitreum (#946)
- Updates Vitreum to v6.0.1 + some custom fixes.
  - Stylesheets must be imported with `require('./sheet.less');` but can also can now share stylesheets between jsx components.
  - Should eliminate a lot of security concerns with older nested dependencies.
  - Changed a lot of files to make this work
- Also removes dependency on PicoRouter in favor of React-Router
2020-05-19 01:36:31 -04:00
Timothy Cyrus
7239b89108 Update metadataEditor.jsx 2020-04-16 20:24:01 -04:00
Timothy Cyrus
50cc757a5c Update metadataEditor.jsx 2020-04-16 20:24:01 -04:00
Trevor Buckner
2839846ec0 Lint 2 2019-02-14 13:54:35 -05:00
Trevor Buckner
5b8aa5bb19 Change the popup warning on the metadata editor 2019-02-14 13:54:35 -05:00
Trevor Buckner
f4e7e46a04 Added spaces for lint... 2018-11-08 16:04:14 -05:00
Trevor Buckner
8b3b7cb5aa Found the lint-friendly way to do it. Just needed to pass along the event data. 2018-11-08 16:04:14 -05:00
Trevor Buckner
77081b39b4 Fix metadata not working. Some earlier linting caused the handleFieldChange and handleSystem functions to not have access to event data. Returning these to their pre-lint state for now, but there might be a more lint-friendly way to do this later. 2018-11-08 16:04:14 -05:00
Rae Che
730dde730c MetadataEditor: Mark link as noreferrer 2018-05-31 10:53:07 -04:00
Scott Tolksdorf
f18a181e2e Updating to user create-react-class 2018-04-09 00:12:56 -04:00
Scott Tolksdorf
ed1b5252be lint 2018-04-09 00:12:56 -04:00
Scott Tolksdorf
9285e53e55 Added conditional partial page rendering 2016-12-03 14:49:00 -05:00
Scott Tolksdorf
a634b76117 Fixed a bug with saving while not logged in 2016-11-27 18:55:50 -05:00
Scott Tolksdorf
9e14872f06 Stubbed out a userpage 2016-11-23 23:59:57 -05:00
Scott Tolksdorf
750f5c1330 Added in middleware for retriving brews by a user 2016-11-23 23:41:39 -05:00
Scott Tolksdorf
f4f96253c2 Moved deleting a brew into the emtadata editor 2016-11-23 15:01:46 -05:00