Update email

This commit is contained in:
nguyentrungthat 2026-02-06 13:29:57 +07:00
parent daddb7d812
commit 2382ab1f6f
3 changed files with 17 additions and 16 deletions

View File

@ -1714,11 +1714,11 @@ ${log}
</tr>
<tr>
<td style="width: 50%;">
Model : <b>${this.config?.inventory?.pid ?? 'N/A'}</b><br/>
Serial Number : <b>${this.config?.inventory?.sn ?? 'N/A'}</b><br/>
MAC : <b>${dataShowVersion?.MAC_ADDRESS ?? ''}</b><br/>
IOS : <b>${dataShowVersion?.SOFTWARE_IMAGE ?? ''}</b><br/>
License : <b>${
Model: <b>${this.config?.inventory?.pid ?? 'N/A'}</b><br/>
Serial Number: <b>${this.config?.inventory?.sn ?? 'N/A'}</b><br/>
MAC: <b>${dataShowVersion?.MAC_ADDRESS ?? ''}</b><br/>
IOS: <b>${dataShowVersion?.SOFTWARE_IMAGE ?? ''}</b><br/>
License: <b>${
dataShowLic
? dataShowLic
?.filter((el) => el.LICENSE_TYPE === 'Permanent')
@ -1726,13 +1726,13 @@ ${log}
?.join(', ')
: ''
}</b><br/>
Summary : <b>${this.config?.latestScenario?.detectAI?.summary || ''}</b><br/>
Issue : <b>${issue?.length ? `<br>- ` + issue.join(`<br>- `) : 'No issues detected.'}</b><br/>
Summary: <b>${this.config?.latestScenario?.detectAI?.summary || ''}</b><br/>
Issue: <b>${issue?.length ? `<br>- ` + issue.join(`<br>- `) : 'No issues detected.'}</b><br/>
</td>
<td>
Total Ports : ${portPhysical?.length}<br/>
Ports Tested (UP) : <b style="color: #008000;">${portPhysical.filter((p) => p.tested).length}</b><br/>
Ports Missing : <b style="color: #ff0000;">${portPhysical.filter((p) => !p.tested).length}</b><br/>
Total Ports: ${portPhysical?.length}<br/>
Ports Tested (UP): <b style="color: #008000;">${portPhysical.filter((p) => p.tested).length}</b><br/>
Ports Missing: <b style="color: #ff0000;">${portPhysical.filter((p) => !p.tested).length}</b><br/>
</td>
</tr>
</table>`

View File

@ -169,14 +169,14 @@ export class PhysicalPortTest {
<table cellpadding="6" cellspacing="0" border="1" style="margin-top: 10px; border-collapse: collapse; width: 100%">
<tr>
<td style="width: 50%;">
Model : <b>${report.device.model ?? 'N/A'}</b><br/>
Serial Number : <b>${report.device.serial ?? 'N/A'}</b><br/>
Status : ${status === 'PASS' ? '✅ PASS' : '⚠️ WARNING'}<br/>
Model: <b>${report.device.model ?? 'N/A'}</b><br/>
Serial Number: <b>${report.device.serial ?? 'N/A'}</b><br/>
Status: ${status === 'PASS' ? '✅ PASS' : '⚠️ WARNING'}<br/>
</td>
<td>
Total Ports : ${report.ports.length}<br/>
Ports Tested (UP) : <b style="color: #008000;">${tested.length}</b><br/>
Ports Missing : <b style="color: #ff0000;">${missing.length}</b><br/>
Total Ports: ${report.ports.length}<br/>
Ports Tested (UP): <b style="color: #008000;">${tested.length}</b><br/>
Ports Missing: <b style="color: #ff0000;">${missing.length}</b><br/>
</td>
</tr>
</table>

View File

@ -1119,6 +1119,7 @@ export class WebSocketIo {
userEmailOpenCLI: '',
userOpenCLI: '',
openCLI: false,
listFeatureTested: [''],
},
} as LineConnection)
}