Migrate to nuxt settings page AND remove axios (#266)

* Settings pages migration

* remove axios and use opnFetch

* Make created form reactive (#267)

* Remove verify pages and axios lib

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev
2024-01-02 17:39:41 +05:30
committed by GitHub
parent 6fd2985ff5
commit 178424a184
27 changed files with 622 additions and 888 deletions

View File

@@ -77,7 +77,7 @@ class Form {
Object.keys(this)
.filter(key => !Form.ignore.includes(key))
.forEach((key) => {
this[key] = deepCopy(this.originalData[key]);
this[key] = JSON.parse(JSON.stringify(this.originalData[key]));
});
}
@@ -128,7 +128,7 @@ class Form {
resolve(data);
}).catch((error) => {
this.handleErrors(error);
resolve(error)
reject(error)
})
});
}

View File

@@ -1,5 +1,5 @@
import Form from "~/composables/lib/vForm/Form.js"
export const useForm = (formData = {}) => {
return new Form(formData)
return reactive(new Form(formData))
}