Warnings Fixes

This commit is contained in:
2025-12-06 23:43:32 +00:00
parent 59d39c9939
commit 3848bc8ee3
3 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts"> <script lang="ts">
import { untrack } from "svelte";
import Icon from "@iconify/svelte"; import Icon from "@iconify/svelte";
import { getButtonStyle, parseColorText, getSegmentStyle } from "./utils"; import { getButtonStyle, parseColorText, getSegmentStyle } from "./utils";
import { themeColors } from "$lib/stores/theme"; import { themeColors } from "$lib/stores/theme";
@@ -13,7 +14,9 @@
let { line, inline = false }: Props = $props(); let { line, inline = false }: Props = $props();
let openItems = $state(new Set(line.accordionOpen ? [0] : [])); let openItems = $state(
new Set(untrack(() => line.accordionOpen) ? [0] : []),
);
function toggleItem(index: number) { function toggleItem(index: number) {
const newSet = new Set(openItems); const newSet = new Set(openItems);

View File

@@ -1,4 +1,4 @@
import playdl, { YouTubeVideo } from 'play-dl'; import playdl, { type YouTubeVideo } from 'play-dl';
function shuffleArray(array: any[]) { function shuffleArray(array: any[]) {
for (let i = array.length - 1; i > 0; i--) { for (let i = array.length - 1; i > 0; i--) {

View File

@@ -13,7 +13,7 @@
const autoscroll = getPageAutoscroll("about"); const autoscroll = getPageAutoscroll("about");
let { data } = $props(); let { data } = $props();
const { songs } = data; let songs = $derived(data.songs);
let terminal = $state<TerminalAPI>(); let terminal = $state<TerminalAPI>();
let currentSongIndex = $state(0); let currentSongIndex = $state(0);