mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 23:29:41 +02:00
* merge category and tag selector * unifiy category selector * add hint * spacing * fix nextcloud migration * simplify email validator #261 * formatting * cleanup * auto-gen * format * update run script * unified category/tag selector * rename component * Add advanced search link * remove old code * convert keywords to tags * add proper behavior on rename * proper image name association on rename * fix test cleanup * changelog * set docker comppand * minify on migration Co-authored-by: hay-kot <hay-kot@pm.me>
15 lines
377 B
JavaScript
15 lines
377 B
JavaScript
export const validators = {
|
|
data() {
|
|
return {
|
|
emailRule: v =>
|
|
!v ||
|
|
/^[^@\s]+@[^@\s.]+.[^@.\s]+$/.test(v) ||
|
|
this.$t('user.e-mail-must-be-valid'),
|
|
|
|
existsRule: value => !!value || this.$t('general.field-required'),
|
|
|
|
minRule: v =>
|
|
v.length >= 8 || this.$t('user.use-8-characters-or-more-for-your-password'),
|
|
};
|
|
},
|
|
};
|