mirror of
https://github.com/Art051/immich.git
synced 2025-08-11 19:29:00 +00:00
* Add on this day * add query for x year * dev: add query * dev: front end * dev: styling * styling * more styling * add new page * navigating * navigate back and forth * styling * show gallery * fix test * fix test * show previous and next title * fix test * show up down scrolling button * more styling * styling * fix app bar * fix height of next/previous * autoplay * auto play * refactor * refactor * refactor * show date * Navigate * finish * pr feedback
17 lines
335 B
TypeScript
17 lines
335 B
TypeScript
import type { PageServerLoad } from './$types';
|
|
import { redirect } from '@sveltejs/kit';
|
|
import { AppRoute } from '$lib/constants';
|
|
|
|
export const load = (async ({ locals: { user } }) => {
|
|
if (!user) {
|
|
throw redirect(302, AppRoute.AUTH_LOGIN);
|
|
}
|
|
|
|
return {
|
|
user,
|
|
meta: {
|
|
title: 'Memory'
|
|
}
|
|
};
|
|
}) satisfies PageServerLoad;
|