KI-AGENT: Zentralen Push-Server Stack ergänzen

This commit is contained in:
2026-05-22 16:53:27 +02:00
parent 19bab852de
commit 5a4de421ce
43 changed files with 17731 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<script setup lang="ts">
const pushApi = usePushApi();
const draft = ref("");
onMounted(() => {
pushApi.hydrateToken();
draft.value = pushApi.token.value;
});
</script>
<template>
<UCard v-if="!pushApi.token.value" class="mx-auto mt-16 max-w-lg">
<template #header>
<div>
<h2 class="text-lg font-bold">Admin-Zugang</h2>
<p class="text-sm text-gray-500">Gib den Admin-Token aus der Push-Server-Umgebung ein.</p>
</div>
</template>
<form class="space-y-4" @submit.prevent="pushApi.setToken(draft)">
<UInput v-model="draft" type="password" placeholder="ADMIN_TOKEN" icon="i-lucide-key-round" autofocus />
<UButton type="submit" block icon="i-lucide-log-in">Verbinden</UButton>
</form>
</UCard>
<slot v-else />
</template>