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
+7 -1
View File
@@ -1,5 +1,6 @@
import gql from "graphql-tag";
import {FRAGMENT_AIRCRAFT_FULL_INFO} from "src/graphql/fragments/aircraft";
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight";
export const AIRCRAFTS_LIST = gql`
query AircraftsList {
@@ -16,8 +17,13 @@ export const AIRCRAFT_DETAIL = gql`
query AircraftDetail($id: Int!) {
aircraft(id: $id) {
...aircraftFullInfo
flights {
...flightListInfo
}
}
}
${FRAGMENT_AIRCRAFT_FULL_INFO}
${FRAGMENT_FLIGHT_LIST_INFO}
`;
+7 -5
View File
@@ -1,20 +1,21 @@
import gql from "graphql-tag";
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight";
import {FRAGMENT_COPILOT_FULL_INFO, FRAGMENT_COPILOT_LIST_INFO} from "src/graphql/fragments/copilot";
export const COPILOTS_LIST = gql`
query copilotsList {
copilots {
id
name
...copilotListInfo
}
}
${FRAGMENT_COPILOT_LIST_INFO}
`;
export const COPILOTS_DETAIL = gql`
export const COPILOT_DETAIL = gql`
query copilot($id: Int!) {
copilot(id: $id) {
id
name
...copilotFullInfo
flights {
...flightListInfo
@@ -22,5 +23,6 @@ query copilot($id: Int!) {
}
}
${FRAGMENT_COPILOT_FULL_INFO}
${FRAGMENT_FLIGHT_LIST_INFO}
`;