Reorganizace skeletonu, aktualizace app-vite a quasaru
This commit is contained in:
@@ -50,6 +50,11 @@ fragment aircraftFullPrivateInfo on Aircraft {
|
||||
photos {
|
||||
...photoFullInfo
|
||||
|
||||
pointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
||||
copilots {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
|
||||
|
||||
export const FRAGMENT_COPILOT_LIST_INFO = gql`
|
||||
fragment copilotListInfo on Copilot {
|
||||
id
|
||||
name
|
||||
titlePhoto {
|
||||
thumbnailUrl
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -18,3 +22,31 @@ fragment copilotFullInfo on Copilot {
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const FRAGMENT_COPILOT_FULL_PRIVATE_INFO = gql`
|
||||
fragment copilotFullPrivateInfo on Copilot {
|
||||
id
|
||||
name
|
||||
|
||||
titlePhoto {
|
||||
id
|
||||
url
|
||||
}
|
||||
|
||||
photos {
|
||||
...photoFullInfo
|
||||
|
||||
pointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
||||
copilots {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_PHOTO_FULL_INFO}
|
||||
`;
|
||||
|
||||
@@ -103,6 +103,11 @@ fragment flightFullPrivateInfo on Flight {
|
||||
photos {
|
||||
...photoFullInfo
|
||||
|
||||
pointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
||||
copilots {
|
||||
id
|
||||
name
|
||||
|
||||
@@ -9,7 +9,7 @@ export const FRAGMENT_PHOTO_FULL_INFO = gql`
|
||||
name
|
||||
description
|
||||
flightId
|
||||
isAircraft
|
||||
aircraftId
|
||||
width
|
||||
height
|
||||
isFlightCover
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_PHOTO_FULL_INFO} from "src/graphql/fragments/photo";
|
||||
import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list";
|
||||
|
||||
|
||||
export const FRAGMENT_POI_LIST_INFO = gql`
|
||||
@@ -43,13 +42,16 @@ fragment pointOfInterestFullInfo on PointOfInterest {
|
||||
export const FRAGMENT_POI_FULL_PRIVATE_INFO = gql`
|
||||
fragment pointOfInterestFullPrivateInfo on PointOfInterest {
|
||||
...pointOfInterestFullInfo
|
||||
flights {
|
||||
...flightListInfo
|
||||
}
|
||||
|
||||
|
||||
photos {
|
||||
...photoFullInfo
|
||||
|
||||
pointOfInterest {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
||||
copilots {
|
||||
id
|
||||
name
|
||||
@@ -59,5 +61,4 @@ fragment pointOfInterestFullPrivateInfo on PointOfInterest {
|
||||
|
||||
${FRAGMENT_POI_FULL_INFO}
|
||||
${FRAGMENT_PHOTO_FULL_INFO}
|
||||
${FRAGMENT_FLIGHT_LIST_INFO}
|
||||
`;
|
||||
|
||||
@@ -1,24 +1,23 @@
|
||||
import gql from "graphql-tag";
|
||||
import {FRAGMENT_COPILOT_FULL_INFO} from "src/graphql/fragments/copilot";
|
||||
import {FRAGMENT_COPILOT_FULL_PRIVATE_INFO} from "src/graphql/fragments/copilot";
|
||||
|
||||
export const CREATE_COPILOT = gql`
|
||||
mutation createCopilot($input: CreateCopilotInput!) {
|
||||
createCopilot(input: $input) {
|
||||
...copilotFullInfo
|
||||
...copilotFullPrivateInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_COPILOT_FULL_INFO}
|
||||
${FRAGMENT_COPILOT_FULL_PRIVATE_INFO}
|
||||
`;
|
||||
|
||||
export const EDIT_COPILOT = gql`
|
||||
mutation editCopilot($id: Int!, $input: EditCopilotInput!) {
|
||||
editCopilot(id: $id, input: $input) {
|
||||
...copilotFullInfo
|
||||
...copilotFullPrivateInfo
|
||||
}
|
||||
}
|
||||
|
||||
${FRAGMENT_COPILOT_FULL_INFO}
|
||||
${FRAGMENT_COPILOT_FULL_PRIVATE_INFO}
|
||||
`;
|
||||
export const DELETE_COPILOT = gql`
|
||||
mutation deleteCopilot($id: Int!) {
|
||||
|
||||
@@ -39,7 +39,7 @@ ${FRAGMENT_FLIGHT_LIST_INFO}
|
||||
`;
|
||||
|
||||
export const PHOTOS_PUBLIC_LIST = gql`
|
||||
query photos($flightId: Int, $pointOfInterestId: Int, $aircraftId: Int, $copilotId: Int) {
|
||||
query publicPhotos($flightId: Int, $pointOfInterestId: Int, $aircraftId: Int, $copilotId: Int) {
|
||||
photos(public: true, flightId: $flightId, pointOfInterestId: $pointOfInterestId, aircraftId: $aircraftId, copilotId: $copilotId) {
|
||||
...photoFullInfo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user