Ghost/core/server/api
Hannah Wolfe c70fbc2c7e 🎨 Collect & simplify package utils (#8080)
closes #8056

🎨 Collect together the package-related utils
- read directory actually reads a directory of packages
- parse package json is very tighly related to this

🎨 Move filterPaths -> packages.filterPackages
- this function is related to packages, not settings
- move the function to the new utils/packages
- add 100% test coverage

🎨 Simplify filterPackages code
🎨 Simplify reading of packages & themes
- This massively reduces all the complex code in the read packages & themes utils
- Added full test coverage

🎨 Improve & clarify active prop in filterPackages
- active is returned from API endpoints to combine data from multiple sources
- see https://github.com/TryGhost/Ghost/pull/8064#discussion_r103514810

🎨 Better error handling
🔥 Temporarily remove custom error templates
- we will reimplement this later when we have got a better concept of loading the active theme in place
- refs #8079
2017-03-01 14:09:31 +01:00
..
app.js Theme Browse API endpoint (#8022) 2017-02-21 14:59:03 +00:00
authentication.js 🐛 🎨 old accesstokens are not cleaned up (#8065) 2017-03-01 10:12:03 +00:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
db.js 🔥 🎨 Themes & settings misc cleanup (#8061) 2017-02-27 23:30:49 +01:00
index.js 🎨 optimisations for brute (#7867) 2017-01-23 22:44:39 +01:00
invites.js 🎨 add urlFor('admin') and increase usage of urlFor helper (#7935) 2017-02-02 18:51:35 +00:00
mail.js 🎨 😎 config env usages (#7929) 2017-02-03 18:25:39 +00:00
notifications.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js 🎨 Collect & simplify package utils (#8080) 2017-03-01 14:09:31 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Fixed issue where all only a few subscribers where exported via CSV. (#7925) 2017-02-08 11:37:09 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js 🔥 🎨 Themes & settings misc cleanup (#8061) 2017-02-27 23:30:49 +01:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js ghost auth: sync email (#8027) 2017-02-23 18:04:24 +00:00
utils.js replace auto increment id's by object id (#7495) 2016-11-17 09:09:11 +00:00