mobilizon.chapril.org-mobil.../js/src/graphql/config.ts

96 lines
1.4 KiB
TypeScript
Raw Normal View History

import gql from "graphql-tag";
2019-03-22 10:53:38 +01:00
export const CONFIG = gql`
query {
config {
name
description
registrationsOpen
registrationsWhitelist
demoMode
countryCode
anonymous {
participation {
allowed
validation {
email {
enabled
confirmationRequired
}
captcha {
enabled
}
}
}
eventCreation {
allowed
validation {
email {
enabled
confirmationRequired
}
captcha {
enabled
}
}
}
reports {
allowed
}
actorId
}
location {
latitude
longitude
# accuracyRadius
}
maps {
tiles {
endpoint
attribution
}
}
geocoding {
provider
autocomplete
}
resourceProviders {
type
endpoint
software
}
features {
groups
}
}
2019-03-22 10:53:38 +01:00
}
`;
export const TERMS = gql`
query Terms($locale: String) {
config {
terms(locale: $locale) {
type
url
bodyHtml
}
}
}
`;
export const RULES = gql`
query Rules {
config {
rules
}
}
`;
export const TIMEZONES = gql`
query {
config {
timezones
}
}
`;