diff --git a/Writerside/topics/configuration-frontend.md b/Writerside/topics/configuration-frontend.md
index 27edabc..1ff7187 100644
--- a/Writerside/topics/configuration-frontend.md
+++ b/Writerside/topics/configuration-frontend.md
@@ -2,20 +2,11 @@
## Environment Variables
-### `PUBLIC_WEB_SSR`
-
-Enables/disables Server-Side Rendering. (this is experimental). Default is `false`. Example: `true`.
-
### `PUBLIC_API_URL`
You (the browser) must reach the backend from this url. Default is `http://localhost:8000/api/v1`. Example:
`https://mediamanager.example.com/api/v1`.
-### `PUBLIC_SSR_API_URL`
-
-The frontend container must reach the backend from this url. Default is `http://localhost:8000/api/v1`. Example:
-`http://backend:8000/api/v1`.
-
## Build Arguments (web/Dockerfile)
**TODO: expand on this section**
@@ -23,12 +14,12 @@ The frontend container must reach the backend from this url. Default is `http://
To configure a url base path for the frontend, you need to build the frontend docker container, this is because
unfortunately SvelteKit needs to know the base path at build time.
-### `VERSION`
-
-Sets the `PUBLIC_VERSION` environment variable at runtime in the frontend container. Passed during build. Example (in
-build command): `docker build --build-arg VERSION=1.2.3 -f web/Dockerfile .`
-
### `BASE_URL`
Sets the base url path, it must begin with a slash and not end with one. Example (in build command):
`docker build --build-arg BASE_URL=/media -f web/Dockerfile .`
+
+### `VERSION`
+
+Sets the `PUBLIC_VERSION` environment variable at runtime in the frontend container. Passed during build. Example (in
+build command): `docker build --build-arg VERSION=1.2.3 -f web/Dockerfile .`
\ No newline at end of file
diff --git a/docker-compose.yaml b/docker-compose.yaml
index facb639..0145697 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -52,7 +52,6 @@ services:
- ./cache:/app/cache
environment:
- PUBLIC_API_URL=http://localhost:8000/api/v1
- - PUBLIC_SSR_API_URL=http://backend:8000/api/v1
db:
image: postgres:latest
restart: unless-stopped
diff --git a/web/src/lib/components/add-show-card.svelte b/web/src/lib/components/add-show-card.svelte
index 90ab01d..ad4efdb 100644
--- a/web/src/lib/components/add-show-card.svelte
+++ b/web/src/lib/components/add-show-card.svelte
@@ -6,10 +6,8 @@
import {goto} from '$app/navigation';
import {base} from '$app/paths';
import type {MetaDataProviderShowSearchResult} from '$lib/types.js';
- import {toOptimizedURL} from 'sveltekit-image-optimize/components';
- import {browser} from "$app/environment";
- const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
+ const apiUrl = env.PUBLIC_API_URL
let loading = $state(false);
let errorMessage = $state(null);
let {result}: { result: MetaDataProviderShowSearchResult } = $props();
@@ -51,7 +49,7 @@
{#if result.poster_path != null}
{:else}
diff --git a/web/src/lib/components/download-season-dialog.svelte b/web/src/lib/components/download-season-dialog.svelte
index 83a8152..1662344 100644
--- a/web/src/lib/components/download-season-dialog.svelte
+++ b/web/src/lib/components/download-season-dialog.svelte
@@ -12,9 +12,8 @@
import * as Tabs from '$lib/components/ui/tabs/index.js';
import * as Select from '$lib/components/ui/select/index.js';
import * as Table from '$lib/components/ui/table/index.js';
- import {browser} from "$app/environment";
- const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
+ const apiUrl = env.PUBLIC_API_URL
let {show} = $props();
let dialogueState = $state(false);
let selectedSeasonNumber: number = $state(1);
diff --git a/web/src/lib/components/login-form.svelte b/web/src/lib/components/login-form.svelte
index 527ca40..b938b81 100644
--- a/web/src/lib/components/login-form.svelte
+++ b/web/src/lib/components/login-form.svelte
@@ -10,7 +10,7 @@
import LoadingBar from '$lib/components/loading-bar.svelte';
import {browser} from "$app/environment";
- const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
+ const apiUrl = env.PUBLIC_API_URL
let {oauthProvider} = $props();
let oauthProviderName = $derived(oauthProvider.oauth_name);
diff --git a/web/src/lib/components/request-season-dialog.svelte b/web/src/lib/components/request-season-dialog.svelte
index 2d2db1b..abafcae 100644
--- a/web/src/lib/components/request-season-dialog.svelte
+++ b/web/src/lib/components/request-season-dialog.svelte
@@ -10,7 +10,7 @@
import {toast} from 'svelte-sonner';
import {browser} from "$app/environment";
- const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
+ const apiUrl = env.PUBLIC_API_URL
let {show}: { show: PublicShow } = $props();
let dialogOpen = $state(false);
diff --git a/web/src/lib/components/season-requests-table.svelte b/web/src/lib/components/season-requests-table.svelte
index 58d02f2..c2eda17 100644
--- a/web/src/lib/components/season-requests-table.svelte
+++ b/web/src/lib/components/season-requests-table.svelte
@@ -9,9 +9,8 @@
import {toast} from 'svelte-sonner';
import {goto} from '$app/navigation';
import {base} from '$app/paths';
- import {browser} from "$app/environment";
- const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL;
+ const apiUrl = env.PUBLIC_API_URL
let {
requests,
filter = () => {
diff --git a/web/src/lib/components/show-picture.svelte b/web/src/lib/components/show-picture.svelte
new file mode 100644
index 0000000..7e2a05f
--- /dev/null
+++ b/web/src/lib/components/show-picture.svelte
@@ -0,0 +1,24 @@
+
+
+
+
{
- e.target.src = logo;
- }}
- />
+
- {:else}
- - {show().overview} -
-+ {show().overview} +
+
+ diff --git a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.ts b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.ts index 4491885..7b9faa9 100644 --- a/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.ts +++ b/web/src/routes/dashboard/tv/[showId=uuid]/[SeasonId=uuid]/+page.ts @@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public'; import type {PageLoad} from './$types'; import {browser} from "$app/environment"; -const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL; +const apiUrl = env.PUBLIC_API_URL; export const load: PageLoad = async ({fetch, params}) => { const url = `${apiUrl}/tv/seasons/${params.SeasonId}/files`; diff --git a/web/src/routes/dashboard/tv/add-show/+page.svelte b/web/src/routes/dashboard/tv/add-show/+page.svelte index e8d6006..081cfad 100644 --- a/web/src/routes/dashboard/tv/add-show/+page.svelte +++ b/web/src/routes/dashboard/tv/add-show/+page.svelte @@ -14,7 +14,7 @@ import {toast} from 'svelte-sonner'; import {browser} from "$app/environment"; - const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL; + const apiUrl = env.PUBLIC_API_URL let searchTerm: string = $state(''); let metadataProvider: string = $state('tmdb'); let results: MetaDataProviderShowSearchResult[] | null = $state(null); diff --git a/web/src/routes/dashboard/tv/requests/+layout.ts b/web/src/routes/dashboard/tv/requests/+layout.ts index fd6390f..6e597a3 100644 --- a/web/src/routes/dashboard/tv/requests/+layout.ts +++ b/web/src/routes/dashboard/tv/requests/+layout.ts @@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public'; import type {LayoutLoad} from './$types'; import {browser} from "$app/environment"; -const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL; +const apiUrl = env.PUBLIC_API_URL; export const load: LayoutLoad = async ({fetch}) => { try { const requests = await fetch(`${apiUrl}/tv/seasons/requests`, { diff --git a/web/src/routes/dashboard/tv/torrents/+page.ts b/web/src/routes/dashboard/tv/torrents/+page.ts index dbf6557..3c29153 100644 --- a/web/src/routes/dashboard/tv/torrents/+page.ts +++ b/web/src/routes/dashboard/tv/torrents/+page.ts @@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public'; import type {PageLoad} from './$types'; import {browser} from "$app/environment"; -const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL; +const apiUrl = env.PUBLIC_API_URL; export const load: PageLoad = async ({fetch}) => { const response = await fetch(apiUrl + '/tv/shows/torrents', { diff --git a/web/src/routes/login/+page.ts b/web/src/routes/login/+page.ts index 50d1f0c..8312d19 100644 --- a/web/src/routes/login/+page.ts +++ b/web/src/routes/login/+page.ts @@ -2,7 +2,7 @@ import {env} from '$env/dynamic/public'; import type {PageLoad} from './$types'; import {browser} from "$app/environment"; -const apiUrl = browser ? env.PUBLIC_API_URL : env.PUBLIC_SSR_API_URL; +const apiUrl = env.PUBLIC_API_URL; export const load: PageLoad = async ({fetch}) => { const response = await fetch(apiUrl + '/auth/metadata', {