change const form to let form
This commit is contained in:
@@ -131,7 +131,7 @@ import { Form, FormControl } from "../helpers/form";
|
||||
import { And, Email, Min, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
name: FormControl("", And([Required()])),
|
||||
email: FormControl("", And([Required(), Email()])),
|
||||
|
||||
@@ -54,7 +54,7 @@ import { And, Max, Min, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
code: FormControl("", And([Required(), Min(6), Max(6)])),
|
||||
})
|
||||
|
||||
@@ -60,7 +60,7 @@ import { And, Min, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
username: FormControl("", And([Required(), Min(4)])),
|
||||
})
|
||||
|
||||
@@ -59,7 +59,7 @@ import { And, Email, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
email: FormControl("", And([Required(), Email()])),
|
||||
})
|
||||
|
||||
@@ -141,7 +141,7 @@ import { And, Email, Required } from "../helpers/validate";
|
||||
|
||||
const slides = ref([]);
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
email: FormControl("", And([Required(), Email()])),
|
||||
})
|
||||
|
||||
@@ -48,7 +48,7 @@ import { useUserStore } from "../store/UserStore";
|
||||
|
||||
const router = useRouter();
|
||||
const userStore = useUserStore();
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
username: FormControl("", And([Required(), Min(4)])),
|
||||
password: FormControl("", Required()),
|
||||
|
||||
@@ -123,7 +123,7 @@ const checkUsername = async (value: string): Promise<boolean | string> => {
|
||||
|
||||
const formDone = ref(false);
|
||||
const lastUsernameCheck = ref("");
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
first_name: FormControl("", Required()),
|
||||
last_name: FormControl("", Required()),
|
||||
|
||||
@@ -56,7 +56,7 @@ import { Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
username: FormControl("", Required()),
|
||||
})
|
||||
|
||||
@@ -56,7 +56,7 @@ import { And, Max, Min, Password, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
code: FormControl("", And([Required(), Min(6), Max(6)])),
|
||||
password: FormControl("", And([Required(), Password()])),
|
||||
|
||||
@@ -49,7 +49,7 @@ import { And, Email, Required } from "../helpers/validate";
|
||||
|
||||
const { executeRecaptcha, recaptchaLoaded } = useReCaptcha();
|
||||
const formDone = ref(false);
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
email: FormControl("", And([Required(), Email()])),
|
||||
})
|
||||
|
||||
@@ -30,7 +30,7 @@ import { Form, FormControl } from "../../helpers/form";
|
||||
import { And, Min, Required } from "../../helpers/validate";
|
||||
|
||||
const route = useRoute();
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
title: FormControl("", And([Required(), Min(2)])),
|
||||
content: FormControl("", Required()),
|
||||
|
||||
@@ -196,7 +196,7 @@ const registration_data = computed(() => {
|
||||
return data;
|
||||
});
|
||||
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
title: FormControl("", And([Required(), Min(6)])),
|
||||
location: FormControl("online"),
|
||||
|
||||
@@ -81,7 +81,7 @@ const formLoadingMessage = ref("");
|
||||
const route = useRoute();
|
||||
const page_title = route.params.id ? "Edit Media" : "Upload Media";
|
||||
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
file: FormControl("", And([Required(), FileSize(5242880)])),
|
||||
permission: FormControl(),
|
||||
|
||||
@@ -89,7 +89,7 @@ let pageError = ref(200);
|
||||
const authors = ref({});
|
||||
const attachments = ref([]);
|
||||
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
title: FormControl("", And([Required(), Min(8)])),
|
||||
slug: FormControl("", And([Required(), Min(6)])),
|
||||
|
||||
@@ -48,7 +48,7 @@ import { useUserStore } from "../../store/UserStore";
|
||||
const route = useRoute();
|
||||
const userStore = useUserStore();
|
||||
|
||||
const form = reactive(
|
||||
let form = reactive(
|
||||
Form({
|
||||
first_name: FormControl("", And([Required()])),
|
||||
last_name: FormControl("", And([Required()])),
|
||||
|
||||
Reference in New Issue
Block a user