0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server
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
..
adapters 🎨 Move scheduling and storage in adapters/ (#8435) 2017-05-15 12:52:01 +02:00
admin grunt dev admin livereload (#8176) 2017-03-30 13:27:07 +01:00
api 😝 replace removeSync by sync (#8513) 2017-06-01 19:11:50 +07:00
apps 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
auth 🚑 Disable remote authentication (#8346) 2017-04-24 18:56:49 +01:00
blog 🎨 internalApps -> apps.internal 2017-05-31 16:12:11 +01:00
config 🎨 add cache control configurations into the default config 2017-05-31 16:12:11 +01:00
controllers/frontend Posts per page as theme-config (#8149) 2017-03-14 18:03:36 +01:00
data 🎨 Support LTS imports (#8498) 2017-06-04 11:53:00 +02:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
mail 🐛 escape blog title for mail header (#8453) 2017-05-12 15:09:45 +02:00
middleware 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
models 🔥 remove posts.markdown field (#8497) 2017-05-31 16:46:29 +02:00
permissions 🐛 fix invite permissions for editor (#7889) 2017-01-25 12:07:31 +00:00
public 🎨 Use svg icons in default templates (#8343) 2017-05-15 13:43:58 +02:00
settings 🐛 fix settings cache (#8506) 2017-06-04 17:52:22 +07:00
themes 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
translations 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
utils 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
views 🎨 gscan 1.1.0 & optimisations 2017-06-06 13:07:50 +07:00
app.js 🐛 Fix the config for compression (#8226) 2017-04-03 10:58:07 +02:00
errors.js 🛠 use Ignition for logging/errors (#7869) 2017-01-23 11:04:01 +00:00
filters.js Misc grunt /dev updates 2015-05-28 20:25:14 +01:00
ghost-server.js Theme loading part 1 (#7989) 2017-02-22 00:26:19 +01:00
i18n.js 🎨 rename language to locale and use en as default locale (#8490) 2017-05-31 16:05:49 +01:00
index.js 🎨 Move scheduling and storage in adapters/ (#8435) 2017-05-15 12:52:01 +02:00
logging.js 🐛 forward missing logging config: rotation 2017-02-17 18:24:14 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js 🎨 settings inconsistency (#8381) 2017-04-24 18:41:00 +01:00