ghost 5.82.4 → 5.82.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.82.6.tgz +0 -0
  2. package/components/tryghost-adapter-cache-redis-5.82.6.tgz +0 -0
  3. package/components/{tryghost-adapter-manager-5.82.4.tgz → tryghost-adapter-manager-5.82.6.tgz} +0 -0
  4. package/components/tryghost-announcement-bar-settings-5.82.6.tgz +0 -0
  5. package/components/tryghost-api-framework-5.82.6.tgz +0 -0
  6. package/components/tryghost-api-version-compatibility-service-5.82.6.tgz +0 -0
  7. package/components/tryghost-audience-feedback-5.82.6.tgz +0 -0
  8. package/components/{tryghost-bookshelf-repository-5.82.4.tgz → tryghost-bookshelf-repository-5.82.6.tgz} +0 -0
  9. package/components/tryghost-bootstrap-socket-5.82.6.tgz +0 -0
  10. package/components/tryghost-collections-5.82.6.tgz +0 -0
  11. package/components/{tryghost-constants-5.82.4.tgz → tryghost-constants-5.82.6.tgz} +0 -0
  12. package/components/tryghost-custom-theme-settings-service-5.82.6.tgz +0 -0
  13. package/components/{tryghost-data-generator-5.82.4.tgz → tryghost-data-generator-5.82.6.tgz} +0 -0
  14. package/components/tryghost-domain-events-5.82.6.tgz +0 -0
  15. package/components/{tryghost-donations-5.82.4.tgz → tryghost-donations-5.82.6.tgz} +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.82.6.tgz +0 -0
  17. package/components/{tryghost-email-addresses-5.82.4.tgz → tryghost-email-addresses-5.82.6.tgz} +0 -0
  18. package/components/tryghost-email-analytics-provider-mailgun-5.82.6.tgz +0 -0
  19. package/components/tryghost-email-analytics-service-5.82.6.tgz +0 -0
  20. package/components/tryghost-email-content-generator-5.82.6.tgz +0 -0
  21. package/components/{tryghost-email-events-5.82.4.tgz → tryghost-email-events-5.82.6.tgz} +0 -0
  22. package/components/{tryghost-email-service-5.82.4.tgz → tryghost-email-service-5.82.6.tgz} +0 -0
  23. package/components/tryghost-email-suppression-list-5.82.6.tgz +0 -0
  24. package/components/{tryghost-express-dynamic-redirects-5.82.4.tgz → tryghost-express-dynamic-redirects-5.82.6.tgz} +0 -0
  25. package/components/{tryghost-external-media-inliner-5.82.4.tgz → tryghost-external-media-inliner-5.82.6.tgz} +0 -0
  26. package/components/tryghost-extract-api-key-5.82.6.tgz +0 -0
  27. package/components/tryghost-ghost-5.82.6.tgz +0 -0
  28. package/components/tryghost-html-to-plaintext-5.82.6.tgz +0 -0
  29. package/components/tryghost-i18n-5.82.6.tgz +0 -0
  30. package/components/{tryghost-importer-handler-content-files-5.82.4.tgz → tryghost-importer-handler-content-files-5.82.6.tgz} +0 -0
  31. package/components/{tryghost-importer-revue-5.82.4.tgz → tryghost-importer-revue-5.82.6.tgz} +0 -0
  32. package/components/tryghost-in-memory-repository-5.82.6.tgz +0 -0
  33. package/components/{tryghost-job-manager-5.82.4.tgz → tryghost-job-manager-5.82.6.tgz} +0 -0
  34. package/components/{tryghost-link-redirects-5.82.4.tgz → tryghost-link-redirects-5.82.6.tgz} +0 -0
  35. package/components/{tryghost-link-replacer-5.82.4.tgz → tryghost-link-replacer-5.82.6.tgz} +0 -0
  36. package/components/tryghost-link-tracking-5.82.6.tgz +0 -0
  37. package/components/tryghost-magic-link-5.82.6.tgz +0 -0
  38. package/components/tryghost-mail-events-5.82.6.tgz +0 -0
  39. package/components/tryghost-mailgun-client-5.82.6.tgz +0 -0
  40. package/components/{tryghost-member-attribution-5.82.4.tgz → tryghost-member-attribution-5.82.6.tgz} +0 -0
  41. package/components/tryghost-member-events-5.82.6.tgz +0 -0
  42. package/components/tryghost-members-api-5.82.6.tgz +0 -0
  43. package/components/{tryghost-members-csv-5.82.4.tgz → tryghost-members-csv-5.82.6.tgz} +0 -0
  44. package/components/tryghost-members-events-service-5.82.6.tgz +0 -0
  45. package/components/{tryghost-members-importer-5.82.4.tgz → tryghost-members-importer-5.82.6.tgz} +0 -0
  46. package/components/{tryghost-members-offers-5.82.4.tgz → tryghost-members-offers-5.82.6.tgz} +0 -0
  47. package/components/tryghost-members-payments-5.82.6.tgz +0 -0
  48. package/components/tryghost-members-ssr-5.82.6.tgz +0 -0
  49. package/components/tryghost-members-stripe-service-5.82.6.tgz +0 -0
  50. package/components/{tryghost-mentions-email-report-5.82.4.tgz → tryghost-mentions-email-report-5.82.6.tgz} +0 -0
  51. package/components/tryghost-milestones-5.82.6.tgz +0 -0
  52. package/components/tryghost-minifier-5.82.6.tgz +0 -0
  53. package/components/{tryghost-model-to-domain-event-interceptor-5.82.4.tgz → tryghost-model-to-domain-event-interceptor-5.82.6.tgz} +0 -0
  54. package/components/tryghost-mw-api-version-mismatch-5.82.6.tgz +0 -0
  55. package/components/tryghost-mw-cache-control-5.82.6.tgz +0 -0
  56. package/components/tryghost-mw-error-handler-5.82.6.tgz +0 -0
  57. package/components/tryghost-mw-session-from-token-5.82.6.tgz +0 -0
  58. package/components/{tryghost-mw-update-user-last-seen-5.82.4.tgz → tryghost-mw-update-user-last-seen-5.82.6.tgz} +0 -0
  59. package/components/tryghost-mw-version-match-5.82.6.tgz +0 -0
  60. package/components/tryghost-mw-vhost-5.82.6.tgz +0 -0
  61. package/components/tryghost-nql-filter-expansions-5.82.6.tgz +0 -0
  62. package/components/tryghost-oembed-service-5.82.6.tgz +0 -0
  63. package/components/tryghost-package-json-5.82.6.tgz +0 -0
  64. package/components/{tryghost-post-events-5.82.4.tgz → tryghost-post-events-5.82.6.tgz} +0 -0
  65. package/components/{tryghost-post-revisions-5.82.4.tgz → tryghost-post-revisions-5.82.6.tgz} +0 -0
  66. package/components/tryghost-posts-service-5.82.6.tgz +0 -0
  67. package/components/tryghost-recommendations-5.82.6.tgz +0 -0
  68. package/components/{tryghost-referrers-5.82.4.tgz → tryghost-referrers-5.82.6.tgz} +0 -0
  69. package/components/{tryghost-security-5.82.4.tgz → tryghost-security-5.82.6.tgz} +0 -0
  70. package/components/tryghost-session-service-5.82.6.tgz +0 -0
  71. package/components/tryghost-settings-path-manager-5.82.6.tgz +0 -0
  72. package/components/tryghost-slack-notifications-5.82.6.tgz +0 -0
  73. package/components/{tryghost-staff-service-5.82.4.tgz → tryghost-staff-service-5.82.6.tgz} +0 -0
  74. package/components/tryghost-stats-service-5.82.6.tgz +0 -0
  75. package/components/tryghost-tiers-5.82.6.tgz +0 -0
  76. package/components/tryghost-update-check-service-5.82.6.tgz +0 -0
  77. package/components/tryghost-verification-trigger-5.82.6.tgz +0 -0
  78. package/components/tryghost-version-notifications-data-service-5.82.6.tgz +0 -0
  79. package/components/tryghost-webmentions-5.82.6.tgz +0 -0
  80. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +580 -579
  81. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
  82. package/core/built/admin/assets/admin-x-demo/{index-e36f9f54.mjs → index-e30bf632.mjs} +815 -810
  83. package/core/built/admin/assets/admin-x-demo/{modals-54e6eae1.mjs → modals-44d6f757.mjs} +2 -2
  84. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-834e7ac8.mjs → CodeEditorView-c72ff915.mjs} +2 -2
  85. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  86. package/core/built/admin/assets/admin-x-settings/{index-957ece55.mjs → index-ab6aea43.mjs} +3327 -3316
  87. package/core/built/admin/assets/admin-x-settings/{index-f994fb82.mjs → index-c91e5b06.mjs} +2 -2
  88. package/core/built/admin/assets/admin-x-settings/{modals-5264a854.mjs → modals-839cba44.mjs} +179 -182
  89. package/core/built/admin/assets/{chunk.524.bd8238874f4b73f48c54.js → chunk.524.345dd86d27c39187264a.js} +5 -5
  90. package/core/built/admin/assets/{chunk.582.0c6120fa7382f5d485e0.js → chunk.582.852e4321cd6722a5c000.js} +4 -4
  91. package/core/built/admin/assets/{chunk.799.51e503059770581f528f.js → chunk.799.5012e659e3d64d043636.js} +504 -505
  92. package/core/built/admin/assets/{ghost-0723ddb4afa369fc0303017c40ffffe0.js → ghost-97178f083d12f4245398362739b9eb0d.js} +12 -10
  93. package/core/built/admin/assets/{ghost-dark-7488b47ac1849513fde7b7c8e51b3a70.css → ghost-dark-330dba70f72cf7c29a9c02c0fdef7377.css} +1 -1
  94. package/core/built/admin/assets/{ghost-f84b3f229da06680df6c13ebd46ab671.css → ghost-e031f7ab21c73aa9a2a05ef2703e39cb.css} +1 -1
  95. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +2236 -2229
  96. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +87 -87
  97. package/core/built/admin/index.html +5 -5
  98. package/core/frontend/helpers/url.js +0 -2
  99. package/core/frontend/services/routing/RouterManager.js +0 -5
  100. package/core/frontend/services/routing/controllers/index.js +0 -4
  101. package/core/frontend/web/middleware/handle-image-sizes.js +10 -2
  102. package/core/server/data/migrations/versions/5.0/2022-03-14-12-33-delete-duplicate-offer-redemptions.js +1 -1
  103. package/core/server/services/link-redirection/LinkRedirectRepository.js +1 -3
  104. package/core/server/services/members/MembersConfigProvider.js +1 -3
  105. package/core/server/web/api/middleware/upload.js +7 -1
  106. package/core/server/web/members/app.js +0 -3
  107. package/core/shared/labs.js +5 -3
  108. package/core/shared/sentry.js +5 -1
  109. package/package.json +181 -181
  110. package/yarn.lock +627 -814
  111. package/components/tryghost-adapter-cache-memory-ttl-5.82.4.tgz +0 -0
  112. package/components/tryghost-adapter-cache-redis-5.82.4.tgz +0 -0
  113. package/components/tryghost-announcement-bar-settings-5.82.4.tgz +0 -0
  114. package/components/tryghost-api-framework-5.82.4.tgz +0 -0
  115. package/components/tryghost-api-version-compatibility-service-5.82.4.tgz +0 -0
  116. package/components/tryghost-audience-feedback-5.82.4.tgz +0 -0
  117. package/components/tryghost-bootstrap-socket-5.82.4.tgz +0 -0
  118. package/components/tryghost-collections-5.82.4.tgz +0 -0
  119. package/components/tryghost-custom-theme-settings-service-5.82.4.tgz +0 -0
  120. package/components/tryghost-domain-events-5.82.4.tgz +0 -0
  121. package/components/tryghost-dynamic-routing-events-5.82.4.tgz +0 -0
  122. package/components/tryghost-email-analytics-provider-mailgun-5.82.4.tgz +0 -0
  123. package/components/tryghost-email-analytics-service-5.82.4.tgz +0 -0
  124. package/components/tryghost-email-content-generator-5.82.4.tgz +0 -0
  125. package/components/tryghost-email-suppression-list-5.82.4.tgz +0 -0
  126. package/components/tryghost-extract-api-key-5.82.4.tgz +0 -0
  127. package/components/tryghost-ghost-5.82.4.tgz +0 -0
  128. package/components/tryghost-html-to-plaintext-5.82.4.tgz +0 -0
  129. package/components/tryghost-i18n-5.82.4.tgz +0 -0
  130. package/components/tryghost-in-memory-repository-5.82.4.tgz +0 -0
  131. package/components/tryghost-link-tracking-5.82.4.tgz +0 -0
  132. package/components/tryghost-magic-link-5.82.4.tgz +0 -0
  133. package/components/tryghost-mail-events-5.82.4.tgz +0 -0
  134. package/components/tryghost-mailgun-client-5.82.4.tgz +0 -0
  135. package/components/tryghost-member-events-5.82.4.tgz +0 -0
  136. package/components/tryghost-members-api-5.82.4.tgz +0 -0
  137. package/components/tryghost-members-events-service-5.82.4.tgz +0 -0
  138. package/components/tryghost-members-payments-5.82.4.tgz +0 -0
  139. package/components/tryghost-members-ssr-5.82.4.tgz +0 -0
  140. package/components/tryghost-members-stripe-service-5.82.4.tgz +0 -0
  141. package/components/tryghost-milestones-5.82.4.tgz +0 -0
  142. package/components/tryghost-minifier-5.82.4.tgz +0 -0
  143. package/components/tryghost-mw-api-version-mismatch-5.82.4.tgz +0 -0
  144. package/components/tryghost-mw-cache-control-5.82.4.tgz +0 -0
  145. package/components/tryghost-mw-error-handler-5.82.4.tgz +0 -0
  146. package/components/tryghost-mw-session-from-token-5.82.4.tgz +0 -0
  147. package/components/tryghost-mw-version-match-5.82.4.tgz +0 -0
  148. package/components/tryghost-mw-vhost-5.82.4.tgz +0 -0
  149. package/components/tryghost-nql-filter-expansions-5.82.4.tgz +0 -0
  150. package/components/tryghost-oembed-service-5.82.4.tgz +0 -0
  151. package/components/tryghost-package-json-5.82.4.tgz +0 -0
  152. package/components/tryghost-posts-service-5.82.4.tgz +0 -0
  153. package/components/tryghost-recommendations-5.82.4.tgz +0 -0
  154. package/components/tryghost-session-service-5.82.4.tgz +0 -0
  155. package/components/tryghost-settings-path-manager-5.82.4.tgz +0 -0
  156. package/components/tryghost-slack-notifications-5.82.4.tgz +0 -0
  157. package/components/tryghost-stats-service-5.82.4.tgz +0 -0
  158. package/components/tryghost-tiers-5.82.4.tgz +0 -0
  159. package/components/tryghost-update-check-service-5.82.4.tgz +0 -0
  160. package/components/tryghost-verification-trigger-5.82.4.tgz +0 -0
  161. package/components/tryghost-version-notifications-data-service-5.82.4.tgz +0 -0
  162. package/components/tryghost-webmentions-5.82.4.tgz +0 -0
  163. package/core/frontend/services/routing/SubscribeRouter.js +0 -27
  164. package/core/frontend/services/routing/controllers/subscribe.js +0 -35
  165. package/core/frontend/views/subscribe.hbs +0 -36
  166. /package/core/built/admin/assets/{chunk.799.51e503059770581f528f.js.LICENSE.txt → chunk.799.5012e659e3d64d043636.js.LICENSE.txt} +0 -0
Binary file
@@ -1,27 +0,0 @@
1
- const ParentRouter = require('./ParentRouter');
2
- const controllers = require('./controllers');
3
-
4
- /**
5
- * @description Subscribe Router.
6
- *
7
- * "/subscribe/" -> Subscribe Router
8
- */
9
- class SubscribeRouter extends ParentRouter {
10
- constructor() {
11
- super('SubscribeRouter');
12
-
13
- // @NOTE: hardcoded, not configurable
14
- this.route = {value: '/confirm_signup/'};
15
- this._registerRoutes();
16
- }
17
-
18
- /**
19
- * @description Register all routes of this router.
20
- * @private
21
- */
22
- _registerRoutes() {
23
- this.mountRoute(this.route.value, controllers.subscribe);
24
- }
25
- }
26
-
27
- module.exports = SubscribeRouter;
@@ -1,35 +0,0 @@
1
- const debug = require('@tryghost/debug')('services:routing:controllers:subscribe');
2
- const path = require('path');
3
- const fs = require('fs');
4
- const handlebars = require('handlebars');
5
- const assetHelper = require('../../../helpers/asset');
6
- const {settingsCache} = require('../../../services/proxy');
7
-
8
- handlebars.registerHelper('asset', assetHelper);
9
-
10
- module.exports = async function subscribeController(req, res) {
11
- debug('subscribeController');
12
-
13
- // Get the query params
14
- const {query} = req;
15
- const token = query.token || null;
16
- const action = query.action || null;
17
- const ref = query.r || null;
18
-
19
- if (!token || !action) {
20
- return res.send(404);
21
- }
22
-
23
- // Prepare context for rendering template
24
- const context = {
25
- token,
26
- action,
27
- r: ref,
28
- meta_title: settingsCache.get('title'),
29
- accent_color: settingsCache.get('accent_color')
30
- };
31
- // Compile and render the template
32
- const rawTemplate = fs.readFileSync(path.resolve(path.join(__dirname, '../../../views/subscribe.hbs'))).toString();
33
- const template = handlebars.compile(rawTemplate);
34
- return res.send(template(context));
35
- };
@@ -1,36 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>{{title}}</title>
8
- <link rel="stylesheet" href="{{asset "public/ghost.css" hasMinFile="true"}}" />
9
- </head>
10
- <body>
11
- <div class="gh-app">
12
- <div class="gh-viewport">
13
- <main class="gh-main" role="main" id="main">
14
- <div class="gh-flow">
15
- <div class="gh-flow-content-wrap">
16
- <h1>Subscribing to {{meta_title}}</h1>
17
- <p>If you are not redirected automatically, please click the "Subscribe" button below.</p>
18
- <form id="gh-subscribe-form" action="/members/api/member" method="POST">
19
- <input type="hidden" name="token" value="{{token}}" />
20
- <input type="hidden" name="action" value="{{action}}" />
21
- <input type="hidden" name="r" value="{{r}}" />
22
- <button class="gh-btn" style="background-color: {{accent_color}}; color: #FFFFFF" type="submit"><span>Subscribe</span></button>
23
- </form>
24
- </div>
25
- </div>
26
- </main>
27
- </div>
28
- </div>
29
- <script>
30
- const main = document.getElementById('main');
31
- main.style.display = 'none';
32
- const form = document.getElementById('gh-subscribe-form');
33
- form.submit();
34
- </script>
35
- </body>
36
- </html>