backup: before bulk replacement
This commit is contained in:
@@ -37,7 +37,7 @@ export async function GET() {
|
||||
|
||||
const rows = await query(sql);
|
||||
|
||||
const drivers = rows.map((row: any) => ({
|
||||
const drivers = rows.map((row: unknown) => ({
|
||||
driver_guid: row.driver_guid,
|
||||
driver_name: row.driver_name,
|
||||
driver_team: row.driver_team,
|
||||
|
||||
@@ -8,7 +8,7 @@ export const dynamic = 'force-dynamic';
|
||||
export const runtime = 'nodejs';
|
||||
|
||||
// Cache for driver ranks (refreshed periodically)
|
||||
let rankCache: Map<string, { rank: number, rating: number }> = new Map();
|
||||
const rankCache: Map<string, { rank: number, rating: number }> = new Map();
|
||||
let lastRankUpdate = 0;
|
||||
const RANK_CACHE_TTL = 60000; // 1 minute
|
||||
|
||||
|
||||
+2
-1
@@ -4,6 +4,7 @@
|
||||
import { query } from '@/lib/db';
|
||||
import { Event } from '@/types/racing';
|
||||
import Link from 'next/link';
|
||||
import Image from "next/image";
|
||||
import { TrophyIcon, UsersIcon, MapPinIcon, ClockIcon, CalendarIcon } from '@/components/ui/icons';
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
@@ -75,7 +76,7 @@ export default async function EventsPage() {
|
||||
return (
|
||||
<div key={event.event_id} className="border border-white/10 sharp-border bg-black">
|
||||
|
||||
<img
|
||||
<Image
|
||||
src={`https://files.openwheels.racing/img/EnduranceEvents1-${event.event_id}.png?fckcache=999`}
|
||||
alt={event.event_name}
|
||||
className="w-full h-48 object-cover object-[50%_0%] border-b border-white/10 grayscale hover:grayscale-0 transition duration-300"
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import Image from "next/image";
|
||||
import { useState, useRef, useEffect, MouseEvent } from 'react';
|
||||
|
||||
// Configuration
|
||||
@@ -112,7 +113,7 @@ export default function MusicPage() {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
fetchTracks();
|
||||
void fetchTracks();
|
||||
}, []);
|
||||
|
||||
// Group tracks by theme
|
||||
|
||||
+2
-1
@@ -3,6 +3,7 @@
|
||||
|
||||
import Link from 'next/link';
|
||||
import { query } from '@/lib/db';
|
||||
import Image from "next/image";
|
||||
import { TrophyIcon, ChartIcon, CircleIcon, UsersIcon, ServerIcon, ActivityIcon } from '@/components/ui/icons';
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
@@ -44,7 +45,7 @@ export default async function HomePage() {
|
||||
<div className="text-center space-y-8">
|
||||
{/* Logo */}
|
||||
<div className="flex justify-center mb-8">
|
||||
<img
|
||||
<Image
|
||||
src="https://files.openwheels.racing/img/Openwheels_landscape.svg"
|
||||
alt="OpenWheels"
|
||||
className="h-24 brightness-0 invert"
|
||||
|
||||
Reference in New Issue
Block a user