Migration to Svelte 5 (using the migration script)

This commit is contained in:
koloml committed 2025-02-16 18:02:03 +04:00
1 parent 5975584905
commit 67d41ecf03
28 files changed
+287 -160

No files matched your search

@@ -1,15 +1,17 @@
<script>
import { run } from 'svelte/legacy';
import StorageViewer from "$components/debugging/StorageViewer.svelte";
import { page } from "$app/stores";
import { goto } from "$app/navigation";
let pathString = '';
let pathString = $state('');
/** @type {string[]} */
let pathArray = [];
let pathArray = $state([]);
/** @type {string|undefined} */
let storageName = void 0;
let storageName = $state(void 0);
$: {
run(() => {
pathString = $page.params.path;
pathArray = pathString.length ? pathString.split("/") : [];
storageName = pathArray.shift()
@@ -21,7 +23,7 @@
if (!storageName) {
goto("/preferences/debug/storage");
}
}
});
</script>
{#if storageName}