all developments of milestone 1
This commit is contained in:
@@ -195,6 +195,23 @@ export const ADMIN_SETTINGS_FRAGMENT = gql`
|
||||
instanceLongDescription
|
||||
instanceSlogan
|
||||
contact
|
||||
instanceLogo {
|
||||
id
|
||||
url
|
||||
name
|
||||
}
|
||||
instanceFavicon {
|
||||
id
|
||||
url
|
||||
name
|
||||
}
|
||||
defaultPicture {
|
||||
id
|
||||
url
|
||||
name
|
||||
}
|
||||
primaryColor
|
||||
secondaryColor
|
||||
instanceTerms
|
||||
instanceTermsType
|
||||
instanceTermsUrl
|
||||
@@ -223,6 +240,11 @@ export const SAVE_ADMIN_SETTINGS = gql`
|
||||
$instanceLongDescription: String
|
||||
$instanceSlogan: String
|
||||
$contact: String
|
||||
$instanceLogo: MediaInput
|
||||
$instanceFavicon: MediaInput
|
||||
$defaultPicture: MediaInput
|
||||
$primaryColor: String
|
||||
$secondaryColor: String
|
||||
$instanceTerms: String
|
||||
$instanceTermsType: InstanceTermsType
|
||||
$instanceTermsUrl: String
|
||||
@@ -239,6 +261,11 @@ export const SAVE_ADMIN_SETTINGS = gql`
|
||||
instanceLongDescription: $instanceLongDescription
|
||||
instanceSlogan: $instanceSlogan
|
||||
contact: $contact
|
||||
instanceLogo: $instanceLogo
|
||||
instanceFavicon: $instanceFavicon
|
||||
defaultPicture: $defaultPicture
|
||||
primaryColor: $primaryColor
|
||||
secondaryColor: $secondaryColor
|
||||
instanceTerms: $instanceTerms
|
||||
instanceTermsType: $instanceTermsType
|
||||
instanceTermsUrl: $instanceTermsUrl
|
||||
|
||||
@@ -10,8 +10,24 @@ export const CONFIG = gql`
|
||||
registrationsOpen
|
||||
registrationsAllowlist
|
||||
demoMode
|
||||
longEvents
|
||||
countryCode
|
||||
languages
|
||||
primaryColor
|
||||
secondaryColor
|
||||
instanceLogo {
|
||||
url
|
||||
}
|
||||
defaultPicture {
|
||||
id
|
||||
url
|
||||
name
|
||||
metadata {
|
||||
width
|
||||
height
|
||||
blurhash
|
||||
}
|
||||
}
|
||||
eventCategories {
|
||||
id
|
||||
label
|
||||
@@ -425,6 +441,14 @@ export const DEMO_MODE = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const LONG_EVENTS = gql`
|
||||
query LongEvents {
|
||||
config {
|
||||
longEvents
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const ANALYTICS = gql`
|
||||
query Analytics {
|
||||
config {
|
||||
@@ -454,6 +478,42 @@ export const SEARCH_CONFIG = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSTANCE_LOGO = gql`
|
||||
query InstanceLogo {
|
||||
config {
|
||||
instanceLogo {
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const COLORS = gql`
|
||||
query Colors {
|
||||
config {
|
||||
primaryColor
|
||||
secondaryColor
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const DEFAULT_PICTURE = gql`
|
||||
query DefaultPicture {
|
||||
config {
|
||||
defaultPicture {
|
||||
id
|
||||
url
|
||||
name
|
||||
metadata {
|
||||
width
|
||||
height
|
||||
blurhash
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const REGISTRATIONS = gql`
|
||||
query Registrations {
|
||||
config {
|
||||
|
||||
@@ -59,40 +59,6 @@ const FULL_EVENT_FRAGMENT = gql`
|
||||
tags {
|
||||
...TagFragment
|
||||
}
|
||||
relatedEvents {
|
||||
id
|
||||
uuid
|
||||
title
|
||||
beginsOn
|
||||
endsOn
|
||||
status
|
||||
language
|
||||
picture {
|
||||
id
|
||||
url
|
||||
name
|
||||
metadata {
|
||||
width
|
||||
height
|
||||
blurhash
|
||||
}
|
||||
}
|
||||
physicalAddress {
|
||||
...AdressFragment
|
||||
}
|
||||
organizerActor {
|
||||
...ActorFragment
|
||||
}
|
||||
attributedTo {
|
||||
...ActorFragment
|
||||
}
|
||||
options {
|
||||
...EventOptions
|
||||
}
|
||||
tags {
|
||||
...TagFragment
|
||||
}
|
||||
}
|
||||
options {
|
||||
...EventOptions
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ export const EVENT_OPTIONS_FRAGMENT = gql`
|
||||
remainingAttendeeCapacity
|
||||
showRemainingAttendeeCapacity
|
||||
anonymousParticipation
|
||||
hideNumberOfParticipants
|
||||
showStartTime
|
||||
showEndTime
|
||||
timezone
|
||||
|
||||
@@ -33,6 +33,7 @@ export const SEARCH_EVENTS_AND_GROUPS = gql`
|
||||
$searchTarget: SearchTarget
|
||||
$beginsOn: DateTime
|
||||
$endsOn: DateTime
|
||||
$longevents: Boolean
|
||||
$bbox: String
|
||||
$zoom: Int
|
||||
$eventPage: Int
|
||||
@@ -54,6 +55,7 @@ export const SEARCH_EVENTS_AND_GROUPS = gql`
|
||||
searchTarget: $searchTarget
|
||||
beginsOn: $beginsOn
|
||||
endsOn: $endsOn
|
||||
longevents: $longevents
|
||||
bbox: $bbox
|
||||
zoom: $zoom
|
||||
page: $eventPage
|
||||
@@ -67,6 +69,7 @@ export const SEARCH_EVENTS_AND_GROUPS = gql`
|
||||
title
|
||||
uuid
|
||||
beginsOn
|
||||
endsOn
|
||||
picture {
|
||||
id
|
||||
url
|
||||
@@ -152,6 +155,7 @@ export const SEARCH_EVENTS = gql`
|
||||
$endsOn: DateTime
|
||||
$eventPage: Int
|
||||
$limit: Int
|
||||
$longevents: Boolean
|
||||
) {
|
||||
searchEvents(
|
||||
location: $location
|
||||
@@ -164,6 +168,7 @@ export const SEARCH_EVENTS = gql`
|
||||
endsOn: $endsOn
|
||||
page: $eventPage
|
||||
limit: $limit
|
||||
longevents: $longevents
|
||||
) {
|
||||
total
|
||||
elements {
|
||||
@@ -201,6 +206,56 @@ export const SEARCH_EVENTS = gql`
|
||||
${ACTOR_FRAGMENT}
|
||||
`;
|
||||
|
||||
export const SEARCH_CALENDAR_EVENTS = gql`
|
||||
query SearchEvents(
|
||||
$beginsOn: DateTime
|
||||
$endsOn: DateTime
|
||||
$eventPage: Int
|
||||
$limit: Int
|
||||
) {
|
||||
searchEvents(
|
||||
beginsOn: $beginsOn
|
||||
endsOn: $endsOn
|
||||
page: $eventPage
|
||||
limit: $limit
|
||||
) {
|
||||
total
|
||||
elements {
|
||||
id
|
||||
title
|
||||
uuid
|
||||
beginsOn
|
||||
endsOn
|
||||
picture {
|
||||
id
|
||||
url
|
||||
}
|
||||
status
|
||||
tags {
|
||||
...TagFragment
|
||||
}
|
||||
physicalAddress {
|
||||
...AdressFragment
|
||||
}
|
||||
organizerActor {
|
||||
...ActorFragment
|
||||
}
|
||||
attributedTo {
|
||||
...ActorFragment
|
||||
}
|
||||
options {
|
||||
...EventOptions
|
||||
}
|
||||
__typename
|
||||
}
|
||||
}
|
||||
}
|
||||
${EVENT_OPTIONS_FRAGMENT}
|
||||
${TAG_FRAGMENT}
|
||||
${ADDRESS_FRAGMENT}
|
||||
${ACTOR_FRAGMENT}
|
||||
`;
|
||||
|
||||
export const SEARCH_GROUPS = gql`
|
||||
query SearchGroups(
|
||||
$location: String
|
||||
|
||||
Reference in New Issue
Block a user