Editace fotek v modalu, lepsi datetime picker

This commit is contained in:
Michal Kváček
2023-07-10 08:12:48 +02:00
parent 3d88397d21
commit bbb21278fd
18 changed files with 274 additions and 103 deletions
+3 -5
View File
@@ -1,6 +1,7 @@
import gql from "graphql-tag";
import {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";
export const FRAGMENT_FLIGHT_FULL_INFO = gql`
fragment flightFullInfo on Flight {
@@ -25,15 +26,12 @@ fragment flightFullInfo on Flight {
...aircraftFullInfo
}
photos {
url
thumbnailUrl
name
description
...photoFullInfo
}
}
${FRAGMENT_PHOTO_FULL_INFO}
${FRAGMENT_AIRCRAFT_FULL_INFO}
${FRAGMENT_AIRPORT_INFO}
`;
+11
View File
@@ -0,0 +1,11 @@
import gql from "graphql-tag";
export const FRAGMENT_PHOTO_FULL_INFO = gql`
fragment photoFullInfo on Photo {
id
url
thumbnailUrl
filename
name
description
}`;
+17 -11
View File
@@ -1,24 +1,30 @@
import gql from "graphql-tag";
import {FRAGMENT_FLIGHT_FULL_INFO} from "src/graphql/fragments/flight";
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
export const UPLOAD_PHOTO = gql`
mutation uploadPhoto($input: UploadPhotoInput!) {
uploadPhoto(input: $input) {
url
thumbnailUrl
filename
name
description
...photoFullInfo
}
}
${FRAGMENT_PHOTO_FULL_INFO}
`
export const EDIT_FLIGHT = gql`
mutation editFlight($id: Int!, $input: EditFlightInput!) {
editFlight(id: $id, input: $input) {
...flightFullInfo
export const EDIT_PHOTO = gql`
mutation editPhoto($id: Int!, $input: EditPhotoInput!) {
editPhoto(id: $id, input: $input) {
...photoFullInfo
}
}
${FRAGMENT_FLIGHT_FULL_INFO}
${FRAGMENT_PHOTO_FULL_INFO}
`;
export const DELETE_PHOTO = gql`
mutation deletePhoto($id: Int!) {
deletePhoto(id: $id) {
id
}
}
`;