mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Create new user profile view, refine components, add dropdown to notes
This commit is contained in:
parent
a0d0737683
commit
a17df9fff8
21 changed files with 470 additions and 133 deletions
|
|
@ -80,15 +80,17 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { toTypedSchema } from "@vee-validate/zod";
|
||||
import { useRoute } from "vue-router";
|
||||
import { z } from "zod";
|
||||
import LoginInput from "../../components/LoginInput.vue";
|
||||
import { toTypedSchema } from '@vee-validate/zod';
|
||||
import { z } from 'zod';
|
||||
|
||||
const schema = toTypedSchema(z.object({
|
||||
email: z.string().email(),
|
||||
password: z.string().min(3),
|
||||
}));
|
||||
const schema = toTypedSchema(
|
||||
z.object({
|
||||
email: z.string().email(),
|
||||
password: z.string().min(3),
|
||||
}),
|
||||
);
|
||||
|
||||
const query = useRoute().query;
|
||||
|
||||
|
|
@ -101,5 +103,5 @@ const error_description = decodeURIComponent(query.error_description as string);
|
|||
|
||||
const validUrlParameters = redirect_uri && response_type && client_id && scope;
|
||||
|
||||
const oauthProviders = await useOAuthProviders()
|
||||
const oauthProviders = await useOAuthProviders();
|
||||
</script>
|
||||
|
|
@ -97,7 +97,9 @@ const url = useRequestURL();
|
|||
const query = useRoute().query;
|
||||
|
||||
const application = "Soapbox"; //query.application;
|
||||
const website = query.website ? decodeURIComponent(query.website as string) : null;
|
||||
const website = query.website
|
||||
? decodeURIComponent(query.website as string)
|
||||
: null;
|
||||
const redirect_uri = query.redirect_uri as string;
|
||||
const client_id = query.client_id;
|
||||
const scope = query.scope ? decodeURIComponent(query.scope as string) : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue