-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
10,415 additions
and
13,693 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script lang="ts" setup> | ||
defineProps<{ | ||
modelValue: boolean; | ||
}>(); | ||
const emits = defineEmits<{ | ||
(e: "update:modelValue", payload: boolean): void; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<UModal | ||
:modelValue="modelValue" | ||
@update:modelValue="(val) => emits('update:modelValue', val)" | ||
> | ||
<div class="p-8 text-center"> | ||
<p class="my-4 mb-10">Please sign up to continue using StudyHQ.</p> | ||
<div class="flex justify-center mt-8 mb-4"> | ||
<SignInGoogle class="mr-2" /> | ||
|
||
<SignInGithub /> | ||
</div> | ||
</div> | ||
</UModal> | ||
</template> |
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,16 @@ | ||
import { ref } from "vue"; | ||
|
||
const guestMode = ref(true); | ||
const showSignUpModal = ref(false); | ||
|
||
export function useAuth() { | ||
const setGuest = () => (guestMode.value = true); | ||
return { | ||
setShowSignUpModal: (val: boolean) => { | ||
showSignUpModal.value = val; | ||
}, | ||
showSignUpModal, | ||
guestMode, | ||
setGuest, | ||
}; | ||
} |
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
Empty file.
Oops, something went wrong.