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.
- package/components/tryghost-adapter-cache-memory-ttl-5.82.6.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.82.6.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.82.4.tgz → tryghost-adapter-manager-5.82.6.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.82.6.tgz +0 -0
- package/components/tryghost-api-framework-5.82.6.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.82.6.tgz +0 -0
- package/components/tryghost-audience-feedback-5.82.6.tgz +0 -0
- package/components/{tryghost-bookshelf-repository-5.82.4.tgz → tryghost-bookshelf-repository-5.82.6.tgz} +0 -0
- package/components/tryghost-bootstrap-socket-5.82.6.tgz +0 -0
- package/components/tryghost-collections-5.82.6.tgz +0 -0
- package/components/{tryghost-constants-5.82.4.tgz → tryghost-constants-5.82.6.tgz} +0 -0
- package/components/tryghost-custom-theme-settings-service-5.82.6.tgz +0 -0
- package/components/{tryghost-data-generator-5.82.4.tgz → tryghost-data-generator-5.82.6.tgz} +0 -0
- package/components/tryghost-domain-events-5.82.6.tgz +0 -0
- package/components/{tryghost-donations-5.82.4.tgz → tryghost-donations-5.82.6.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.82.6.tgz +0 -0
- package/components/{tryghost-email-addresses-5.82.4.tgz → tryghost-email-addresses-5.82.6.tgz} +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.82.6.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.82.6.tgz +0 -0
- package/components/tryghost-email-content-generator-5.82.6.tgz +0 -0
- package/components/{tryghost-email-events-5.82.4.tgz → tryghost-email-events-5.82.6.tgz} +0 -0
- package/components/{tryghost-email-service-5.82.4.tgz → tryghost-email-service-5.82.6.tgz} +0 -0
- package/components/tryghost-email-suppression-list-5.82.6.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.82.4.tgz → tryghost-express-dynamic-redirects-5.82.6.tgz} +0 -0
- package/components/{tryghost-external-media-inliner-5.82.4.tgz → tryghost-external-media-inliner-5.82.6.tgz} +0 -0
- package/components/tryghost-extract-api-key-5.82.6.tgz +0 -0
- package/components/tryghost-ghost-5.82.6.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.82.6.tgz +0 -0
- package/components/tryghost-i18n-5.82.6.tgz +0 -0
- package/components/{tryghost-importer-handler-content-files-5.82.4.tgz → tryghost-importer-handler-content-files-5.82.6.tgz} +0 -0
- package/components/{tryghost-importer-revue-5.82.4.tgz → tryghost-importer-revue-5.82.6.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.82.6.tgz +0 -0
- package/components/{tryghost-job-manager-5.82.4.tgz → tryghost-job-manager-5.82.6.tgz} +0 -0
- package/components/{tryghost-link-redirects-5.82.4.tgz → tryghost-link-redirects-5.82.6.tgz} +0 -0
- package/components/{tryghost-link-replacer-5.82.4.tgz → tryghost-link-replacer-5.82.6.tgz} +0 -0
- package/components/tryghost-link-tracking-5.82.6.tgz +0 -0
- package/components/tryghost-magic-link-5.82.6.tgz +0 -0
- package/components/tryghost-mail-events-5.82.6.tgz +0 -0
- package/components/tryghost-mailgun-client-5.82.6.tgz +0 -0
- package/components/{tryghost-member-attribution-5.82.4.tgz → tryghost-member-attribution-5.82.6.tgz} +0 -0
- package/components/tryghost-member-events-5.82.6.tgz +0 -0
- package/components/tryghost-members-api-5.82.6.tgz +0 -0
- package/components/{tryghost-members-csv-5.82.4.tgz → tryghost-members-csv-5.82.6.tgz} +0 -0
- package/components/tryghost-members-events-service-5.82.6.tgz +0 -0
- package/components/{tryghost-members-importer-5.82.4.tgz → tryghost-members-importer-5.82.6.tgz} +0 -0
- package/components/{tryghost-members-offers-5.82.4.tgz → tryghost-members-offers-5.82.6.tgz} +0 -0
- package/components/tryghost-members-payments-5.82.6.tgz +0 -0
- package/components/tryghost-members-ssr-5.82.6.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.82.6.tgz +0 -0
- package/components/{tryghost-mentions-email-report-5.82.4.tgz → tryghost-mentions-email-report-5.82.6.tgz} +0 -0
- package/components/tryghost-milestones-5.82.6.tgz +0 -0
- package/components/tryghost-minifier-5.82.6.tgz +0 -0
- package/components/{tryghost-model-to-domain-event-interceptor-5.82.4.tgz → tryghost-model-to-domain-event-interceptor-5.82.6.tgz} +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.82.6.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.82.6.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.82.6.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.82.6.tgz +0 -0
- package/components/{tryghost-mw-update-user-last-seen-5.82.4.tgz → tryghost-mw-update-user-last-seen-5.82.6.tgz} +0 -0
- package/components/tryghost-mw-version-match-5.82.6.tgz +0 -0
- package/components/tryghost-mw-vhost-5.82.6.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.82.6.tgz +0 -0
- package/components/tryghost-oembed-service-5.82.6.tgz +0 -0
- package/components/tryghost-package-json-5.82.6.tgz +0 -0
- package/components/{tryghost-post-events-5.82.4.tgz → tryghost-post-events-5.82.6.tgz} +0 -0
- package/components/{tryghost-post-revisions-5.82.4.tgz → tryghost-post-revisions-5.82.6.tgz} +0 -0
- package/components/tryghost-posts-service-5.82.6.tgz +0 -0
- package/components/tryghost-recommendations-5.82.6.tgz +0 -0
- package/components/{tryghost-referrers-5.82.4.tgz → tryghost-referrers-5.82.6.tgz} +0 -0
- package/components/{tryghost-security-5.82.4.tgz → tryghost-security-5.82.6.tgz} +0 -0
- package/components/tryghost-session-service-5.82.6.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.82.6.tgz +0 -0
- package/components/tryghost-slack-notifications-5.82.6.tgz +0 -0
- package/components/{tryghost-staff-service-5.82.4.tgz → tryghost-staff-service-5.82.6.tgz} +0 -0
- package/components/tryghost-stats-service-5.82.6.tgz +0 -0
- package/components/tryghost-tiers-5.82.6.tgz +0 -0
- package/components/tryghost-update-check-service-5.82.6.tgz +0 -0
- package/components/tryghost-verification-trigger-5.82.6.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.82.6.tgz +0 -0
- package/components/tryghost-webmentions-5.82.6.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +580 -579
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
- package/core/built/admin/assets/admin-x-demo/{index-e36f9f54.mjs → index-e30bf632.mjs} +815 -810
- package/core/built/admin/assets/admin-x-demo/{modals-54e6eae1.mjs → modals-44d6f757.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-834e7ac8.mjs → CodeEditorView-c72ff915.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-957ece55.mjs → index-ab6aea43.mjs} +3327 -3316
- package/core/built/admin/assets/admin-x-settings/{index-f994fb82.mjs → index-c91e5b06.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{modals-5264a854.mjs → modals-839cba44.mjs} +179 -182
- package/core/built/admin/assets/{chunk.524.bd8238874f4b73f48c54.js → chunk.524.345dd86d27c39187264a.js} +5 -5
- package/core/built/admin/assets/{chunk.582.0c6120fa7382f5d485e0.js → chunk.582.852e4321cd6722a5c000.js} +4 -4
- package/core/built/admin/assets/{chunk.799.51e503059770581f528f.js → chunk.799.5012e659e3d64d043636.js} +504 -505
- package/core/built/admin/assets/{ghost-0723ddb4afa369fc0303017c40ffffe0.js → ghost-97178f083d12f4245398362739b9eb0d.js} +12 -10
- package/core/built/admin/assets/{ghost-dark-7488b47ac1849513fde7b7c8e51b3a70.css → ghost-dark-330dba70f72cf7c29a9c02c0fdef7377.css} +1 -1
- package/core/built/admin/assets/{ghost-f84b3f229da06680df6c13ebd46ab671.css → ghost-e031f7ab21c73aa9a2a05ef2703e39cb.css} +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +2236 -2229
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +87 -87
- package/core/built/admin/index.html +5 -5
- package/core/frontend/helpers/url.js +0 -2
- package/core/frontend/services/routing/RouterManager.js +0 -5
- package/core/frontend/services/routing/controllers/index.js +0 -4
- package/core/frontend/web/middleware/handle-image-sizes.js +10 -2
- package/core/server/data/migrations/versions/5.0/2022-03-14-12-33-delete-duplicate-offer-redemptions.js +1 -1
- package/core/server/services/link-redirection/LinkRedirectRepository.js +1 -3
- package/core/server/services/members/MembersConfigProvider.js +1 -3
- package/core/server/web/api/middleware/upload.js +7 -1
- package/core/server/web/members/app.js +0 -3
- package/core/shared/labs.js +5 -3
- package/core/shared/sentry.js +5 -1
- package/package.json +181 -181
- package/yarn.lock +627 -814
- package/components/tryghost-adapter-cache-memory-ttl-5.82.4.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.82.4.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.82.4.tgz +0 -0
- package/components/tryghost-api-framework-5.82.4.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.82.4.tgz +0 -0
- package/components/tryghost-audience-feedback-5.82.4.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.82.4.tgz +0 -0
- package/components/tryghost-collections-5.82.4.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.82.4.tgz +0 -0
- package/components/tryghost-domain-events-5.82.4.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.82.4.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.82.4.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.82.4.tgz +0 -0
- package/components/tryghost-email-content-generator-5.82.4.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.82.4.tgz +0 -0
- package/components/tryghost-extract-api-key-5.82.4.tgz +0 -0
- package/components/tryghost-ghost-5.82.4.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.82.4.tgz +0 -0
- package/components/tryghost-i18n-5.82.4.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.82.4.tgz +0 -0
- package/components/tryghost-link-tracking-5.82.4.tgz +0 -0
- package/components/tryghost-magic-link-5.82.4.tgz +0 -0
- package/components/tryghost-mail-events-5.82.4.tgz +0 -0
- package/components/tryghost-mailgun-client-5.82.4.tgz +0 -0
- package/components/tryghost-member-events-5.82.4.tgz +0 -0
- package/components/tryghost-members-api-5.82.4.tgz +0 -0
- package/components/tryghost-members-events-service-5.82.4.tgz +0 -0
- package/components/tryghost-members-payments-5.82.4.tgz +0 -0
- package/components/tryghost-members-ssr-5.82.4.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.82.4.tgz +0 -0
- package/components/tryghost-milestones-5.82.4.tgz +0 -0
- package/components/tryghost-minifier-5.82.4.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.82.4.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.82.4.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.82.4.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.82.4.tgz +0 -0
- package/components/tryghost-mw-version-match-5.82.4.tgz +0 -0
- package/components/tryghost-mw-vhost-5.82.4.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.82.4.tgz +0 -0
- package/components/tryghost-oembed-service-5.82.4.tgz +0 -0
- package/components/tryghost-package-json-5.82.4.tgz +0 -0
- package/components/tryghost-posts-service-5.82.4.tgz +0 -0
- package/components/tryghost-recommendations-5.82.4.tgz +0 -0
- package/components/tryghost-session-service-5.82.4.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.82.4.tgz +0 -0
- package/components/tryghost-slack-notifications-5.82.4.tgz +0 -0
- package/components/tryghost-stats-service-5.82.4.tgz +0 -0
- package/components/tryghost-tiers-5.82.4.tgz +0 -0
- package/components/tryghost-update-check-service-5.82.4.tgz +0 -0
- package/components/tryghost-verification-trigger-5.82.4.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.82.4.tgz +0 -0
- package/components/tryghost-webmentions-5.82.4.tgz +0 -0
- package/core/frontend/services/routing/SubscribeRouter.js +0 -27
- package/core/frontend/services/routing/controllers/subscribe.js +0 -35
- package/core/frontend/views/subscribe.hbs +0 -36
- /package/core/built/admin/assets/{chunk.799.51e503059770581f528f.js.LICENSE.txt → chunk.799.5012e659e3d64d043636.js.LICENSE.txt} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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>
|