0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/utils
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
..
cached-image-size-from-url_spec.js [FEATURE] AMP (#7229) 2016-08-22 18:49:27 +02:00
image-size-from-url_spec.js 🎨 add getSubdir and getProtectedSlugs 2016-09-20 15:59:34 +01:00
make-absolute-urls_spec.js 🎨 Util to convert relative urls in absolute (#7264) 2016-08-25 07:09:40 +01:00
read-csv_spec.js 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
tokens_spec.js chore(package): update uuid to version 3.0.0 (#7742) 2017-01-04 17:10:29 +01:00
url_spec.js 🔥 do not store settings in config (#7924) 2017-02-03 13:15:11 +00:00