lol you are the worst

This commit is contained in:
Leon Serfaty G
2025-07-18 02:56:54 +00:00
parent 7de30c1eca
commit af54f6370b
5 changed files with 2 additions and 137 deletions
+2
View File
@@ -1,6 +1,8 @@
import { CostEstimatorForm } from '@/components/cost-estimator/cost-estimator-form';
import { suggestFeatures } from '@/ai/flows/suggest-features';
import { classifyComplexity } from '@/ai/flows/classify-complexity';
import { Button } from '@/components/ui/button';
import Link from 'next/link';
export default function Home() {
return (
-26
View File
@@ -1,26 +0,0 @@
'use server';
import db from '@/lib/db';
export async function getSetting(key: string): Promise<string | null> {
try {
const stmt = db.prepare('SELECT value FROM settings WHERE key = ?');
const result = stmt.get(key) as { value: string } | undefined;
return result?.value ?? null;
} catch (error) {
console.error(`Failed to get setting "${key}":`, error);
return null;
}
}
export async function setSetting(key: string, value: string): Promise<void> {
try {
const stmt = db.prepare(
'INSERT INTO settings (key, value) VALUES (?, ?) ON CONFLICT(key) DO UPDATE SET value = excluded.value'
);
stmt.run(key, value);
} catch (error) {
console.error(`Failed to set setting "${key}":`, error);
throw new Error(`Could not update setting for ${key}`);
}
}
-7
View File
@@ -1,7 +0,0 @@
export interface User {
id: number;
email: string;
password?: string; // Should be handled securely, not sent to client
name: string;
}