Warnings Fixes
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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--) {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user