refactor: rename admin route group to manage
This commit is contained in:
+7
-7
@@ -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=""
|
||||
DISCORD_WEBHOOK_URL=""
|
||||
@@ -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) =>
|
||||
|
||||
@@ -21,6 +21,10 @@ const nextConfig: NextConfig = {
|
||||
protocol: "https",
|
||||
hostname: "cdn.steamgriddb.com",
|
||||
},
|
||||
{
|
||||
protocol: "https",
|
||||
hostname: "cdn2.steamgriddb.com",
|
||||
}
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user