mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-10 06:55:35 -04:00
chore: Nuxt 4 upgrade (#7426)
This commit is contained in:
22
frontend/app/components/Domain/User/UserPasswordStrength.vue
Normal file
22
frontend/app/components/Domain/User/UserPasswordStrength.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<div class="d-flex pb-6 mt-n1 ml-10">
|
||||
<div style="flex-basis: 500px">
|
||||
<strong> {{ $t("user.password-strength", { strength: pwStrength.strength.value }) }}</strong>
|
||||
<v-progress-linear
|
||||
v-model="pwStrength.score.value"
|
||||
rounded
|
||||
:color="pwStrength.color.value"
|
||||
height="15"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { usePasswordStrength } from "~/composables/use-passwords";
|
||||
|
||||
const modelValue = defineModel<string>({ default: "" });
|
||||
const i18n = useI18n();
|
||||
|
||||
const pwStrength = usePasswordStrength(modelValue, i18n);
|
||||
</script>
|
||||
Reference in New Issue
Block a user