mirror of
https://github.com/immich-app/immich.git
synced 2024-12-22 01:47:08 +02:00
remove footer to fix error when reloading the page
This commit is contained in:
parent
f90563d18c
commit
4a25e7dc22
@ -1,28 +1,28 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { getRequest } from '$lib/api';
|
// import { getRequest } from '$lib/api';
|
||||||
import { onDestroy } from 'svelte';
|
// import { onDestroy } from 'svelte';
|
||||||
import { fade } from 'svelte/transition';
|
// import { fade } from 'svelte/transition';
|
||||||
import '../app.css';
|
import '../app.css';
|
||||||
import { serverEndpoint } from '../lib/constants';
|
// import { serverEndpoint } from '../lib/constants';
|
||||||
|
|
||||||
let endpoint = serverEndpoint;
|
// let endpoint = serverEndpoint;
|
||||||
let isServerOk = true;
|
// let isServerOk = true;
|
||||||
|
|
||||||
const pingServerInterval = setInterval(async () => {
|
// const pingServerInterval = setInterval(async () => {
|
||||||
const response = await getRequest('server-info/ping', '');
|
// const response = await getRequest('server-info/ping', '');
|
||||||
|
|
||||||
if (response.res === 'pong') isServerOk = true;
|
// if (response.res === 'pong') isServerOk = true;
|
||||||
if (response.statusCode === 404) isServerOk = false;
|
// if (response.statusCode === 404) isServerOk = false;
|
||||||
}, 10000);
|
// }, 10000);
|
||||||
|
|
||||||
onDestroy(() => clearInterval(pingServerInterval));
|
// onDestroy(() => clearInterval(pingServerInterval));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer
|
<!-- <footer
|
||||||
class="text-sm fixed bottom-0 h-8 flex place-items-center place-content-center bg-gray-50 w-screen font-mono gap-8 px-4 font-medium"
|
class="text-sm fixed bottom-0 h-8 flex place-items-center place-content-center bg-gray-50 w-screen font-mono gap-8 px-4 font-medium"
|
||||||
>
|
>
|
||||||
<p class="">
|
<p class="">
|
||||||
@ -36,4 +36,4 @@
|
|||||||
<span class="text-red-500 font-bold">OFFLINE</span>
|
<span class="text-red-500 font-bold">OFFLINE</span>
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer> -->
|
||||||
|
Loading…
Reference in New Issue
Block a user