added commit display

This commit is contained in:
2026-11-10 13:52:23 +00:00
parent 5e3b5200e3
commit 38ce5f3554
3 changed files with 121 additions and 1 deletions

View File

@@ -2,7 +2,9 @@ import type { PageServerLoad } from './$types';
import { getLatestPlaylistSong, getLatestWatchedSeries } from '#lib/server/jellyfin';
import { getLatestBook } from '#lib/server/komga';
import { getContentItems } from '#lib/server/content';
import { getLatestCommits } from '#lib/server/gitea';
import type { ContentItem } from '#lib/server/content';
import type { GitCommit } from '#lib/server/gitea';
import {
JELLYFIN_PLAYLIST_ID,
JELLYFIN_LIBRARY_ID,
@@ -17,19 +19,22 @@ export const load: PageServerLoad = () => {
const latestBook = getLatestBook(globalThis.fetch, KOMGA_LIBRARY_ID);
const contentItems: ContentItem = getContentItems(globalThis.fetch, CHANNEL_ID, BLOG_URL);
const latestCommits: GitCommit = getLatestCommits(globalThis.fetch, 10);
latestSong.catch(() => {});
latestSeries.catch(() => {});
latestBook.catch(() => {});
contentItems.catch(() => {});
latestCommits.catch(() => {});
return {
streamed: {
latestSong,
latestSeries,
latestBook,
contentItems
contentItems,
latestCommits
}
};
};