mirror of
https://github.com/immich-app/immich.git
synced 2026-10-14 22:35:37 +08:00
* feat: server config * chore: open api * fix: redirect /map to /photos when disabled
25 lines
890 B
Svelte
25 lines
890 B
Svelte
<script lang="ts">
|
|
import { goto } from '$app/navigation';
|
|
import LoginForm from '$lib/components/forms/login-form.svelte';
|
|
import FullscreenContainer from '$lib/components/shared-components/fullscreen-container.svelte';
|
|
import { AppRoute } from '$lib/constants';
|
|
import { featureFlags, serverConfig } from '$lib/stores/server-config.store';
|
|
import type { PageData } from './$types';
|
|
|
|
export let data: PageData;
|
|
</script>
|
|
|
|
{#if $featureFlags.loaded}
|
|
<FullscreenContainer title={data.meta.title} showMessage={!!$serverConfig.loginPageMessage}>
|
|
<p slot="message">
|
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
|
{@html $serverConfig.loginPageMessage}
|
|
</p>
|
|
|
|
<LoginForm
|
|
on:success={() => goto(AppRoute.PHOTOS, { invalidateAll: true })}
|
|
on:first-login={() => goto(AppRoute.AUTH_CHANGE_PASSWORD)}
|
|
/>
|
|
</FullscreenContainer>
|
|
{/if}
|