Finished registration + working on own useAuth composable

This commit is contained in:
2024-07-30 17:58:22 +02:00
parent 1d2a89e001
commit f2600a3012
23 changed files with 354 additions and 99 deletions

17
components/Input.vue Normal file
View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
interface Prop
{
error?: string | boolean;
title: string;
}
const props = defineProps<Prop>();
const model = defineModel<string>();
</script>
<template>
<div class="input-group">
<label v-if="title" class="input-label">{{ title }}</label>
<input class="input-input" :class="{'input-has-error': !!error}" v-model="model" v-bind="$attrs" />
<span v-if="error && typeof error === 'string'" class="input-error">{{ error }}</span>
</div>
</template>