0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/metadata
Katharina Irrgang 0201c431d7 🔥 do not store settings in config (#7924)
* 🎨  🔥  do not store settings in config and make settings cache easier available

- remove remembering settings value in theme config
- if we need a cache value, we are asking the settings cache directly
- instead of settings.getSettingSync we use settings.cache.get

- added TODO:
  - think about moving the settings cache out of api/settings
  - we could create a folder named cache cache/settings
  - this settings cache listens on model changes for settings
  - decoupling

* 🔥  remove timezone from config

- no need to store in overrides config and in defaults settings

* 🎨  context object helper

- replace config.get('theme') by settings cache

* 🎨  replace config.get('theme') by settings.cache.get

* 🎨  adapt tests

* fixes from comments
2017-02-03 13:15:11 +00:00
..
amp_url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
asset_url_spec.js 🎨 Change asset path to /ghost/assets (#7504) 2016-10-07 17:05:36 -05:00
author_fb_url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
author_image_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
author_url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
canonical_url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
context_object_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
cover_image_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
creator_url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
description_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
excerpt_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
image-dimensions_spec.js Favicon URI (#7700) 2017-01-26 18:01:19 +00:00
keywords_spec.js Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
modified_date_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
og_type_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
paginated_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
published_date_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
rss_url_spec.js improvement: jshint/jscs 2016-06-17 22:59:47 +02:00
schema_spec.js 🎨 escape sameAs for structured data (#7833) 2017-01-10 12:21:37 +00:00
structured_data_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
title_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00
url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00