chore: setup linting

This commit is contained in:
Max Richter
2026-02-02 16:22:14 +01:00
parent 137425b31b
commit 30e897468a
174 changed files with 6043 additions and 5107 deletions

View File

@@ -1,14 +1,14 @@
<script lang="ts">
import { type Snippet } from "svelte";
import { panelState } from "./PanelState.svelte";
import { type Snippet } from 'svelte';
import { type Panel, panelState } from './PanelState.svelte';
const {
id,
icon = "",
title = "",
classes = "",
icon = '',
title = '',
classes = '',
hidden,
children,
children
} = $props<{
id: string;
icon?: string;
@@ -18,7 +18,13 @@
children?: Snippet;
}>();
const panel = panelState.registerPanel(id, icon, classes, hidden);
let panel = $state<Panel>(null!);
$effect(() => {
panelState.unregisterPanel(id);
panel = panelState.registerPanel(id, icon, classes, hidden);
});
$effect(() => {
panel.hidden = hidden;
});