3c83d31459
* Home page & Nav Footer * FE1 Changes * FE2 Changes WIP * Dark mode onboarding * FE2 Cookie for Banner/Dialog * FE1 DIalog WIP * Local Storage for FE1 * Add bgcolour to segmentation * Add responsive message to fe1 login * Update SVGS * Fix build WIP * Skip to Close * Changes from Agi testing * Update announcement banner Updated icons, copy, spacings * Update FE2 announcement copy and links * Add video to FE2 announcement dialog * Add video to FE1 * Minor Updates pre CR * Update blog link * Remove menu item * Rename Dismissed * added fe2 messaging query field * Updates from CR * helm chart changes * Use new env for displaying fe2 messaging * Fix build * fixed helm readme values * Updates from CR --------- Co-authored-by: Benjamin Ottensten <benjamin.ottensten@gmail.com> Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com>
94 lines
1.7 KiB
JavaScript
94 lines
1.7 KiB
JavaScript
import { gql } from '@apollo/client/core'
|
|
|
|
export const serverInfoBlobSizeFragment = gql`
|
|
fragment ServerInfoBlobSizeFields on ServerInfo {
|
|
blobSizeLimitBytes
|
|
}
|
|
`
|
|
|
|
export const mainServerInfoFieldsFragment = gql`
|
|
fragment MainServerInfoFields on ServerInfo {
|
|
name
|
|
company
|
|
description
|
|
adminContact
|
|
canonicalUrl
|
|
termsOfService
|
|
inviteOnly
|
|
version
|
|
guestModeEnabled
|
|
enableNewWebUiMessaging
|
|
migration {
|
|
movedTo
|
|
}
|
|
}
|
|
`
|
|
|
|
export const serverInfoRolesFieldsFragment = gql`
|
|
fragment ServerInfoRolesFields on ServerInfo {
|
|
serverRoles {
|
|
id
|
|
title
|
|
}
|
|
}
|
|
`
|
|
|
|
export const serverInfoScopesFieldsFragment = gql`
|
|
fragment ServerInfoScopesFields on ServerInfo {
|
|
scopes {
|
|
name
|
|
description
|
|
}
|
|
}
|
|
`
|
|
|
|
/**
|
|
* Get main server info
|
|
*/
|
|
export const mainServerInfoQuery = gql`
|
|
query MainServerInfo {
|
|
serverInfo {
|
|
...MainServerInfoFields
|
|
}
|
|
}
|
|
|
|
${mainServerInfoFieldsFragment}
|
|
`
|
|
|
|
export const fullServerInfoQuery = gql`
|
|
query FullServerInfo {
|
|
serverInfo {
|
|
...MainServerInfoFields
|
|
...ServerInfoRolesFields
|
|
...ServerInfoScopesFields
|
|
...ServerInfoBlobSizeFields
|
|
}
|
|
}
|
|
|
|
${mainServerInfoFieldsFragment}
|
|
${serverInfoRolesFieldsFragment}
|
|
${serverInfoScopesFieldsFragment}
|
|
${serverInfoBlobSizeFragment}
|
|
`
|
|
|
|
export const serverInfoBlobSizeLimitQuery = gql`
|
|
query ServerInfoBlobSizeLimit {
|
|
serverInfo {
|
|
...ServerInfoBlobSizeFields
|
|
}
|
|
}
|
|
${serverInfoBlobSizeFragment}
|
|
`
|
|
|
|
export const availableServerRolesQuery = gql`
|
|
query AvailableServerRoles {
|
|
serverInfo {
|
|
serverRoles {
|
|
id
|
|
title
|
|
}
|
|
guestModeEnabled
|
|
}
|
|
}
|
|
`
|