mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 19:49:16 +01:00
refactor: ♻️ Rewrite state system to use Pinia for composer and auth
This commit is contained in:
parent
a6db9e059d
commit
b510782a30
80 changed files with 999 additions and 1011 deletions
|
|
@ -160,15 +160,17 @@ const schema = toTypedSchema(
|
|||
}),
|
||||
);
|
||||
|
||||
const instance = useInstanceFromClient(new Client(client.value.url));
|
||||
const client = new Client(new URL(useRequestURL().origin));
|
||||
const instance = useInstanceFromClient(client);
|
||||
const form = useForm({
|
||||
validationSchema: schema,
|
||||
});
|
||||
const authStore = useAuthStore();
|
||||
|
||||
const handleSubmit = form.handleSubmit((values) => {
|
||||
isLoading.value = true;
|
||||
ref(client)
|
||||
.value?.registerAccount(
|
||||
authStore.client
|
||||
.registerAccount(
|
||||
values.username,
|
||||
values.email,
|
||||
values.password,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue