Update to svelte 5
This commit is contained in:
1 parent
f936e4c0f2
commit
6d89c5ddd9
129 files changed
+2443
-2180
No files matched your search
@@ -5,8 +5,8 @@ import { formatDate } from "util/Formatting";
|
||||
|
||||
let year = 0
|
||||
let month = 0
|
||||
let month_str = ""
|
||||
let data = []
|
||||
let month_str = $state("")
|
||||
let data = $state([])
|
||||
|
||||
const load_activity = async () => {
|
||||
loading_start()
|
||||
@@ -66,12 +66,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>
|
||||
@@ -118,12 +118,12 @@ onMount(() => {
|
||||
|
||||
{#if data.length > 100}
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user