Ghost/core/server/utils
kirrg001 8680099765 🎨 gscan 1.1.0 & optimisations
refs #8222

- differentiate between errors and fatal errors
- use gscan errors in theme middleware
- Adds a new `error()` method to `currentActiveTheme` constructor which will return the errors we receive from gscan
- In middleware, if a theme couldn't be activated because it's invalid, we'll fetch the erros and send them to our error handler. We also use a new property `hideStack` to control, if the stack (in dev mode and if available) should be shown or the gscan errors (in prod mode, or in dev if no stack error)
- In our error handler we use this conditional to send a new property `gscan` to our error theme
- In `error.hbs` we'll iterate through possible `gscan` error objects and render them.
- remove stack printing
- stack for theme developers in development mode doesn't make sense
- stack in production doesn't make sense
- the stack is usually hard to read
- if you are developer you can read the error stack on the server log
- utils.packages: transform native error into Ghost error
- use `onlyFatalErrors` for gscan format and differeniate fatal errors vo.2
- optimise bootstrap error handling
- transform theme is missing into an error
- add new translation key
- show html tags for error.hbs template: rule
2017-06-06 13:07:50 +07:00
..
packages 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
asset-hash.js 🐛 Refresh assetHash on theme override (#7430) 2016-09-23 13:05:44 +02:00
blog-icon.js 🙇 Blog icon utils and publisher.logo for JSON-LD (#8297) 2017-04-11 18:32:06 +02:00
cached-image-size-from-url.js 🐛 fix image size timeout (#8283) 2017-04-05 21:58:26 +01:00
ghost-version.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
gravatar.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
image-size-from-url.js 🐛 fix image size timeout (#8283) 2017-04-05 21:58:26 +01:00
index.js 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
labs.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
make-absolute-urls.js 🎨 source out url utils from ConfigManager (#7347) 2016-09-20 15:59:34 +01:00
markdown-converter.js replace custom showdown fork with markdown-it (#8451) 2017-05-15 18:48:14 +02:00
mobiledoc-converter.js 🎨 internalApps -> apps.internal 2017-05-31 16:12:11 +01:00
pipeline.js Pipeline util tests, clean & fix 2015-11-03 09:14:44 +00:00
read-csv.js Add CSV parser for csv read utility 2016-06-07 10:47:56 +01:00
remove-open-redirect-from-url.js Remove open redirect by removing double slashes from redirects (#7247) 2016-08-23 13:47:59 +02:00
sequence.js post-scheduling 2016-06-14 10:52:13 +02:00
social-urls.js Add helpers for facebook & twitter urls 2016-05-17 16:39:58 +01:00
tokens.js 🎨 remove token logic from user model (#7622) 2016-11-07 11:18:50 +00:00
url.js 🐛 https image urls if accessed over SSL (#8373) 2017-05-15 13:09:48 +02:00
visibility.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
zip-folder.js 🎨 Ghost bootstrap: optimise requires (#8121) 2017-03-13 20:07:12 +00:00