0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/web/shared/middlewares
Fabien O'Carroll 2d92793b3f
Cleaned up image manipulator (#10282)
no-issue

* Added InternalServerError to resizeImage

* Added a redirect to original image if sharp is missing

* Improved naming - safeMethod -> method

* Updated process method to follow same sharp check pattern

* Refactor safety wrapper into makeSafe function

* Moved generic manipulation error to makeSafe function

* Refactored unsafeProcess to use unsafeResizeImage

* Removed CRAZY catch
2018-12-14 11:54:52 +07:00
..
api Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
image Cleaned up image manipulator (#10282) 2018-12-14 11:54:52 +07:00
validation Added new endpoint to upload square profile images with dimension validation (#9862) 2018-09-24 21:42:58 +02:00
admin-redirects.js
brute.js
cache-control.js
custom-redirects.js Optimised web/ debug logs 2018-10-04 17:43:08 +02:00
emit-events.js Added new site.changed event and webhook trigger service (#10019) 2018-10-19 00:01:30 +05:30
error-handler.js
frontend-client.js Updated blog site components to respect the api version 2018-10-18 19:41:07 +02:00
ghost-locals.js Attached api version to res.locals context 2018-10-18 19:41:07 +02:00
index.js 🐛 Fix last seen for users (#10141) 2018-11-13 18:27:10 +07:00
labs.js
log-request.js
maintenance.js
pretty-urls.js
serve-favicon.js
serve-public-file.js Refactored method urlFor to use versionType instead of admin: true 2018-10-04 16:49:55 +05:30
static-theme.js
uncapitalise.js
update-user-last-seen.js 🐛 Fix last seen for users (#10141) 2018-11-13 18:27:10 +07:00
url-redirects.js Optimised web/ debug logs 2018-10-04 17:43:08 +02:00