ghost 5.57.0 → 5.57.2
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.57.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.57.0.tgz → tryghost-adapter-cache-redis-5.57.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.57.0.tgz → tryghost-adapter-manager-5.57.2.tgz} +0 -0
- package/components/{tryghost-announcement-bar-settings-5.57.0.tgz → tryghost-announcement-bar-settings-5.57.2.tgz} +0 -0
- package/components/{tryghost-api-framework-5.57.0.tgz → tryghost-api-framework-5.57.2.tgz} +0 -0
- package/components/tryghost-api-version-compatibility-service-5.57.2.tgz +0 -0
- package/components/tryghost-audience-feedback-5.57.2.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.57.2.tgz +0 -0
- package/components/tryghost-collections-5.57.2.tgz +0 -0
- package/components/tryghost-constants-5.57.2.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.57.0.tgz → tryghost-custom-theme-settings-service-5.57.2.tgz} +0 -0
- package/components/{tryghost-data-generator-5.57.0.tgz → tryghost-data-generator-5.57.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.57.2.tgz +0 -0
- package/components/{tryghost-donations-5.57.0.tgz → tryghost-donations-5.57.2.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.57.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.57.2.tgz +0 -0
- package/components/{tryghost-email-analytics-service-5.57.0.tgz → tryghost-email-analytics-service-5.57.2.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.57.2.tgz +0 -0
- package/components/tryghost-email-events-5.57.2.tgz +0 -0
- package/components/{tryghost-email-service-5.57.0.tgz → tryghost-email-service-5.57.2.tgz} +0 -0
- package/components/tryghost-email-suppression-list-5.57.2.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.57.2.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.57.0.tgz → tryghost-express-dynamic-redirects-5.57.2.tgz} +0 -0
- package/components/{tryghost-external-media-inliner-5.57.0.tgz → tryghost-external-media-inliner-5.57.2.tgz} +0 -0
- package/components/{tryghost-extract-api-key-5.57.0.tgz → tryghost-extract-api-key-5.57.2.tgz} +0 -0
- package/components/tryghost-html-to-plaintext-5.57.2.tgz +0 -0
- package/components/tryghost-i18n-5.57.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.57.2.tgz +0 -0
- package/components/tryghost-importer-revue-5.57.2.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.57.2.tgz +0 -0
- package/components/{tryghost-job-manager-5.57.0.tgz → tryghost-job-manager-5.57.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.57.2.tgz +0 -0
- package/components/{tryghost-link-replacer-5.57.0.tgz → tryghost-link-replacer-5.57.2.tgz} +0 -0
- package/components/{tryghost-link-tracking-5.57.0.tgz → tryghost-link-tracking-5.57.2.tgz} +0 -0
- package/components/{tryghost-magic-link-5.57.0.tgz → tryghost-magic-link-5.57.2.tgz} +0 -0
- package/components/tryghost-mail-events-5.57.2.tgz +0 -0
- package/components/{tryghost-mailgun-client-5.57.0.tgz → tryghost-mailgun-client-5.57.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.57.0.tgz → tryghost-member-attribution-5.57.2.tgz} +0 -0
- package/components/tryghost-member-events-5.57.2.tgz +0 -0
- package/components/{tryghost-members-api-5.57.0.tgz → tryghost-members-api-5.57.2.tgz} +0 -0
- package/components/tryghost-members-csv-5.57.2.tgz +0 -0
- package/components/{tryghost-members-events-service-5.57.0.tgz → tryghost-members-events-service-5.57.2.tgz} +0 -0
- package/components/tryghost-members-importer-5.57.2.tgz +0 -0
- package/components/{tryghost-members-offers-5.57.0.tgz → tryghost-members-offers-5.57.2.tgz} +0 -0
- package/components/{tryghost-members-payments-5.57.0.tgz → tryghost-members-payments-5.57.2.tgz} +0 -0
- package/components/{tryghost-members-ssr-5.57.0.tgz → tryghost-members-ssr-5.57.2.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.57.0.tgz → tryghost-members-stripe-service-5.57.2.tgz} +0 -0
- package/components/tryghost-mentions-email-report-5.57.2.tgz +0 -0
- package/components/{tryghost-milestones-5.57.0.tgz → tryghost-milestones-5.57.2.tgz} +0 -0
- package/components/{tryghost-minifier-5.57.0.tgz → tryghost-minifier-5.57.2.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.57.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.57.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.57.2.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.57.0.tgz → tryghost-mw-error-handler-5.57.2.tgz} +0 -0
- package/components/tryghost-mw-session-from-token-5.57.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.57.2.tgz +0 -0
- package/components/{tryghost-mw-version-match-5.57.0.tgz → tryghost-mw-version-match-5.57.2.tgz} +0 -0
- package/components/tryghost-mw-vhost-5.57.2.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.57.2.tgz +0 -0
- package/components/{tryghost-oembed-service-5.57.0.tgz → tryghost-oembed-service-5.57.2.tgz} +0 -0
- package/components/tryghost-package-json-5.57.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.57.2.tgz +0 -0
- package/components/{tryghost-posts-service-5.57.0.tgz → tryghost-posts-service-5.57.2.tgz} +0 -0
- package/components/tryghost-referrers-5.57.2.tgz +0 -0
- package/components/{tryghost-security-5.57.0.tgz → tryghost-security-5.57.2.tgz} +0 -0
- package/components/{tryghost-session-service-5.57.0.tgz → tryghost-session-service-5.57.2.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.57.2.tgz +0 -0
- package/components/{tryghost-slack-notifications-5.57.0.tgz → tryghost-slack-notifications-5.57.2.tgz} +0 -0
- package/components/{tryghost-staff-service-5.57.0.tgz → tryghost-staff-service-5.57.2.tgz} +0 -0
- package/components/{tryghost-stats-service-5.57.0.tgz → tryghost-stats-service-5.57.2.tgz} +0 -0
- package/components/{tryghost-tiers-5.57.0.tgz → tryghost-tiers-5.57.2.tgz} +0 -0
- package/components/{tryghost-update-check-service-5.57.0.tgz → tryghost-update-check-service-5.57.2.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.57.2.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.57.2.tgz +0 -0
- package/components/{tryghost-webmentions-5.57.0.tgz → tryghost-webmentions-5.57.2.tgz} +0 -0
- package/core/built/admin/assets/chunk.143.e4582d7248f6ff4ca278.js +34 -0
- package/core/built/admin/assets/{chunk.178.a4b86d027f500d64ccbf.js → chunk.178.1af62cc476be04f30eca.js} +4 -4
- package/core/built/admin/assets/{ghost-45d3545b6462f7507da89cdc682ee99e.js → ghost-fed3208212ce44efa6ba2f376d4fab95.js} +21 -18
- package/core/built/admin/index.html +2 -2
- package/core/server/models/base/bookshelf.js +1 -1
- package/core/server/models/post.js +23 -2
- package/core/server/services/url/UrlGenerator.js +21 -2
- package/package.json +143 -144
- package/yarn.lock +51 -5
- package/components/tryghost-adapter-cache-memory-ttl-5.57.0.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.57.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.57.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.57.0.tgz +0 -0
- package/components/tryghost-collections-5.57.0.tgz +0 -0
- package/components/tryghost-constants-5.57.0.tgz +0 -0
- package/components/tryghost-domain-events-5.57.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.57.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.57.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.57.0.tgz +0 -0
- package/components/tryghost-email-events-5.57.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.57.0.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.57.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.57.0.tgz +0 -0
- package/components/tryghost-i18n-5.57.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.57.0.tgz +0 -0
- package/components/tryghost-importer-revue-5.57.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.57.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.57.0.tgz +0 -0
- package/components/tryghost-mail-events-5.57.0.tgz +0 -0
- package/components/tryghost-member-events-5.57.0.tgz +0 -0
- package/components/tryghost-members-csv-5.57.0.tgz +0 -0
- package/components/tryghost-members-importer-5.57.0.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.57.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.57.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.57.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.57.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.57.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.57.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.57.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.57.0.tgz +0 -0
- package/components/tryghost-package-json-5.57.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.57.0.tgz +0 -0
- package/components/tryghost-referrers-5.57.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.57.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.57.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.57.0.tgz +0 -0
- package/core/built/admin/assets/chunk.143.969cc9d1b97fdcbbed73.js +0 -39
|
Binary file
|
|
Binary file
|
package/components/{tryghost-adapter-manager-5.57.0.tgz → tryghost-adapter-manager-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-data-generator-5.57.0.tgz → tryghost-data-generator-5.57.2.tgz}
RENAMED
|
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
|
package/components/{tryghost-extract-api-key-5.57.0.tgz → tryghost-extract-api-key-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-mailgun-client-5.57.0.tgz → tryghost-mailgun-client-5.57.2.tgz}
RENAMED
|
Binary file
|
package/components/{tryghost-member-attribution-5.57.0.tgz → tryghost-member-attribution-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-members-offers-5.57.0.tgz → tryghost-members-offers-5.57.2.tgz}
RENAMED
|
Binary file
|
package/components/{tryghost-members-payments-5.57.0.tgz → tryghost-members-payments-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-mw-error-handler-5.57.0.tgz → tryghost-mw-error-handler-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-mw-version-match-5.57.0.tgz → tryghost-mw-version-match-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-oembed-service-5.57.0.tgz → tryghost-oembed-service-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/components/{tryghost-session-service-5.57.0.tgz → tryghost-session-service-5.57.2.tgz}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var __ember_auto_import__;(()=>{var e,r={91883:(e,r,t)=>{const n=t(63153),s=t(99112),o=["id","email","name","note","subscribed_to_emails","complimentary_plan","stripe_customer_id","created_at","deleted_at","labels","tiers"]
|
|
2
|
+
e.exports=(e,r=o.slice())=>{r=r.map((e=>"subscribed"===e?"subscribed_to_emails":e))
|
|
3
|
+
const t=e.map((e=>{e.error&&!r.includes("error")&&r.push("error")
|
|
4
|
+
let t=""
|
|
5
|
+
"string"==typeof e.labels?t=e.labels:Array.isArray(e.labels)&&(t=e.labels.map((e=>"string"==typeof e?e:e.name)).join(","))
|
|
6
|
+
let s=""
|
|
7
|
+
return Array.isArray(e.tiers)&&(s=e.tiers.map((e=>e.name)).join(",")),{id:e.id,email:e.email,name:e.name,note:e.note,subscribed_to_emails:!(!e.subscribed&&!e.subscribed_to_emails),complimentary_plan:e.comped||e.complimentary_plan,stripe_customer_id:n.get(e,"subscriptions[0].customer.id")||e.stripe_customer_id,created_at:e.created_at,deleted_at:e.deleted_at,labels:t,tiers:s,import_tier:e.import_tier||null,error:e.error||null}}))
|
|
8
|
+
return s.unparse(t,{columns:r})}},96616:(e,r,t)=>{var n={"./af":21516,"./af.js":21516,"./ar":14874,"./ar-dz":83760,"./ar-dz.js":83760,"./ar-kw":73410,"./ar-kw.js":73410,"./ar-ly":27521,"./ar-ly.js":27521,"./ar-ma":54215,"./ar-ma.js":54215,"./ar-sa":67839,"./ar-sa.js":67839,"./ar-tn":15676,"./ar-tn.js":15676,"./ar.js":14874,"./az":90189,"./az.js":90189,"./be":97510,"./be.js":97510,"./bg":49715,"./bg.js":49715,"./bm":53263,"./bm.js":53263,"./bn":86751,"./bn.js":86751,"./bo":22257,"./bo.js":22257,"./br":66699,"./br.js":66699,"./bs":46338,"./bs.js":46338,"./ca":75498,"./ca.js":75498,"./cs":36471,"./cs.js":36471,"./cv":12500,"./cv.js":12500,"./cy":621,"./cy.js":621,"./da":82493,"./da.js":82493,"./de":56272,"./de-at":70500,"./de-at.js":70500,"./de-ch":71393,"./de-ch.js":71393,"./de.js":56272,"./dv":90967,"./dv.js":90967,"./el":85716,"./el.js":85716,"./en-SG":72902,"./en-SG.js":72902,"./en-au":32645,"./en-au.js":32645,"./en-ca":10280,"./en-ca.js":10280,"./en-gb":31961,"./en-gb.js":31961,"./en-ie":19065,"./en-ie.js":19065,"./en-il":5628,"./en-il.js":5628,"./en-nz":81286,"./en-nz.js":81286,"./eo":37600,"./eo.js":37600,"./es":62109,"./es-do":94611,"./es-do.js":94611,"./es-us":86896,"./es-us.js":86896,"./es.js":62109,"./et":2962,"./et.js":2962,"./eu":30384,"./eu.js":30384,"./fa":35676,"./fa.js":35676,"./fi":18080,"./fi.js":18080,"./fo":99493,"./fo.js":99493,"./fr":59714,"./fr-ca":29035,"./fr-ca.js":29035,"./fr-ch":47594,"./fr-ch.js":47594,"./fr.js":59714,"./fy":10798,"./fy.js":10798,"./ga":62396,"./ga.js":62396,"./gd":95213,"./gd.js":95213,"./gl":85410,"./gl.js":85410,"./gom-latn":88448,"./gom-latn.js":88448,"./gu":97920,"./gu.js":97920,"./he":21797,"./he.js":21797,"./hi":35546,"./hi.js":35546,"./hr":17034,"./hr.js":17034,"./hu":80081,"./hu.js":80081,"./hy-am":2143,"./hy-am.js":2143,"./id":84909,"./id.js":84909,"./is":8002,"./is.js":8002,"./it":59658,"./it-ch":19126,"./it-ch.js":19126,"./it.js":59658,"./ja":47e3,"./ja.js":47e3,"./jv":97205,"./jv.js":97205,"./ka":31706,"./ka.js":31706,"./kk":34894,"./kk.js":34894,"./km":34679,"./km.js":34679,"./kn":89203,"./kn.js":89203,"./ko":87538,"./ko.js":87538,"./ku":62808,"./ku.js":62808,"./ky":95378,"./ky.js":95378,"./lb":12396,"./lb.js":12396,"./lo":90732,"./lo.js":90732,"./lt":59313,"./lt.js":59313,"./lv":8909,"./lv.js":8909,"./me":75539,"./me.js":75539,"./mi":7384,"./mi.js":7384,"./mk":75114,"./mk.js":75114,"./ml":12586,"./ml.js":12586,"./mn":66423,"./mn.js":66423,"./mr":27128,"./mr.js":27128,"./ms":45547,"./ms-my":38106,"./ms-my.js":38106,"./ms.js":45547,"./mt":20114,"./mt.js":20114,"./my":11573,"./my.js":11573,"./nb":49022,"./nb.js":49022,"./ne":88212,"./ne.js":88212,"./nl":47862,"./nl-be":19116,"./nl-be.js":19116,"./nl.js":47862,"./nn":34010,"./nn.js":34010,"./pa-in":80815,"./pa-in.js":80815,"./pl":18099,"./pl.js":18099,"./pt":14527,"./pt-br":81180,"./pt-br.js":81180,"./pt.js":14527,"./ro":74683,"./ro.js":74683,"./ru":41760,"./ru.js":41760,"./sd":79717,"./sd.js":79717,"./se":84167,"./se.js":84167,"./si":72568,"./si.js":72568,"./sk":13702,"./sk.js":13702,"./sl":49968,"./sl.js":49968,"./sq":77303,"./sq.js":77303,"./sr":4993,"./sr-cyrl":98961,"./sr-cyrl.js":98961,"./sr.js":4993,"./ss":6870,"./ss.js":6870,"./sv":92034,"./sv.js":92034,"./sw":51481,"./sw.js":51481,"./ta":208,"./ta.js":208,"./te":36006,"./te.js":36006,"./tet":68816,"./tet.js":68816,"./tg":77378,"./tg.js":77378,"./th":69125,"./th.js":69125,"./tl-ph":43406,"./tl-ph.js":43406,"./tlh":53361,"./tlh.js":53361,"./tr":84119,"./tr.js":84119,"./tzl":47778,"./tzl.js":47778,"./tzm":12617,"./tzm-latn":97187,"./tzm-latn.js":97187,"./tzm.js":12617,"./ug-cn":10438,"./ug-cn.js":10438,"./uk":38128,"./uk.js":38128,"./ur":15367,"./ur.js":15367,"./uz":51582,"./uz-latn":70009,"./uz-latn.js":70009,"./uz.js":51582,"./vi":49036,"./vi.js":49036,"./x-pseudo":11950,"./x-pseudo.js":11950,"./yo":48249,"./yo.js":48249,"./zh-cn":39512,"./zh-cn.js":39512,"./zh-hk":74792,"./zh-hk.js":74792,"./zh-tw":23931,"./zh-tw.js":23931}
|
|
9
|
+
function s(e){var r=o(e)
|
|
10
|
+
return t(r)}function o(e){if(!t.o(n,e)){var r=new Error("Cannot find module '"+e+"'")
|
|
11
|
+
throw r.code="MODULE_NOT_FOUND",r}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=o,e.exports=s,s.id=96616},7456:e=>{"use strict"
|
|
12
|
+
e.exports=require("@ember/test-waiters")},11975:()=>{},12799:(e,r,t)=>{var n,s
|
|
13
|
+
e.exports=(n=_eai_d,s=_eai_r,window.emberAutoImportDynamic=function(e){return 1===arguments.length?s("_eai_dyn_"+e):s("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return s("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))},n("@joeattardi/emoji-button",[],(function(){return t(28936)})),n("@sentry/browser",[],(function(){return t(91499)})),n("@sentry/utils",[],(function(){return t(88517)})),n("@tryghost/color-utils",[],(function(){return t(82485)})),n("@tryghost/helpers",[],(function(){return t(74752)})),n("@tryghost/kg-clean-basic-html",[],(function(){return t(89096)})),n("@tryghost/kg-converters",[],(function(){return t(9138)})),n("@tryghost/kg-parser-plugins",[],(function(){return t(3199)})),n("@tryghost/kg-parser-plugins/lib/cards/softReturn",[],(function(){return t(74557)})),n("@tryghost/limit-service",[],(function(){return t(12336)})),n("@tryghost/members-csv/lib/unparse",[],(function(){return t(91883)})),n("@tryghost/nql",[],(function(){return t(97490)})),n("@tryghost/nql-lang",[],(function(){return t(75420)})),n("@tryghost/string",[],(function(){return t(57348)})),n("@tryghost/timezone-data",[],(function(){return t(28961)})),n("element-resize-detector",[],(function(){return t(87381)})),n("ember-css-transitions/modifiers/css-transition",["@ember/test-waiters"],(function(){return t(56112)})),n("ember-keyboard",[],(function(){return t(86771)})),n("ember-keyboard/helpers/if-key.js",[],(function(){return t(43481)})),n("ember-keyboard/helpers/on-key.js",[],(function(){return t(66415)})),n("ember-keyboard/modifiers/on-key.js",[],(function(){return t(4146)})),n("ember-keyboard/services/keyboard.js",[],(function(){return t(35466)})),n("ember-modifier",[],(function(){return t(92509)})),n("ember-moment/helpers/-base.js",[],(function(){return t(76465)})),n("ember-moment/helpers/is-after.js",[],(function(){return t(876)})),n("ember-moment/helpers/is-before.js",[],(function(){return t(13971)})),n("ember-moment/helpers/is-between.js",[],(function(){return t(2063)})),n("ember-moment/helpers/is-same-or-after.js",[],(function(){return t(12915)})),n("ember-moment/helpers/is-same-or-before.js",[],(function(){return t(46102)})),n("ember-moment/helpers/is-same.js",[],(function(){return t(71465)})),n("ember-moment/helpers/moment-add.js",[],(function(){return t(64462)})),n("ember-moment/helpers/moment-calendar.js",[],(function(){return t(69021)})),n("ember-moment/helpers/moment-diff.js",[],(function(){return t(95198)})),n("ember-moment/helpers/moment-duration.js",[],(function(){return t(17216)})),n("ember-moment/helpers/moment-format.js",[],(function(){return t(99152)})),n("ember-moment/helpers/moment-from-now.js",[],(function(){return t(16396)})),n("ember-moment/helpers/moment-from.js",[],(function(){return t(48478)})),n("ember-moment/helpers/moment-subtract.js",[],(function(){return t(4647)})),n("ember-moment/helpers/moment-to-date.js",[],(function(){return t(18351)})),n("ember-moment/helpers/moment-to-now.js",[],(function(){return t(94612)})),n("ember-moment/helpers/moment-to.js",[],(function(){return t(91857)})),n("ember-moment/helpers/moment.js",[],(function(){return t(26852)})),n("ember-moment/helpers/now.js",[],(function(){return t(67842)})),n("ember-moment/helpers/unix.js",[],(function(){return t(29700)})),n("ember-moment/helpers/utc.js",[],(function(){return t(71755)})),n("ember-moment/services/moment.js",[],(function(){return t(27475)})),n("fast-deep-equal",[],(function(){return t(64710)})),n("focus-trap",[],(function(){return t(10755)})),n("intersection-observer-admin",[],(function(){return t(77577)})),n("jose",[],(function(){return t(15919)})),n("markdown-it",[],(function(){return t(80516)})),n("markdown-it-footnote",[],(function(){return t(41297)})),n("markdown-it-lazy-headers",[],(function(){return t(72553)})),n("markdown-it-mark",[],(function(){return t(76519)})),n("markdown-it-sub",[],(function(){return t(8830)})),n("markdown-it-sup",[],(function(){return t(55977)})),n("moment-timezone",[],(function(){return t(19127)})),n("papaparse",[],(function(){return t(99112)})),n("raf-pool",[],(function(){return t(42586)})),n("react",[],(function(){return t(11591)})),n("react-dom",[],(function(){return t(96027)})),n("react-dom/client",[],(function(){return t(22609)})),n("semver/functions/coerce",[],(function(){return t(57305)})),n("semver/functions/lt",[],(function(){return t(63721)})),n("semver/functions/parse",[],(function(){return t(62919)})),n("tooltip.js",[],(function(){return t(15028)})),n("urijs",[],(function(){return t(3491)})),n("validator",[],(function(){return t(2228)})),void n("_eai_dyn_@sentry/browser",[],(function(){return Promise.resolve().then(t.bind(t,91499))})))},25435:function(e,r){window._eai_r=require,window._eai_d=define}},t={}
|
|
14
|
+
function n(e){var s=t[e]
|
|
15
|
+
if(void 0!==s)return s.exports
|
|
16
|
+
var o=t[e]={id:e,loaded:!1,exports:{}}
|
|
17
|
+
return r[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=r,n.c=t,e=[],n.O=(r,t,s,o)=>{if(!t){var i=1/0
|
|
18
|
+
for(c=0;c<e.length;c++){for(var[t,s,o]=e[c],u=!0,m=0;m<t.length;m++)(!1&o||i>=o)&&Object.keys(n.O).every((e=>n.O[e](t[m])))?t.splice(m--,1):(u=!1,o<i&&(i=o))
|
|
19
|
+
if(u){e.splice(c--,1)
|
|
20
|
+
var a=s()
|
|
21
|
+
void 0!==a&&(r=a)}}return r}o=o||0
|
|
22
|
+
for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1]
|
|
23
|
+
e[c]=[t,s,o]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e
|
|
24
|
+
return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={143:0}
|
|
25
|
+
n.O.j=r=>0===e[r]
|
|
26
|
+
var r=(r,t)=>{var s,o,[i,u,m]=t,a=0
|
|
27
|
+
if(i.some((r=>0!==e[r]))){for(s in u)n.o(u,s)&&(n.m[s]=u[s])
|
|
28
|
+
if(m)var c=m(n)}for(r&&r(t);a<i.length;a++)o=i[a],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0
|
|
29
|
+
return n.O(c)},t=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
|
|
30
|
+
t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.O(void 0,[757],(()=>n(n.s=25435)))
|
|
31
|
+
var s=n.O(void 0,[757],(()=>n(n.s=12799)))
|
|
32
|
+
s=n.O(s),__ember_auto_import__=s})()
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=chunk.143.e4582d7248f6ff4ca278.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var __ember_auto_import__;(()=>{var r={
|
|
1
|
+
var __ember_auto_import__;(()=>{var r={25435:function(r,e){window._eai_r=require,window._eai_d=define},40678:r=>{r.exports=function(){_eai_d
|
|
2
2
|
var r=_eai_r
|
|
3
3
|
window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))}}()}},e={}
|
|
4
4
|
function t(_){var o=e[_]
|
|
5
5
|
if(void 0!==o)return o.exports
|
|
6
6
|
var i=e[_]={exports:{}}
|
|
7
|
-
return r[_].call(i.exports,i,i.exports,t),i.exports}t(
|
|
8
|
-
var _=t(
|
|
7
|
+
return r[_].call(i.exports,i,i.exports,t),i.exports}t(25435)
|
|
8
|
+
var _=t(40678)
|
|
9
9
|
__ember_auto_import__=_})()
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=chunk.178.
|
|
11
|
+
//# sourceMappingURL=chunk.178.1af62cc476be04f30eca.map
|
|
@@ -1348,7 +1348,10 @@ e.default=O,Ember._setComponentTemplate(P,O)})),define("ghost-admin/components/g
|
|
|
1348
1348
|
function P(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function O(e,t,i,n,r){var a={}
|
|
1349
1349
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
1350
1350
|
const j=Ember.HTMLBars.template({id:"Lg71PQ0i",block:'{"symbols":["dropdown","menuItem"],"statements":[[10,"div"],[14,0,"gh-nav-bottom"],[12],[2,"\\n"],[6,[37,1],[[32,0,["hasThemeErrors"]]],null,[["default"],[{"statements":[[2," "],[11,"button"],[24,0,"gh-footer-toast gh-theme-error-toast"],[24,4,"button"],[4,[38,6],["click",[30,[36,5],[[32,0,["openThemeErrors"]],null],null]],null],[12],[2,"\\n "],[10,"span"],[14,0,"gh-footer-toast-title gh-notification-title"],[12],[2,"Your theme contains errors"],[13],[2,"\\n "],[10,"span"],[14,0,"gh-footer-toast-p"],[12],[2,"Some functionality on your site may be limited →"],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[8,"gh-referral-invite",[],[["@hasThemeErrors"],[[32,0,["hasThemeErrors"]]]],null],[2,"\\n\\n "],[10,"div"],[14,0,"flex items-center justify-between"],[12],[2,"\\n "],[10,"div"],[14,0,"pe-all"],[12],[2,"\\n "],[8,"gh-basic-dropdown",[],[["@horizontalPosition","@verticalPosition","@calculatePosition"],["left","above",[32,0,["userDropdownPosition"]]]],[["default"],[{"statements":[[2,"\\n "],[8,[32,1,["Trigger"]],[[24,0,"outline-0 pointer"]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"div"],[14,0,"flex-auto flex items-center"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-user-avatar relative"],[15,5,[30,[36,7],[[32,0,["session","user","profileImageUrl"]]],null]],[12],[2,"\\n "],[6,[37,1],[[32,0,["whatsNew","hasNew"]]],null,[["default"],[{"statements":[[10,"span"],[14,0,"absolute dib ba b--white br-100 gh-whats-new-badge-account"],[12],[13]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[1,[30,[36,0],["arrow-down"],[["class"],["w3 mr1 fill-darkgrey"]]]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n\\n "],[8,[32,1,["Content"]],[[16,0,[31,["gh-nav-menu-dropdown ",[30,[36,1],[[32,0,["session","user","isContributor"]],"gh-nav-menu-dropdown-contributor"],null]]]]],[[],[]],[["default"],[{"statements":[[2,"\\n "],[10,"ul"],[14,0,"dropdown-menu dropdown-triangle-top"],[14,"role","menu"],[12],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-account-menu-header"],[12],[2,"\\n "],[10,"div"],[14,0,"gh-user-avatar relative"],[15,5,[30,[36,7],[[32,0,["session","user","profileImageUrl"]]],null]],[12],[13],[2,"\\n "],[10,"div"],[14,0,"gh-user-info"],[12],[2,"\\n "],[10,"h4"],[14,0,"gh-user-name"],[12],[1,[32,0,["session","user","name"]]],[13],[2,"\\n "],[10,"span"],[14,0,"gh-user-email"],[12],[1,[32,0,["session","user","email"]]],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["session","user","isContributor"]]],null,[["default","else"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","posts"]],[["@route","@query","@role"],["posts",[30,[36,4],null,[["entry"],[null]]],"menuitem"]],[["default"],[{"statements":[[2,"\\n Posts\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,0,["config","blogUrl"]],"/"]]],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,"title","Open site in new tab"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"View site"],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","whatsnew"]],[["@route","@query","@role"],["whatsnew",[30,[36,4],null,[["entry"],[null]]],"menuitem"]],[["default"],[{"statements":[[2,"\\n What\'s new?\\n"],[6,[37,1],[[32,0,["whatsNew","hasNew"]]],null,[["default"],[{"statements":[[2," "],[10,"div"],[14,0,"flex-grow-1 flex justify-end"],[12],[10,"span"],[14,0,"dib w2 h2 top-0 right-0 bg-green br-100"],[12],[13],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item"],[24,"tabindex","-1"],[24,"data-test-nav","user-profile"]],[["@route","@model","@role"],["settings.staff.user",[32,0,["session","user","slug"]],"menuitem"]],[["default"],[{"statements":[[2,"\\n Your profile\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,8],[[32,0,["session","user","isContributor"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,6,"https://ghost.org/help?utm_source=admin&utm_campaign=help"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Help center\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[10,"a"],[14,0,"dropdown-item"],[14,"role","menuitem"],[14,"tabindex","-1"],[14,6,"https://ghost.org/resources?utm_source=admin&utm_campaign=resources"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n Resources & guides\\n "],[13],[2,"\\n "],[13],[2,"\\n\\n"],[6,[37,1],[[32,0,["showDropdownExtension"]]],null,[["default"],[{"statements":[[6,[37,3],[[30,[36,2],[[30,[36,2],[[32,0,["config","clientExtensions","dropdown","items"]]],null]],null]],null,[["default"],[{"statements":[[6,[37,1],[[32,2,["divider"]]],null,[["default","else"],[{"statements":[[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[10,"a"],[15,6,[31,[[32,2,["href"]]]]],[14,"target","_blank"],[15,0,[31,["dropdown-item ",[32,2,["classes"]]]]],[14,"role","menuitem"],[14,"tabindex","-1"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[1,[32,2,["text"]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[2]}]]]],"parameters":[]}]]],[2," "],[10,"li"],[14,0,"divider"],[14,"role","separator"],[12],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n "],[10,"li"],[12],[2,"\\n "],[8,"link-to",[[24,0,"dropdown-item user-menu-signout"],[24,"tabindex","-1"]],[["@route","@role"],["signout","menuitem"]],[["default"],[{"statements":[[2,"\\n Sign out\\n "]],"parameters":[]}]]],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n "]],"parameters":[1]}]]],[2,"\\n "],[13],[2,"\\n "],[10,"div"],[14,0,"flex items-center pe-all"],[12],[2,"\\n"],[6,[37,1],[[30,[36,9],[[32,0,["session","user"]]],null]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"gh-nav-bottom-tabicon"],[24,"data-test-nav","settings"]],[["@route","@current-when"],["settings",[32,0,["isSettingsRoute"]]]],[["default"],[{"statements":[[1,[30,[36,0],["settings"],null]]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[6,[37,1],[[32,0,["session","user","isEditor"]]],null,[["default"],[{"statements":[[2," "],[8,"link-to",[[24,0,"gh-nav-bottom-tabicon"],[24,"data-test-nav","settings"]],[["@route","@current-when"],["settings.staff",[32,0,["isSettingsRoute"]]]],[["default"],[{"statements":[[1,[30,[36,0],["settings"],null]]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"div"],[14,0,"nightshift-toggle-container"],[12],[2,"\\n "],[11,"div"],[16,0,[31,["nightshift-toggle ",[30,[36,1],[[32,0,["feature","nightShift"]],"on"],null]]]],[4,[38,11],[[32,0],[30,[36,10],["nightShift",[32,0,["feature"]]],null]],null],[12],[2,"\\n "],[10,"div"],[14,0,"sun"],[12],[1,[30,[36,0],["sun"],null]],[13],[2,"\\n "],[10,"div"],[14,0,"moon"],[12],[1,[30,[36,0],["moon"],null]],[13],[2,"\\n "],[10,"div"],[14,0,"thumb"],[12],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[13],[2,"\\n"]],"hasEval":false,"upvars":["svg-jar","if","-track-array","each","hash","fn","on","background-image-style","unless","gh-user-can-admin","toggle","action"]}',moduleName:"ghost-admin/components/gh-nav-menu/footer.hbs"})
|
|
1351
|
-
let _=(r=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,c=Ember.computed.and("config.clientExtensions.dropdown","session.user.isOwnerOnly"),d=Ember.computed.match("router.currentRouteName",/^settings/),p=Ember._action,m=class extends Ember.Component{constructor(...e){super(...e),P(this,"session",h,this),P(this,"router",b,this),P(this,"whatsNew",g,this),P(this,"feature",f,this),P(this,"modals",v,this),P(this,"themeManagement",y,this),P(this,"config",w,this),P(this,"showDropdownExtension",k,this),P(this,"isSettingsRoute",E,this)}openThemeErrors(){this.advancedModal=this.modals.open(t.default,{title:"Theme errors",canActivate:!1,warnings:this.themeManagement.activeTheme.warnings,errors:this.themeManagement.activeTheme.gscanErrors})}get hasThemeErrors(){
|
|
1351
|
+
let _=(r=Ember.inject.service,a=Ember.inject.service,s=Ember.inject.service,o=Ember.inject.service,l=Ember.inject.service,u=Ember.inject.service,c=Ember.computed.and("config.clientExtensions.dropdown","session.user.isOwnerOnly"),d=Ember.computed.match("router.currentRouteName",/^settings/),p=Ember._action,m=class extends Ember.Component{constructor(...e){super(...e),P(this,"session",h,this),P(this,"router",b,this),P(this,"whatsNew",g,this),P(this,"feature",f,this),P(this,"modals",v,this),P(this,"themeManagement",y,this),P(this,"config",w,this),P(this,"showDropdownExtension",k,this),P(this,"isSettingsRoute",E,this)}openThemeErrors(){this.advancedModal=this.modals.open(t.default,{title:"Theme errors",canActivate:!1,warnings:this.themeManagement.activeTheme.warnings,errors:this.themeManagement.activeTheme.gscanErrors})}get hasThemeErrors(){const e=this.themeManagement.activeTheme&&this.themeManagement.activeTheme.gscanErrors
|
|
1352
|
+
if(!e)return!1
|
|
1353
|
+
const t=e?.filter((e=>"GS110-NO-MISSING-PAGE-BUILDER-USAGE"!==e.code||!e?.failures?.[0].message.includes("show_title_and_feature_image")))
|
|
1354
|
+
return t&&t.length}userDropdownPosition(e,t){let{horizontalPosition:n,verticalPosition:r,style:a}=(0,i.default)(...arguments),{width:s}=t.firstElementChild.getBoundingClientRect()
|
|
1352
1355
|
return a.right+=s-20,a["z-index"]="1100",{horizontalPosition:n,verticalPosition:r,style:a}}},h=O(m.prototype,"session",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=O(m.prototype,"router",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g=O(m.prototype,"whatsNew",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=O(m.prototype,"feature",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v=O(m.prototype,"modals",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=O(m.prototype,"themeManagement",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),w=O(m.prototype,"config",[n.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=O(m.prototype,"showDropdownExtension",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),E=O(m.prototype,"isSettingsRoute",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),O(m.prototype,"openThemeErrors",[p],Object.getOwnPropertyDescriptor(m.prototype,"openThemeErrors"),m.prototype),m)
|
|
1353
1356
|
e.default=_,Ember._setComponentTemplate(j,_)})),define("ghost-admin/components/gh-nav-menu/main",["exports","ghost-admin/components/modals/search","ghost-admin/mixins/shortcuts","ghost-admin/utils/ctrl-or-cmd","ghost-admin/decorators/inject","@ember-decorators/component","ember-concurrency"],(function(e,t,i,n,r,a,s){var o,l,u,c,d,p,m,h,b,g,f,v,y,w,k,E,P,O,j,_,T,z,x,S,C,M,D,A,I,N,L,R,U,F,B,V,H,q,$,Y,W,G,K
|
|
1354
1357
|
function J(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function X(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
|
|
@@ -2826,15 +2829,15 @@ let p=(i=Ember.inject.service,n=Ember.inject.service,r=Ember.inject.service,a=cl
|
|
|
2826
2829
|
return e&&t&&!i&&n}calculateActionsDropdownPosition(e,t){let{top:i,left:n,width:r,height:a}=e.getBoundingClientRect(),{width:s}=t.firstElementChild.getBoundingClientRect()
|
|
2827
2830
|
return{style:{left:n+r-s,top:i+a+5}}}},s=c(a.prototype,"customViews",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=c(a.prototype,"feature",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=c(a.prototype,"router",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)
|
|
2828
2831
|
e.default=p,Ember._setComponentTemplate(d,p)}))
|
|
2829
|
-
define("ghost-admin/components/posts-list/context-menu",["exports","ghost-admin/components/posts-list/modals/add-tag","@glimmer/component","ghost-admin/components/posts-list/modals/delete-posts","ghost-admin/components/posts-list/modals/edit-posts-access","ghost-admin/components/posts-list/modals/unpublish-posts","@tryghost/nql","ghost-admin/helpers/capitalize-first-letter","
|
|
2830
|
-
function
|
|
2831
|
-
return i}function
|
|
2832
|
-
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2833
|
-
const
|
|
2834
|
-
function
|
|
2835
|
-
return e}const
|
|
2836
|
-
let
|
|
2837
|
-
yield this.performBulkEdit("addTag",{tags:e.map((e=>({id:e.id,name:e.name,slug:e.slug})))}),e.length>1?this.notifications.showNotification(
|
|
2832
|
+
define("ghost-admin/components/posts-list/context-menu",["exports","ghost-admin/components/posts-list/modals/add-tag","@glimmer/component","ghost-admin/components/posts-list/modals/delete-posts","ghost-admin/components/posts-list/modals/edit-posts-access","ghost-admin/components/posts-list/modals/unpublish-posts","@tryghost/nql","ghost-admin/helpers/capitalize-first-letter","ember-concurrency"],(function(e,t,i,n,r,a,s,o,l){var u,c,d,p,m,h,b,g,f,v,y,w,k,E,P,O,j,_,T,z,x,S,C
|
|
2833
|
+
function M(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function D(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function A(e,t,i){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance")
|
|
2834
|
+
return i}function I(e,t,i,n,r){var a={}
|
|
2835
|
+
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2836
|
+
const N=Ember.HTMLBars.template({id:"AfCbvb0Y",block:'{"symbols":[],"statements":[[10,"ul"],[14,0,"gh-posts-context-menu dropdown-menu dropdown-triangle-top-left"],[12],[2,"\\n\\n"],[6,[37,2],[[32,0,["canUnpublishSelection"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["unpublishPosts"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["undo"],null]],[2,"Unpublish"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,2],[[32,0,["canFeatureSelection"]]],null,[["default"],[{"statements":[[6,[37,2],[[32,0,["shouldFeatureSelection"]]],null,[["default","else"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["featurePosts"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["star"],[["class"],["mb1 star"]]]],[2,"Feature"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["unfeaturePosts"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["star"],[["class"],["mb1"]]]],[2,"Unfeature"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["addTagToPosts"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["tag"],null]],[2,"Add a tag"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"],[6,[37,2],[[32,0,["membersUtils","isMembersEnabled"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["editPostsAccess"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["lock"],null]],[2,"Change access"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[6,[37,2],[[32,0,["session","user","isAdmin"]]],null,[["default"],[{"statements":[[6,[37,2],[[32,0,["canCopySelection"]]],null,[["default"],[{"statements":[[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["copyPosts"]]],null],[12],[2,"\\n "],[10,"span"],[12],[1,[30,[36,1],["duplicate"],null]],[2,"Duplicate"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[10,"li"],[12],[2,"\\n "],[11,"button"],[24,0,"mr2"],[24,4,"button"],[4,[38,0],["click",[32,0,["deletePosts"]]],null],[12],[2,"\\n "],[10,"span"],[14,0,"red"],[12],[1,[30,[36,1],["trash"],null]],[2,"Delete"],[13],[2,"\\n "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"]],"hasEval":false,"upvars":["on","svg-jar","if"]}',moduleName:"ghost-admin/components/posts-list/context-menu.hbs"})
|
|
2837
|
+
function L(e,t){for(const i in t)e=e.replace(new RegExp(`{${i}}`,"g"),t[i])
|
|
2838
|
+
return e}const R={deleted:{single:"{Type} deleted successfully",multiple:"{count} {type}s deleted successfully"},unpublished:{single:"{Type} successfully reverted to a draft",multiple:"{count} {type}s successfully reverted to drafts"},accessUpdated:{single:"{Type} access successfully updated",multiple:"{Type} access successfully updated for {count} {type}s"},tagsAdded:{single:"Tags added successfully",multiple:"Tags added successfully to {count} {type}s"},tagAdded:{single:"Tag added successfully",multiple:"Tag added successfully to {count} {type}s"},duplicated:{single:"{Type} duplicated successfully",multiple:"{count} {type}s duplicated successfully"}}
|
|
2839
|
+
let U=(u=Ember.inject.service,c=Ember.inject.service,d=Ember.inject.service,p=Ember.inject.service,m=Ember.inject.service,h=Ember.inject.service,b=Ember.inject.service,g=Ember._action,f=Ember._action,v=Ember._action,y=Ember._action,w=Ember._action,k=Ember._action,E=Ember._action,C=new WeakSet,P=class extends i.default{constructor(...e){super(...e),D(this,C),M(this,"ajax",O,this),M(this,"ghostPaths",j,this),M(this,"session",_,this),M(this,"infinity",T,this),M(this,"store",z,this),M(this,"notifications",x,this),M(this,"membersUtils",S,this)}get menu(){return this.args.menu}get selectionList(){return this.menu.selectionList}get type(){return"page"===this.selectionList.first?.displayName?"page":"post"}async featurePosts(){this.menu.performTask(this.featurePostsTask)}async unfeaturePosts(){this.menu.performTask(this.unfeaturePostsTask)}async addTagToPosts(){await this.menu.openModal(t.default,{type:this.type,selectionList:this.selectionList,confirm:this.addTagToPostsTask})}async deletePosts(){this.menu.openModal(n.default,{type:this.type,selectionList:this.selectionList,confirm:this.deletePostsTask})}async unpublishPosts(){await this.menu.openModal(a.default,{type:this.type,selectionList:this.selectionList,confirm:this.unpublishPostsTask})}async editPostsAccess(){this.menu.openModal(r.default,{type:this.type,selectionList:this.selectionList,confirm:this.editPostsAccessTask})}async copyPosts(){this.menu.performTask(this.copyPostsTask)}*addTagToPostsTask(e){const t=this.selectionList.availableModels
|
|
2840
|
+
yield this.performBulkEdit("addTag",{tags:e.map((e=>({id:e.id,name:e.name,slug:e.slug})))}),e.length>1?this.notifications.showNotification(A(this,C,F).call(this,"tagsAdded"),{type:"success"}):this.notifications.showNotification(A(this,C,F).call(this,"tagAdded"),{type:"success"})
|
|
2838
2841
|
const i=e.toArray().map((e=>({...e.serialize({includeId:!0}),type:"tag"})))
|
|
2839
2842
|
this.store.peekAll("tag").forEach((e=>{e.isNew&&e.destroyRecord()}))
|
|
2840
2843
|
let n=null
|
|
@@ -2843,14 +2846,14 @@ const e=n.find((e=>e.name===r.name&&e.id))
|
|
|
2843
2846
|
e&&(r.id=e.id,r.slug=e.slug)}for(const r of t){const e=r.tags.toArray().map((e=>({...e.serialize({includeId:!0}),type:"tag"})))
|
|
2844
2847
|
for(const t of i)e.find((e=>e.id===t.id))||e.push(t)
|
|
2845
2848
|
this.store.push({data:{id:r.id,type:this.type,relationships:{tags:{data:e}}}})}return this.updateFilteredPosts(),!0}*deletePostsTask(){const e=this.selectionList.availableModels
|
|
2846
|
-
yield this.performBulkDestroy(),this.notifications.showNotification(
|
|
2849
|
+
yield this.performBulkDestroy(),this.notifications.showNotification(A(this,C,F).call(this,"deleted"),{type:"success"})
|
|
2847
2850
|
const t=this.selectionList.infinityModel.content.filter((t=>!e.includes(t)))
|
|
2848
2851
|
return this.infinity.replace(this.selectionList.infinityModel,t),this.selectionList.clearSelection({force:!0}),!0}*unpublishPostsTask(){const e=this.selectionList.availableModels
|
|
2849
|
-
yield this.performBulkEdit("unpublish"),this.notifications.showNotification(
|
|
2852
|
+
yield this.performBulkEdit("unpublish"),this.notifications.showNotification(A(this,C,F).call(this,"unpublished"),{type:"success"})
|
|
2850
2853
|
for(const t of e)"published"===t.status&&this.store.push({data:{id:t.id,type:this.type,attributes:{status:"draft"}}})
|
|
2851
|
-
return this.updateFilteredPosts(),!0}updateFilteredPosts(){const e=this.selectionList.availableModels,t=this.selectionList.allFilter,i=(0,s.default)(t,{expansions:
|
|
2854
|
+
return this.updateFilteredPosts(),!0}updateFilteredPosts(){const e=this.selectionList.availableModels,t=this.selectionList.allFilter,i=(0,s.default)(t,{expansions:[{key:"primary_tag",replacement:"tags.slug",expansion:"posts_tags.sort_order:0+tags.visibility:public"},{key:"primary_author",replacement:"authors.slug",expansion:"posts_authors.sort_order:0+authors.visibility:public"},{key:"authors",replacement:"authors.slug"},{key:"author",replacement:"authors.slug"},{key:"tag",replacement:"tags.slug"},{key:"tags",replacement:"tags.slug"}]}),n=this.selectionList.infinityModel.content.filter((t=>!e.find((e=>e.id===t.id))||i.queryJSON(t.serialize({includeId:!0}))))
|
|
2852
2855
|
this.infinity.replace(this.selectionList.infinityModel,n),this.selectionList.clearUnavailableItems()}*editPostsAccessTask(e,{visibility:t,tiers:i}){const n=this.selectionList.availableModels
|
|
2853
|
-
yield this.performBulkEdit("access",{visibility:t,tiers:i}),this.notifications.showNotification(
|
|
2856
|
+
yield this.performBulkEdit("access",{visibility:t,tiers:i}),this.notifications.showNotification(A(this,C,F).call(this,"accessUpdated"),{type:"success"})
|
|
2854
2857
|
for(const r of n)this.store.push({data:{id:r.id,type:this.type,attributes:{visibility:t},relationships:{links:{data:i}}}})
|
|
2855
2858
|
this.updateFilteredPosts(),e()}*featurePostsTask(){const e=this.selectionList.availableModels
|
|
2856
2859
|
yield this.performBulkEdit("feature")
|
|
@@ -2861,7 +2864,7 @@ for(const t of e)this.store.push({data:{id:t.id,type:this.type,attributes:{featu
|
|
|
2861
2864
|
return this.updateFilteredPosts(),!0}*copyPostsTask(){try{const e=yield this.performCopy()
|
|
2862
2865
|
this.store.pushPayload(e)
|
|
2863
2866
|
const t=e["post"===this.type?"posts":"pages"][0],i=this.store.peekRecord(this.type,t.id)
|
|
2864
|
-
this.selectionList.infinityModel.content.unshiftObject(i),this.notifications.showNotification(
|
|
2867
|
+
this.selectionList.infinityModel.content.unshiftObject(i),this.notifications.showNotification(A(this,C,F).call(this,"duplicated"),{type:"success"})}catch(e){this.notifications.showAPIError(e,{key:`${this.type}.copy.failed`})}return!0}async performBulkDestroy(){const e=this.selectionList.filter
|
|
2865
2868
|
let t=this.ghostPaths.url.api("post"===this.type?"posts":"pages")+`?filter=${encodeURIComponent(e)}`
|
|
2866
2869
|
return await this.ajax.delete(t)}async performBulkEdit(e,t={}){const i=this.selectionList.filter
|
|
2867
2870
|
let n=this.ghostPaths.url.api("post"===this.type?"posts/bulk":"pages/bulk")+`?filter=${encodeURIComponent(i)}`
|
|
@@ -2870,8 +2873,8 @@ return await this.ajax.post(t)}get shouldFeatureSelection(){let e=0
|
|
|
2870
2873
|
for(const t of this.selectionList.availableModels)t.featured&&(e+=1)
|
|
2871
2874
|
return e<=this.selectionList.availableModels.length/2}get canFeatureSelection(){for(const e of this.selectionList.availableModels)if("sent"!==e.get("status"))return!0
|
|
2872
2875
|
return!1}get canUnpublishSelection(){for(const e of this.selectionList.availableModels)if("published"===e.status)return!0
|
|
2873
|
-
return!1}get canCopySelection(){return 1===this.selectionList.availableModels.length}},
|
|
2874
|
-
function
|
|
2876
|
+
return!1}get canCopySelection(){return 1===this.selectionList.availableModels.length}},O=I(P.prototype,"ajax",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=I(P.prototype,"ghostPaths",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_=I(P.prototype,"session",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),T=I(P.prototype,"infinity",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=I(P.prototype,"store",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),x=I(P.prototype,"notifications",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),S=I(P.prototype,"membersUtils",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I(P.prototype,"featurePosts",[g],Object.getOwnPropertyDescriptor(P.prototype,"featurePosts"),P.prototype),I(P.prototype,"unfeaturePosts",[f],Object.getOwnPropertyDescriptor(P.prototype,"unfeaturePosts"),P.prototype),I(P.prototype,"addTagToPosts",[v],Object.getOwnPropertyDescriptor(P.prototype,"addTagToPosts"),P.prototype),I(P.prototype,"deletePosts",[y],Object.getOwnPropertyDescriptor(P.prototype,"deletePosts"),P.prototype),I(P.prototype,"unpublishPosts",[w],Object.getOwnPropertyDescriptor(P.prototype,"unpublishPosts"),P.prototype),I(P.prototype,"editPostsAccess",[k],Object.getOwnPropertyDescriptor(P.prototype,"editPostsAccess"),P.prototype),I(P.prototype,"copyPosts",[E],Object.getOwnPropertyDescriptor(P.prototype,"copyPosts"),P.prototype),I(P.prototype,"addTagToPostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"addTagToPostsTask"),P.prototype),I(P.prototype,"deletePostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"deletePostsTask"),P.prototype),I(P.prototype,"unpublishPostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"unpublishPostsTask"),P.prototype),I(P.prototype,"editPostsAccessTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"editPostsAccessTask"),P.prototype),I(P.prototype,"featurePostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"featurePostsTask"),P.prototype),I(P.prototype,"unfeaturePostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"unfeaturePostsTask"),P.prototype),I(P.prototype,"copyPostsTask",[l.task],Object.getOwnPropertyDescriptor(P.prototype,"copyPostsTask"),P.prototype),P)
|
|
2877
|
+
function F(e){return this.selectionList.isSingle?L(R[e].single,{count:this.selectionList.count,type:this.type,Type:(0,o.capitalizeFirstLetter)(this.type)}):L(R[e].multiple,{count:this.selectionList.count,type:this.type,Type:(0,o.capitalizeFirstLetter)(this.type)})}e.default=U,Ember._setComponentTemplate(N,U)})),define("ghost-admin/components/posts-list/list-item-old",["exports","@glimmer/component","ghost-admin/helpers/gh-format-post-time"],(function(e,t,i){var n,r,a,s,o,l,u,c,d,p,m
|
|
2875
2878
|
function h(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function b(e,t,i,n,r){var a={}
|
|
2876
2879
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0
|
|
2877
2880
|
const g=Ember.HTMLBars.template({id:"3RaOzrBE",block:'{"symbols":["@post","@hideAuthor","&attrs"],"statements":[[11,"li"],[24,0,"gh-list-row gh-posts-list-item gh-post-list-plain-status"],[17,3],[4,[38,13],["mouseover",[32,0,["mouseOver"]]],null],[4,[38,13],["mouseleave",[32,0,["mouseLeave"]]],null],[12],[2,"\\n\\n"],[6,[37,1],[[30,[36,15],[[32,0,["session","user","isContributor"]],[32,1,["isPublished"]]],null]],null,[["default","else"],[{"statements":[[2," "],[10,"a"],[15,6,[32,1,["url"]]],[14,0,"permalink gh-list-data gh-post-list-title"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[12],[2,"\\n "],[10,"h3"],[14,0,"gh-content-entry-title"],[12],[2,"\\n "],[1,[32,1,["title"]]],[2," "],[1,[30,[36,2],["external"],[["class"],["gh-post-list-external"]]]],[2,"\\n "],[13],[2,"\\n"],[6,[37,14],[[32,2]],null,[["default"],[{"statements":[[2," "],[10,"p"],[14,0,"gh-content-entry-meta"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-content-entry-author"],[12],[2,"\\n By "],[1,[30,[36,10],[[32,1]],null]],[2,"\\n\\n"],[6,[37,1],[[32,1,["primaryTag"]]],null,[["default"],[{"statements":[[2," in "],[10,"span"],[14,0,"midgrey-l2 fw5"],[12],[1,[32,1,["primaryTag","name"]]],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n -\\n "],[13],[2,"\\n "],[10,"span"],[14,0,"gh-content-entry-date"],[12],[2,"\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,9],[[32,1,["updatedAtUTC"]]],[["format"],["D MMM YYYY"]]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[30,[36,9],[[32,1,["updatedAtUTC"]]],[["draft"],[true]]]],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n "],[10,"p"],[14,0,"gh-content-entry-status"],[12],[2,"\\n "],[10,"span"],[14,0,"published"],[12],[2,"\\n Published\\n"],[6,[37,1],[[32,1,["hasEmail"]]],null,[["default"],[{"statements":[[6,[37,1],[[32,0,["isHovered"]]],null,[["default","else"],[{"statements":[[2," and sent to "],[1,[30,[36,7],[[32,1,["email","emailCount"]],"member"],null]],[2,"\\n"]],"parameters":[]},{"statements":[[2," and sent\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-title"]],[["@route","@models"],["editor.edit",[30,[36,0],[[32,0,["post","displayName"]],[32,0,["post","id"]]],null]]],[["default"],[{"statements":[[2,"\\n "],[10,"h3"],[14,0,"gh-content-entry-title"],[12],[2,"\\n "],[1,[32,1,["title"]]],[2,"\\n"],[6,[37,1],[[32,1,["lexical"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"gh-lexical-indicator"],[12],[2,"L"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[6,[37,14],[[32,2]],null,[["default"],[{"statements":[[2," "],[10,"p"],[14,0,"gh-content-entry-meta"],[12],[2,"\\n "],[10,"span"],[14,0,"gh-content-entry-author"],[12],[2,"\\n By "],[1,[30,[36,10],[[32,1]],null]],[2,"\\n\\n"],[6,[37,1],[[32,1,["primaryTag"]]],null,[["default"],[{"statements":[[2," in "],[10,"span"],[14,0,"midgrey-l2 fw5"],[12],[1,[32,1,["primaryTag","name"]]],[13],[2,"\\n"]],"parameters":[]}]]],[2," -\\n "],[13],[2,"\\n "],[11,"span"],[24,0,"gh-content-entry-date"],[4,[38,13],["mouseover",[30,[36,12],[[30,[36,11],[[32,0,["isDateHovered"]]],null],true],null]],null],[4,[38,13],["mouseleave",[30,[36,12],[[30,[36,11],[[32,0,["isDateHovered"]]],null],false],null]],null],[12],[2,"\\n "],[1,[30,[36,9],[[32,1,["updatedAtUTC"]]],[["draft"],[true]]]],[2,"\\n"],[6,[37,1],[[32,0,["isDateHovered"]]],null,[["default"],[{"statements":[[2," "],[11,"span"],[4,[38,6],["anim-fade-in-scale"],null],[12],[2,"on "],[1,[30,[36,9],[[32,1,["updatedAtUTC"]]],[["format"],["D MMM YYYY"]]]],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"],[2," "],[13],[2,"\\n "],[10,"p"],[14,0,"gh-content-entry-status"],[12],[2,"\\n"],[6,[37,1],[[32,1,["isScheduled"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"scheduled"],[12],[2,"\\n "],[10,"span"],[14,0,"status-dot"],[12],[13],[2,"\\n Scheduled\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default"],[{"statements":[[2," "],[11,"span"],[24,0,"schedule-details"],[4,[38,6],["anim-fade-in-scale"],null],[12],[2,"\\n"],[6,[37,1],[[32,1,["emailOnly"]]],null,[["default","else"],[{"statements":[[2," to be sent\\n"]],"parameters":[]},{"statements":[[2," to be published "],[1,[30,[36,1],[[32,1,["newsletter"]],"and sent "],null]],[2,"\\n"]],"parameters":[]}]]],[2," "],[1,[32,0,["scheduledText"]]],[2," to "],[1,[30,[36,8],[[32,1,["emailSegment"]]],null]],[2,"\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,1,["isDraft"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[14,0,"draft"],[12],[2,"\\n "],[10,"span"],[14,0,"status-dot"],[12],[13],[2,"\\n Draft\\n "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,1,["isPublished"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[15,0,[31,["published ",[32,0,["errorClass"]]]]],[12],[2,"\\n Published\\n"],[6,[37,1],[[32,1,["didEmailFail"]]],null,[["default","else"],[{"statements":[[2," but failed to send newsletter\\n"]],"parameters":[]},{"statements":[[6,[37,1],[[32,1,["hasBeenEmailed"]]],null,[["default"],[{"statements":[[2," and sent\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default"],[{"statements":[[2," "],[11,"span"],[4,[38,6],["anim-fade-in-scale"],null],[12],[2,"to "],[1,[30,[36,7],[[32,1,["email","emailCount"]],"member"],null]],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,1,["isSent"]]],null,[["default"],[{"statements":[[2," "],[10,"span"],[15,0,[31,["sent ",[32,0,["errorClass"]]]]],[12],[2,"\\n"],[6,[37,1],[[32,1,["didEmailFail"]]],null,[["default","else"],[{"statements":[[2," Failed to send newsletter\\n"]],"parameters":[]},{"statements":[[2," Sent\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default"],[{"statements":[[2," "],[11,"span"],[4,[38,6],["anim-fade-in-scale"],null],[12],[2,"to "],[1,[30,[36,7],[[32,1,["email","emailCount"]],"member"],null]],[13],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n"]],"parameters":[]}]]],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[30,[36,15],[[32,1,["showEmailOpenAnalytics"]],[32,1,["showEmailClickAnalytics"]]],null]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-metrics"]],[["@route","@query"],["members",[30,[36,5],null,[["filterParam"],[[30,[36,4],["opened_emails.post_id:",[32,1,["id"]]],null]]]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats-value"],[12],[2,"\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,3],[[32,1,["email","openedCount"]]],null]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,1,["email","openRate"]]],[10,"sup"],[12],[2,"%"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats"],[12],[2,"\\n opened\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data"]],[["@route","@models"],["editor.edit",[30,[36,0],[[32,0,["post","displayName"]],[32,0,["post","id"]]],null]]],[["default"],[{"statements":[[2,"\\n"],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,1,["showEmailClickAnalytics"]]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-metrics"]],[["@route","@query"],["members",[30,[36,5],null,[["filterParam"],[[30,[36,4],["clicked_links.post_id:",[32,1,["id"]]],null]]]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats-value"],[12],[2,"\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,3],[[32,1,["count","clicks"]]],null]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,1,["clickRate"]]],[10,"sup"],[12],[2,"%"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats"],[12],[2,"\\n clicked\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[6,[37,1],[[32,1,["showEmailOpenAnalytics"]]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-metrics"]],[["@route","@query"],["members",[30,[36,5],null,[["filterParam"],[[30,[36,4],["opened_emails.post_id:",[32,1,["id"]]],null]]]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats-value"],[12],[2,"\\n"],[6,[37,1],[[32,0,["isHovered"]]],null,[["default","else"],[{"statements":[[2," "],[1,[30,[36,3],[[32,1,["email","openedCount"]]],null]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[1,[32,1,["email","openRate"]]],[10,"sup"],[12],[2,"%"],[13],[2,"\\n"]],"parameters":[]}]]],[2," "],[13],[2,"\\n "],[10,"span"],[14,0,"gh-content-email-stats"],[12],[2,"\\n opened\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data"]],[["@route","@models"],["editor.edit",[30,[36,0],[[32,0,["post","displayName"]],[32,0,["post","id"]]],null]]],[["default"],[{"statements":[[2,"\\n"],[2," "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]]],"parameters":[]}]]],[2,"\\n"],[6,[37,1],[[32,1,["hasAnalyticsPage"]]],null,[["default","else"],[{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-button"],[24,"title",""]],[["@route","@model"],["posts.analytics",[32,1,["id"]]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[15,0,[31,["gh-post-list-cta stats ",[30,[36,1],[[32,0,["isHovered"]],"is-hovered"],null]]]],[14,"title","Go to Analytics"],[12],[2,"\\n "],[1,[30,[36,2],["stats"],[["title"],["Go to Analytics"]]]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]},{"statements":[[2," "],[8,"link-to",[[24,0,"permalink gh-list-data gh-post-list-button"],[24,"title",""]],[["@route","@models"],["editor.edit",[30,[36,0],[[32,0,["post","displayName"]],[32,0,["post","id"]]],null]]],[["default"],[{"statements":[[2,"\\n "],[10,"span"],[15,0,[31,["gh-post-list-cta edit ",[30,[36,1],[[32,0,["isHovered"]],"is-hovered"],null]]]],[14,"title","Go to Editor"],[12],[2,"\\n "],[1,[30,[36,2],["pen"],[["title"],["Go to Editor"]]]],[2,"\\n "],[13],[2,"\\n "]],"parameters":[]}]]],[2,"\\n"]],"parameters":[]}]]],[13],[2,"\\n"]],"hasEval":false,"upvars":["array","if","svg-jar","format-number","concat","hash","css-transition","gh-pluralize","humanize-recipient-filter","gh-format-post-time","post-author-names","mut","fn","on","unless","and"]}',moduleName:"ghost-admin/components/posts-list/list-item-old.hbs"})
|
|
@@ -6533,4 +6536,4 @@ var t=Ember.Component.extend({})
|
|
|
6533
6536
|
e.default=t})),define("ghost-admin/config/environment",[],(function(){try{var e="ghost-admin/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),i={default:JSON.parse(decodeURIComponent(t))}
|
|
6534
6537
|
return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("ghost-admin/app").default.create({version:"5.57",name:"ghost-admin"})
|
|
6535
6538
|
|
|
6536
|
-
//# sourceMappingURL=ghost-
|
|
6539
|
+
//# sourceMappingURL=ghost-fed3208212ce44efa6ba2f376d4fab95.map
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
<script src="assets/vendor-16709e2a05d1300febb44b2e8f759976.js"></script>
|
|
60
60
|
<script src="assets/chunk.757.ada6ed049fa8078cd416.js"></script>
|
|
61
|
-
<script src="assets/chunk.143.
|
|
62
|
-
<script src="assets/ghost-
|
|
61
|
+
<script src="assets/chunk.143.e4582d7248f6ff4ca278.js"></script>
|
|
62
|
+
<script src="assets/ghost-fed3208212ce44efa6ba2f376d4fab95.js"></script>
|
|
63
63
|
</body>
|
|
64
64
|
</html>
|
|
@@ -80,7 +80,7 @@ ghostBookshelf.plugin('bookshelf-relations', {
|
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
// CASE: disable after hook for specific relations
|
|
83
|
-
if (['permissions_roles', 'members_newsletters'].indexOf(existing.relatedData.joinTableName) !== -1) {
|
|
83
|
+
if (['permissions_roles', 'members_newsletters', 'collections_posts'].indexOf(existing.relatedData.joinTableName) !== -1) {
|
|
84
84
|
return Promise.resolve();
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -7,7 +7,6 @@ const tpl = require('@tryghost/tpl');
|
|
|
7
7
|
const errors = require('@tryghost/errors');
|
|
8
8
|
const nql = require('@tryghost/nql');
|
|
9
9
|
const htmlToPlaintext = require('@tryghost/html-to-plaintext');
|
|
10
|
-
const {posts: postExpansions} = require('@tryghost/nql-filter-expansions');
|
|
11
10
|
const ghostBookshelf = require('./base');
|
|
12
11
|
const config = require('../../shared/config');
|
|
13
12
|
const settingsCache = require('../../shared/settings-cache');
|
|
@@ -291,6 +290,28 @@ Post = ghostBookshelf.Model.extend({
|
|
|
291
290
|
filterExpansions: function filterExpansions() {
|
|
292
291
|
const postsMetaKeys = _.without(ghostBookshelf.model('PostsMeta').prototype.orderAttributes(), 'posts_meta.id', 'posts_meta.post_id');
|
|
293
292
|
|
|
293
|
+
const expansions = [{
|
|
294
|
+
key: 'primary_tag',
|
|
295
|
+
replacement: 'tags.slug',
|
|
296
|
+
expansion: 'posts_tags.sort_order:0+tags.visibility:public'
|
|
297
|
+
}, {
|
|
298
|
+
key: 'primary_author',
|
|
299
|
+
replacement: 'authors.slug',
|
|
300
|
+
expansion: 'posts_authors.sort_order:0+authors.visibility:public'
|
|
301
|
+
}, {
|
|
302
|
+
key: 'authors',
|
|
303
|
+
replacement: 'authors.slug'
|
|
304
|
+
}, {
|
|
305
|
+
key: 'author',
|
|
306
|
+
replacement: 'authors.slug'
|
|
307
|
+
}, {
|
|
308
|
+
key: 'tag',
|
|
309
|
+
replacement: 'tags.slug'
|
|
310
|
+
}, {
|
|
311
|
+
key: 'tags',
|
|
312
|
+
replacement: 'tags.slug'
|
|
313
|
+
}];
|
|
314
|
+
|
|
294
315
|
const postMetaKeyExpansions = postsMetaKeys.map((pmk) => {
|
|
295
316
|
return {
|
|
296
317
|
key: pmk.split('.')[1],
|
|
@@ -298,7 +319,7 @@ Post = ghostBookshelf.Model.extend({
|
|
|
298
319
|
};
|
|
299
320
|
});
|
|
300
321
|
|
|
301
|
-
return
|
|
322
|
+
return expansions.concat(postMetaKeyExpansions);
|
|
302
323
|
},
|
|
303
324
|
|
|
304
325
|
filterRelations: function filterRelations() {
|