Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m31s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m39s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m57s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m46s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m9s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m13s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m30s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m27s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m7s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
26 lines
715 B
Vue
26 lines
715 B
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import { usePage } from '@inertiajs/vue3';
|
|
import GreetingCard from '@/components/GreetingCard.vue';
|
|
|
|
const props = defineProps({
|
|
profile: { type: Object, required: true },
|
|
actions: { type: Array, default: () => [] },
|
|
});
|
|
|
|
const page = usePage();
|
|
const user = computed(() => ({ ...page.props.auth.user, avatar_url: props.profile.avatar_url }));
|
|
|
|
const greeting = computed(() => {
|
|
const hour = new Date().getHours();
|
|
|
|
if (hour < 11) return 'Guten Morgen';
|
|
if (hour < 18) return 'Guten Tag';
|
|
|
|
return 'Guten Abend';
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<GreetingCard :user="user" :profile="profile" :greeting="greeting" :actions="actions" />
|
|
</template>
|