Ghost/core/server/services/themes
Kevin Ansfield 04dd409243
Added syncing and theme exposure of custom theme settings (#13354)
refs https://github.com/TryGhost/Team/issues/1070

- added `@tryghost/custom-theme-settings-service` as a dependency
- `core/server/services/custom-theme-settings` creates an instance of the new service passing in the model used for storing the setting keys/values and a cache instance
- requiring `core/shared/services/custom-theme-settings-cache` creates a cache instance, it has no dependencies so can be required anywhere and the first require will initialize the shared instance
- updated the theme activation bridge to trigger the theme settings service to sync the newly activated theme settings and populate the cache
- updated theme validation to pass `labs` through as an option so that we get custom theme settings back as part of the checked theme as that's what is passed to the custom theme settings service
2021-09-23 12:44:39 +01:00
..
activate.js Rework the themeService public API 2021-07-07 15:02:02 +01:00
activation-bridge.js Added syncing and theme exposure of custom theme settings (#13354) 2021-09-23 12:44:39 +01:00
index.js Removed method complexity in themes API controller 2021-09-03 20:33:28 +04:00
installer.js Removed i18t dependency from installer module 2021-09-03 20:33:28 +04:00
list.js Moved theme service to core/server 2021-04-27 15:14:49 +01:00
loader.js Refactored theme service to use async/await 2021-07-07 12:28:55 +01:00
storage.js Fixed test for overriding active theme 2021-07-11 20:02:32 +01:00
ThemeStorage.js Corrected type declarations in ThemeStorage 2021-09-22 14:16:39 +02:00
to-json.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
validate.js Added syncing and theme exposure of custom theme settings (#13354) 2021-09-23 12:44:39 +01:00