d3931f1855
* Readd work from old branch * Improved Login.vue * Replace watch with onResult * Server: Error improvement * FE Middleware * Update style * Delete Sso. Mixpanel events * Updates * Improved loading state * Invites. Register sso page * Middleware improvements. Session error no logout * Changes from deisgns * Swap button to LayoutMenu * Improve middleware * Remove typo * Fix errormessage * Remove edit functionality * New composable file for sso * Improved names for composables. Tidyups * Reactive errors * Reorder Login.vue * Improved Typeguard * Enum * Comments from Mike * Add error toast * Remove FormButton from LoginButtonBase * Use linkComponent prop * Move workspace select to new component * Fragmentation * Fix loading useFetch * use WorkspaceAvatar * Feature flag sso button * Update fragment name * Skip middleware during auth flow * Add rules to Workspace Selector * Reactive useWorkspacePublicSsoCheck * AuthRegisterNewsletter types * v-bind on Select * Fragment WrapperSecurity * Remove useForm from Form.vue * Reactive values in composables * Prevent infinite loading when no invite found * useWorkspaceSsoValidation maybeRef * Added comment to requireSsoEnabled * Bugfix * Update Button.vue * Fix form * Update valid model middleware * Update LoginButtonBase.vue * NewsletterConset ref * use setFieldValue * Update Login.vue * Swap mayberef to ref * Comments from PR * Changes from call with Fabs * Fix session-error bug * Fix circleci * Small fix to index
62 lines
1.2 KiB
TypeScript
62 lines
1.2 KiB
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const authLoginPanelQuery = graphql(`
|
|
query AuthLoginPanel {
|
|
serverInfo {
|
|
authStrategies {
|
|
id
|
|
}
|
|
...AuthStategiesServerInfoFragment
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const authRegisterPanelQuery = graphql(`
|
|
query AuthRegisterPanel($token: String) {
|
|
serverInfo {
|
|
inviteOnly
|
|
authStrategies {
|
|
id
|
|
}
|
|
...AuthStategiesServerInfoFragment
|
|
...ServerTermsOfServicePrivacyPolicyFragment
|
|
}
|
|
serverInviteByToken(token: $token) {
|
|
id
|
|
email
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const authLoginPanelWorkspaceInviteQuery = graphql(`
|
|
query AuthLoginPanelWorkspaceInvite($token: String) {
|
|
workspaceInvite(token: $token) {
|
|
id
|
|
email
|
|
...AuthWorkspaceInviteHeader_PendingWorkspaceCollaborator
|
|
...AuthLoginWithEmailBlock_PendingWorkspaceCollaborator
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const authorizableAppMetadataQuery = graphql(`
|
|
query AuthorizableAppMetadata($id: String!) {
|
|
app(id: $id) {
|
|
id
|
|
name
|
|
description
|
|
trustByDefault
|
|
redirectUrl
|
|
scopes {
|
|
name
|
|
description
|
|
}
|
|
author {
|
|
name
|
|
id
|
|
avatar
|
|
}
|
|
}
|
|
}
|
|
`)
|