mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
f4066067e4
refs https://github.com/TryGhost/Team/issues/1599 - adds `portal_*` settings to public settings endpoint - adds calculated `firstpromoter_account` setting for public settings endpoint - also adds Ghost `version` information
106 lines
2.8 KiB
Plaintext
106 lines
2.8 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`Settings Content API Can request settings 1: [body] 1`] = `
|
|
Object {
|
|
"meta": Object {},
|
|
"settings": Object {
|
|
"accent_color": "#FF1A75",
|
|
"codeinjection_foot": null,
|
|
"codeinjection_head": null,
|
|
"cover_image": "https://static.ghost.org/v4.0.0/images/publication-cover.jpg",
|
|
"description": "Thoughts, stories and ideas",
|
|
"facebook": "ghost",
|
|
"firstpromoter_account": null,
|
|
"icon": null,
|
|
"lang": "en",
|
|
"locale": "en",
|
|
"logo": null,
|
|
"members_enabled": true,
|
|
"members_invite_only": false,
|
|
"members_support_address": "noreply",
|
|
"meta_description": null,
|
|
"meta_title": null,
|
|
"navigation": Array [
|
|
Object {
|
|
"label": "Home",
|
|
"url": "/",
|
|
},
|
|
Object {
|
|
"label": "About",
|
|
"url": "/about/",
|
|
},
|
|
Object {
|
|
"label": "Collection",
|
|
"url": "/tag/getting-started/",
|
|
},
|
|
Object {
|
|
"label": "Author",
|
|
"url": "/author/ghost/",
|
|
},
|
|
Object {
|
|
"label": "Portal",
|
|
"url": "/portal/",
|
|
},
|
|
],
|
|
"og_description": null,
|
|
"og_image": null,
|
|
"og_title": null,
|
|
"paid_members_enabled": true,
|
|
"portal_button": true,
|
|
"portal_button_icon": null,
|
|
"portal_button_signup_text": "Subscribe",
|
|
"portal_button_style": "icon-and-text",
|
|
"portal_name": true,
|
|
"portal_plans": Array [
|
|
"free",
|
|
],
|
|
"secondary_navigation": Array [
|
|
Object {
|
|
"label": "Data & privacy",
|
|
"url": "/privacy/",
|
|
},
|
|
Object {
|
|
"label": "Contact",
|
|
"url": "/contact/",
|
|
},
|
|
Object {
|
|
"label": "Contribute →",
|
|
"url": "/contribute/",
|
|
},
|
|
],
|
|
"timezone": "Etc/UTC",
|
|
"title": "Ghost",
|
|
"twitter": "@ghost",
|
|
"twitter_description": null,
|
|
"twitter_image": null,
|
|
"twitter_title": null,
|
|
"url": "http://127.0.0.1:2369/",
|
|
"version": Any<String>,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`Settings Content API Can request settings 1: [headers] 1`] = `
|
|
Object {
|
|
"access-control-allow-origin": "*",
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
"content-length": "942",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": "W/\\"3ae-FBGPtlUjSvGtTGLOj2sW5Rbn33s\\"",
|
|
"vary": "Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|
|
|
|
exports[`Settings Content API Can request settings 2: [headers] 1`] = `
|
|
Object {
|
|
"access-control-allow-origin": "*",
|
|
"cache-control": "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0",
|
|
"content-length": "1235",
|
|
"content-type": "application/json; charset=utf-8",
|
|
"etag": StringMatching /\\(\\?:W\\\\/\\)\\?"\\(\\?:\\[ !#-\\\\x7E\\\\x80-\\\\xFF\\]\\*\\|\\\\r\\\\n\\[\\\\t \\]\\|\\\\\\\\\\.\\)\\*"/,
|
|
"vary": "Accept-Encoding",
|
|
"x-powered-by": "Express",
|
|
}
|
|
`;
|