6af6c656a4
* WIP * new permissions table * permissions grouped * updated scope descriptions * more scope copy adjustments * allow auth error handling * manually closable toast notification * fixed mentions rendering * error view * not you? feature * cleanup * minor styling changes * WIP table * finished authorized apps table * minor cleanup * cleaning up comment * testing changes
55 lines
914 B
TypeScript
55 lines
914 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
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const developerSettingsAuthorizedAppsQuery = graphql(`
|
|
query DeveloperSettingsAuthorizedApps {
|
|
activeUser {
|
|
id
|
|
authorizedApps {
|
|
id
|
|
description
|
|
name
|
|
author {
|
|
id
|
|
name
|
|
avatar
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`)
|