- Add authentication middleware to protect routes - Create API endpoints for login, logout, registration, and user info - Develop UI components for login and registration forms - Integrate VeeValidate for form validation - Update environment configuration for Cidaas settings - Add i18n support for English and German languages - Enhance Tailwind CSS for improved styling of auth components - Document authentication flow and testing procedures
31 lines
707 B
Vue
31 lines
707 B
Vue
<script setup lang="ts">
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { inject } from 'vue'
|
|
import { cn } from '~/lib/utils'
|
|
import type { FormItemContext } from '.'
|
|
import { FORM_ITEM_INJECT_KEY } from '.'
|
|
|
|
/**
|
|
* FormDescription component - Help text for form fields
|
|
* Provides additional context or instructions for the user
|
|
*/
|
|
|
|
interface Props {
|
|
class?: HTMLAttributes['class']
|
|
}
|
|
|
|
const props = defineProps<Props>()
|
|
|
|
// Get the form item context for ID
|
|
const formItemContext = inject<FormItemContext>(FORM_ITEM_INJECT_KEY)
|
|
</script>
|
|
|
|
<template>
|
|
<p
|
|
:id="`${formItemContext?.id}-description`"
|
|
:class="cn('text-sm text-muted-foreground', props.class)"
|
|
>
|
|
<slot />
|
|
</p>
|
|
</template>
|