@bobfrankston/gcards 0.1.26 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gfix.ts +5 -5
- package/package.json +1 -1
package/gfix.ts
CHANGED
|
@@ -1459,13 +1459,13 @@ async function runUndup(user: string): Promise<void> {
|
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
if (rowContacts.length > 0) {
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
`<td style="text-align: center;"><img src="${c.photoUrl}" alt="${entry.name}" loading="lazy"><br><code style="font-size: 10px;">${path.basename(c.filePath)}</code></td
|
|
1465
|
-
).join('');
|
|
1462
|
+
const photoCells = rowContacts.map(c => {
|
|
1463
|
+
const contactUrl = `https://contacts.google.com/person/${c.id}`;
|
|
1464
|
+
return `<td style="text-align: center;"><a href="${contactUrl}" target="_blank"><img src="${c.photoUrl}" alt="${entry.name}" loading="lazy"></a><br><code style="font-size: 10px;">${path.basename(c.filePath)}</code></td>`;
|
|
1465
|
+
}).join('');
|
|
1466
1466
|
|
|
1467
1467
|
rows.push(` <tr>
|
|
1468
|
-
<td
|
|
1468
|
+
<td>${entry.name}<br><span style="font-size: 12px; color: #666;">${entry.emails.join(', ')}</span></td>
|
|
1469
1469
|
${photoCells}
|
|
1470
1470
|
</tr>`);
|
|
1471
1471
|
}
|