Herzen, Reichweite und App-Anbindung (0.30.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m10s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 6m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m25s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m28s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m27s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m27s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m12s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m10s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 6m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m25s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m28s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m27s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m26s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m27s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m12s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
d9fcc7a9b4
commit
b3e2b525e1
161 changed files with 1249 additions and 342 deletions
49
resources/js/pages/AppConnect.vue
Normal file
49
resources/js/pages/AppConnect.vue
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { router, useForm, usePage } from '@inertiajs/vue3';
|
||||
import { LoaderCircle, Smartphone } from '@lucide/vue';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import GuestLayout from '@/layouts/GuestLayout.vue';
|
||||
|
||||
/**
|
||||
* Bestätigung „App verbinden“: Die Inhaus-App hat diese Seite im Browser geöffnet.
|
||||
*/
|
||||
const props = defineProps({
|
||||
deviceName: { type: String, required: true },
|
||||
query: { type: Object, required: true },
|
||||
});
|
||||
|
||||
const user = computed(() => usePage().props.auth?.user);
|
||||
const form = useForm({ ...props.query });
|
||||
|
||||
function confirm() {
|
||||
form.post('/app/verbinden');
|
||||
}
|
||||
|
||||
function logout() {
|
||||
router.post('/logout');
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<GuestLayout title="App verbinden" description="Die Inhaus-App möchte sich mit Ihrem Konto anmelden.">
|
||||
<div class="grid gap-5">
|
||||
<div class="flex items-center gap-3 rounded-lg border bg-muted/40 p-4">
|
||||
<span class="grid size-10 shrink-0 place-items-center rounded-md bg-brand-soft text-brand-text"><Smartphone class="size-5" /></span>
|
||||
<div class="min-w-0 text-sm">
|
||||
<p class="font-semibold">{{ deviceName }}</p>
|
||||
<p v-if="user" class="text-muted-foreground">Angemeldet als {{ user.name }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-sm text-muted-foreground">
|
||||
Die App kann danach Neuigkeiten, Termine und Benachrichtigungen in Ihrem Namen abrufen. Den Zugang können Sie jederzeit unter
|
||||
„Profil bearbeiten → Benachrichtigungen & Apps“ wieder entziehen.
|
||||
</p>
|
||||
<Button class="h-10" :disabled="form.processing" @click="confirm">
|
||||
<LoaderCircle v-if="form.processing" class="animate-spin" />
|
||||
Verbinden und zurück zur App
|
||||
</Button>
|
||||
<button type="button" class="text-sm text-muted-foreground hover:text-foreground hover:underline" @click="logout">Nicht Sie? Abmelden</button>
|
||||
</div>
|
||||
</GuestLayout>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue