@reddoorla/maintenance 0.45.0 → 0.46.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.
- package/dist/cli/bin.js +15 -19
- package/dist/cli/bin.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +15 -19
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/bin.js
CHANGED
|
@@ -827,7 +827,6 @@ var init_copy = __esm({
|
|
|
827
827
|
announceCadenceHeading: "WHAT TO EXPECT",
|
|
828
828
|
announceTestingLabel: "Full site testing",
|
|
829
829
|
announceMaintenanceLabel: "Routine maintenance",
|
|
830
|
-
announceMonitorItems: ["Performance", "Accessibility", "Security", "Uptime"],
|
|
831
830
|
announcePreviewLabel: "From your latest full site test:",
|
|
832
831
|
announceImprovementResend: "Your contact forms now deliver straight to your inbox through reliable infrastructure, so no inquiry slips through the cracks.",
|
|
833
832
|
announceImprovementSvelte5: "We've modernized your site to the latest framework \u2014 it's faster, more secure, and built to last.",
|
|
@@ -1187,26 +1186,29 @@ function buildAnnouncementMjml(data) {
|
|
|
1187
1186
|
</mj-column>
|
|
1188
1187
|
</mj-section>` : "";
|
|
1189
1188
|
const cad = data.cadence;
|
|
1190
|
-
const
|
|
1189
|
+
const cadenceBlocks = [];
|
|
1191
1190
|
if (cad && cad.testing !== "None")
|
|
1192
|
-
|
|
1191
|
+
cadenceBlocks.push({
|
|
1192
|
+
line: `${copy.announceTestingLabel} \u2014 ${FREQ_PHRASE[cad.testing]}`,
|
|
1193
|
+
checks: copy.testingChecklist
|
|
1194
|
+
});
|
|
1193
1195
|
if (cad && cad.maintenance !== "None")
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
+
cadenceBlocks.push({
|
|
1197
|
+
line: `${copy.announceMaintenanceLabel} \u2014 ${FREQ_PHRASE[cad.maintenance]}`,
|
|
1198
|
+
checks: copy.maintenanceChecks
|
|
1199
|
+
});
|
|
1200
|
+
const cadenceSection = cadenceBlocks.length > 0 ? `
|
|
1196
1201
|
<mj-section background-color="white">
|
|
1197
1202
|
<mj-column>
|
|
1198
1203
|
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="36px">${escapeXml(copy.announceCadenceHeading)}</mj-text>
|
|
1199
|
-
${
|
|
1200
|
-
(
|
|
1201
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="
|
|
1204
|
+
${cadenceBlocks.map(
|
|
1205
|
+
(b) => `
|
|
1206
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="400" line-height="24px" padding-top="12px" padding-bottom="0px">\u2022 ${escapeXml(b.line)}</mj-text>
|
|
1207
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="13px" font-weight="300" line-height="20px" padding-top="2px" padding-bottom="0px" padding-left="16px">${escapeXml(b.checks.join(" \xB7 "))}</mj-text>`
|
|
1202
1208
|
).join("")}
|
|
1203
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="
|
|
1209
|
+
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="14px">${escapeXml(copy.announceCadence)}</mj-text>
|
|
1204
1210
|
</mj-column>
|
|
1205
1211
|
</mj-section>` : "";
|
|
1206
|
-
const monitorRows = copy.announceMonitorItems.map(
|
|
1207
|
-
(item) => `
|
|
1208
|
-
<mj-text color="${GREY2}" font-family="helvetica, sans-serif" font-size="16px" font-weight="300" line-height="24px" padding-top="4px" padding-bottom="4px">\u2022 ${escapeXml(item)}</mj-text>`
|
|
1209
|
-
).join("");
|
|
1210
1212
|
const scoreRows = SCORE_PREVIEW.map(
|
|
1211
1213
|
({ label, key }) => `
|
|
1212
1214
|
<mj-text color="${RED2}" font-size="20px" font-weight="300" padding-top="25px">${label}</mj-text>
|
|
@@ -1243,12 +1245,6 @@ function buildAnnouncementMjml(data) {
|
|
|
1243
1245
|
</mj-section>
|
|
1244
1246
|
${cadenceSection}
|
|
1245
1247
|
${improvementsSection}
|
|
1246
|
-
<mj-section background-color="white">
|
|
1247
|
-
<mj-column>
|
|
1248
|
-
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="36px">WHAT WE MONITOR</mj-text>
|
|
1249
|
-
${monitorRows}
|
|
1250
|
-
</mj-column>
|
|
1251
|
-
</mj-section>
|
|
1252
1248
|
<mj-section background-color="#F4F4F4">
|
|
1253
1249
|
<mj-column>
|
|
1254
1250
|
<mj-text color="${RED2}" font-size="20px" font-weight="700" padding-top="55px">${escapeXml(copy.announcePreviewLabel)}</mj-text>
|