Update to svelte 5

This commit is contained in:
2025-10-13 16:05:50 +02:00
parent f936e4c0f2
commit 6d89c5ddd9
129 changed files with 2443 additions and 2180 deletions

View File

@@ -6,8 +6,8 @@ import { loading_finish, loading_start } from "lib/Loading";
let year = 0
let month = 0
let month_str = ""
let transactions = {
let month_str = $state("")
let transactions = $state({
rows: [],
total_subscription_charge: 0,
total_storage_used: 0,
@@ -17,7 +17,7 @@ let transactions = {
total_affiliate_amount: 0,
total_deposited: 0,
total_deducted: 0,
}
})
const load_transactions = async () => {
loading_start()
@@ -113,12 +113,12 @@ onMount(() => {
<h3>{month_str}</h3>
<div class="toolbar">
<button on:click={last_month}>
<button onclick={last_month}>
<i class="icon">chevron_left</i>
Previous month
</button>
<div class="toolbar_spacer"></div>
<button on:click={next_month}>
<button onclick={next_month}>
Next month
<i class="icon">chevron_right</i>
</button>