-
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.
chore: Merge PR #56 from feat/with-clerk-auth
- Loading branch information
Showing
143 changed files
with
3,482 additions
and
441 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
127 changes: 127 additions & 0 deletions
127
.storybook/__mocks__/@aetherspace-clerk-auth/hooks/index.tsx
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,127 @@ | ||
// -i- Mocked to avoid using @clerk/nextjs in Storybook | ||
import React from 'react' | ||
import { useMemo } from 'react' | ||
import { action } from '@storybook/addon-actions' | ||
|
||
/* --- useAuth() ------------------------------------------------------------------------------- */ | ||
|
||
export const useAuth = () => ({ | ||
isSignedIn: false, | ||
session: null, | ||
user: null, | ||
signUp: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
prepareEmailAddressVerification: async () => {}, | ||
}, | ||
signIn: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
signOut: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
setActive: async () => {}, | ||
getActive: async () => {}, | ||
}) | ||
|
||
/* --- useClerk() ------------------------------------------------------------------------------ */ | ||
|
||
export const useClerk = () => ({ | ||
isLoaded: true, | ||
isSignedIn: false, | ||
session: null, | ||
user: null, | ||
signUp: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
prepareEmailAddressVerification: async () => {}, | ||
}, | ||
signIn: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
signOut: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
setActive: async () => {}, | ||
getActive: async () => {}, | ||
}) | ||
|
||
/* --- useOrganisation() ----------------------------------------------------------------------- */ | ||
|
||
export const useOrganisation = () => ({ | ||
isLoaded: true, | ||
organisation: null, | ||
setOrganisation: async () => {}, | ||
getOrganisation: async () => {}, | ||
}) | ||
|
||
/* --- useOrganisationList() ------------------------------------------------------------------- */ | ||
|
||
export const useOrganisationList = () => ({ | ||
isLoaded: true, | ||
organisationList: [], | ||
setOrganisationList: async () => {}, | ||
getOrganisationList: async () => {}, | ||
}) | ||
|
||
/* --- useSession() ----------------------------------------------------------------------------- */ | ||
|
||
export const useSession = () => ({ | ||
isLoaded: true, | ||
isSignedIn: false, | ||
session: null, | ||
user: null, | ||
signUp: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
prepareEmailAddressVerification: async () => {}, | ||
}, | ||
signIn: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
signOut: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
setActive: async () => {}, | ||
getActive: async () => {}, | ||
}) | ||
|
||
/* --- useSignIn() ------------------------------------------------------------------------------ */ | ||
|
||
export const useSignIn = () => ({ | ||
isLoaded: true, | ||
signIn: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
}, | ||
}) | ||
|
||
/* --- useSignUp() ------------------------------------------------------------------------------ */ | ||
|
||
export const useSignUp = () => ({ | ||
isLoaded: true, | ||
signUp: { | ||
isLoaded: true, | ||
create: async () => {}, | ||
prepareEmailAddressVerification: async () => {}, | ||
}, | ||
}) | ||
|
||
/* --- useUser() ------------------------------------------------------------------------------- */ | ||
|
||
export const useUser = () => ({ | ||
isLoaded: true, | ||
user: null, | ||
setUser: async () => {}, | ||
getUser: async () => {}, | ||
}) | ||
|
||
/* --- useWarmUpBrowser() ---------------------------------------------------------------------- */ | ||
|
||
export const useWarmUpBrowser = () => {} |
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 @@ | ||
export * from '../../../../packages/@aetherspace-clerk-auth/schemas' |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
3a870b8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
codinsonndotdev – ./
thorrstevens.dev
codinsonndotdev-aetherspace-digital.vercel.app
codinsonndotdev-git-main-aetherspace-digital.vercel.app
www.codinson.dev
www.thorrstevens.dev
codinsonn.dev
codinson.dev