fixed some CSS styling errors with the team member list page and also added the admin dashboard to allow them to start a hunt with either a stop watch style hunt or a predetermined hunt duration. also fixed some css styling issues I ran into due to using some template code to make the dev process quicker

This commit is contained in:
bobbert committed 2025-03-13 19:42:01 +00:00
1 parent 673ea41a4c
commit c05c8829dd
11 files changed
+691 -185

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import { run } from "@/lib/db";
export async function createHuntTimerTable() {
console.log("Creating hunt_timer table...");
try {
await run(`
CREATE TABLE IF NOT EXISTS hunt_timer (
id INTEGER PRIMARY KEY AUTOINCREMENT,
active INTEGER NOT NULL DEFAULT 0,
start_time TEXT NOT NULL,
end_time TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)
`);
console.log("hunt_timer table created successfully");
return { success: true };
} catch (error) {
console.error("Error creating hunt_timer table:", error);
return { success: false, error };
}
}
// Run this migration if you want to execute it directly:
// createHuntTimerTable().then(console.log).catch(console.error);