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

58 Commits

Author SHA1 Message Date
Víctor Losada Hernández
4488fe36db "Refactored notification lookup and management functionality in admin API and model, added new endpoints for getting all notifications and deleting a notification by dismiss key." 2024-08-31 12:17:12 +02:00
Víctor Losada Hernández
c79765396d add notif working 2024-08-31 00:04:44 +02:00
Víctor Losada Hernández
36549f3224 "Added 'required' attribute to several form input fields in NotificationAdd component." 2024-08-30 20:25:39 +02:00
Víctor Losada Hernández
e81a9dab1f add good stylings, and lint 2024-08-29 23:40:13 +02:00
Víctor Losada Hernández
65759e18bd clean inputs 2024-08-29 23:39:54 +02:00
Víctor Losada Hernández
0c6c0c9fd6 use actual inputs and textarea with good attributes 2024-08-29 00:23:22 +02:00
Víctor Losada Hernández
51d3d11bff "Refactor notification utils components to use React Hooks instead of createClass" 2024-08-29 00:01:02 +02:00
Víctor Losada Hernández
760c1a9e8c Merge branch 'master' of https://github.com/naturalcrit/homebrewery into experimentalNotificationDB 2024-08-28 22:28:24 +02:00
Víctor Losada Hernández
92e27cda6c "Removed unused imports of 'classnames' and 'create-react-class' from various JSX files. in the Client folder" 2024-05-17 22:31:55 +02:00
G.Ambatte
da0372e44c WIP commit 2023-01-23 15:18:50 +13:00
G.Ambatte
ccd5cacb0c Stub notification deletion function 2023-01-15 23:25:17 +13:00
G.Ambatte
5e2171ceb1 Remove debugging console.log calls 2023-01-15 22:21:06 +13:00
G.Ambatte
b00a962e77 Fix typo 2023-01-15 20:44:41 +13:00
G.Ambatte
04916d8931 Initial notificationAdd functionality 2023-01-15 13:54:19 +13:00
G.Ambatte
9e169aba91 Tweak LookUp title 2023-01-05 10:56:50 +13:00
G.Ambatte
f5c7761c61 Add styling to active tab 2023-01-05 10:52:24 +13:00
G.Ambatte
ec040cc2bb Add DisplayNames 2023-01-05 10:04:45 +13:00
G.Ambatte
a499bb3a54 Add basic Notification Lookup functionality 2023-01-04 23:32:35 +13:00
G.Ambatte
35b4c354f2 Add key prop to Admin tabs 2023-01-04 23:20:11 +13:00
G.Ambatte
f66664a3e2 Tabify Admin page, add Notification tab 2023-01-04 22:49:38 +13:00
G.Ambatte
d7ee004127 Update Admin pages 2023-01-04 22:08:44 +13: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
Trevor Buckner
debe58ff0b Remove unneeded comments 2020-01-28 10:53:07 -05:00
Trevor Buckner
0018627f82 Process brew compression in batches to reduce server load. 2020-01-28 10:53:07 -05:00
Trevor Buckner
a06b29c6f5 Admin controls for compressing old brews 2020-01-23 11:20:31 -05:00
Trevor Buckner
4128670a9f Revert "Merge pull request #867 from naturalcrit/compressBrews"
This reverts commit 94d090277f, reversing
changes made to aeffec1763.
2020-01-23 10:27:30 -05:00
Trevor Buckner
2efb24d692 Lint 2020-01-23 09:47:19 -05:00
Trevor Buckner
bc81e09686 Admin script to compress old brews
Also fully delete the text field after compressed version is saved instead of leaving just an empty field.
2020-01-23 09:38:50 -05:00
Scott Tolksdorf
bf21c3d351 lint 2018-12-06 18:19:43 -05:00
Scott Tolksdorf
52c0462a4f Finished the clean up brew ui 2018-12-06 18:19:43 -05:00
Scott Tolksdorf
1184fe86a5 Removing the admin key, switching to full basic auth 2018-12-06 18:19:43 -05:00
Scott Tolksdorf
7656e53606 Finished stats and brew lookup on admin panel 2018-12-06 18:19:43 -05:00
Rae Che
d0c473878a BrewSearch: Remove stale piece of React state 2018-05-31 10:53:07 -04:00
Rae Che
9e8e403195 HomebrewAdmin: Remove stale piece of React state 2018-05-31 10:53:07 -04:00
Rae Che
8d73ff6833 BrewLookup: Mark links as noreferrer 2018-05-31 10:53:07 -04:00
Rae Che
4bde5fcbf8 HomebrewAdmin: Mark links as noreferrer. 2018-05-31 10:53:07 -04:00
Rae Che
ff0aa56ddc HomebrewAdmin: Remove direct React state mutation. 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
296b066ed3 Added a brew lookup for admin page 2017-01-19 12:28:00 -05:00
Scott Tolksdorf
90a6ac4ef8 removing the architecuter files 2016-12-25 21:46:59 -05:00
Scott Tolksdorf
bd6ba1e497 Removing uneeded files 2016-12-25 21:46:13 -05:00
Scott Tolksdorf
460585f9c9 Admin page link quickfix 2016-08-20 19:58:33 -04:00
Scott Tolksdorf
43ec212be9 Fixed a bad route in the admin page 2016-08-20 13:40:32 -04:00
Scott Tolksdorf
626cba6062 Newlines 2016-05-28 09:41:05 -04:00
Scott Tolksdorf
fc3587d6cb Adding a search to the admin panel 2016-05-17 22:48:06 -04:00
Scott Tolksdorf
413358feaa And forgot about the less files 2016-05-06 14:33:34 -04:00
Scott Tolksdorf
f35950c2c4 added the search api with pagnination, and added a remove invalid brew endpoint to the admin 2016-04-20 01:29:35 -04:00
Scott
256e62095c Quick fix to an incredibly large payload size on the admin page 2016-02-19 22:09:19 -05:00