Ghost/test/unit
Kevin Ansfield 2c96df42ac
Added paywall card to mark end of free content preview (#12663)
closes https://github.com/TryGhost/Team/issues/466

- upgraded kg-default-cards to include paywall card
- extracted `htmlToPlaintext` from post model to shared util for re-use
- updated post-gating to set html+plaintext to the free preview if a paywall card has been used
  - re-generates plaintext from the truncated html using `htmlToPlaintext` util
- display free content in the `{{content}}` helper via the default CTA template
2021-02-17 23:00:26 +00:00
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api Enabled Members for all sites (#12582) 2021-02-02 16:12:53 +00:00
apps 🔒 Fixed open redirect in private site login 2021-01-26 16:42:42 +00:00
data 🏗 Updated "unsplash" setting handling to match updated format 2021-02-18 10:55:59 +13:00
helpers Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
lib Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
models 🐛 Added multiple use grace period to tokens (#12519) 2021-01-18 17:03:41 +00:00
server Fixed settings reinit to only emit changed settings events (#12184) 2020-09-23 14:35:03 +01:00
services Added theme preview mode 2021-02-17 13:49:41 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Pointed the v3 unit tests to the actual v3 code 2021-01-22 16:32:03 +13:00