0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/services/themes
Kevin Ansfield c33b596e9c
Added API tests for custom theme settings (#13519)
refs https://github.com/TryGhost/Team/issues/1104

- bumped `@tryghost/custom-theme-settings-service` so it throws a more appropriate `ValidationError` when setting keys don't exist or a select value is not known
- changed the custom theme settings service to have a `.init()` method which creates an instance of the service under `.api` so that we're able to create the instance at a particular point in the boot process when we know the models have been initialised
  - there were problems in tests because the service was being initialised through the require chain before models were initialised through the boot process
- fixed incorrect `camelCase` of resource name in API responses
2021-10-08 16:18:49 +01:00
..
activate.js Rework the themeService public API 2021-07-07 15:02:02 +01:00
activation-bridge.js Added API tests for custom theme settings (#13519) 2021-10-08 16:18:49 +01:00
index.js Fixed inconsistent theme settings state after toggling customThemeSettings labs flag 2021-10-04 11:23:46 +01:00
installer.js Removed i18t dependency from installer module 2021-09-03 20:33:28 +04:00
list.js
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