From e7ede1a3b93f2967136ba6cae3ba05b3d8dff229 Mon Sep 17 00:00:00 2001 From: joseph le Date: Mon, 9 Oct 2023 16:41:09 +0700 Subject: [PATCH] Create function sendDeviceInfor to mail --- app/utils/sendDeviceInfor.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/utils/sendDeviceInfor.ts b/app/utils/sendDeviceInfor.ts index a67416e..ae6eb40 100644 --- a/app/utils/sendDeviceInfor.ts +++ b/app/utils/sendDeviceInfor.ts @@ -53,6 +53,7 @@ export const sendDeviceInfora = async () => { linesInventory[index], linesInventory[index + 1] ); + let backgroundColor = index%2===0?"rgb(200 200 200 / 39%)":"white" const showInventory = []; let check = true; let begin = 0; @@ -154,7 +155,7 @@ export const sendDeviceInfora = async () => { extraItem: "yes", }); - html += `${PID} + html += `${PID} ${VID} ${SN} @@ -203,7 +204,7 @@ export const sendDeviceInfora = async () => { extraItem: "no", }); - html += `${PID} + html += `${PID} ${VID} ${SN} ${RAM} @@ -246,7 +247,7 @@ export const sendDeviceInfora = async () => { extraItem: "yes", }); - html += `${PID} + html += `${PID} ${VID} ${SN} @@ -264,7 +265,7 @@ export const sendDeviceInfora = async () => { extraItem: "no", }); - html += `${PID} + html += `${PID} ${VID} ${SN}