oops went on a massive code sesh and theres like a whole website now
This commit is contained in:
@@ -3,9 +3,11 @@ export const immutable = [];
|
||||
export const prerendered = [];
|
||||
|
||||
export const assets = [
|
||||
|
||||
{"path":"robots.txt"},
|
||||
{"path":"adumh00man.png"}
|
||||
];
|
||||
|
||||
export const routes = [
|
||||
|
||||
{"id":"/","page":true,"endpoint":false},
|
||||
{"id":"/artwork/[itemId]","page":false,"endpoint":true}
|
||||
];
|
||||
@@ -9,7 +9,7 @@ export const nodes = [
|
||||
export const server_loads = [];
|
||||
|
||||
export const dictionary = {
|
||||
"/": [2]
|
||||
"/": [~2]
|
||||
};
|
||||
|
||||
export const hooks = {
|
||||
|
||||
15
.svelte-kit/generated/dev/env/config.js
vendored
15
.svelte-kit/generated/dev/env/config.js
vendored
@@ -1,5 +1,5 @@
|
||||
const variables = {};
|
||||
const handle_issues = () => {};
|
||||
import { variables } from "../../../../src/env.ts";
|
||||
import { validate, handle_issues } from '@sveltejs/kit/internal/env';
|
||||
|
||||
const issues = {};
|
||||
|
||||
@@ -15,8 +15,15 @@ handle_issues(issues);
|
||||
|
||||
export function set_env(env) {
|
||||
const issues = {};
|
||||
|
||||
const JELLYFIN_URL = validate(variables, env.JELLYFIN_URL, "JELLYFIN_URL", issues);
|
||||
dynamic_private_env.JELLYFIN_URL = JELLYFIN_URL;
|
||||
const JELLYFIN_API_KEY = validate(variables, env.JELLYFIN_API_KEY, "JELLYFIN_API_KEY", issues);
|
||||
dynamic_private_env.JELLYFIN_API_KEY = JELLYFIN_API_KEY;
|
||||
const JELLYFIN_PLAYLIST_ID = validate(variables, env.JELLYFIN_PLAYLIST_ID, "JELLYFIN_PLAYLIST_ID", issues);
|
||||
dynamic_private_env.JELLYFIN_PLAYLIST_ID = JELLYFIN_PLAYLIST_ID;
|
||||
const JELLYFIN_USER_ID = validate(variables, env.JELLYFIN_USER_ID, "JELLYFIN_USER_ID", issues);
|
||||
dynamic_private_env.JELLYFIN_USER_ID = JELLYFIN_USER_ID;
|
||||
handle_issues(issues);
|
||||
}
|
||||
|
||||
set_env({});
|
||||
set_env({JELLYFIN_URL:"http://192.168.1.180:8096",JELLYFIN_API_KEY:"2727181a933049dcbc8d63cf0bcc15f3",JELLYFIN_PLAYLIST_ID:"e3088b1ab54766ad3668bc71a574a2f7",JELLYFIN_USER_ID:"5824596713e44e8c949f529e1a081393"});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { dynamic_private_env as env } from '../config.js';
|
||||
|
||||
export const JELLYFIN_URL = env.JELLYFIN_URL;
|
||||
export const JELLYFIN_API_KEY = env.JELLYFIN_API_KEY;
|
||||
export const JELLYFIN_PLAYLIST_ID = env.JELLYFIN_PLAYLIST_ID;
|
||||
export const JELLYFIN_USER_ID = env.JELLYFIN_USER_ID;
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
const { env } = globalThis.__sveltekit_dev;
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
import { rendered_env as env } from '../config.js';
|
||||
|
||||
|
||||
@@ -3,5 +3,5 @@ globalThis.__sveltekit_dev = {
|
||||
env: {
|
||||
// empty
|
||||
},
|
||||
version: "1793620726000"
|
||||
version: "1793725498340"
|
||||
};
|
||||
@@ -7,7 +7,7 @@ export const options = {
|
||||
csrf_trusted_origins: [],
|
||||
service_worker_options: undefined,
|
||||
templates: {
|
||||
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"text-scale\" content=\"scale\" />\n\t\t" + head + "\n\t</head>\n\t<body class=\"bg-ctp-mantle text-ctp-text\" data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
|
||||
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<!-- Fonts -->\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Squada+One&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\n\t\t<!-- Not Fonts -->\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"text-scale\" content=\"scale\" />\n\t\t" + head + "\n\t</head>\n\t<style>\n\t\t.fira-mono-regular {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 400;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-medium {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 500;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-bold {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 700;\n\t\t\tfont-style: normal;\n\t\t}\n\t</style>\n\t<body class=\"fira-mono-regular bg-ctp-mantle text-ctp-text\" data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
|
||||
error
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
{
|
||||
"/": []
|
||||
"/": [
|
||||
"src/routes/+page.server.ts"
|
||||
],
|
||||
"/artwork/[itemId]": [
|
||||
"src/routes/artwork/[itemId]/+server.ts"
|
||||
]
|
||||
}
|
||||
15
.svelte-kit/types/src/routes/$types.d.ts
vendored
15
.svelte-kit/types/src/routes/$types.d.ts
vendored
@@ -12,14 +12,21 @@ type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends
|
||||
/** @deprecated Use the `snapshot` helper from `$app/navigation` instead. */
|
||||
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
||||
export type ErrorProps = { error: App.Error };
|
||||
type PageServerParentData = EnsureDefined<LayoutServerData>;
|
||||
type PageParentData = EnsureDefined<LayoutData>;
|
||||
type LayoutRouteId = RouteId | "/" | null
|
||||
type LayoutParams = RouteParams & { }
|
||||
type LayoutParentData = EnsureDefined<{}>;
|
||||
|
||||
export type PageServerData = null;
|
||||
export type PageData = Expand<PageParentData>;
|
||||
export type PageProps = { params: RouteParams; data: PageData }
|
||||
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
|
||||
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
|
||||
export type ActionData = unknown;
|
||||
export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.LoadProperties<Awaited<ReturnType<typeof import('./proxy+page.server.js').load>>>>>>;
|
||||
export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;
|
||||
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
|
||||
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
|
||||
export type PageProps = { params: RouteParams; data: PageData; form: ActionData }
|
||||
export type LayoutServerData = null;
|
||||
export type LayoutData = Expand<LayoutParentData>;
|
||||
export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
|
||||
export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
|
||||
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
||||
10
.svelte-kit/types/src/routes/artwork/[itemId]/$types.d.ts
vendored
Normal file
10
.svelte-kit/types/src/routes/artwork/[itemId]/$types.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import type * as Kit from '@sveltejs/kit';
|
||||
import { MatcherParam } from '@sveltejs/kit/params';
|
||||
|
||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||
type RouteParams = { itemId: string };
|
||||
type RouteId = '/artwork/[itemId]';
|
||||
|
||||
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
|
||||
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
|
||||
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;
|
||||
17
.svelte-kit/types/src/routes/proxy+page.server.ts
Normal file
17
.svelte-kit/types/src/routes/proxy+page.server.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// @ts-nocheck
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { getLatestPlaylistSong } from '#lib/server/jellyfin';
|
||||
import { JELLYFIN_PLAYLIST_ID } from '$app/env/private';
|
||||
|
||||
export const load = () => {
|
||||
const latestSong = getLatestPlaylistSong(globalThis.fetch, JELLYFIN_PLAYLIST_ID);
|
||||
|
||||
latestSong.catch(() => {});
|
||||
|
||||
return {
|
||||
streamed: {
|
||||
latestSong
|
||||
}
|
||||
};
|
||||
};
|
||||
;null as any as PageServerLoad;
|
||||
Reference in New Issue
Block a user