format files

This commit is contained in:
maxDorninger
2025-07-17 17:20:49 +02:00
parent e051001ea5
commit a232d5e935
8 changed files with 22 additions and 19 deletions

View File

@@ -17,47 +17,47 @@
navMain: [
{
title: 'Dashboard',
url: base+'/dashboard',
url: base + '/dashboard',
icon: Home,
isActive: true
},
{
title: 'TV',
url: base+'/dashboard/tv',
url: base + '/dashboard/tv',
icon: TvIcon,
isActive: true,
items: [
{
title: 'Add a show',
url: base+'/dashboard/tv/add-show'
url: base + '/dashboard/tv/add-show'
},
{
title: 'Torrents',
url: base+'/dashboard/tv/torrents'
url: base + '/dashboard/tv/torrents'
},
{
title: 'Requests',
url: base+'/dashboard/tv/requests'
url: base + '/dashboard/tv/requests'
}
]
},
{
title: 'Movies',
url: base+'/dashboard/movies',
url: base + '/dashboard/movies',
icon: Clapperboard,
isActive: true,
items: [
{
title: 'Add a movie',
url: base+'/dashboard/movies/add-movie'
url: base + '/dashboard/movies/add-movie'
},
{
title: 'Torrents',
url: base+'/dashboard/movies/torrents'
url: base + '/dashboard/movies/torrents'
},
{
title: 'Requests',
url: base+'/dashboard/movies/requests'
url: base + '/dashboard/movies/requests'
}
]
}
@@ -65,12 +65,12 @@
navSecondary: [
{
title: 'Notifications',
url: base+'/dashboard/notifications',
url: base + '/dashboard/notifications',
icon: Bell
},
{
title: 'Settings',
url: base+'/dashboard/settings',
url: base + '/dashboard/settings',
icon: Settings
},
{
@@ -85,7 +85,7 @@
},
{
title: 'About',
url: base+'/dashboard/about',
url: base + '/dashboard/about',
icon: Info
}
]

View File

@@ -5,7 +5,6 @@
import { base } from '$app/paths';
import logo from '$lib/images/logo.svg';
import { PUBLIC_VERSION } from '$env/static/public';
</script>
<svelte:head>

View File

@@ -82,7 +82,7 @@
{@render loadingbar()}
{:else}
{#each movies as movie}
<a href={base+'/dashboard/movies/' + movie.id}>
<a href={base + '/dashboard/movies/' + movie.id}>
<Card.Root class="col-span-full max-w-[90vw] ">
<Card.Header>
<Card.Title class="h-6 truncate">{getFullyQualifiedMediaName(movie)}</Card.Title>

View File

@@ -65,7 +65,7 @@
{@render loadingbar()}
{:then tvShows}
{#each tvShows as show}
<a href={base+'/dashboard/tv/' + show.id}>
<a href={base + '/dashboard/tv/' + show.id}>
<Card.Root class="col-span-full max-w-[90vw] ">
<Card.Header>
<Card.Title class="h-6 truncate">{getFullyQualifiedMediaName(show)}</Card.Title>

View File

@@ -149,7 +149,7 @@
{#each show().seasons as season (season.id)}
<Table.Row
link={true}
onclick={() => goto(base+'/dashboard/tv/' + show().id + '/' + season.id)}
onclick={() => goto(base + '/dashboard/tv/' + show().id + '/' + season.id)}
>
<Table.Cell class="min-w-[10px] font-medium">{season.number}</Table.Cell>
<Table.Cell class="min-w-[10px] font-medium">

View File

@@ -27,7 +27,7 @@
onMount(() => {
if (!resetToken) {
toast.error('Invalid or missing reset token.');
goto(base+'/login');
goto(base + '/login');
}
});
@@ -56,7 +56,7 @@
if (response.ok) {
toast.success('Password reset successfully! You can now log in with your new password.');
goto(base+'/login');
goto(base + '/login');
} else {
const errorText = await response.text();
toast.error(`Failed to reset password: ${errorText}`);