mirror of
https://github.com/versia-pub/server.git
synced 2026-03-14 06:19:15 +01:00
feat: Add user registration via Web UI
This commit is contained in:
parent
1c295b4d8d
commit
d79e718e15
12 changed files with 215 additions and 11 deletions
|
|
@ -4,8 +4,8 @@
|
|||
</div>
|
||||
<div class="mt-2">
|
||||
<input v-bind="$attrs" @input="checkValid" :class="['block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6',
|
||||
isInvalid && 'invalid:!ring-red-600 invalid:ring-2']">
|
||||
<span v-if="isInvalid" class="mt-1 text-xs text-red-600">{{ label }} is invalid</span>
|
||||
(isInvalid || error) && 'invalid:!ring-red-600 invalid:ring-2']">
|
||||
<span v-if="isInvalid || error" class="mt-1 text-xs text-red-600">{{ error ? error : `${label} is invalid` }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -14,6 +14,7 @@ import { ref } from 'vue';
|
|||
|
||||
const props = defineProps<{
|
||||
label: string;
|
||||
error?: string;
|
||||
}>();
|
||||
|
||||
const isInvalid = ref(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue