0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/themes
Hannah Wolfe 495eee7747 Use "mounting" concept for active theme (#8193)
no issue

🔥 Remove DIRTY HACK for API
- this is no longer needed, because themes get mounted in every case

 Switch to concept of 'mounted' theme
- check if active theme is mounted
- if not, mount it
- mounting is a function OF the active theme

🎨 Move theme middleware to theme module

🎨 Update theme middleware function names
- update the function names and comments to be more representative of their current functions
- this was pretty old and out of date!

🚨 Fixup tests for middleware
- ensure the objects match what we expect
- based partially on theme docs

Update TODO
2017-03-21 10:03:09 +01:00
..
active.js Use "mounting" concept for active theme (#8193) 2017-03-21 10:03:09 +01:00
defaults.json Posts per page as theme-config (#8149) 2017-03-14 18:03:36 +01:00
index.js Use "mounting" concept for active theme (#8193) 2017-03-21 10:03:09 +01:00
list.js Themes API activation permissions & validation (#8104) 2017-03-13 12:44:44 +01:00
loader.js 🎨 🐛 Improve theme lib, middleware & error handling (#8145) 2017-03-13 17:30:35 +01:00
middleware.js Use "mounting" concept for active theme (#8193) 2017-03-21 10:03:09 +01:00
to-json.js Themes API activation permissions & validation (#8104) 2017-03-13 12:44:44 +01:00
validate.js Themes API activation permissions & validation (#8104) 2017-03-13 12:44:44 +01:00