added content with cool graph :D

This commit is contained in:
2026-11-04 19:37:01 +00:00
parent 1ce397b734
commit fc24865941
11 changed files with 269 additions and 69 deletions

View File

@@ -3,9 +3,9 @@ export const immutable = [];
export const prerendered = [];
export const assets = [
{"path":"robots.txt"},
{"path":"voidarc-hollow.svg"},
{"path":"adumh00man.png"},
{"path":"robots.txt"}
{"path":"adumh00man.png"}
];
export const routes = [

View File

@@ -3,5 +3,5 @@ globalThis.__sveltekit_dev = {
env: {
// empty
},
version: "1793799746966"
version: "1793818191005"
};

View File

@@ -2,7 +2,8 @@
import type { PageServerLoad } from './$types';
import { getLatestPlaylistSong, getLatestWatchedSeries } from '#lib/server/jellyfin';
import { getLatestBook } from '#lib/server/komga';
import { fetchBlogArticles, getChannelInfo } from '#lib/server/content';
import { getContentItems } from '#lib/server/content';
import type { ContentItem } from '#lib/server/content';
import {
JELLYFIN_PLAYLIST_ID,
JELLYFIN_LIBRARY_ID,
@@ -13,21 +14,23 @@ import {
export const load = () => {
const latestSong = getLatestPlaylistSong(globalThis.fetch, JELLYFIN_PLAYLIST_ID);
console.log(JELLYFIN_LIBRARY_ID);
const latestSeries = getLatestWatchedSeries(globalThis.fetch, JELLYFIN_LIBRARY_ID);
const latestBook = getLatestBook(globalThis.fetch, KOMGA_LIBRARY_ID);
const blogArticles = fetchBlogArticles(BLOG_URL);
const info = getChannelInfo(CHANNEL_ID);
const contentItems: ContentItem = getContentItems(globalThis.fetch, CHANNEL_ID, BLOG_URL);
latestSong.catch(() => {});
latestSeries.catch(() => {});
latestBook.catch(() => {});
contentItems.catch(() => {});
return {
streamed: {
latestSong,
latestSeries,
latestBook
latestBook,
contentItems
}
};
};