Ghost/core/frontend/services/themes
Hannah Wolfe 1c7c246616 🐛 Fixed theme preview not decoding values properly
- Theme preview was not showing the same behaviour as a real theme because nulls were being encoded and decoded incorrectly causing nulls/empty strings to be treasted as truthy values
- Swap from using split to using proper query param parsing so that the code is more robust
- this still creates empty strings and the string 'null' so added a small function to decode these back to real nulls
- moved to its own file ready to be split out - there needs to be a bigger picture plan for this
- added unit tests to cover the known issues + some potential breakages from converting the header string to a query param object
2021-03-01 11:54:50 +00:00
..
config Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
engines Refactore theme engine resolution module 2021-02-24 22:38:56 +13:00
handlebars Switched frontend i18n requires to go through proxy 2020-11-26 14:00:28 +00:00
activate.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
active.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
engine.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
i18n.js 🐛 Fixed incorrect locale loading when changing themes 2021-01-04 17:26:22 +13:00
index.js Fixed linting error 2021-02-22 21:16:05 +00:00
list.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
loader.js Refactored package-json lib into a class 2020-11-25 09:19:35 +00:00
middleware.js 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
preview.js 🐛 Fixed theme preview not decoding values properly 2021-03-01 11:54:50 +00:00
storage.js Fixed fs error during theme install deleting active theme (#12688) 2021-02-23 08:49:48 +00:00
ThemeStorage.js Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
to-json.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
validate.js Switched frontend i18n requires to go through proxy 2020-11-26 14:00:28 +00:00