feat: metadata
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

This commit is contained in:
2026-07-16 16:36:55 +02:00
parent 603bd9f108
commit 6a0e162596
6 changed files with 44 additions and 3 deletions
+16 -1
View File
@@ -1,9 +1,23 @@
<script setup lang="ts">
import { defineAsyncComponent } from "vue";
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>
@@ -19,6 +33,7 @@ const LangInput = defineAsyncComponent(
>
klemek
</a>
<span v-if="metadata">- {{ $t("metadata", metadata) }}</span>
</p>
</aside>
</footer>