This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27f8b49
commit ae59f86
Showing
8 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<template> | ||
<div class="auth-page-container"> | ||
<h1>Welcome to Modrinth!</h1> | ||
<p> | ||
Thank you for creating an account. You can now follow and create projects, receive updates | ||
about your favorite projects, and more! | ||
</p> | ||
<Checkbox v-model="subscribe" class="subscribe-btn" label="Subscribe updates about Modrinth" /> | ||
<button class="btn btn-primary continue-btn" @click="continueSignUp">Continue</button> | ||
<p> | ||
By creating an account, you agree to Modrinth's | ||
<nuxt-link to="/legal/terms" class="text-link">terms</nuxt-link> and | ||
<nuxt-link to="/legal/privacy" class="text-link">privacy policy</nuxt-link>. | ||
</p> | ||
</div> | ||
</template> | ||
<script setup> | ||
import { Checkbox } from 'omorphia' | ||
const subscribe = ref(true) | ||
async function continueSignUp() { | ||
const route = useRoute() | ||
await useAuth(route.query.authToken) | ||
await useUser() | ||
if (subscribe.value) { | ||
try { | ||
await useBaseFetch('auth/email/subscribe', { | ||
method: 'POST', | ||
}) | ||
} catch {} | ||
} | ||
if (route.query.redirect) { | ||
await navigateTo(route.query.redirect) | ||
} else { | ||
await navigateTo('/dashboard') | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters