0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/models
Hannah Wolfe 409dc3b534
Added frontend key to ghost_head for portal (#14782)
refs: https://github.com/TryGhost/Team/issues/1599
refs: f3d5d9cf6b

- this commit adds the concept of a frontend data service, intended for passing data to the frontend from the server in a clean way. This is the start of a new & improved pattern, to hopefully reduce coupling
- the newly added internal frontend key is then exposed through this pattern so that the frontend can make use of it
- the first use case is so that portal can use it to talk to the content API instead of having weird endpoints for portal
- this key will also be used by other internal scripts in future, it's public and therefore safe to expose, but it's meant for internal use only and therefore is not exposed in a generic way e.g. as a helper
2022-05-11 17:34:31 +01:00
..
base replaced deprecated String.prototype.substr() (#14367) 2022-04-28 11:49:12 +01:00
relations Removed permissions handling of "author_id" 2022-05-09 20:34:06 +08:00
action.js
api-key.js Update dependency @tryghost/security to v0.3.0 (#14718) 2022-05-06 17:53:10 +01:00
author.js
benefit.js
custom-theme-setting.js
email-batch.js
email-recipient.js
email.js Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
index.js
integration.js Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
invite.js
label.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
member-analytic-event.js
member-cancel-event.js Added the MemberCancelEvent model 2022-03-11 21:50:06 +01:00
member-email-change-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-login-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-paid-subscription-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-payment-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-product-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-status-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-stripe-customer.js
member-subscribe-event.js Added newsletter relation to subscribe events (#14585) 2022-04-27 16:44:27 +02:00
member.js Dropped subscribed column in members table 2022-05-09 16:47:43 +01:00
mobiledoc-revision.js
newsletter.js Cleaned enforced filter logic for newsletters model 2022-05-11 21:39:33 +05:30
offer-redemption.js
offer.js
permission.js
post.js Readded notEnoughPermission message in post model (#14759) 2022-05-11 17:52:06 +02:00
posts-meta.js
product.js Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
role.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
session.js
settings.js Refactored default settings population to reduce unnecessary DB queries 2022-02-08 10:11:00 +01:00
single-use-token.js Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
snippet.js
stripe-customer-subscription.js Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
stripe-price.js
stripe-product.js
tag-public.js
tag.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
user.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
webhook.js Changed webhooks to store safe version 2022-05-06 12:43:14 +01:00