@flowfuse/flowfuse
Version:
An open source low-code development platform
57 lines (46 loc) • 1.46 kB
JavaScript
module.exports = {
subject: 'FlowFuse Instance crashed',
text:
`Hello
Your FlowFuse Instance "{{{ name }}}"{{#if teamName.text}} in Team "{{{ teamName.text }}}"{{/if}} has crashed.
{{#if log.text}}
------------------------------------------------------
Logs:
{{#log.text}}
Timestamp: {{{timestamp}}}
Severity: {{{level}}}
Message: {{{message}}}
{{/log.text}}
Note: Timestamps in this log are in UTC (Coordinated Universal Time).
------------------------------------------------------
{{/if}}
You can access the instance and its logs here:
{{{ url }}}
`,
html:
`<p>Hello</p>
<p>Your FlowFuse Instance "{{{ name }}}"{{#if teamName.html}} in Team "{{{ teamName.html }}}"{{/if}} has crashed.</p>
{{#if log.html}}
<p>
Logs:
<table style="width: 100%; font-size: small; font-family: monospace; white-space: pre;">
<tr>
<th style="text-align: left; min-width: 135px;">Timestamp</th>
<th style="text-align: left; white-space: nowrap;">Severity</th>
<th style="text-align: left;">Message</th>
</tr>
{{#log.html}}
<tr>
<td style="vertical-align: text-top;">{{{timestamp}}}</td>
<td style="vertical-align: text-top;">{{{level}}}</td>
<td>{{{message}}}</td>
</tr>
{{/log.html}}
</table>
<i>Note: Timestamps in this log are in UTC (Coordinated Universal Time).</i>
</p>
{{/if}}
<p>You can access the instance and its logs here</p>
<a href="{{{ url }}}">Instance Logs</a>
`
}