2022-12-09 15:51:42 -05:00
|
|
|
<script lang="ts">
|
|
|
|
|
import FFmpegSettings from '$lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte';
|
|
|
|
|
import OAuthSettings from '$lib/components/admin-page/settings/oauth/oauth-settings.svelte';
|
|
|
|
|
import SettingAccordion from '$lib/components/admin-page/settings/setting-accordion.svelte';
|
2022-12-16 14:26:12 -06:00
|
|
|
import StorageTemplateSettings from '$lib/components/admin-page/settings/storate-template/storage-template-settings.svelte';
|
2022-12-09 15:51:42 -05:00
|
|
|
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
|
|
|
|
|
import { api, SystemConfigDto } from '@api';
|
2022-12-16 14:26:12 -06:00
|
|
|
import type { PageData } from './$types';
|
2022-12-09 15:51:42 -05:00
|
|
|
|
|
|
|
|
let systemConfig: SystemConfigDto;
|
2022-12-16 14:26:12 -06:00
|
|
|
export let data: PageData;
|
2022-12-09 15:51:42 -05:00
|
|
|
const getConfig = async () => {
|
|
|
|
|
const { data } = await api.systemConfigApi.getConfig();
|
|
|
|
|
systemConfig = data;
|
|
|
|
|
|
|
|
|
|
return data;
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
2022-12-10 09:23:02 -06:00
|
|
|
<svelte:head>
|
2022-12-17 16:08:18 -06:00
|
|
|
<title>System Settings - Immich</title>
|
2022-12-10 09:23:02 -06:00
|
|
|
</svelte:head>
|
|
|
|
|
|
2022-12-09 15:51:42 -05:00
|
|
|
<section class="">
|
|
|
|
|
{#await getConfig()}
|
|
|
|
|
<LoadingSpinner />
|
|
|
|
|
{:then configs}
|
|
|
|
|
<SettingAccordion
|
|
|
|
|
title="FFmpeg Settings"
|
|
|
|
|
subtitle="Manage the resolution and encoding information of the video files"
|
|
|
|
|
>
|
|
|
|
|
<FFmpegSettings ffmpegConfig={configs.ffmpeg} />
|
|
|
|
|
</SettingAccordion>
|
|
|
|
|
|
|
|
|
|
<SettingAccordion title="OAuth Settings" subtitle="Manage the OAuth integration to Immich app">
|
|
|
|
|
<OAuthSettings oauthConfig={configs.oauth} />
|
|
|
|
|
</SettingAccordion>
|
2022-12-16 14:26:12 -06:00
|
|
|
|
|
|
|
|
<SettingAccordion
|
|
|
|
|
title="Storage Template"
|
|
|
|
|
subtitle="Manage the folder structure and file name of the upload asset"
|
|
|
|
|
>
|
|
|
|
|
<StorageTemplateSettings storageConfig={configs.storageTemplate} user={data.user} />
|
|
|
|
|
</SettingAccordion>
|
2022-12-09 15:51:42 -05:00
|
|
|
{/await}
|
|
|
|
|
</section>
|