G.Ambatte
bcbf596aa8
Increase minimum height of brewItem in CSS so all four items are always visible.
...
Adjust eslint line in `server.js` to re-enable the test with a slightly higher maximum value.
2021-01-22 21:24:22 +13:00
G.Ambatte
6d219aa701
Unwinding refactored code + corrections.
2021-01-22 17:29:26 +13:00
G.Ambatte
da32845dd1
(WIP) Unwinding refactoring to improve clarity and readability of new functions
2021-01-22 16:44:34 +13:00
Sean Robertson
4073536d96
(WIP) Remove target=_blank and rel=noopener noreferrer from brewItem.jsx to eliminate white flash on User page when clicking link to download source of a brew.
2021-01-22 13:59:15 +13:00
G.Ambatte
5c7a9c92d1
Integrated download function into server.js
...
Remove new function from `Homebrew.Model.js`
Remove `sourceFunctions.jsx` module
2021-01-21 20:27:46 +13:00
G.Ambatte
0e8348f360
Catch zero length filenames
2021-01-21 07:39:08 +13:00
G.Ambatte
e8135fcbb4
Added sanitizeHtml function to Homebrew model to generate HTML from the brew for the source page.
...
Moved `source` page generation function to a new function module. Added option to function to create plain text download with a sanitized filename and made it accessible from a new page: `download`.
Added the `download` item to the BrewItem so it appears on each brew on the User page.
Added `sanitize-filename` dependency to `package.json`.
2021-01-21 00:02:15 +13:00
G.Ambatte
7fccb7e03e
Shift functionality to new file in attempt to reduce code duplication in server.js
2021-01-17 22:07:26 +13:00
G.Ambatte
715ddf2b8c
Initial commit
2021-01-17 18:52:56 +13:00
Alexey Sachkov
19ca1db674
Tweak spelling of username on user page ( #1175 )
...
Fixes #575
2020-12-31 14:12:16 -05:00
Alexey Sachkov
a58384d8d1
Cleanup unneeded "require" ( #1169 )
2020-12-26 21:29:49 -05:00
Trevor Buckner
3dba731dd7
Popup confirmation when switching between google and hb ( #1155 )
...
* Popup confirmation when switching between google and hb
* Allow closing error popup.
* Up version.
2020-12-18 23:51:08 -05:00
Trevor Buckner
8ffea70b2f
Remove metadata on the Homepage ( #1121 )
...
* Remove the metadata button on home page
1) Hopefully make it more clear that the Homepage is meant as a sandbox to test out the site, not a real brew that will be saved.
2) Also, avoid errors resulting from trying to modify the metadata of a brew that doesn't really exist yet.
* Lint
2020-11-27 21:14:15 -05:00
Trevor Buckner
7462e66858
Fix metadata in Google docs
...
Update view counts via service account since modifying another users' file properties requires increased permission scope
2020-11-22 23:53:34 -05:00
Trevor Buckner
d05b819ff2
Fix recent links when transferring to Google Brews
2020-10-19 15:48:44 -04:00
Trevor Buckner
77973f0037
v2.10.1 - Fix brews lost on back button
2020-10-12 14:30:42 -04:00
Trevor Buckner
cc8bf6744b
Move Patreon button
2020-10-08 16:12:12 -04:00
Trevor Buckner
194a9c0c40
Typo
2020-10-07 20:07:28 -04:00
Trevor Buckner
f6f9b768cc
Ensure share links are updated on transfer to google
2020-10-07 20:01:32 -04:00
Trevor Buckner
8fe0148821
Fix Share links
2020-10-07 17:13:37 -04:00
Trevor Buckner
0afb503860
Update Version number & cleanup
2020-10-07 15:02:42 -04:00
Trevor Buckner
864cc7a7bb
Fix issues making brews when not signed in
2020-10-06 14:20:09 -04:00
Trevor Buckner
657a374895
Code Cleanup
...
Remove req, res from update, new, and getFolder google actions
2020-10-06 14:08:51 -04:00
Trevor Buckner
35e1ce0df2
Initial Commit. All seems to be working...?
...
EditPage.jsx and GoogleActions.js need to be cleaned up and shortened...
2020-10-05 23:33:15 -04:00
Trevor Buckner
2d092cb290
Forgot to update styles for BrewItems
2020-05-19 01:45:53 -04: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
e88253f364
Added robots.txt, nofollow in metatags
...
Also noindex on /print/ pages
2020-04-20 13:46:18 -04:00
Trevor Buckner
bdf37d8fe7
Add robots noindex to edit and share pages
2020-04-20 12:15:27 -04:00
Timothy Cyrus
0ea80bd758
Update client/homebrew/pages/userPage/brewItem/brewItem.jsx
...
Co-Authored-By: Trevor Buckner <calculuschild@gmail.com >
2020-04-16 20:24:01 -04:00
Timothy Cyrus
f6d623ace3
Update brewItem.jsx
2020-04-16 20:24:01 -04:00
Timothy Cyrus
63ad8b3411
Update editPage.jsx
2020-04-16 20:24:01 -04:00
Trevor Buckner
6d38a633ef
Cut out the renderPrivateBrews script
2020-02-07 10:16:58 -05:00
Eric Scheid
b3376435b9
purty apostrophes; containerise brew collections
...
NB: .brewItem:nth-child(2n+1) {...} counts all children of the contain, not just the .brewItem elements.
This meant if there were an even number of published brews, the style rule got applied to the wrong unpublished brews because there's an <h1> jigging the count.
2020-02-07 10:16:58 -05:00
Trevor Buckner
6a57542216
Fix links on Home Page
...
Make github issues go to subreddit, update license link to Naturalcrit instead of stolksdorf
2019-05-02 08:38:48 -04:00
Trevor Buckner
72db7fedfb
Remove "Report Issue" from share page
...
Too many users are reporting typos or brew issues thinking the "Report Issue" button is commenting on the document itself, instead of the website. Hoping this limits bug reports to just users who are actually editing documents.
2019-04-08 09:12:48 -04:00
Trevor Buckner
502ef6ad7c
Lint
2019-02-14 13:54:35 -05:00
Trevor Buckner
a26e828f00
Change popup warning if you are the only editor
...
If you are the only editor, it will warn you that the document is about to be permanently deleted.
2019-02-14 13:54:35 -05:00
Trevor Buckner
18a238786e
Hide scrollbar in share page but KEEP SCROLLBAR IN USER PAGE
2019-01-22 13:42:46 -05:00
Trevor Buckner
507f8e0852
Revert "Revert "Merge branch 'master' of https://github.com/naturalcrit/homebrewery ""
...
This reverts commit 0c70162a78 .
2019-01-22 11:26:33 -05:00
Trevor Buckner
0c70162a78
Revert "Merge branch 'master' of https://github.com/naturalcrit/homebrewery "
...
This reverts commit 077511dfa7 , reversing
changes made to facbc5f6dc .
2019-01-22 11:23:35 -05:00
Trevor Buckner
a56a999920
More Lint
2019-01-19 20:11:16 -05:00
Trevor Buckner
71af97e489
Refactored the "Recent Items" navbar component. Greatly simplified the code to about 70% length and made it much easier to read. Results in the same thing.
...
Oh. And it works again. Recent brews should be showing up fine now.
2019-01-19 20:11:16 -05:00
Marius
96466211c7
Make imgur link https in order to display image
...
Newer browsers warn and/or do not display content that gets loaded via HTTP if site is visited via HTTPS.
2018-11-26 20:13:25 -05:00
Rae Che
c5ecb9d57d
ESLint reformatting
2018-05-31 10:53:07 -04:00
Rae Che
796df9a1ac
EditPage: Remove stale bit of React state
2018-05-31 10:53:07 -04:00
Rae Che
a369871a06
ESLint reformatting
2018-05-31 10:53:07 -04:00
Rae Che
e86ce5cf06
PrintPage: Fix potentially inconsistent React state update
2018-05-31 10:53:07 -04:00
Rae Che
c4397d34f8
BrewItem: Mark links as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
66c0c96a4f
EditPage: Mark link as noreferrer
2018-05-31 10:53:07 -04:00
Rae Che
838b64c589
EditPage: Simplify hasChanges.
...
In particular, remove unreachable `return` statement.
2018-05-31 10:53:07 -04:00