Docker Build / build (push) Has been cancelled
Python Lint CI / ruff (push) Has been cancelled
Python Lint CI / ruff-format-check (push) Has been cancelled
Python Lint CI / ty (push) Has been cancelled
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled
41 lines
1.0 KiB
Vue
41 lines
1.0 KiB
Vue
<script setup lang="ts">
|
|
import { getMetadata } from "@/api/meta";
|
|
import type { Metadata } from "@/types";
|
|
import { defineAsyncComponent, onBeforeMount, ref } from "vue";
|
|
|
|
const metadata = ref<Metadata|null>(null);
|
|
|
|
const LangInput = defineAsyncComponent(
|
|
() => import("@/components/LangInput.vue"),
|
|
);
|
|
|
|
function fetchMetadata() {
|
|
void getMetadata()
|
|
.then((data) => {
|
|
metadata.value = data;
|
|
setTimeout(fetchMetadata, 600000);
|
|
});
|
|
}
|
|
|
|
onBeforeMount(fetchMetadata);
|
|
</script>
|
|
|
|
<template>
|
|
<footer
|
|
class="footer sm:footer-horizontal footer-center bg-base-300 text-base-content p-2"
|
|
>
|
|
<aside>
|
|
<p>
|
|
<lang-input /> - 2026 -
|
|
<a
|
|
href="https://git.klemek.fr/klemek/tout-doux"
|
|
class="underline"
|
|
>
|
|
klemek
|
|
</a>
|
|
<span v-if="metadata">- {{ $t("metadata", metadata) }}</span>
|
|
</p>
|
|
</aside>
|
|
</footer>
|
|
</template>
|