composables, mazani letu, skeletony

This commit is contained in:
Michal Kváček
2023-07-24 17:31:54 +02:00
parent 4648c30f90
commit 864db6c6a2
53 changed files with 732 additions and 273 deletions
+3
View File
@@ -8,4 +8,7 @@ export const FRAGMENT_PHOTO_FULL_INFO = gql`
filename
name
description
flightId
pointOfInterestId
isFlightCover
}`;
+16
View File
@@ -6,3 +6,19 @@ fragment pointOfInterestListInfo on PointOfInterest {
name
}
`;
export const FRAGMENT_POI_FULL_INFO = gql`
fragment pointOfInterestFullInfo on PointOfInterest {
id
name
isPublic
gpsLatitude
gpsLongitude
photos {
thumbnailUrl
url
name
description
}
}
`;
+9
View File
@@ -20,3 +20,12 @@ mutation editFlight($id: Int!, $input: EditFlightInput!) {
${FRAGMENT_FLIGHT_FULL_INFO}
`;
export const DELETE_FLIGHT = gql`
mutation deleteFlight($id: Int!) {
deleteFlight(id: $id) {
id
}
}
`;
+13 -3
View File
@@ -1,12 +1,22 @@
import gql from "graphql-tag";
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
export const CREATE_POI = gql`
mutation createPointOfInterest($input: CreatePointOfInterestInput!) {
createPointOfInterest(input: $input) {
...pointOfInterestListInfo
...pointOfInterestFullInfo
}
}
${FRAGMENT_POI_LIST_INFO}
${FRAGMENT_POI_FULL_INFO}
`;
export const EDIT_POI = gql`
mutation editPointOfInterest($id: Int!, $input: EditPointOfInterestInput!) {
editPointOfInterest(id: $id, input: $input) {
...pointOfInterestFullInfo
}
}
${FRAGMENT_POI_FULL_INFO}
`;
+9
View File
@@ -8,3 +8,12 @@ query copilotsList {
}
}
`;
export const COPILOTS_DETAIL = gql`
query copilot($id: Int!) {
copilot(id: $id) {
id
name
}
}
`;
+11 -1
View File
@@ -1,5 +1,5 @@
import gql from "graphql-tag";
import {FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
import {FRAGMENT_POI_FULL_INFO, FRAGMENT_POI_LIST_INFO} from "src/graphql/fragments/poi";
export const POI_LIST = gql`
query poiList {
@@ -10,3 +10,13 @@ query poiList {
${FRAGMENT_POI_LIST_INFO}
`;
export const POI_DETAIL = gql`
query poiDetail($id: Int!) {
pointOfInterest(id: $id) {
...pointOfInterestFullInfo
}
}
${FRAGMENT_POI_FULL_INFO}
`;