Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Add dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Oct 28, 2021
1 parent 5bacf0f commit 5243e09
Show file tree
Hide file tree
Showing 7 changed files with 1,448 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/index.js

Large diffs are not rendered by default.

251 changes: 251 additions & 0 deletions dist/templates/customers.login.token/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html data-editor-version="2" class="sg-campaigns" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" /><!--[if !mso]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /><!--<![endif]-->
<!--[if (gte mso 9)|(IE)]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<!--[if (gte mso 9)|(IE)]>
<style type="text/css">
body {width: 600px;margin: 0 auto;}
table {border-collapse: collapse;}
table, td {mso-table-lspace: 0pt;mso-table-rspace: 0pt;}
img {-ms-interpolation-mode: bicubic;}
</style>
<![endif]-->

<style type="text/css">
body, p, div {
font-family: arial;
font-size: 14px;
}
body {
color: #000000;
}
body a {
color: #1188E6;
text-decoration: none;
}
p { margin: 0; padding: 0; }
table.wrapper {
width:100% !important;
table-layout: fixed;
-webkit-font-smoothing: antialiased;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
img.max-width {
max-width: 100% !important;
}
.column.of-2 {
width: 50%;
}
.column.of-3 {
width: 33.333%;
}
.column.of-4 {
width: 25%;
}
@media screen and (max-width:480px) {
.preheader .rightColumnContent,
.footer .rightColumnContent {
text-align: left !important;
}
.preheader .rightColumnContent div,
.preheader .rightColumnContent span,
.footer .rightColumnContent div,
.footer .rightColumnContent span {
text-align: left !important;
}
.preheader .rightColumnContent,
.preheader .leftColumnContent {
font-size: 80% !important;
padding: 5px 0;
}
table.wrapper-mobile {
width: 100% !important;
table-layout: fixed;
}
img.max-width {
height: auto !important;
max-width: 480px !important;
}
a.bulletproof-button {
display: block !important;
width: auto !important;
font-size: 80%;
padding-left: 0 !important;
padding-right: 0 !important;
}
.columns {
width: 100% !important;
}
.column {
display: block !important;
width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
.total_spacer {
padding:0px 0px 0px 0px;
}
}
</style>
<!--user entered Head Start-->

<!--End Head user entered-->
</head>
<body>
<center class="wrapper" data-link-color="#1188E6" data-body-style="font-size: 14px; font-family: arial; color: #000000; background-color: #ebebeb;">
<div class="webkit">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="wrapper" bgcolor="#ebebeb">
<tr>
<td valign="top" bgcolor="#ebebeb" width="100%">
<table width="100%" role="content-container" class="outer" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="100%">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<!--[if mso]>
<center>
<table><tr><td width="600">
<![endif]-->
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="width: 100%; max-width:600px;" align="center">
<tr>
<td role="modules-container" style="padding: 0px 0px 0px 0px; color: #000000; text-align: left;" bgcolor="#ffffff" width="100%" align="left">

<table class="module preheader preheader-hide" role="module" data-type="preheader" border="0" cellpadding="0" cellspacing="0" width="100%"
style="display: none !important; mso-hide: all; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">
<tr>
<td role="module-content">
<p></p>
</td>
</tr>
</table>

<table class="wrapper" role="module" data-type="image" border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td style="font-size:6px;line-height:10px;padding:0px 0px 0px 0px;" valign="top" align="center">
{{# if merchant.images.logo.url }}
<img class="max-width" border="0" style="display:block;color:#000000;text-decoration:none;font-family:Helvetica, arial, sans-serif;font-size:16px;max-width:100% !important;width:100%;height:auto !important;" src="{{merchant.images.logo.url}}" alt="{{merchant.business_name}}" width="{{merchant.images.logo.image_dimensions.width}}" height={{merchant.images.logo.image_dimensions.height}}>
{{else}}
<img class="max-width" border="0" style="display:block;color:#000000;text-decoration:none;font-family:Helvetica, arial, sans-serif;font-size:16px;max-width:100% !important;width:100%;height:auto !important;" src="https://marketing-image-production.s3.amazonaws.com/uploads/b09553df6918fe296ecfc240db655a184ff3a1317ee2d54e13d532e60177715894449dc25615184d98cf1c480c7935c7953cf6eeef5742bfdb6a66aecb5eabee.png" alt="" width="600">
{{/if}}
</td>
</tr>
</table>

<table class="module" role="module" data-type="text" border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td style="padding:25px 20px 10px 20px;line-height:20px;text-align:inherit;"
height="100%"
valign="top"
bgcolor="">
<h2 style="text-align: center;">Log in to your account</h2>
</td>
</tr>
<tr>
<td style="padding:15px 20px 40px 20px;line-height:20px;text-align:inherit;"
height="100%"
valign="top"
bgcolor="">
<p style="text-align: center;">Please click on the button below to continue logging into your account:</p>
</td>
</tr>
<tr>
<td style="padding:15px 20px 40px 20px;line-height:20px;text-align:inherit;"
height="100%"
valign="top"
bgcolor="">
<p style="text-align: center;"><a href="{{payload.url}}" style="padding: 20px; background: green; color: white; font-weight: bold">Log in</a></p>
</td>
</tr>
<tr>
<td style="padding:15px 20px 40px 20px;line-height:20px;text-align:inherit;"
height="100%"
valign="top"
bgcolor="">
<p style="text-align: center; font-size: 0.7rem;">Can't open the link? Try copy and pasting the following URL into your browser: <a href="{{payload.url}}">{{payload.url}}</a></p>
<p style="text-align: center; margin-top: 20px;">If you were not expecting to receive this email, you may safely ignore it.</p>
</td>
</tr>
</table>

<table class="module"
role="module"
data-type="divider"
border="0"
cellpadding="0"
cellspacing="0"
width="100%"
style="table-layout: fixed;">
<tr>
<td style="padding:0px 0px 0px 0px;"
role="module-content"
height="100%"
valign="top"
bgcolor="">
<table border="0"
cellpadding="0"
cellspacing="0"
align="center"
width="100%"
height="5px"
style="line-height:5px; font-size:5px;">
<tr>
<td
style="padding: 0px 0px 5px 0px;"
bgcolor="#ebebeb"></td>
</tr>
</table>
</td>
</tr>
</table>

<table class="module" role="module" data-type="text" border="0" cellpadding="0" cellspacing="0" width="100%" style="table-layout: fixed;">
<tr>
<td style="padding:30px 20px 30px 20px;line-height:22px;text-align:inherit;background-color:#F5F5F5;"
height="100%"
valign="top"
bgcolor="#F5F5F5">
<div style="text-align: center;"><span style="color:#7a7a7a;"><span style="font-size:11px;">If you have any questions, reply to this email or contact <a href="mailto:{{merchant.support_email}}">{{merchant.support_email}}</a>.</span></span></div>
</td>
</tr>
</table>

<div data-role="module-unsubscribe" class="module unsubscribe-css__unsubscribe___2CDlR" role="module" data-type="unsubscribe" style="background-color:#ebebeb;color:#7a7a7a;font-size:11px;line-height:20px;padding:30px 0px 30px 0px;text-align:center"><div class="Unsubscribe--addressLine"><p class="Unsubscribe--senderName" style="font-family:;font-size:11px;line-height:20px">{{merchant.business_name}}</p><p style="font-family:;font-size:11px;line-height:20px">
{{#if merchant.address.public}}
<span class="Unsubscribe--senderAddress">{{merchant.address.street}}</span>, <span class="Unsubscribe--senderCity">{{merchant.address.city}}</span>, <span class="Unsubscribe--senderState">{{merchant.address.region}}</span> <span class="Unsubscribe--senderZip">{{merchant.address.postal_zip_code}}</span>
{{/if}}</p></div></div>

</td>
</tr>
</table>
<!--[if mso]>
</td></tr></table>
</center>
<![endif]-->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</center>
</body>
</html>
75 changes: 75 additions & 0 deletions dist/templates/customers.login.token/testData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"id": "...",
"created": 1634768366,
"event": "orders.create",
"response_code": 201,
"payload": {
"success": true,
"url": "https://mywebsite.com/token/1514b7be-bc8d-42f3-b9eb-b5aafe2da1f1"
},
"merchant": {
"id": 12345,
"status": "active",
"country": "US",
"currency": {
"symbol": "$",
"code": "USD"
},
"has": {
"logo": true,
"cover": false,
"analytics": false,
"enabled_hosted_checkouts": true,
"enabled_hosted_storefront": true,
"business_description": true
},
"support_email": "[email protected]",
"logo_shape": null,
"intercom": true,
"analytics": {
"google": {
"settings": {
"tracking_id": null,
"linked_domains": null
}
}
},
"address": {
"street": "123 Fake St",
"city": "San Francisco",
"region": "CA",
"country": "US",
"postal_zip_code": "94107",
"public": true
},
"billing": {
"has_payment_method": true,
"plan": "Standard"
},
"primary_interest": null,
"cors_domains": [],
"business_name": "Your Company",
"business_description": "<p><\/p>",
"logo": "https://cdn.chec.io/chec-assets/email/holo-on-dark.png",
"cover": null,
"images": {
"logo": {
"id": "ast_NXELwj19Qpl3A4",
"url": "https://cdn.chec.io/chec-assets/email/holo-on-dark.png",
"description": null,
"is_image": true,
"filename": "holo-on-dark.png",
"file_size": 30320,
"file_extension": "png",
"image_dimensions": {
"width": 400,
"height": 400
},
"meta": [],
"created_at": 1631554267,
"updated_at": 1631554270
},
"cover": null
}
}
}
Loading

0 comments on commit 5243e09

Please sign in to comment.