76cbcef4e6
* WIP Developer Settings * Access Tokens * scopes load fix * mapping to correct struct * Updates to Application * Update to apps.js to fix scopes error * Application table done * Token confirmation done. * Application Success * Fix ts * Darkmode fixes * Responsive fix * Fixes for PR * Pass size prop to Editable Avatar * Updates from PR comments * Section Header - TS Types * Add Typeguard to Delete Dialog * Add Description to scopes query * minor type guard fix * edit application cache update fix * Fix Dialog Expansion * Rename mutations to correct casing * Remove unneeded import for defineProps --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
37 lines
623 B
TypeScript
37 lines
623 B
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const developerSettingsAccessTokensQuery = graphql(`
|
|
query DeveloperSettingsAccessTokens {
|
|
activeUser {
|
|
id
|
|
apiTokens {
|
|
id
|
|
name
|
|
lastUsed
|
|
lastChars
|
|
createdAt
|
|
scopes
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const developerSettingsApplicationsQuery = graphql(`
|
|
query DeveloperSettingsApplications {
|
|
activeUser {
|
|
createdApps {
|
|
id
|
|
secret
|
|
name
|
|
description
|
|
redirectUrl
|
|
scopes {
|
|
name
|
|
description
|
|
}
|
|
}
|
|
id
|
|
}
|
|
}
|
|
`)
|