refactor: rename admin route group to manage

This commit is contained in:
2026-04-29 01:25:00 +08:00
parent fcfcce614a
commit b68bf36bff
17 changed files with 16 additions and 12 deletions
+6 -6
View File
@@ -76,14 +76,14 @@ RESEND_API_KEY=""
# Email sender address
EMAIL_FROM="DeckyVault <noreply@deckyvault.xyz>"
# -----------------------------------------------------------------------------
# STEAMGRIDDB
# -----------------------------------------------------------------------------
# API key for SteamGridDB cover art search (get one at https://www.steamgriddb.com)
STEAMGRIDDB_API_KEY="your_steamgriddb_api_key_here"
# -----------------------------------------------------------------------------
# CONTACT FORM
# -----------------------------------------------------------------------------
# Discord webhook URL for contact/report submissions
DISCORD_WEBHOOK_URL=""
# -----------------------------------------------------------------------------
# STEAMGRIDDB
# -----------------------------------------------------------------------------
# API key for SteamGridDB image search proxy (optional — non-Steam game wizard will show no images without it)
STEAMGRIDDB_API_KEY=""
+5 -5
View File
@@ -355,11 +355,11 @@ export function GamePageClient({
const deviceSet = new Set(selectedDevices)
const filterByDevice = <T extends { hardwareSlug: string }>(arr: T[]) =>
arr.filter((item) => deviceSet.has(item.hardwareSlug))
const filterByDevice = <T extends { hardwareSlug: string }>(arr: T[] | undefined) =>
arr?.filter((item) => deviceSet.has(item.hardwareSlug)) ?? []
const filterUpscaler = (arr: StatsResponse["upscalerStats"]) =>
arr.filter((item) => {
const filterUpscaler = (arr: StatsResponse["upscalerStats"] | undefined) =>
(arr ?? []).filter((item) => {
if (!deviceSet.has(item.hardwareSlug)) return false
if (filters.upscaler !== "all" && item.upscalerType !== filters.upscaler)
return false
@@ -374,7 +374,7 @@ export function GamePageClient({
return {
...stats,
boxplot: filterByDevice(stats.boxplot),
historical: stats.historical
historical: (stats.historical ?? [])
.map((h) => ({
...h,
entries: h.entries.filter((e) =>
+4
View File
@@ -21,6 +21,10 @@ const nextConfig: NextConfig = {
protocol: "https",
hostname: "cdn.steamgriddb.com",
},
{
protocol: "https",
hostname: "cdn2.steamgriddb.com",
}
],
},
};