Expand website and game trackers
Some checks failed
Test and deploy staging / staging (push) Failing after 5m29s

This commit is contained in:
2026-09-25 22:43:04 +00:00
parent f6b34150d4
commit c2ba8febb4
4076 changed files with 97237 additions and 1453 deletions

View File

@@ -1,3 +1,6 @@
import achievementArt from '../data/cod-achievement-art.json';
const achievementImages: Record<string, string> = achievementArt;
import artwork from '../data/cod-art.json';
import { readFile } from 'node:fs/promises';
import { drizzle } from 'drizzle-orm/postgres-js';
import { and, eq, inArray, notInArray, sql } from 'drizzle-orm';
@@ -46,7 +49,8 @@ try {
milestones: game.milestones,
tiers: game.tiers,
classes: game.classes.map((c) => c.name),
steamApps: game.steamApps
steamApps: game.steamApps,
rankCaps: game.rankCaps
};
const values = {
slug: game.slug,
@@ -76,7 +80,9 @@ try {
category: weapon.category,
name: weapon.name,
description: null,
icon: null,
icon:
artwork.find((a) => a.game === game.slug && a.key === weaponKey(weapon.name))?.path ??
null,
postLaunch: weapon.postLaunch,
sortOrder: index
})),
@@ -87,7 +93,7 @@ try {
category: achievement.category,
name: achievement.name,
description: achievement.description,
icon: achievement.icon,
icon: achievementImages[achievement.icon] ?? achievement.icon,
postLaunch: false,
sortOrder: index
}))