ghost 4.32.0 → 4.32.1
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/LICENSE +1 -1
- package/README.md +1 -1
- package/core/built/assets/{chunk.3.8f95b516d88ff4eec64c.js → chunk.3.4906cf0b01d6d8e33374.js} +134 -130
- package/core/built/assets/{ghost-dark-43f5faa616791819b3ae91e128ec41f0.css → ghost-dark-67f6ba8347be37f997b3a7e430b29f72.css} +1 -1
- package/core/built/assets/{ghost.min-c3f7cbabcc1a69476534453c6c747ee3.css → ghost.min-2d5f48403647d1e11805691cc7ad0835.css} +1 -1
- package/core/built/assets/{ghost.min-2b20489c79323b165909749382adc158.js → ghost.min-7535b70693bcefde1665bdf621087cbe.js} +1065 -1128
- package/core/built/assets/{vendor.min-987af30228885bce50f05c4723fe6f53.css → vendor.min-0e0334a490951ab747706621f9ccd8b6.css} +18 -10
- package/core/built/assets/{vendor.min-992a9b07f7d0a67b5a4afd91319edf8b.js → vendor.min-45e83041aeba4ea7b184f669b20a2b23.js} +848 -836
- package/core/frontend/apps/amp/lib/views/amp.hbs +4 -4
- package/core/frontend/meta/description.js +3 -3
- package/core/frontend/services/sitemap/base-generator.js +21 -18
- package/core/frontend/services/sitemap/handler.js +13 -4
- package/core/frontend/services/sitemap/index-generator.js +20 -10
- package/core/frontend/services/sitemap/manager.js +8 -5
- package/core/frontend/services/theme-engine/middleware/update-local-template-options.js +1 -6
- package/core/frontend/src/cards/css/audio.css +5 -0
- package/core/frontend/src/cards/css/bookmark.css +5 -0
- package/core/frontend/src/cards/css/button.css +5 -0
- package/core/frontend/src/cards/css/callout.css +5 -0
- package/core/frontend/src/cards/css/file.css +6 -1
- package/core/frontend/src/cards/css/gallery.css +5 -0
- package/core/frontend/src/cards/css/header.css +5 -0
- package/core/frontend/src/cards/css/nft.css +5 -0
- package/core/frontend/src/cards/css/product.css +5 -0
- package/core/frontend/src/cards/css/toggle.css +5 -0
- package/core/frontend/src/cards/css/video.css +4 -0
- package/core/frontend/views/unsubscribe.hbs +12 -7
- package/core/frontend/web/site.js +2 -3
- package/core/server/models/single-use-token.js +1 -1
- package/core/server/services/mega/template.js +4 -2
- package/core/server/services/members/service.js +9 -0
- package/core/server/services/themes/activation-bridge.js +3 -10
- package/core/server/services/themes/index.js +0 -21
- package/core/server/services/twitter-embed.js +1 -2
- package/core/server/web/admin/views/default-prod.html +5 -5
- package/core/server/web/admin/views/default.html +5 -5
- package/core/server/web/api/canary/admin/routes.js +2 -6
- package/core/shared/config/defaults.json +2 -2
- package/core/shared/labs.js +0 -13
- package/package.json +16 -16
- package/yarn.lock +2157 -2487
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.32%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22emberKeyboard%22%3A%7B%22disableInputsInitializer%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.32%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22emberKeyboard%22%3A%7B%22disableInputsInitializer%22%3Atrue%2C%22propagation%22%3Atrue%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
</style>
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
<link rel="stylesheet" href="assets/vendor.min-
|
|
44
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
43
|
+
<link rel="stylesheet" href="assets/vendor.min-0e0334a490951ab747706621f9ccd8b6.css">
|
|
44
|
+
<link rel="stylesheet" href="assets/ghost.min-2d5f48403647d1e11805691cc7ad0835.css" title="light">
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
<script src="assets/vendor.min-
|
|
63
|
-
<script src="assets/ghost.min-
|
|
62
|
+
<script src="assets/vendor.min-45e83041aeba4ea7b184f669b20a2b23.js"></script>
|
|
63
|
+
<script src="assets/ghost.min-7535b70693bcefde1665bdf621087cbe.js"></script>
|
|
64
64
|
|
|
65
65
|
</body>
|
|
66
66
|
</html>
|
|
@@ -4,7 +4,6 @@ const apiMw = require('../../middleware');
|
|
|
4
4
|
const mw = require('./middleware');
|
|
5
5
|
|
|
6
6
|
const shared = require('../../../shared');
|
|
7
|
-
const labs = require('../../../../../shared/labs');
|
|
8
7
|
|
|
9
8
|
module.exports = function apiRoutes() {
|
|
10
9
|
const router = express.Router('canary admin');
|
|
@@ -238,14 +237,12 @@ module.exports = function apiRoutes() {
|
|
|
238
237
|
|
|
239
238
|
// ## media
|
|
240
239
|
router.post('/media/upload',
|
|
241
|
-
labs.enabledMiddleware('mediaAPI'),
|
|
242
240
|
mw.authAdminApi,
|
|
243
241
|
apiMw.upload.media('file', 'thumbnail'),
|
|
244
242
|
apiMw.upload.mediaValidation({type: 'media'}),
|
|
245
243
|
http(api.media.upload)
|
|
246
244
|
);
|
|
247
245
|
router.put('/media/thumbnail/upload',
|
|
248
|
-
labs.enabledMiddleware('mediaAPI'),
|
|
249
246
|
mw.authAdminApi,
|
|
250
247
|
apiMw.upload.single('file'),
|
|
251
248
|
apiMw.upload.validation({type: 'images'}),
|
|
@@ -254,7 +251,6 @@ module.exports = function apiRoutes() {
|
|
|
254
251
|
|
|
255
252
|
// ## files
|
|
256
253
|
router.post('/files/upload',
|
|
257
|
-
labs.enabledMiddleware('filesAPI'),
|
|
258
254
|
mw.authAdminApi,
|
|
259
255
|
apiMw.upload.single('file'),
|
|
260
256
|
http(api.files.upload)
|
|
@@ -303,8 +299,8 @@ module.exports = function apiRoutes() {
|
|
|
303
299
|
router.del('/snippets/:id', mw.authAdminApi, http(api.snippets.destroy));
|
|
304
300
|
|
|
305
301
|
// ## Custom theme settings
|
|
306
|
-
router.get('/custom_theme_settings', mw.authAdminApi,
|
|
307
|
-
router.put('/custom_theme_settings', mw.authAdminApi,
|
|
302
|
+
router.get('/custom_theme_settings', mw.authAdminApi, http(api.customThemeSettings.browse));
|
|
303
|
+
router.put('/custom_theme_settings', mw.authAdminApi, http(api.customThemeSettings.edit));
|
|
308
304
|
|
|
309
305
|
return router;
|
|
310
306
|
};
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
"emailAnalytics": true
|
|
128
128
|
},
|
|
129
129
|
"portal": {
|
|
130
|
-
"url": "https://unpkg.com/@tryghost/portal@~1.
|
|
131
|
-
"version": "1.
|
|
130
|
+
"url": "https://unpkg.com/@tryghost/portal@~1.13.0/umd/portal.min.js",
|
|
131
|
+
"version": "1.13"
|
|
132
132
|
},
|
|
133
133
|
"tenor": {
|
|
134
134
|
"publicReadOnlyApiKey": null,
|
package/core/shared/labs.js
CHANGED
|
@@ -15,19 +15,6 @@ const messages = {
|
|
|
15
15
|
|
|
16
16
|
// flags in this list always return `true`, allows quick global enable prior to full flag removal
|
|
17
17
|
const GA_FEATURES = [
|
|
18
|
-
'customThemeSettings',
|
|
19
|
-
'nftCard',
|
|
20
|
-
'calloutCard',
|
|
21
|
-
'videoCard',
|
|
22
|
-
'accordionCard',
|
|
23
|
-
'productCard',
|
|
24
|
-
'richTwitterNewsletters',
|
|
25
|
-
'audioCard',
|
|
26
|
-
'mediaAPI',
|
|
27
|
-
'membersAutoLogin',
|
|
28
|
-
'filesAPI',
|
|
29
|
-
'fileCard',
|
|
30
|
-
'headerCard'
|
|
31
18
|
];
|
|
32
19
|
|
|
33
20
|
// NOTE: this allowlist is meant to be used to filter out any unexpected
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghost",
|
|
3
|
-
"version": "4.32.
|
|
3
|
+
"version": "4.32.1",
|
|
4
4
|
"description": "The professional publishing platform",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"homepage": "https://ghost.org",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@tryghost/limit-service": "1.0.8",
|
|
80
80
|
"@tryghost/logging": "2.0.0",
|
|
81
81
|
"@tryghost/magic-link": "1.0.14",
|
|
82
|
-
"@tryghost/members-api": "2.8.
|
|
82
|
+
"@tryghost/members-api": "2.8.8",
|
|
83
83
|
"@tryghost/members-csv": "1.2.0",
|
|
84
84
|
"@tryghost/members-importer": "0.3.5",
|
|
85
85
|
"@tryghost/members-offers": "0.10.3",
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
"ghost-storage-base": "1.0.0",
|
|
132
132
|
"glob": "7.2.0",
|
|
133
133
|
"got": "9.6.0",
|
|
134
|
-
"gscan": "4.20.
|
|
134
|
+
"gscan": "4.20.2",
|
|
135
135
|
"html-to-text": "5.1.1",
|
|
136
136
|
"image-size": "1.0.0",
|
|
137
137
|
"intl": "1.2.5",
|
|
@@ -144,17 +144,17 @@
|
|
|
144
144
|
"knex": "0.21.21",
|
|
145
145
|
"knex-migrator": "4.1.3",
|
|
146
146
|
"lodash": "4.17.21",
|
|
147
|
-
"luxon": "2.
|
|
147
|
+
"luxon": "2.3.0",
|
|
148
148
|
"mailgun-js": "0.22.0",
|
|
149
|
-
"metascraper": "5.25.
|
|
150
|
-
"metascraper-author": "5.25.
|
|
151
|
-
"metascraper-description": "5.25.
|
|
152
|
-
"metascraper-image": "5.25.
|
|
153
|
-
"metascraper-logo": "5.25.
|
|
154
|
-
"metascraper-logo-favicon": "5.25.
|
|
155
|
-
"metascraper-publisher": "5.25.
|
|
156
|
-
"metascraper-title": "5.25.
|
|
157
|
-
"metascraper-url": "5.25.
|
|
149
|
+
"metascraper": "5.25.7",
|
|
150
|
+
"metascraper-author": "5.25.7",
|
|
151
|
+
"metascraper-description": "5.25.7",
|
|
152
|
+
"metascraper-image": "5.25.7",
|
|
153
|
+
"metascraper-logo": "5.25.7",
|
|
154
|
+
"metascraper-logo-favicon": "5.25.7",
|
|
155
|
+
"metascraper-publisher": "5.25.7",
|
|
156
|
+
"metascraper-title": "5.25.7",
|
|
157
|
+
"metascraper-url": "5.25.7",
|
|
158
158
|
"moment": "2.24.0",
|
|
159
159
|
"moment-timezone": "0.5.23",
|
|
160
160
|
"multer": "1.4.4",
|
|
@@ -181,13 +181,13 @@
|
|
|
181
181
|
"devDependencies": {
|
|
182
182
|
"@ethanresnick/chai-jest-snapshot": "3.0.0",
|
|
183
183
|
"@lodder/grunt-postcss": "3.1.1",
|
|
184
|
-
"c8": "7.
|
|
184
|
+
"c8": "7.11.0",
|
|
185
185
|
"chai": "4.3.4",
|
|
186
186
|
"coffeescript": "2.6.1",
|
|
187
|
-
"cssnano": "5.0.
|
|
187
|
+
"cssnano": "5.0.14",
|
|
188
188
|
"eslint": "7.32.0",
|
|
189
189
|
"eslint-plugin-ghost": "2.11.0",
|
|
190
|
-
"expect": "27.4.
|
|
190
|
+
"expect": "27.4.6",
|
|
191
191
|
"grunt": "1.4.1",
|
|
192
192
|
"grunt-bg-shell": "2.3.3",
|
|
193
193
|
"grunt-contrib-clean": "2.0.0",
|