New and imporved!

This commit is contained in:
2025-07-25 16:22:57 -04:00
parent c12131e0c2
commit 9b2a0b63e3
16 changed files with 439 additions and 190 deletions

View File

@ -0,0 +1,20 @@
import {
getLast30DaysTransactionsSums,
getUnallocatedTransactions,
getUnderallocatedTransactions,
getTotal,
getBudgets,
getAllBudgetTransactions
} from '$lib/db';
export async function load({ params }) {
const unallocatedTrans = await getUnallocatedTransactions();
const underAllocatedTrans = await getUnderallocatedTransactions();
const total = await getTotal();
const budgets = await getBudgets();
const budgetTransactions = await getAllBudgetTransactions();
const last30DaysTransactionsSums = await getLast30DaysTransactionsSums();
return { unallocatedTrans, underAllocatedTrans, total, budgets, budgetTransactions, last30DaysTransactionsSums };
}