Prace s mapu, zobrazeni GPX, editace kopilota, skeletony

This commit is contained in:
Michal Kváček
2023-08-07 23:22:28 +02:00
parent 09d2f25523
commit c4603cf090
55 changed files with 891 additions and 408 deletions
+27 -13
View File
@@ -2,6 +2,20 @@ import gql from "graphql-tag";
import {FRAGMENT_AIRCRAFT_BASIC_INFO, FRAGMENT_AIRCRAFT_FULL_INFO} from "src/graphql/fragments/aircraft";
import {FRAGMENT_AIRPORT_INFO} from "src/graphql/fragments/airport";
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
import {FRAGMENT_POI_FULL_INFO} from "src/graphql/fragments/poi";
export const FRAGMENT_WEATHER_FULL_INFO = gql`
fragment weatherFullInfo on WeatherInfo {
datetime
qnh
temperatureSurface
dewpointSurface
windSpeedSurface
windDirectionSurface
cloudcoverTotal
cloudcoverLow
rain
}`;
export const FRAGMENT_FLIGHT_FULL_INFO = gql`
fragment flightFullInfo on Flight {
@@ -12,8 +26,6 @@ fragment flightFullInfo on Flight {
landingDatetime
landings
durationMinCalculated
solo
withInstructor
coverPhoto {
thumbnailUrl
@@ -24,12 +36,10 @@ fragment flightFullInfo on Flight {
...airportInfo
}
gpxTrackUrl
track {
pointOfInterest {
id
name
gpsLatitude
gpsLongitude
...pointOfInterestFullInfo
}
}
@@ -37,6 +47,15 @@ fragment flightFullInfo on Flight {
...airportInfo
}
landingWeatherInfo {
...weatherFullInfo
}
takeoffWeatherInfo {
...weatherFullInfo
}
aircraft {
...aircraftFullInfo
}
@@ -49,6 +68,8 @@ fragment flightFullInfo on Flight {
${FRAGMENT_PHOTO_FULL_INFO}
${FRAGMENT_AIRCRAFT_FULL_INFO}
${FRAGMENT_AIRPORT_INFO}
${FRAGMENT_POI_FULL_INFO}
${FRAGMENT_WEATHER_FULL_INFO}
`;
export const FRAGMENT_FLIGHT_LIST_INFO = gql`
@@ -92,10 +113,3 @@ fragment flightEditIds on Flight {
}
}
`;
// export const FRAGMENT_LOCATION = gql`
// fragment airportInfo on Airport {
// id
// name
// }
// `;