Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#IOCOM-539] Use new template version #281

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions EmailNotification/__tests__/__snapshots__/utils.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -288,15 +288,15 @@ Object {
<tbody>
<tr>
<td style=\\"width:36px;\\">
<img height=\\"auto\\" src=\\"https://raw.githubusercontent.com/pagopa/io-messages-email-templates/v1.0.6/assets/logo_app_io.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"36\\" />
<img height=\\"auto\\" src=\\"https://raw.githubusercontent.com/pagopa/io-messages-email-templates/v1.0.10/assets/logo_app_io.png\\" style=\\"border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;\\" width=\\"36\\" />
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<div class=\\"dark-img\\" style=\\"mso-hide: all; display: none; padding: 10px 0px\\">
<img src=\\"https://raw.githubusercontent.com/pagopa/io-messages-email-templates/v1.0.6/assets/logo_app_io_white.png\\" width=\\"36px\\" class=\\"dark-img\\" style=\\"display: none\\" />
<img src=\\"https://raw.githubusercontent.com/pagopa/io-messages-email-templates/v1.0.10/assets/logo_app_io_white.png\\" width=\\"36px\\" class=\\"dark-img\\" style=\\"display: none\\" />
</div>
</tbody>
</table>
Expand All @@ -321,7 +321,7 @@ Object {
<tr>
<td align=\\"left\\" class=\\"title\\" style=\\"font-size:0px;padding:10px 25px;padding-top:24px;padding-right:0px;padding-bottom:8px;padding-left:0px;word-break:break-word;\\">
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:13px;font-weight:bold;line-height:1;text-align:left;color:#17324D;\\"><!-- H4 Desktop (from MUI Italia)-->
<h1 style=\\"font-size: 32px; line-height: 36px; margin: 0\\"> testtesttesttesttesttesttesttesttesttest </h1>
<h1 style=\\"font-size: 32px; line-height: 36px; margin: 0\\"> Hai un nuovo messaggio da leggere </h1>
</div>
</td>
</tr>
Expand Down Expand Up @@ -365,12 +365,12 @@ Object {
<tbody>
<tr>
<td align=\\"left\\" class=\\"text\\" style=\\"font-size:0px;padding:0;word-break:break-word;\\">
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:14px;font-weight:bold;line-height:20px;text-align:left;color:#17324D;\\">aDepartmentName<br /> A_SERVICE_NAME</div>
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:14px;font-weight:bold;line-height:20px;text-align:left;color:#17324D;\\">An Organization Name<br /></div>
</td>
</tr>
<tr>
<td align=\\"left\\" class=\\"text\\" style=\\"font-size:0px;padding:0;word-break:break-word;\\">
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:14px;font-weight:regular;line-height:20px;text-align:left;color:#17324D;\\">An Organization Name</div>
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:14px;font-weight:regular;line-height:20px;text-align:left;color:#17324D;\\">A_SERVICE_NAME</div>
</td>
</tr>
<tr>
Expand All @@ -383,7 +383,7 @@ Object {
</tr>
<tr>
<td align=\\"left\\" class=\\"text\\" style=\\"font-size:0px;padding:0;word-break:break-word;\\">
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:16px;font-weight:bold;line-height:24px;text-align:left;color:#17324D;\\">A_SERVICE_NAME</div>
<div style=\\"font-family:Titillium Web, system-ui, sans-serif;font-size:16px;font-weight:bold;line-height:24px;text-align:left;color:#17324D;\\">testtesttesttesttesttesttesttesttesttest</div>
</td>
</tr>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"generate": "npm-run-all generate:* generate:templates:*",
"generate:definitions": "rimraf ./generated/definitions && shx mkdir -p ./generated/definitions && gen-api-models --api-spec ./openapi/index.yaml --no-strict --out-dir ./generated/definitions",
"generate:payment-updater": "rimraf generated/payment-updater && shx mkdir -p generated/payment-updater && gen-api-models --api-spec ./openapi/payment-updater.yaml --no-strict --out-dir ./generated/payment-updater --request-types --response-decoders --client",
"generate:templates:messagepreview": "shx rm -rf generated/templates/messagepreview && shx mkdir -p generated/templates/messagepreview && ts-node template_reduced_script.ts v1.0.6 \"generated/templates/messagepreview/index\"",
"generate:templates:messagepreview": "shx rm -rf generated/templates/messagepreview && shx mkdir -p generated/templates/messagepreview && ts-node template_reduced_script.ts v1.0.10 \"generated/templates/messagepreview/index\"",
"openapi:bundle": "bundle-api-spec -i openapi/index.yaml.template -o openapi/index.yaml -V $npm_package_version",
"openapi:validate": "oval validate -p openapi/index.yaml",
"dist:modules": "modclean -r -n default:safe && yarn install --production",
Expand Down