671979e012
* Add server management menu item * Server Management Page & Settings Dialog * escape from the precommits hooks * Add Delete User Dialog * Add invitations page * Add Projects Page * Pulling in GraphQL Data * Settings Mutations * Fix cardinfo type * GraphQL in Active Users * Add icons * Infinite Load on Active Users * Tidy Ups * TS fixes * Add Update button functionality * Add Delete User * Projects * Home Done * New query * Delete User * WIP User Roles * Overflow fix * Table Update * Add Onclick to rows * Fix bugs * Fix console error * Admin Middleware * Role Update Dialog * TS Fixes * Latest updates * Tidyups * Tidy Up Nav Menu * Tidy Up Card * ChangeUserRoleDialog Tidyup * Fix bubbling issue on Table * Design fixes * fix: speckle server version hydration mismatch * Remove Dialog bg-white * Rename Query, Fix Export * fix: allowing FormSelectBase to reject updates * feat: cache policies for new admin graph fields * feat: cache updates so no refetch necessary * PR Changes * Fix Projects Page * Updates to Roles * Project Delete Mutation * Add Resend & Delete Invite Mutation * Fix console warnings * Disable active user role select * Linting fixes * Reorder * Linting fixes * Changes from PR * Fixes from PR * Ui Fixes * Update Settings Dialog Cache on Save * Fix colours * Delete Invitation Mutation Moved * Delete Project Logic moved * Delete Mutation moved to component * Change User Role mutation moved to Dialog * Reorder * WIP - Checkbox Bug * attempted checkbox fix * Update Caching * Rollback tsc * Update to Resend Button * Add new buttons * Use defineModel * Re-add emits * Move mutation * serverInfo cache update fix * fixed delete invite cache update * Updates to Project Delete Dialog Caching * Remove unneeded props * Fix caching in DeleteUserDialog * Improved error handling in server info update * Swap Invite modal to new style * updated evictObjectFields details * Update cache on successfull invite * Add Invite dialog * Add project Dialog Update * defineModel * Remove emits from Add Project and Invites * Add missing Dialog * Updates from PR * Adjust query * Remove need for items in admin data query --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
38 lines
1007 B
TypeScript
38 lines
1007 B
TypeScript
import { graphql } from '~~/lib/common/generated/gql'
|
|
|
|
export const serverInfoUpdateMutation = graphql(`
|
|
mutation ServerInfoUpdate($info: ServerInfoUpdateInput!) {
|
|
serverInfoUpdate(info: $info)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteUserMutation = graphql(`
|
|
mutation AdminPanelDeleteUser($userConfirmation: UserDeleteInput!) {
|
|
adminDeleteUser(userConfirmation: $userConfirmation)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteProjectMutation = graphql(`
|
|
mutation AdminPanelDeleteProject($ids: [String!]) {
|
|
streamsDelete(ids: $ids)
|
|
}
|
|
`)
|
|
|
|
export const adminResendInviteMutation = graphql(`
|
|
mutation AdminPanelResendInvite($inviteId: String!) {
|
|
inviteResend(inviteId: $inviteId)
|
|
}
|
|
`)
|
|
|
|
export const adminDeleteInviteMutation = graphql(`
|
|
mutation AdminPanelDeleteInvite($inviteId: String!) {
|
|
inviteDelete(inviteId: $inviteId)
|
|
}
|
|
`)
|
|
|
|
export const changeRoleMutation = graphql(`
|
|
mutation AdminChangeUseRole($userRoleInput: UserRoleInput!) {
|
|
userRoleChange(userRoleInput: $userRoleInput)
|
|
}
|
|
`)
|