Lepsi verejna cast, ssr, lepsi prace s fotkamaa

This commit is contained in:
Michal Kváček
2023-12-04 22:46:23 +01:00
parent 11cc6ad107
commit 3bd4d7ba52
62 changed files with 1331 additions and 619 deletions
+28 -9
View File
@@ -1,6 +1,8 @@
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`
fragment pointOfInterestListInfo on PointOfInterest {
id
@@ -22,20 +24,37 @@ fragment pointOfInterestFullInfo on PointOfInterest {
gpsLatitude
gpsLongitude
createdById
titlePhoto {
id
url
}
type {
id
name
}
flights {
...flightListInfo
}
photos {
thumbnailUrl
url
name
description
}
}
`;
export const FRAGMENT_POI_FULL_PRIVATE_INFO = gql`
fragment pointOfInterestFullPrivateInfo on PointOfInterest {
...pointOfInterestFullInfo
flights {
...flightListInfo
}
photos {
...photoFullInfo
copilots {
id
name
}
}
}
${FRAGMENT_POI_FULL_INFO}
${FRAGMENT_PHOTO_FULL_INFO}
${FRAGMENT_FLIGHT_LIST_INFO}
`;