0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00
Commit Graph

135 Commits

Author SHA1 Message Date
Charlie Humphreys
f40b4b2f30 Update brew text merge and split functions to include metadata
#1838
2021-11-18 23:23:05 -06:00
Trevor Buckner
3b64cb43c1 Merge pull request #1684 from G-Ambatte/addFAQ-#810
Add FAQ page, using current FAQ from the subreddit
2021-09-15 14:37:23 -04:00
Trevor Buckner
ca491067f1 linting 2021-09-15 14:36:34 -04:00
Trevor Buckner
0e4c830435 Migrate Mongoose to v6 2021-09-15 14:15:44 -04:00
G.Ambatte
8f0b3ff569 Add FAQ page, using current FAQ from the subreddit 2021-09-15 18:46:32 +12:00
Trevor Buckner
07729a7529 Merge pull request #1617 from blitzher/master
Moved server start log to `app.listen` callback
2021-09-13 22:44:15 -04:00
Trevor Buckner
e070601b28 Make Changelog split text and style 2021-09-09 23:17:46 -04:00
blitzher
7f0029d8a4 Merge branch 'naturalcrit:master' into master 2021-08-31 19:41:10 +02:00
Trevor Buckner
0e5ed35b6c Fixing drop caps inside columnWrap 2021-08-30 13:34:12 -04:00
blitzher
c541fd551e Removed spaces before and after arrow in callback function 2021-08-29 00:54:51 +02:00
blitzher
2b89efc923 Moved server start log to app.listen callback 2021-08-29 00:49:13 +02:00
Trevor Buckner
7977e869c3 Small tweaks. Move "Create your own" button slightly. 2021-08-16 00:52:34 -04:00
Trevor Buckner
3f395ad4f3 Lint 2021-08-15 00:51:22 -04:00
Trevor Buckner
7021715543 /v3_preview page will show a v3 version of the homepage 2021-08-10 00:51:30 -04:00
Trevor Buckner
004f3f184f Merge pull request #1455 from G-Ambatte/reduceWelcomeTextUsage
Make WelcomeText and ChangeLogText conditional
2021-07-30 17:50:26 -04:00
Trevor Buckner
99d2f6d48d avoid sending two copies of welcome text in the same brew 2021-07-30 17:47:11 -04:00
Trevor Buckner
ebd28f41a2 replace :- with just - 2021-07-30 17:29:36 -04:00
G.Ambatte
85fa73b9bf Remove welcomText+changelogText from default props 2021-07-29 19:02:48 +12:00
G.Ambatte
fdfea36614 Shift HomePage to use a minimal brew 2021-07-29 19:00:26 +12:00
G.Ambatte
7fa1e16b5a Create minimal Changelog brew 2021-07-28 17:51:35 +12:00
G.Ambatte
c6d0a2e2ad Make WelcomeText and ChangeLogText conditional 2021-07-26 09:55:04 +12:00
G.Ambatte
f31fe6cbf0 Prepend 'CLONE:- ' to title of cloned brew 2021-07-25 16:54:24 +12:00
Trevor Buckner
e07bb1b3c2 Don't save style tab if user never put anything in it 2021-06-24 23:29:01 -04:00
Trevor Buckner
d61fda9cff Fix regression with saving. 2021-06-20 16:05:36 -04:00
Trevor Buckner
20053ad548 Merge pull request #1393 from G-Ambatte/updateSourcePage
Incorporate Brew.Style into Source + Download pages
2021-06-20 14:33:29 -04:00
Trevor Buckner
9b97e0dd87 redundant variable 2021-06-20 14:32:23 -04:00
Trevor Buckner
8e304fa483 tab 2021-06-20 14:30:00 -04:00
Trevor Buckner
70832be810 Fix brews failing to sanitize on user page 2021-06-20 13:53:26 -04:00
G.Ambatte
68ed6019f6 Add new access type (raw) and simplify adding other types in the future. Add functionality for raw access to skip splitting Style data from Brew Content. 2021-06-19 15:50:48 +12:00
Sean Robertson
4638c3e1d9 Update server.js
Initial commit of incorporating `brew.style` into /source and /download pages
2021-06-18 11:24:20 +12:00
Trevor Buckner
9d80f21ae7 Fix empty Google Brews crashing user page 2021-06-11 13:46:03 -04:00
Trevor Buckner
f80d5e6b52 Fix sanitizing brews in user page, hide own G brews on other profiles 2021-06-10 14:22:12 -04:00
Trevor Buckner
fc8be9c8fb Babel to support ES6 Javascript in older browsers 2021-06-10 00:09:29 -04:00
Trevor Buckner
51aba937f5 Fix CSS highlighting 2021-06-07 11:51:02 -04:00
Trevor Buckner
e67fadef02 Separate "style" and "metadata" panels 2021-06-05 15:58:31 -04:00
Trevor Buckner
ab473b12da Apply asyncHandler to getBrewFromId 2021-03-26 22:55:46 -04:00
Trevor Buckner
83c444ce11 Central Error Handling 2021-03-26 22:50:03 -04:00
Trevor Buckner
b98586150f Condense Download and Source paths also 2021-03-17 12:35:50 -04:00
Trevor Buckner
2f094801ca Move "get brew" logic to common function
Also add centralized error handling middleware
2021-03-16 00:06:01 -04:00
Trevor Buckner
6a12518ac1 Hardcode prefix 2021-03-12 22:24:36 -05:00
Trevor Buckner
c4db94e86f Tweaks to work with current Master 2021-03-07 00:34:47 -05:00
Trevor Buckner
08492b943b Merge branch 'master' into pr/1198 2021-03-06 22:42:15 -05:00
Trevor Buckner
5b242989da Handle cached text
The NEW page saves to the browser LocalStorage the current text in case the user goes to a different page before saving. The new "import" function wasn't working since it was being overwritten by any cached values if they existed from an earlier "new" page.
2021-03-04 22:58:40 -05:00
G.Ambatte
2f9bd00d70 Merge importPage functions into newPage. 2021-03-04 22:01:11 -05:00
G.Ambatte
ed23578dcf Lint fixes. 2021-03-04 21:57:33 -05:00
G.Ambatte
41ecbb62a2 Redirect new to import. 2021-03-04 21:57:32 -05:00
G.Ambatte
32ef36d7f7 Initial commit: Import from Share ID appears to be functioning correctly. 2021-03-04 21:57:32 -05:00
Christian Brickhouse
68811eb3fc Implementing magic item snippet from Issue 671. (#842)
* Implementing magic item snippet from Issue 671.

* Fixes syntax errors. Function moved into existing magic module.

* Implementing magic item snippet from Issue 671.

* Fixes syntax errors. Function moved into existing magic module.

* Magic Item Snippet, <dl>, `:` for blank line

Co-authored-by: Trevor Buckner <calculuschild@gmail.com>
2021-02-24 21:58:11 -05:00
Alexey Sachkov
7057422077 Enable caching of static assets (#1217)
* Enable caching of static assets

* Remove dependency on mime package

Since we only care about two file extensions at the moment,
there is no need to grab the whole package just to avoid
calling 'endsWith' twice.
2021-02-19 17:58:02 -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