feat: Create new user profile view, refine components, add dropdown to notes

This commit is contained in:
Jesse Wierzbinski 2024-04-24 20:56:01 -10:00
parent a0d0737683
commit a17df9fff8
No known key found for this signature in database
21 changed files with 470 additions and 133 deletions

View file

@ -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>

View file

@ -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) : "";