added commit display
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user