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 sender address
|
||||||
EMAIL_FROM="DeckyVault <noreply@deckyvault.xyz>"
|
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
|
# CONTACT FORM
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Discord webhook URL for contact/report submissions
|
# Discord webhook URL for contact/report submissions
|
||||||
DISCORD_WEBHOOK_URL=""
|
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=""
|
|
||||||
@@ -355,11 +355,11 @@ export function GamePageClient({
|
|||||||
|
|
||||||
const deviceSet = new Set(selectedDevices)
|
const deviceSet = new Set(selectedDevices)
|
||||||
|
|
||||||
const filterByDevice = <T extends { hardwareSlug: string }>(arr: T[]) =>
|
const filterByDevice = <T extends { hardwareSlug: string }>(arr: T[] | undefined) =>
|
||||||
arr.filter((item) => deviceSet.has(item.hardwareSlug))
|
arr?.filter((item) => deviceSet.has(item.hardwareSlug)) ?? []
|
||||||
|
|
||||||
const filterUpscaler = (arr: StatsResponse["upscalerStats"]) =>
|
const filterUpscaler = (arr: StatsResponse["upscalerStats"] | undefined) =>
|
||||||
arr.filter((item) => {
|
(arr ?? []).filter((item) => {
|
||||||
if (!deviceSet.has(item.hardwareSlug)) return false
|
if (!deviceSet.has(item.hardwareSlug)) return false
|
||||||
if (filters.upscaler !== "all" && item.upscalerType !== filters.upscaler)
|
if (filters.upscaler !== "all" && item.upscalerType !== filters.upscaler)
|
||||||
return false
|
return false
|
||||||
@@ -374,7 +374,7 @@ export function GamePageClient({
|
|||||||
return {
|
return {
|
||||||
...stats,
|
...stats,
|
||||||
boxplot: filterByDevice(stats.boxplot),
|
boxplot: filterByDevice(stats.boxplot),
|
||||||
historical: stats.historical
|
historical: (stats.historical ?? [])
|
||||||
.map((h) => ({
|
.map((h) => ({
|
||||||
...h,
|
...h,
|
||||||
entries: h.entries.filter((e) =>
|
entries: h.entries.filter((e) =>
|
||||||
|
|||||||
@@ -21,6 +21,10 @@ const nextConfig: NextConfig = {
|
|||||||
protocol: "https",
|
protocol: "https",
|
||||||
hostname: "cdn.steamgriddb.com",
|
hostname: "cdn.steamgriddb.com",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
protocol: "https",
|
||||||
|
hostname: "cdn2.steamgriddb.com",
|
||||||
|
}
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user