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

103 Commits

Author SHA1 Message Date
Trevor Buckner 8e1951ba67 Access google files with Service Account
Using API key is triggering "automation" warnings from Google
2020-12-25 15:15:51 -05:00
Trevor Buckner 980fdf5ad1 Small bug causing crashes with Tags (#1152)
Also: Force Google to always send to trash instead of fully deleting.

Remove unneeded console.logs to speed up server.
2020-12-11 16:18:28 -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 ac2d6fe9a8 Fix share uncompressing views... again 2020-10-19 17:36:58 -04:00
Trevor Buckner 40d120d875 Woops!
Accidentally broke sharing.
2020-10-19 16:56:34 -04:00
Trevor Buckner 57c8c24b20 Lint 2020-10-19 16:38:26 -04:00
Trevor Buckner 460d3fe111 Prevent share view uncompressing text. 2020-10-19 16:37:01 -04:00
Trevor Buckner 1d50cbf684 Update admin.api.js 2020-10-19 16:24:19 -04:00
Trevor Buckner 3a250d3da4 Update admin.api.js 2020-10-19 16:15:41 -04:00
Trevor Buckner d05b819ff2 Fix recent links when transferring to Google Brews 2020-10-19 15:48:44 -04:00
Trevor Buckner bf17d6894f use NanoId as function in Mongoose default
For some reason, Mongoose will reuse the old ID generated if you call nanoid directly. If you wrap it in a function, it will call it new each time a new document is created.

Also updated patreon link :)
2020-10-08 11:03:52 -04:00
Trevor Buckner 28ed2fe8f2 Fix Config spelling (must be all lowercase) 2020-10-07 16:17:05 -04:00
Trevor Buckner 131df2d82a Bug Fix 2020-10-07 15:55:07 -04:00
Trevor Buckner 0f5ec6c40c Bug Test... 2020-10-07 15:48:07 -04:00
Trevor Buckner 39cbadb100 Small Typo 2020-10-07 15:39:37 -04:00
Trevor Buckner 0afb503860 Update Version number & cleanup 2020-10-07 15:02:42 -04:00
Trevor Buckner ed1c589e2d Linting 2020-10-06 14:21:15 -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 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 70430f84e1 Small tweaks and linting 2020-04-14 11:15:05 -04:00
Timothy Cyrus 80db261c88 API Code Cleanup + Alt Endpoints
Added 2 new API Endpoints as alternatives to existing ones:
- PUT /api/:id (same as PUT /api/update/:id)
- DELETE /api/:id (same as GET /api/remove/:id)
2020-04-14 11:15:05 -04:00
Brandon Fryslie 954a393fce Do not force SSL when using Docker 2020-04-03 16:23:13 -04:00
Trevor Buckner e50f0a1f3b Upping number of compressed brews at once 2020-01-23 15:12:25 -05:00
Trevor Buckner e862f65166 Up number of brews compressed at once 2020-01-23 12:57:23 -05:00
Trevor Buckner 347575b0ec Lint 2 2020-01-23 12:24:54 -05:00
Trevor Buckner 4ac922482e Lint 2020-01-23 12:24:54 -05:00
Trevor Buckner 27e7af870a Fixed what was breaking 2020-01-23 12:24:54 -05:00
Trevor Buckner 474b2552fd Fix recent crash 2020-01-23 11:47:21 -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
Trevor Buckner 8adc04a565 Make brand new files also save compressed 2020-01-10 15:55:21 -05:00
Trevor Buckner 1ff3f96f6c Make compression raw (no wrapper). Otherwise small files are actually larger after compression. 2020-01-10 08:59:39 -05:00
Trevor Buckner b289cb1003 lint 2020-01-05 23:59:42 -05:00
Trevor Buckner 3ea3d273a5 Add zlib compression to the "text" field. Now, when a file is saved, the original text field is blanked out and the "compressed" binary version is saved instead. Viewing files in Edit page unzips and views them just fine.
Does not compress old files unless they are opened and resaved by someone. Have not tested on the "share" or "print" pages yet, but should work.
2020-01-05 23:48:50 -05:00
Trevor Buckner f28ed3d52e Try again... 2019-07-01 13:56:27 -04:00
Trevor Buckner c5867dab91 Undo. Didn't work. 2019-07-01 13:20:24 -04:00
Trevor Buckner df4bacf890 Allow cleaning function to work for a full minute 2019-07-01 13:16:26 -04:00
Trevor Buckner f572e671cf Lint 2019-02-14 13:54:35 -05:00
Trevor Buckner d18bd500b1 Fixing delete buttons
Delete should now first remove the current user as an editor, and only delete the file if he was the last editor. Currently, anyone who views your brew is added as an editor and if they delete it, the whole brew is deleted for everyone.
2019-02-14 13:54:35 -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 c1d8796807 Lint 2019-01-19 20:11:16 -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