update homepage draft and other pages

This commit is contained in:
2026-08-29 11:38:16 +00:00
parent 6452331ee7
commit 97ff9852cd
38 changed files with 2185 additions and 111 deletions

View File

@@ -0,0 +1,18 @@
import { db } from '$lib/db';
import { tasks } from '$lib/db/schema.js';
import { desc } from 'drizzle-orm';
export const load = async () => {
return {
tasks: await db.query.tasks.findMany({
with: {
tasksToTopics: {
with: {
topic: true
}
}
},
orderBy: [desc(tasks.currentPoints)]
})
};
};