ghost 5.110.3 → 5.111.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/components/tryghost-activitypub-5.111.0.tgz +0 -0
  2. package/components/tryghost-adapter-cache-memory-ttl-5.111.0.tgz +0 -0
  3. package/components/tryghost-adapter-cache-redis-5.111.0.tgz +0 -0
  4. package/components/{tryghost-adapter-manager-5.110.3.tgz → tryghost-adapter-manager-5.111.0.tgz} +0 -0
  5. package/components/tryghost-announcement-bar-settings-5.111.0.tgz +0 -0
  6. package/components/{tryghost-api-framework-5.110.3.tgz → tryghost-api-framework-5.111.0.tgz} +0 -0
  7. package/components/tryghost-api-version-compatibility-service-5.111.0.tgz +0 -0
  8. package/components/{tryghost-audience-feedback-5.110.3.tgz → tryghost-audience-feedback-5.111.0.tgz} +0 -0
  9. package/components/tryghost-bookshelf-repository-5.111.0.tgz +0 -0
  10. package/components/tryghost-bootstrap-socket-5.111.0.tgz +0 -0
  11. package/components/tryghost-captcha-service-5.111.0.tgz +0 -0
  12. package/components/tryghost-constants-5.111.0.tgz +0 -0
  13. package/components/tryghost-custom-fonts-5.111.0.tgz +0 -0
  14. package/components/{tryghost-custom-theme-settings-service-5.110.3.tgz → tryghost-custom-theme-settings-service-5.111.0.tgz} +0 -0
  15. package/components/{tryghost-data-generator-5.110.3.tgz → tryghost-data-generator-5.111.0.tgz} +0 -0
  16. package/components/tryghost-domain-events-5.111.0.tgz +0 -0
  17. package/components/tryghost-donations-5.111.0.tgz +0 -0
  18. package/components/{tryghost-email-addresses-5.110.3.tgz → tryghost-email-addresses-5.111.0.tgz} +0 -0
  19. package/components/tryghost-email-analytics-provider-mailgun-5.111.0.tgz +0 -0
  20. package/components/{tryghost-email-analytics-service-5.110.3.tgz → tryghost-email-analytics-service-5.111.0.tgz} +0 -0
  21. package/components/tryghost-email-content-generator-5.111.0.tgz +0 -0
  22. package/components/tryghost-email-events-5.111.0.tgz +0 -0
  23. package/components/tryghost-email-service-5.111.0.tgz +0 -0
  24. package/components/{tryghost-email-suppression-list-5.110.3.tgz → tryghost-email-suppression-list-5.111.0.tgz} +0 -0
  25. package/components/{tryghost-express-dynamic-redirects-5.110.3.tgz → tryghost-express-dynamic-redirects-5.111.0.tgz} +0 -0
  26. package/components/tryghost-external-media-inliner-5.111.0.tgz +0 -0
  27. package/components/tryghost-extract-api-key-5.111.0.tgz +0 -0
  28. package/components/tryghost-ghost-5.111.0.tgz +0 -0
  29. package/components/{tryghost-html-to-plaintext-5.110.3.tgz → tryghost-html-to-plaintext-5.111.0.tgz} +0 -0
  30. package/components/tryghost-i18n-5.111.0.tgz +0 -0
  31. package/components/tryghost-identity-token-service-5.111.0.tgz +0 -0
  32. package/components/{tryghost-importer-handler-content-files-5.110.3.tgz → tryghost-importer-handler-content-files-5.111.0.tgz} +0 -0
  33. package/components/{tryghost-importer-revue-5.110.3.tgz → tryghost-importer-revue-5.111.0.tgz} +0 -0
  34. package/components/tryghost-in-memory-repository-5.111.0.tgz +0 -0
  35. package/components/{tryghost-job-manager-5.110.3.tgz → tryghost-job-manager-5.111.0.tgz} +0 -0
  36. package/components/tryghost-link-redirects-5.111.0.tgz +0 -0
  37. package/components/tryghost-link-replacer-5.111.0.tgz +0 -0
  38. package/components/{tryghost-magic-link-5.110.3.tgz → tryghost-magic-link-5.111.0.tgz} +0 -0
  39. package/components/tryghost-mail-events-5.111.0.tgz +0 -0
  40. package/components/tryghost-mailgun-client-5.111.0.tgz +0 -0
  41. package/components/{tryghost-member-attribution-5.110.3.tgz → tryghost-member-attribution-5.111.0.tgz} +0 -0
  42. package/components/tryghost-member-events-5.111.0.tgz +0 -0
  43. package/components/{tryghost-members-api-5.110.3.tgz → tryghost-members-api-5.111.0.tgz} +0 -0
  44. package/components/{tryghost-members-csv-5.110.3.tgz → tryghost-members-csv-5.111.0.tgz} +0 -0
  45. package/components/{tryghost-members-importer-5.110.3.tgz → tryghost-members-importer-5.111.0.tgz} +0 -0
  46. package/components/{tryghost-members-offers-5.110.3.tgz → tryghost-members-offers-5.111.0.tgz} +0 -0
  47. package/components/tryghost-members-payments-5.111.0.tgz +0 -0
  48. package/components/{tryghost-members-ssr-5.110.3.tgz → tryghost-members-ssr-5.111.0.tgz} +0 -0
  49. package/components/{tryghost-members-stripe-service-5.110.3.tgz → tryghost-members-stripe-service-5.111.0.tgz} +0 -0
  50. package/components/tryghost-milestones-5.111.0.tgz +0 -0
  51. package/components/{tryghost-minifier-5.110.3.tgz → tryghost-minifier-5.111.0.tgz} +0 -0
  52. package/components/{tryghost-mw-api-version-mismatch-5.110.3.tgz → tryghost-mw-api-version-mismatch-5.111.0.tgz} +0 -0
  53. package/components/tryghost-mw-cache-control-5.111.0.tgz +0 -0
  54. package/components/{tryghost-mw-error-handler-5.110.3.tgz → tryghost-mw-error-handler-5.111.0.tgz} +0 -0
  55. package/components/tryghost-mw-session-from-token-5.111.0.tgz +0 -0
  56. package/components/{tryghost-mw-update-user-last-seen-5.110.3.tgz → tryghost-mw-update-user-last-seen-5.111.0.tgz} +0 -0
  57. package/components/tryghost-mw-version-match-5.111.0.tgz +0 -0
  58. package/components/tryghost-mw-vhost-5.111.0.tgz +0 -0
  59. package/components/tryghost-package-json-5.111.0.tgz +0 -0
  60. package/components/tryghost-post-events-5.111.0.tgz +0 -0
  61. package/components/tryghost-post-revisions-5.111.0.tgz +0 -0
  62. package/components/{tryghost-posts-service-5.110.3.tgz → tryghost-posts-service-5.111.0.tgz} +0 -0
  63. package/components/tryghost-prometheus-metrics-5.111.0.tgz +0 -0
  64. package/components/tryghost-recommendations-5.111.0.tgz +0 -0
  65. package/components/tryghost-referrers-5.111.0.tgz +0 -0
  66. package/components/{tryghost-security-5.110.3.tgz → tryghost-security-5.111.0.tgz} +0 -0
  67. package/components/{tryghost-session-service-5.110.3.tgz → tryghost-session-service-5.111.0.tgz} +0 -0
  68. package/components/tryghost-settings-path-manager-5.111.0.tgz +0 -0
  69. package/components/{tryghost-slack-notifications-5.110.3.tgz → tryghost-slack-notifications-5.111.0.tgz} +0 -0
  70. package/components/{tryghost-stats-service-5.110.3.tgz → tryghost-stats-service-5.111.0.tgz} +0 -0
  71. package/components/{tryghost-tiers-5.110.3.tgz → tryghost-tiers-5.111.0.tgz} +0 -0
  72. package/components/tryghost-version-notifications-data-service-5.111.0.tgz +0 -0
  73. package/components/tryghost-webmentions-5.111.0.tgz +0 -0
  74. package/core/boot.js +3 -0
  75. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +11401 -9442
  76. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
  77. package/core/built/admin/assets/admin-x-demo/{index-82e381fb.mjs → index-0040480a.mjs} +3252 -2891
  78. package/core/built/admin/assets/admin-x-demo/{modals-b20a9ede.mjs → modals-fb35c86c.mjs} +2 -2
  79. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-ea62c29b.mjs → CodeEditorView-1298238e.mjs} +624 -618
  80. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +3 -3
  81. package/core/built/admin/assets/admin-x-settings/{index-4b25c788.mjs → index-0f51ccb5.mjs} +2 -2
  82. package/core/built/admin/assets/admin-x-settings/{index-af8cf9cf.mjs → index-2707471f.mjs} +6759 -6372
  83. package/core/built/admin/assets/admin-x-settings/{modals-cb2dc7b7.mjs → modals-f5983704.mjs} +7887 -7668
  84. package/core/built/admin/assets/{chunk.524.01cdbeb306d32d4ff118.js → chunk.524.405c43b2cb20553b51d9.js} +8 -8
  85. package/core/built/admin/assets/{chunk.582.3351d053b74b1a1748c0.js → chunk.582.eb4b096f29c97c9d6a64.js} +9 -9
  86. package/core/built/admin/assets/{ghost-98d002d50a5e01d2100b2c387a849249.js → ghost-87cffc153ec73d217c1ae9f9207ea5e1.js} +36 -37
  87. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  88. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +16898 -16284
  89. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +224 -197
  90. package/core/built/admin/assets/posts/posts.js +24137 -24156
  91. package/core/built/admin/index.html +3 -3
  92. package/core/demo.js +6 -0
  93. package/core/demo.ts +3 -0
  94. package/core/frontend/services/sitemap/SiteMapManager.js +1 -1
  95. package/core/frontend/src/cards/css/cta.css +13 -5
  96. package/core/frontend/src/cards/css/video.css +1 -0
  97. package/core/server/api/endpoints/settings-public.js +3 -2
  98. package/core/server/api/endpoints/utils/serializers/input/settings.js +2 -1
  99. package/core/server/data/migrations/versions/5.111/2025-03-05-16-36-39-add-captcha-setting.js +8 -0
  100. package/core/server/data/schema/default-settings/default-settings.json +8 -0
  101. package/core/server/services/link-tracking/ClickEvent.js +25 -0
  102. package/core/server/services/link-tracking/FullPostLink.js +36 -0
  103. package/core/server/services/link-tracking/LinkClickRepository.js +1 -1
  104. package/core/server/services/link-tracking/LinkClickTrackingService.js +237 -0
  105. package/core/server/services/link-tracking/PostLink.js +29 -0
  106. package/core/server/services/link-tracking/PostLinkRepository.js +2 -2
  107. package/core/server/services/link-tracking/index.js +1 -1
  108. package/core/server/services/members-events/EventStorage.js +61 -0
  109. package/core/server/services/members-events/LastSeenAtCache.js +96 -0
  110. package/core/server/services/members-events/LastSeenAtUpdater.js +192 -0
  111. package/core/server/services/members-events/index.js +3 -1
  112. package/core/server/services/mentions-email-report/MentionEmailReportJob.js +117 -0
  113. package/core/server/services/mentions-email-report/service.js +3 -3
  114. package/core/server/services/staff/StaffService.js +179 -0
  115. package/core/server/services/staff/StaffServiceEmails.js +527 -0
  116. package/core/server/services/staff/email-templates/donation.hbs +119 -0
  117. package/core/server/services/staff/email-templates/donation.txt.js +15 -0
  118. package/core/server/services/staff/email-templates/mention-report.hbs +136 -0
  119. package/core/server/services/staff/email-templates/mention-report.txt.js +19 -0
  120. package/core/server/services/staff/email-templates/new-free-signup.hbs +118 -0
  121. package/core/server/services/staff/email-templates/new-free-signup.txt.js +13 -0
  122. package/core/server/services/staff/email-templates/new-milestone-received.hbs +142 -0
  123. package/core/server/services/staff/email-templates/new-milestone-received.txt.js +13 -0
  124. package/core/server/services/staff/email-templates/new-paid-cancellation.hbs +125 -0
  125. package/core/server/services/staff/email-templates/new-paid-cancellation.txt.js +13 -0
  126. package/core/server/services/staff/email-templates/new-paid-started.hbs +124 -0
  127. package/core/server/services/staff/email-templates/new-paid-started.txt.js +13 -0
  128. package/core/server/services/staff/email-templates/partials/preview.hbs +6 -0
  129. package/core/server/services/staff/email-templates/partials/styles.hbs +114 -0
  130. package/core/server/services/staff/email-templates/recommendation-received.hbs +154 -0
  131. package/core/server/services/staff/email-templates/recommendation-received.txt.js +13 -0
  132. package/core/server/services/staff/index.js +1 -1
  133. package/core/server/services/staff/milestone-email-config.js +207 -0
  134. package/core/server/services/url/Resources.js +1 -1
  135. package/core/shared/config/defaults.json +2 -1
  136. package/core/shared/events/URLResourceUpdatedEvent.js +33 -0
  137. package/core/shared/settings-cache/public.js +1 -0
  138. package/package.json +157 -157
  139. package/tsconfig.json +105 -0
  140. package/tsconfig.tsbuildinfo +1 -0
  141. package/yarn.lock +342 -89
  142. package/components/tryghost-activitypub-5.110.3.tgz +0 -0
  143. package/components/tryghost-adapter-cache-memory-ttl-5.110.3.tgz +0 -0
  144. package/components/tryghost-adapter-cache-redis-5.110.3.tgz +0 -0
  145. package/components/tryghost-announcement-bar-settings-5.110.3.tgz +0 -0
  146. package/components/tryghost-api-version-compatibility-service-5.110.3.tgz +0 -0
  147. package/components/tryghost-bookshelf-repository-5.110.3.tgz +0 -0
  148. package/components/tryghost-bootstrap-socket-5.110.3.tgz +0 -0
  149. package/components/tryghost-captcha-service-5.110.3.tgz +0 -0
  150. package/components/tryghost-constants-5.110.3.tgz +0 -0
  151. package/components/tryghost-custom-fonts-5.110.3.tgz +0 -0
  152. package/components/tryghost-domain-events-5.110.3.tgz +0 -0
  153. package/components/tryghost-donations-5.110.3.tgz +0 -0
  154. package/components/tryghost-dynamic-routing-events-5.110.3.tgz +0 -0
  155. package/components/tryghost-email-analytics-provider-mailgun-5.110.3.tgz +0 -0
  156. package/components/tryghost-email-content-generator-5.110.3.tgz +0 -0
  157. package/components/tryghost-email-events-5.110.3.tgz +0 -0
  158. package/components/tryghost-email-service-5.110.3.tgz +0 -0
  159. package/components/tryghost-external-media-inliner-5.110.3.tgz +0 -0
  160. package/components/tryghost-extract-api-key-5.110.3.tgz +0 -0
  161. package/components/tryghost-ghost-5.110.3.tgz +0 -0
  162. package/components/tryghost-i18n-5.110.3.tgz +0 -0
  163. package/components/tryghost-identity-token-service-5.110.3.tgz +0 -0
  164. package/components/tryghost-in-memory-repository-5.110.3.tgz +0 -0
  165. package/components/tryghost-link-redirects-5.110.3.tgz +0 -0
  166. package/components/tryghost-link-replacer-5.110.3.tgz +0 -0
  167. package/components/tryghost-link-tracking-5.110.3.tgz +0 -0
  168. package/components/tryghost-mail-events-5.110.3.tgz +0 -0
  169. package/components/tryghost-mailgun-client-5.110.3.tgz +0 -0
  170. package/components/tryghost-member-events-5.110.3.tgz +0 -0
  171. package/components/tryghost-members-events-service-5.110.3.tgz +0 -0
  172. package/components/tryghost-members-payments-5.110.3.tgz +0 -0
  173. package/components/tryghost-mentions-email-report-5.110.3.tgz +0 -0
  174. package/components/tryghost-milestones-5.110.3.tgz +0 -0
  175. package/components/tryghost-mw-cache-control-5.110.3.tgz +0 -0
  176. package/components/tryghost-mw-session-from-token-5.110.3.tgz +0 -0
  177. package/components/tryghost-mw-version-match-5.110.3.tgz +0 -0
  178. package/components/tryghost-mw-vhost-5.110.3.tgz +0 -0
  179. package/components/tryghost-package-json-5.110.3.tgz +0 -0
  180. package/components/tryghost-post-events-5.110.3.tgz +0 -0
  181. package/components/tryghost-post-revisions-5.110.3.tgz +0 -0
  182. package/components/tryghost-prometheus-metrics-5.110.3.tgz +0 -0
  183. package/components/tryghost-recommendations-5.110.3.tgz +0 -0
  184. package/components/tryghost-referrers-5.110.3.tgz +0 -0
  185. package/components/tryghost-settings-path-manager-5.110.3.tgz +0 -0
  186. package/components/tryghost-staff-service-5.110.3.tgz +0 -0
  187. package/components/tryghost-version-notifications-data-service-5.110.3.tgz +0 -0
  188. package/components/tryghost-webmentions-5.110.3.tgz +0 -0
@@ -0,0 +1,207 @@
1
+ /**
2
+ *
3
+ * @param {string} siteTitle
4
+ * @param {string} formattedValue
5
+ *
6
+ * @returns {Object.<string, object>}
7
+ */
8
+ const milestoneEmailConfig = (siteTitle, formattedValue) => {
9
+ const arrContent = {
10
+ subject: `${siteTitle} hit ${formattedValue} ARR`,
11
+ heading: `Congrats! You reached ${formattedValue} ARR`,
12
+ content: [
13
+ `<strong>${siteTitle}</strong> is now generating <strong>${formattedValue}</strong> in annual recurring revenue. Congratulations &mdash; this is a significant milestone.`,
14
+ 'Subscription revenue is predictable and sustainable, meaning you can keep focusing on delivering great content while watching your business grow. Keep up the great work. See you at the next milestone!'
15
+ ],
16
+ ctaText: 'Login to your dashboard'
17
+ };
18
+
19
+ return {
20
+ // For ARR we use the same content and only the image changes
21
+ // Should we start to support different currencies, we'll need
22
+ // to update the structure for ARR content to reflect that.
23
+ arr: {
24
+ 100: {
25
+ ...arrContent,
26
+ image: {
27
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-100.png',
28
+ height: 348
29
+ }
30
+ },
31
+ 1000: {
32
+ ...arrContent,
33
+ image: {
34
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-1000.png',
35
+ height: 348
36
+ }
37
+ },
38
+ 10000: {
39
+ ...arrContent,
40
+ image: {
41
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-10k.png',
42
+ height: 348
43
+ }
44
+ },
45
+ 50000: {
46
+ ...arrContent,
47
+ image: {
48
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-50k.png',
49
+ height: 348
50
+ }
51
+ },
52
+ 100000: {
53
+ ...arrContent,
54
+ heading: `Congrats! You reached $100k ARR`,
55
+ image: {
56
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-100k.png',
57
+ height: 348
58
+ }
59
+ },
60
+ 250000: {
61
+ ...arrContent,
62
+ heading: `Congrats! You reached $250k ARR`,
63
+ image: {
64
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-250k.png',
65
+ height: 348
66
+ }
67
+ },
68
+ 500000: {
69
+ ...arrContent,
70
+ heading: `Congrats! You reached $500k ARR`,
71
+ image: {
72
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-500k.png',
73
+ height: 348
74
+ }
75
+ },
76
+ 1000000: {
77
+ ...arrContent,
78
+ heading: `Congrats! You reached $1m ARR`,
79
+ image: {
80
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-usd-1m.png',
81
+ height: 348
82
+ }
83
+ }
84
+ },
85
+ members: {
86
+ 100: {
87
+ subject: `${siteTitle} has ${formattedValue} members 🤗`,
88
+ heading: `Milestone achieved: ${formattedValue} signups`,
89
+ content: [
90
+ 'All the hard work in getting your publication up and running paid off, and your work has since gone on to inspire more than <strong>100 people</strong> to sign up. This is the first major milestone in growing an online audience, and you’ve made it here!',
91
+ 'So what’s next?',
92
+ 'If you keep up the great work you’ll be well on your way to growing an even bigger audience. In the meantime, here’s some actionable advice about <strong><a href="https://ghost.org/resources/first-1000-email-subscribers/">how to reach the next major milestones</a></strong>.',
93
+ 'You got this!'
94
+ ],
95
+ ctaText: 'Login to your dashboard',
96
+ image: {
97
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-100.png'
98
+ }
99
+ },
100
+ 1000: {
101
+ subject: `${siteTitle} now has ${formattedValue} members`,
102
+ heading: `You have ${formattedValue} true fans`,
103
+ content: [
104
+ `Congrats, <strong>${siteTitle}</strong> has officially reached <strong>${formattedValue} member signups</strong>.`,
105
+ 'This is such an impressive milestone and according to Kevin Kelly’s true fan <a href="https://kk.org/thetechnium/1000-true-fans/">theory</a>, it means you now have a direct relationship with enough people to run a truly independent creator business online.',
106
+ `Imagine ${formattedValue} people all in one room at the same time. That's a lot of people. It's also how many people are happy that you show up to create your work. Very cool. Keep up the great work!`
107
+ ],
108
+ ctaText: 'See your member stats',
109
+ image: {
110
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-1000.png'
111
+ }
112
+ },
113
+ 10000: {
114
+ subject: `${siteTitle} now has 10k members`,
115
+ heading: 'Huge success: 10k members',
116
+ content: [
117
+ `There are now <strong>10k people</strong> who enjoy <strong>${siteTitle}</strong> so much they decided to sign up as members.`,
118
+ 'Building an audience of any size as an independent creator requires dedication, and reaching this incredible milestone is an impressive feat worth celebrating. There’s no stopping you now, keep up the great work!'
119
+ ],
120
+ ctaText: 'Go to your dashboard',
121
+ image: {
122
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-10k.png'
123
+ }
124
+ },
125
+ 25000: {
126
+ subject: `${siteTitle} now has 25k members`,
127
+ heading: `Celebrating ${formattedValue} signups`,
128
+ content: [
129
+ 'Congrats, <strong>25k people</strong> have chosen to support and follow your work. That’s an audience big enough to sell out Madison Square Garden. What an incredible milestone!',
130
+ 'It takes a lot of work and dedication to build an audience as an independent creator, so here’s to recognizing what you’ve achieved.',
131
+ 'Keep up the great work!'
132
+ ],
133
+ ctaText: 'View your dashboard',
134
+ image: {
135
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-25k.png'
136
+ }
137
+ },
138
+ 50000: {
139
+ subject: `${siteTitle} now has 50k members`,
140
+ heading: `${formattedValue} people love your work`,
141
+ content: [
142
+ `It's time to pop the champagne because <strong>${siteTitle}</strong> has officially reached <strong>50k members</strong>. At this rate of growth you can almost fill a Superbowl stadium 🏈`,
143
+ 'Building an audience of this size is an incredible achievement, so hats off to you. Keep up the amazing work.',
144
+ 'See you at the next milestone!'
145
+ ],
146
+ ctaText: 'Go to your Dashboard',
147
+ image: {
148
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-50k.png'
149
+ }
150
+ },
151
+ 100000: {
152
+ subject: `${siteTitle} just hit 100k members!`,
153
+ heading: `You just reached ${formattedValue} members`,
154
+ content: [
155
+ 'Congratulations &mdash; your work has attracted an audience of <strong>100k people</strong> from around the world. Fun fact: Your audience is now big enough to fill any of the largest stadiums in the United States.',
156
+ 'Whatever you’re doing, it’s working. The sky is the limit from here. Keep up the great work (but first, go and celebrate this impressive milestone, you earned it).'
157
+ ],
158
+ ctaText: 'Go to your dashboard',
159
+ image: {
160
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-100k.png'
161
+ }
162
+ },
163
+ 250000: {
164
+ subject: `${siteTitle} now has 250k members`,
165
+ heading: 'Celebrating 250k member signups',
166
+ content: [
167
+ `One-quarter of a million people enjoy and support <strong>${siteTitle}</strong>. That’s the same number of people who make up the crowds at the SXSW festival.`,
168
+ 'You’re officially in the top 5% of creators using Ghost 🚀',
169
+ 'Reaching this milestone is no easy feat, so make sure you take some time to recognize how far you’ve come.',
170
+ 'Keep up the amazing work!'
171
+ ],
172
+ ctaText: 'Go to your dashboard',
173
+ image: {
174
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-250k.png'
175
+ }
176
+ },
177
+ 500000: {
178
+ subject: `${siteTitle} has ${formattedValue} members`,
179
+ heading: `Half a million members!`,
180
+ content: [
181
+ `Congrats, <strong>${siteTitle}</strong> has officially attracted an audience of more than <strong>${formattedValue} people</strong>, and counting.`,
182
+ 'You’re officially in the top 3% of creators using Ghost. ',
183
+ 'It takes a huge amount of hard work and dedication to build an audience of this size. It is a testament to how much value your work is providing to thousands of people all over the world. Keep up the great work, and make sure to take the time to celebrate this incredible milestone.'
184
+ ],
185
+ ctaText: 'Login to your dashboard',
186
+ image: {
187
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-500k.png'
188
+ }
189
+ },
190
+ 1000000: {
191
+ subject: `${siteTitle} has 1 million members`,
192
+ heading: `You did it. 1 million members 🏆`,
193
+ content: [
194
+ `Start writing your acceptance speech! The <strong>${siteTitle}</strong> audience is now officially big enough to headline an event at the Copacabana, with more than <strong>1 million members</strong>. That puts you in the top 1% of creators using Ghost.`,
195
+ 'In all seriousness, this is an <em>incredible</em> achievement and something to be very proud of. You deserve all the credit as a truly independent creator.',
196
+ 'Keep it up, you’re creating amazing value in the world!'
197
+ ],
198
+ ctaText: 'Go to your dashboard',
199
+ image: {
200
+ url: 'https://static.ghost.org/v5.0.0/images/milestone-email-members-1m.png'
201
+ }
202
+ }
203
+ }
204
+ };
205
+ };
206
+
207
+ module.exports = milestoneEmailConfig;
@@ -1,7 +1,7 @@
1
1
  const _ = require('lodash');
2
2
  const debug = require('@tryghost/debug')('services:url:resources');
3
3
  const DomainEvents = require('@tryghost/domain-events');
4
- const {URLResourceUpdatedEvent} = require('@tryghost/dynamic-routing-events');
4
+ const URLResourceUpdatedEvent = require('../../../shared/events/URLResourceUpdatedEvent');
5
5
  const Resource = require('./Resource');
6
6
  const config = require('../../../shared/config');
7
7
  const models = require('../../models');
@@ -127,7 +127,8 @@
127
127
  "lifetime": 3600,
128
128
  "freeRetries": 10
129
129
  },
130
- "blocked_email_domains": []
130
+ "blocked_email_domains": [],
131
+ "captcha_enabled": false
131
132
  },
132
133
  "caching": {
133
134
  "301": {
@@ -0,0 +1,33 @@
1
+ module.exports = class URLResourceUpdatedEvent {
2
+ /**
3
+ * @readonly
4
+ * @type {Object}
5
+ */
6
+ data;
7
+
8
+ /**
9
+ * @readonly
10
+ * @type {Date}
11
+ */
12
+ timestamp;
13
+
14
+ /**
15
+ * @private
16
+ */
17
+ constructor({timestamp, ...data}) {
18
+ this.data = data;
19
+ this.timestamp = timestamp;
20
+ }
21
+
22
+ /**
23
+ *
24
+ * @param {Object} data URL Resource
25
+ * @returns
26
+ */
27
+ static create(data) {
28
+ return new URLResourceUpdatedEvent({
29
+ ...data,
30
+ timestamp: data.timestamp || new Date
31
+ });
32
+ }
33
+ };
@@ -48,5 +48,6 @@ module.exports = {
48
48
  default_email_address: 'default_email_address',
49
49
  support_email_address: 'support_email_address',
50
50
  editor_default_email_recipients: 'editor_default_email_recipients',
51
+ captcha_enabled: 'captcha_enabled',
51
52
  labs: 'labs'
52
53
  };