Bump @sveltejs/kit from 2.16.1 to 2.50.2 in /web (#772)

* Bump @sveltejs/kit from 2.16.1 to 2.50.2 in /web

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.16.1 to 2.50.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.50.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.50.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix errors

* Fix errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonas Plum <git@cugu.eu>
Co-authored-by: Jonas Plum <cugu@users.noreply.github.com>
This commit is contained in:
dependabot[bot]
2026-02-06 13:31:37 +01:00
committed by GitHub
parent f877e0b266
commit 46a12647ee
13 changed files with 64 additions and 36 deletions

View File

@@ -44,7 +44,7 @@
onedit,
}: Props = $props();
let gallery: PhotoGallery;
let gallery: PhotoGallery | undefined = $state();
let imgSrc: string[] = $state([]);
@@ -107,7 +107,7 @@
<button
class="relative w-16 aspect-square ml-2 mb-3 shrink-0"
type="button"
onclick={() => gallery.openGallery()}
onclick={() => gallery?.openGallery()}
>
{#each imgSrc as img, i}
{#if isVideoURL(img)}

View File

@@ -18,7 +18,7 @@
let { waypoint, mode = "show", onchange }: Props = $props();
let gallery: PhotoGallery;
let gallery: PhotoGallery | undefined = $state();
let imgSrc: string[] = $state([]);
$effect(() => {
@@ -61,7 +61,7 @@
<button
class="relative basis-16 aspect-square ml-2 mb-3 shrink-0"
type="button"
onclick={mode == "show" ? () => gallery.openGallery() : undefined}
onclick={mode == "show" ? () => gallery?.openGallery() : undefined}
>
{#each imgSrc as img, i}
{#if isVideoURL(img)}

View File

@@ -62,7 +62,7 @@
try {
await users_confirm_reset({
...form,
token: page.params.token,
token: page.params.token!,
});
goto("/login");
show_toast({

View File

@@ -46,8 +46,8 @@
let lists: List[] = $state(data.lists.items);
let confirmModal: ConfirmModal;
let listShareModal: ListShareModal;
let confirmModal: ConfirmModal | undefined = $state();
let listShareModal: ListShareModal | undefined = $state();
let filter: ListFilter = $state(page.data.filter);
@@ -89,11 +89,11 @@
return;
}
if (item.value == "share") {
listShareModal.openModal();
listShareModal?.openModal();
} else if (item.value == "edit") {
goto("/lists/edit/" + selectedList.id);
} else if (item.value == "delete") {
confirmModal.openModal();
confirmModal?.openModal();
}
}

View File

@@ -39,7 +39,7 @@
<main class="grid grid-cols-1 md:grid-cols-[458px_1fr] gap-x-1 gap-y-4">
<div id="panel" class="hidden md:block">
<TrailInfoPanel handle={page.params.handle} initTrail={trail} {markers}
<TrailInfoPanel handle={page.params.handle!} initTrail={trail} {markers}
></TrailInfoPanel>
</div>
<div id="trail-details">

View File

@@ -14,7 +14,7 @@
let { data, children } = $props();
let profileShareModal: ProfileShareModal;
let profileShareModal: ProfileShareModal | undefined = $state();
let followLoading: boolean = $state(false);
@@ -172,7 +172,7 @@
<div class="px-4 mb-4 flex flex-col gap-2">
<button
class="btn-secondary basis-full"
onclick={() => profileShareModal.openModal()}
onclick={() => profileShareModal?.openModal()}
>{$_("share-profile")}</button
>
<a

View File

@@ -42,7 +42,7 @@
async function loadNextPage() {
pagination.page += 1;
feed = await profile_feed_index(page.params.handle, pagination.page);
feed = await profile_feed_index(page.params.handle!, pagination.page);
}
function handleFeedItemClick(f: FeedItem) {

View File

@@ -222,7 +222,7 @@
async function loadSummitLogs() {
try {
const logs = await profile_stats_index(page.params.handle, filter);
const logs = await profile_stats_index(page.params.handle!, filter);
summitLogs = logs;
} catch (e) {
show_toast({
@@ -406,7 +406,7 @@
<div class=" overflow-x-auto">
<SummitLogTable
{summitLogs}
handle={page.params.handle}
handle={page.params.handle!}
showCategory
showTrail
showRoute

View File

@@ -24,7 +24,7 @@
loading = true;
try {
trails = await profile_trails_index(
page.params.handle,
page.params.handle!,
filter,
pagination.page,
pagination.items,
@@ -45,7 +45,7 @@
pagination.page = newPage;
try {
trails = await profile_trails_index(
page.params.handle,
page.params.handle!,
filter,
newPage,
items ?? pagination.items,

View File

@@ -60,7 +60,7 @@
<svelte:window onscroll={onListScroll} />
<div style="min-height: 70vh">
<h1 class="text-3xl font-semibold mb-4">{$_(page.params.type)}</h1>
<h1 class="text-3xl font-semibold mb-4">{$_(page.params.type!)}</h1>
<ul class="space-y-4">
{#each follows.items as follow}
<a

View File

@@ -34,6 +34,6 @@
activeTab={parseInt(page.url.searchParams.get("t") ?? "0")}
initTrail={data.trail}
mode="overview"
handle={page.params.handle}
handle={page.params.handle!}
></TrailInfoPanel>
{/if}