Initial commit of Step Admin panel

This commit is contained in:
Chaos
2026-03-24 21:33:48 +08:00
commit 81045c5d57
45 changed files with 4327 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import { getDb } from '$lib/server/db';
import type { CertificateRecord } from '$lib/types';
export const load = async () => {
const db = getDb();
const certs = db.prepare(`SELECT * FROM certificates ORDER BY created_at DESC`).all() as CertificateRecord[];
return { certs };
};