Commit Graph
25 Commits
Author SHA1 Message Date
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 460d3fe111 Prevent share view uncompressing text. 2020-10-19 16:37:01 -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 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 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 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 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
Scott Tolksdorf ed1b5252be lint 2018-04-09 00:12:56 -04:00
Scott Tolksdorf 75f83427e0 Added version to model 2017-01-14 13:30:23 -08:00
Scott Tolksdorf 750f5c1330 Added in middleware for retriving brews by a user 2016-11-23 23:41:39 -05:00
Scott Tolksdorf e61bf22788 Added in metadata editor 2016-11-23 14:47:28 -05:00
Scott Tolksdorf 8b3f9ac76a Cleaned up the server file and added methodfs and statics to the model 2016-11-14 22:30:28 -05:00
Scott Tolksdorf 6672dff938 Print page can now load from local storage 2016-11-14 21:31:01 -05:00
Scott Tolksdorf 626cba6062 Newlines 2016-05-28 09:41:05 -04:00
Scott Tolksdorf 9c1fd5b13a Adding both the share and edit ids as unique indexes, should speed up DB query time 2016-05-14 13:15:46 -04:00
Scott Tolksdorf ed7decb42b Adding new navitems and finishing the edit and share page 2016-05-09 16:54:32 -04:00
Scott Tolksdorf 133dd7c144 Trying out a reddit share button, looks promising 2016-05-04 15:25:27 -04:00
Scott Tolksdorf 7145a42cef Updating the welcome text with spelling and default dates for the brew models 2016-01-12 11:50:12 -05:00
Scott Tolksdorf 46186c0de2 Added in the admin page 2016-01-06 20:04:45 -05:00
Scott Tolksdorf 8a4d840717 Edit and sharing should be working, deploying for testing 2015-12-20 14:21:25 -05:00
Scott Tolksdorf ad569f04d8 Finished the monster stat block, using hr's as element modifiers, kinda weird. 2015-12-19 18:26:35 -05:00