Reorganizace skeletonu, aktualizace app-vite a quasaru

This commit is contained in:
Michal Kváček
2023-12-10 10:19:03 +01:00
parent 68659ca924
commit 71389caecc
87 changed files with 1666 additions and 1368 deletions
+5
View File
@@ -50,6 +50,11 @@ fragment aircraftFullPrivateInfo on Aircraft {
photos {
...photoFullInfo
pointOfInterest {
id
name
}
copilots {
id
name
+32
View File
@@ -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}
`;
+5
View File
@@ -103,6 +103,11 @@ fragment flightFullPrivateInfo on Flight {
photos {
...photoFullInfo
pointOfInterest {
id
name
}
copilots {
id
name
+1 -1
View File
@@ -9,7 +9,7 @@ export const FRAGMENT_PHOTO_FULL_INFO = gql`
name
description
flightId
isAircraft
aircraftId
width
height
isFlightCover
+6 -5
View File
@@ -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}
`;
+5 -6
View File
@@ -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!) {
+1 -1
View File
@@ -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
}