diff --git a/web/src/lib/hooks/is-mobile.svelte.ts b/web/src/lib/hooks/is-mobile.svelte.ts index a34b204..0f1afe9 100644 --- a/web/src/lib/hooks/is-mobile.svelte.ts +++ b/web/src/lib/hooks/is-mobile.svelte.ts @@ -1,4 +1,4 @@ -import { MediaQuery } from "svelte/reactivity"; +import { MediaQuery } from 'svelte/reactivity'; const MOBILE_BREAKPOINT = 768; diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts index db6f9fa..4a6b64e 100644 --- a/web/src/lib/utils.ts +++ b/web/src/lib/utils.ts @@ -5,13 +5,12 @@ import { goto } from '$app/navigation'; import { base } from '$app/paths'; import { toast } from 'svelte-sonner'; // eslint-disable-next-line @typescript-eslint/no-explicit-any -export type WithoutChild = T extends { child?: any } ? Omit : T; +export type WithoutChild = T extends { child?: any } ? Omit : T; // eslint-disable-next-line @typescript-eslint/no-explicit-any -export type WithoutChildren = T extends { children?: any } ? Omit : T; +export type WithoutChildren = T extends { children?: any } ? Omit : T; export type WithoutChildrenOrChild = WithoutChildren>; export type WithElementRef = T & { ref?: U | null }; - const apiUrl = env.PUBLIC_API_URL; export const qualityMap: { [key: number]: string } = { diff --git a/web/src/routes/dashboard/about/+page.svelte b/web/src/routes/dashboard/about/+page.svelte index f22d66b..2bfd7ec 100644 --- a/web/src/routes/dashboard/about/+page.svelte +++ b/web/src/routes/dashboard/about/+page.svelte @@ -33,15 +33,15 @@ -
+
Media Manager Logo

About Media Manager

-

+

Media Manager is an all-in-one solution for organizing and building your media library. Built for simplicity and modernity, it helps you keep track of your favorite shows and movies and explore trending content—all in one place.

-

+

Version: v{PUBLIC_VERSION}

-

-
+
{#if show().id} {:else}
diff --git a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte index 8203da3..c7f74ca 100644 --- a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte +++ b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.svelte @@ -66,7 +66,7 @@
-
+
diff --git a/web/src/routes/dashboard/tv/add-show/+page.svelte b/web/src/routes/dashboard/tv/add-show/+page.svelte index d810725..3ba5ee8 100644 --- a/web/src/routes/dashboard/tv/add-show/+page.svelte +++ b/web/src/routes/dashboard/tv/add-show/+page.svelte @@ -105,7 +105,7 @@
-

Search for a Show to add.

+

Search for a Show to add.

diff --git a/web/src/routes/login/+layout.svelte b/web/src/routes/login/+layout.svelte index e0e3c37..32f9266 100644 --- a/web/src/routes/login/+layout.svelte +++ b/web/src/routes/login/+layout.svelte @@ -1,60 +1,69 @@ diff --git a/web/src/routes/login/+layout.ts b/web/src/routes/login/+layout.ts index 6240bee..d6388c9 100644 --- a/web/src/routes/login/+layout.ts +++ b/web/src/routes/login/+layout.ts @@ -1,16 +1,16 @@ -import type {LayoutLoad} from './$types'; -import {env} from '$env/dynamic/public'; +import type { LayoutLoad } from './$types'; +import { env } from '$env/dynamic/public'; const apiUrl = env.PUBLIC_API_URL; -export const load: LayoutLoad = async ({fetch}) => { - const response = await fetch(apiUrl + '/auth/metadata', { - method: 'GET', - headers: { - 'Content-Type': 'application/json' - }, - credentials: 'include' - }); +export const load: LayoutLoad = async ({ fetch }) => { + const response = await fetch(apiUrl + '/auth/metadata', { + method: 'GET', + headers: { + 'Content-Type': 'application/json' + }, + credentials: 'include' + }); - return {oauthProvider: await response.json()}; -}; \ No newline at end of file + return { oauthProvider: await response.json() }; +}; diff --git a/web/src/routes/login/+page.svelte b/web/src/routes/login/+page.svelte index aeb705f..df774b7 100644 --- a/web/src/routes/login/+page.svelte +++ b/web/src/routes/login/+page.svelte @@ -1,8 +1,8 @@ @@ -15,4 +15,4 @@
-
\ No newline at end of file +
diff --git a/web/src/routes/login/forgot-password/+page.svelte b/web/src/routes/login/forgot-password/+page.svelte index 4c48605..8fc692f 100644 --- a/web/src/routes/login/forgot-password/+page.svelte +++ b/web/src/routes/login/forgot-password/+page.svelte @@ -70,10 +70,9 @@ Forgot Password {#if isSuccess} - We've sent a password reset link to your email address if a SMTP server is - configured. Check your inbox and follow the instructions to reset your password. If - you didn't receive an email, please contact an administrator, the reset link will be - in the logs of MediaManager. + We've sent a password reset link to your email address if a SMTP server is configured. Check + your inbox and follow the instructions to reset your password. If you didn't receive an + email, please contact an administrator, the reset link will be in the logs of MediaManager. {:else} Enter your email address and we'll send you a link to reset your password. {/if} @@ -87,7 +86,7 @@ Password reset email sent successfully!

-
+

Didn't receive the email? Check your spam folder or

-
- - Back to Login - - + Back to Login + Request New Reset Link diff --git a/web/src/routes/login/signup/+page.svelte b/web/src/routes/login/signup/+page.svelte index 0d3bed0..723969b 100644 --- a/web/src/routes/login/signup/+page.svelte +++ b/web/src/routes/login/signup/+page.svelte @@ -1,16 +1,13 @@ - Login - MediaManager - + Login - MediaManager + - + diff --git a/web/src/routes/login/verify/+page.svelte b/web/src/routes/login/verify/+page.svelte index 6b91e01..a1e2f81 100644 --- a/web/src/routes/login/verify/+page.svelte +++ b/web/src/routes/login/verify/+page.svelte @@ -10,27 +10,26 @@ -
+
- +
-

+

Account Pending Activation

-

+

Your account has been successfully created, but activation by an administrator is required.

-

+

The above button will only work once your account is verified.

-

+

If you have any questions, please contact an administrator.

-