1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-11 05:24:17 +00:00
Files
pocket-id/frontend/src/routes/settings/+layout.ts
2025-05-24 22:55:46 +02:00

18 lines
523 B
TypeScript

import versionService from '$lib/services/version-service';
import type { AppVersionInformation } from '$lib/types/application-configuration';
import type { LayoutLoad } from './$types';
export const prerender = false;
export const load: LayoutLoad = async () => {
const versionInformation: AppVersionInformation = {
currentVersion: versionService.getCurrentVersion(),
newestVersion: await versionService.getNewestVersion(),
isUpToDate: await versionService.isUpToDate()
};
return {
versionInformation
};
};