Ghost/core/test/unit/server_helpers
Hannah Wolfe f8b498d6e7 🔥 No more availableThemes (#8085)
no issue

🎨 Switch themes API to use config.availableThemes
- this gets rid of the only places where settings.availableThemes are used

🔥 Get rid of settings.availableThemes
- this is no longer used anywhere
- also get rid of every related call to updateSettingsCache

🔥 Replace config.availableThemes with theme cache
- Creates a tailor-made in-memory cache for themes inside the theme module
- Add methods for getting & setting items on the cache
- Move all references to config.availableThemes to use the new cache
- This can be abstracted later to support other kinds of caches?

🎨 Start improving theme lib's API
Still TODO: simplifying/clarifying:
- what is the structure of the internal list
- what is the difference between a package list, and a theme list?
- what is the difference between reading a theme and loading it?
- how do we update the theme list (add/remove)
- how do we refresh the theme list? (hot reload?!)
- how do we get from an internal list, to one that is sent as part of the API?
- how are we going to handle theme storage: read/write, such that the path is configurable

🎨 Use themeList consistently
🎨 Update list after storage
2017-03-02 17:53:48 +01:00
..
test_tpl Fix @blog globals in special templates 2015-03-28 23:21:10 +02:00
asset_spec.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
author_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
body_class_spec.js 🔥 No more availableThemes (#8085) 2017-03-02 17:53:48 +01:00
content_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
date_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
encode_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
excerpt_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
facebook_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
foreach_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
get_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_foot_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
ghost_head_spec.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
has_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
image_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
is_spec.js 🎨 configurable logging with bunyan (#7431) 2016-10-04 16:33:43 +01:00
meta_description_spec.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
meta_title_spec.js 🎨 Move settings cache & cleanup settings API (#8057) 2017-02-27 16:53:04 +01:00
navigation_spec.js urlencode navigation URLs rather than HTML escape (#7836) 2017-01-17 15:55:19 +01:00
next_post_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
page_url_spec.js 🔥 Remove deprecated pageUrl helper (#7509) 2016-10-06 20:47:37 +02:00
pagination_spec.js 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
plural_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
post_class_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
prev_post_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
tags_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
title_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
twitter_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
url_spec.js urlencode navigation URLs rather than HTML escape (#7836) 2017-01-17 15:55:19 +01:00
utils.js Unify usage of config in unit tests 2015-12-15 10:48:24 +00:00