Trevor Buckner
39b160e202
Update Dependencies ( #1178 )
...
* Update Dependencies
* Up version number
* Typo
2021-01-02 18:30:11 -05:00
Trevor Buckner
aa065fa4d8
Do not Server-Side Render the markdown ( #1177 )
...
1) Rendering is fast enough on the client we don't need to provide SSR for the brew contents.
2) This leaves our server open to REDOS attacks if users create ridiculously long single lines of text. The Markdown parser slows down with exponential time which becomes noticeable at 10,000+ characters in one line, and at 200,000+ characters will stall the server and eventually crash.
3) This now shows a nice loading circle for the half-second that a page takes to render. If a user tries to load a huge line of text the loading circle will be there instead of a blank white page.
2021-01-02 16:54:50 -05: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
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
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
f8f19efcaa
update several dependencies ( #1154 )
2020-12-11 23:22:02 -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
e127855d84
Add detailed MongoDB Install instructions
2020-11-29 23:20:28 -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
3fbddd2e41
Revert Blockquote list font size
...
Was technically correct, but messed up some existing brews.
2020-11-27 20:57:01 -05:00
Trevor Buckner
5a17697e7e
Merge pull request #1118 from naturalcrit/fixGoogleMetadata
...
Fix metadata in Google docs
2020-11-25 13:26:14 -05:00
Trevor Buckner
6f66fdc6d6
Bump version to 2.10.4
2020-11-25 13:24:10 -05:00
Trevor Buckner
a29fdb43c9
Merge pull request #1108 from ericscheid/fix-inconsistent-list-item-sizing-#1085
...
line-heights consistent in bq li (#1085 )
2020-11-23 19:21:46 -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
Eric Scheid
d9364cf60a
line-heights consistent in bq li ( #1085 )
2020-11-23 03:13:25 +11:00
Trevor Buckner
b0375bddd1
Merge pull request #1099 from naturalcrit/optimize-page-load
...
Fix broken API calls
2020-11-12 17:31:07 -05:00
Trevor Buckner
56795afabb
Fix broken API calls
...
expressStaticGzip was serving empty index files when it saw requests ending in '/' like 'api/newGoogle/'
2020-11-12 17:17:02 -05:00
Trevor Buckner
acf9f464f0
Merge pull request #1098 from naturalcrit/optimize-page-load
...
Compress static files
2020-11-11 22:22:45 -05:00
Trevor Buckner
74c615f156
Cleanup
2020-11-11 22:21:27 -05:00
Trevor Buckner
133af4ea2c
lint
2020-11-11 22:02:17 -05:00
Trevor Buckner
4182c79354
Use a library instead. Checks that the browser is compatible first.
2020-11-11 22:01:42 -05:00
Trevor Buckner
759d986188
lint
2020-11-11 21:41:48 -05:00
Trevor Buckner
600ca90fc0
Serve compressed static files if available
2020-11-11 21:19:49 -05:00
Trevor Buckner
3b52888877
Merge pull request #1078 from RKuerten/update-b-i
...
Updated makeBold and makeItalic functions
2020-10-28 22:26:49 -04:00
Trevor Buckner
e23120a4c6
Reduce duplicate code
2020-10-28 22:25:25 -04:00
Trevor Buckner
38d47f6aa1
Remove console.log slowing things down.
2020-10-27 11:24:07 -04:00
Trevor Buckner
3a25123d7b
Fix internal section link in iFrame
2020-10-27 11:06:07 -04:00
Rodrigo Kuerten
19c04e125a
Linting?
2020-10-26 23:09:36 -03:00
Rodrigo Kuerten
8a13387874
Updated makeBold and makeItalic functions to center cursor when selection is empty
2020-10-26 22:49:09 -03:00
Trevor Buckner
6c813ddab1
Fix links breaking in iFrame
2020-10-26 13:50:37 -04:00
Trevor Buckner
965870f8ed
Merge pull request #1075 from RKuerten/fix-brew-title
...
Changed page title to show the brew title
2020-10-26 13:38:17 -04:00
Trevor Buckner
8add76fb50
Linting
2020-10-26 13:27:37 -04:00
Rodrigo Kuerten
af4ec3d096
Added back the original codeEditor file
2020-10-25 14:13:23 -03:00
Rodrigo Kuerten
b908cd7cbd
Changed page title to show homebrew title whenever possible
2020-10-25 13:55:10 -03:00
Rodrigo Kuerten
6309ec0bfa
Updated makeBold and makeItalic functions to center cursor when selection is empty
2020-10-25 13:55:10 -03:00
Trevor Buckner
45d1bef302
Update README.md
...
Couple of extra steps. Need to fill out the MongoDB setup
2020-10-24 23:41:21 -04:00
Trevor Buckner
7d9e1aad83
Merge pull request #1074 from naturalcrit/BrewRendererIframe
...
Brew renderer iframe
2020-10-24 23:27:17 -04:00
Trevor Buckner
aa2d1f3bc9
Fix missing FontAwesome fonts in iFrame
2020-10-22 12:44:18 -04:00
Trevor Buckner
f6bd1ef513
Update Version number
2020-10-22 10:36:55 -04:00
Trevor Buckner
c75ac3c0f5
Render brew in Iframe to not crash editor
2020-10-21 20:39:43 -04: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
5e2fdcf1e9
Merge pull request #1067 from naturalcrit/compress
...
Fix Shared View uncompressing brew text
2020-10-19 16:44:42 -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
fcb3f9ca26
Merge pull request #1055 from naturalcrit/updateDependencies
...
update dependencies
2020-10-12 15:38:22 -04:00