mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 13:19:41 +02:00
* automated docs update * recipe rating component * recipe partial updates - closes #25 * use Vue.delete to update store * format * arrow functions * fix tests * format * initial context menu * localize * add confirmation dialog * context menu * fix bare exception * update line length * format all file with prettier * update changelog * download as json * update python dependencies * update javascript dependencies Co-authored-by: hay-kot <hay-kot@pm.me>
13 lines
446 B
JavaScript
13 lines
446 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"),
|
|
|
|
whiteSpace: v => !v || v.split(" ").length <= 1 || this.$t("recipe.no-white-space-allowed"),
|
|
};
|
|
},
|
|
};
|