From 71aca65d86a89272398e2fde3dab221b31009b6f Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Fri, 24 Jan 2025 20:53:17 +0300
Subject: [PATCH] Update update.ts
---
scripts/commands/sites/update.ts | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/scripts/commands/sites/update.ts b/scripts/commands/sites/update.ts
index 4b587df4..9ffc0b4b 100644
--- a/scripts/commands/sites/update.ts
+++ b/scripts/commands/sites/update.ts
@@ -40,19 +40,20 @@ async function main() {
const data = new Collection()
sites.forEach((site: Site) => {
data.add([
- `${site.domain}`,
- `${site.totalChannels} / ${site.markedChannels}`,
- site.getStatus().emoji,
- site.getIssues().all().join(', ')
+ { value: `${site.domain}` },
+ { value: site.totalChannels, align: 'right' },
+ { value: site.markedChannels, align: 'right' },
+ { value: site.getStatus().emoji, align: 'center' },
+ { value: site.getIssues().all().join(', ') }
])
})
logger.info('updating sites.md...')
const table = new HTMLTable(data.all(), [
- { name: 'Site' },
- { name: 'Channels *', align: 'center' },
- { name: 'Status' },
- { name: 'Notes' }
+ { name: 'Site', align: 'left' },
+ { name: 'Channels
(total / with xmltv-id)', colspan: 2, align: 'left' },
+ { name: 'Status', align: 'left' },
+ { name: 'Notes', align: 'left' }
])
const rootStorage = new Storage(ROOT_DIR)
const sitesTemplate = await new Storage().load('scripts/templates/_sites.md')