Mapa s trasami letu u eventu, drobna uprava vizualu eventu

This commit is contained in:
Michal Kváček
2024-02-28 09:41:15 +01:00
parent 92678ec829
commit 7a45a0133e
14 changed files with 211 additions and 84 deletions
+17 -1
View File
@@ -20,13 +20,29 @@ query eventsList($limit: Int!, $offset: Int) {
${FRAGMENT_EVENT_LIST_INFO}
`;
export const EVENTS_FLIGHTS_TRACKS = gql`
query eventsFlightsTracks($eventId: Int!, $onlyPublic: Boolean) {
event(id: $eventId) {
flights(onlyPublic: $onlyPublic) {
durationMinCalculated
gpxTrack {
coordinates {
lat
lng
}
}
}
}
}
`;
export const EVENTS_PUBLIC_LIST = gql`
query eventsPublicList($username: String, $limit: Int!, $offset: Int) {
events(username: $username, limit: $limit, offset: $offset, public: true) {
items {
...eventListInfo
flights {
flights(onlyPublic: true) {
titlePhoto {
thumbnailUrl
}