+
dragClick(id)}>
+
+
{
defaultValue={getSectionTitle(id)}
onBlur={event => setSectionTitle(id, event.target.value)}
/>
+ deleteSection(id)}>
+
+
setIsOpen(!isOpen)}>
{isOpen ? : }
@@ -256,49 +399,6 @@ const Section = ({ id }: { id: string }) => {
);
};
-const EndCard = () => {
- const { t } = useTranslation();
- const { getEpilog, getSources } = useContext(ExhibitionGetContext);
-
- const { setEpilog, setSource, addSource } = useContext(ExhibitionSetContext);
-
- const extraOptions = {
- height: 300,
- allowReziseX: false,
- allowReziseY: false,
- preset: undefined,
- placeholder: t('exhibition.manipulator.epilog.text-placeholder'),
- statusbar: false,
- tabIndex: 0,
- className: 'z-0',
- };
-
- return (
-
-
-
setEpilog(text)}
- />
-
- {getSources()?.map((source, index) => (
- event.target.value}
- onBlur={event => setSource(event.target.value, source.id)}
- />
- ))}
-
-
-
-
- );
-};
-
const PublishButton = () => {
const { t } = useTranslation();
const { getIsPublished } = useContext(ExhibitionGetContext);
diff --git a/projects/bp-gallery/src/components/views/exhibitions/ExhibitionViewer.tsx b/projects/bp-gallery/src/components/views/exhibitions/ExhibitionViewer.tsx
index 381eecc1c..a67dfee16 100644
--- a/projects/bp-gallery/src/components/views/exhibitions/ExhibitionViewer.tsx
+++ b/projects/bp-gallery/src/components/views/exhibitions/ExhibitionViewer.tsx
@@ -1,21 +1,20 @@
import { Portal } from '@mui/material';
import { useContext, useState } from 'react';
-import { useTranslation } from 'react-i18next';
import { Redirect } from 'react-router-dom';
import { useGetExhibitionQuery } from '../../../graphql/APIConnector';
import { useSimplifiedQueryResponseData } from '../../../graphql/queryUtils';
import { asUploadPath, root } from '../../../helpers/app-helpers';
-import { pushHistoryWithoutRouter } from '../../../helpers/history';
import { useCanEditExhibition } from '../../../hooks/can-do-hooks';
import { FlatExhibition } from '../../../types/additionalFlatTypes';
import Loading from '../../common/Loading';
import ProtectedRoute from '../../common/ProtectedRoute';
import QueryErrorDisplay from '../../common/QueryErrorDisplay';
import RichText from '../../common/RichText';
-import PicturePreview from '../../common/picture-gallery/PicturePreview';
import { FALLBACK_PATH } from '../../routes';
import PictureView from '../picture/PictureView';
import { ExhibitionGetContext, ExhibitionStateViewer } from './ExhibitonUtils';
+import { Gallery } from 'react-grid-gallery';
+import { pushHistoryWithoutRouter } from '../../../helpers/history';
const Title = () => {
const { getTitlePicture, getTitle, getIntroduction } = useContext(ExhibitionGetContext);
@@ -48,7 +47,12 @@ const Section = ({ sectionId }: { sectionId: string }) => {
const { getSection } = useContext(ExhibitionGetContext);
const mySection = getSection(sectionId);
const [focusedPicture, setFocusedPicture] = useState();
-
+ const images = mySection?.dragElements.map(elem => ({
+ src: asUploadPath(elem.picture.media),
+ width: elem.picture.media?.width ?? 0,
+ height: elem.picture.media?.height ?? 0,
+ id: elem.picture.id,
+ }));
return (
<>
{focusedPicture && (
@@ -66,51 +70,21 @@ const Section = ({ sectionId }: { sectionId: string }) => {
{mySection.title}
-
- {mySection.dragElements.map((drag, index) => (
-
-
{
- setFocusedPicture(drag.picture.id);
- pushHistoryWithoutRouter(`/picture/${drag.picture.id}`);
- }}
- />
-
- ))}
-
+
{
+ setFocusedPicture(item.id);
+ pushHistoryWithoutRouter(`/picture/${item.id}`);
+ }}
+ />
)}
>
);
};
-const EndCard = () => {
- const { t } = useTranslation();
- const { getEpilog, getSources } = useContext(ExhibitionGetContext);
- const epilog = getEpilog();
- const sources = getSources();
- return (
-
- {epilog && (
-
-
{t('exhibition.viewer.epilog')}
-
-
- )}
- {sources && sources.length > 0 && (
-
-
{t('exhibition.viewer.sources')}
-
- {sources.map((source, key) => source.source && - {source.source}
)}
-
-
- )}
-
- );
-};
-
const MainPart = () => {
const { getAllSections } = useContext(ExhibitionGetContext);
const sectionsWithContent = getAllSections()?.filter(
@@ -152,7 +126,6 @@ const ExhibitionViewer = ({ exhibitionId }: { exhibitionId: string }) => {
-
diff --git a/projects/bp-gallery/src/components/views/exhibitions/ExhibitonUtils.tsx b/projects/bp-gallery/src/components/views/exhibitions/ExhibitonUtils.tsx
index 3b5c13351..16bc68798 100644
--- a/projects/bp-gallery/src/components/views/exhibitions/ExhibitonUtils.tsx
+++ b/projects/bp-gallery/src/components/views/exhibitions/ExhibitonUtils.tsx
@@ -3,6 +3,7 @@ import {
PropsWithChildren,
SetStateAction,
createContext,
+ useContext,
useEffect,
useState,
} from 'react';
@@ -21,28 +22,23 @@ import {
DragStartEvent,
} from '@dnd-kit/core';
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
-import { useSortable } from '@dnd-kit/sortable';
+import { useSortable, arrayMove } from '@dnd-kit/sortable';
import PicturePreview from '../../common/picture-gallery/PicturePreview';
import {
useCreateExhibitionPictureMutation,
useCreateExhibitionSectionMutation,
- useCreateExhibitionSourceMutation,
+ useDeleteExhibitionPictureMutation,
+ useDeleteExhibitionSectionMutation,
useUpdateExhibitionMutation,
useUpdateExhibitionPictureMutation,
useUpdateExhibitionSectionMutation,
- useUpdateExhibitionSourceMutation,
} from '../../../graphql/APIConnector';
-
-interface ExhibitionSource {
- id: string;
- source: string;
-}
+import { Delete } from '@mui/icons-material';
+import { IconButton } from '@mui/material';
interface ExhibitionText {
title: string;
introduction: string;
- epilog: string;
- sources: ExhibitionSource[];
isPublished: boolean;
}
@@ -70,8 +66,6 @@ export const ExhibitionGetContext = createContext<{
getIntroduction: () => string;
getSectionTitle: (sectionId: string) => string | undefined;
getSectionText: (sectionId: string) => string | undefined;
- getEpilog: () => string | undefined;
- getSources: () => ExhibitionSource[] | undefined;
getIsPublished: () => boolean;
getSection: (sectionId: string) => SectionState | undefined;
getAllSections: () => SectionState[] | undefined;
@@ -83,8 +77,6 @@ export const ExhibitionGetContext = createContext<{
getIntroduction: () => '',
getSectionTitle: () => '',
getSectionText: () => '',
- getEpilog: () => '',
- getSources: () => [],
getIsPublished: () => false,
getSection: () => undefined,
getAllSections: () => undefined,
@@ -97,33 +89,33 @@ export const ExhibitionSetContext = createContext<{
setIntroduction: (introduction: string) => void;
setSectionTitle: (sectionId: string, title: string) => void;
setSectionText: (sectionId: string, text: string) => void;
- setEpilog: (epilog: string) => void;
- setSource: (source: string, sourceId: string) => void;
- addSource: () => void;
toggleIsPublished: () => void;
+ deleteExhibitionPicture: (exhibitionPictureId: string) => void;
}>({
setTitle: () => {},
setIntroduction: () => {},
setSectionTitle: () => {},
setSectionText: () => {},
- setEpilog: () => {},
- setSource: () => {},
- addSource: () => {},
toggleIsPublished: () => {},
+ deleteExhibitionPicture: () => {},
});
export const ExhibitionSectionUtilsContext = createContext<{
- swapSectionDraggables: (oldIndex: number, newIndex: number, sectionId: string) => void;
+ moveSections: (oldSectionId: string, newSectionId: string) => void;
+ moveSectionDraggables: (oldIndex: number, newIndex: number, sectionId: string) => void;
getSorting: () => boolean;
setSorting: (isSorting: boolean) => void;
getDraggable: (dragElementId: string) => DragElement | undefined;
addSection: () => void;
+ deleteSection: (sectionId: string) => void;
}>({
- swapSectionDraggables: () => {},
+ moveSections: () => {},
+ moveSectionDraggables: () => {},
getSorting: () => false,
setSorting: () => {},
getDraggable: () => undefined,
addSection: () => {},
+ deleteSection: () => {},
});
const DraggablePicture = ({
@@ -185,9 +177,22 @@ const ExhibitionPicture = ({
attributes: DraggableAttributes;
}) => {
const picture = exhibitionPicture.picture;
+ const { deleteExhibitionPicture } = useContext(ExhibitionSetContext);
return (
-
- {picture &&
{}} />}
+
+
+ {
+ deleteExhibitionPicture(exhibitionPicture.id);
+ }}
+ >
+
+
+
+
);
};
@@ -239,11 +244,6 @@ const buildExhibitionTextState = (exhibition: FlatExhibition) => {
return {
title: exhibition.title ?? '',
introduction: exhibition.introduction ?? '',
- epilog: exhibition.epilog ?? '',
- sources:
- exhibition.exhibition_sources?.map(source => {
- return { id: source.id, source: source.source ?? '' } as ExhibitionSource;
- }) ?? [],
isPublished: exhibition.is_published ?? false,
};
};
@@ -300,16 +300,6 @@ export const ExhibitionStateGetter = ({
return exhibitionText.introduction;
};
- //getter and setter for epilog in exhibitionText
- const getEpilog = () => {
- return exhibitionText.epilog;
- };
-
- //getter and setter for sources in exhibitionText
- const getSources = () => {
- return exhibitionText.sources;
- };
-
const getIsPublished = () => {
return exhibitionText.isPublished;
};
@@ -322,8 +312,6 @@ export const ExhibitionStateGetter = ({
getIntroduction,
getSectionTitle,
getSectionText,
- getEpilog,
- getSources,
getSection,
getAllSections,
getIdealot,
@@ -343,6 +331,8 @@ export const ExhibitionStateChanger = ({
sections,
setSections,
databaseSaver,
+ setTitlePicture,
+ setIdealot,
children,
}: PropsWithChildren<{
exhibitionId: string;
@@ -351,7 +341,23 @@ export const ExhibitionStateChanger = ({
sections: SectionState[];
setSections: Dispatch>;
databaseSaver: ReturnType;
+ setTitlePicture: Dispatch>;
+ setIdealot: Dispatch>;
}>) => {
+ const deleteExhibitionPicture = (exhibitionPictureId: string) => {
+ databaseSaver.deletePicture(exhibitionPictureId);
+ setSections(
+ sections.map(section => ({
+ ...section,
+ dragElements: section.dragElements.filter(elem => elem.id !== exhibitionPictureId),
+ }))
+ );
+ setTitlePicture(titlePicture =>
+ titlePicture?.id === exhibitionPictureId ? undefined : titlePicture
+ );
+ setIdealot(idealot => idealot.filter(elem => elem.id !== exhibitionPictureId));
+ };
+
const setSectionText = (sectionId: string, text: string) => {
databaseSaver.setSectionText(sectionId, text);
setSections(
@@ -376,29 +382,6 @@ export const ExhibitionStateChanger = ({
setExhibitionText({ ...exhibitionText, introduction: introduction });
};
- const setEpilog = (epilog: string) => {
- databaseSaver.setEpilog(exhibitionId, epilog);
- setExhibitionText({ ...exhibitionText, epilog: epilog });
- };
-
- const setSource = (source: string, sourceId: string) => {
- setExhibitionText({
- ...exhibitionText,
- sources: exhibitionText.sources.map(s =>
- s.id === sourceId ? { id: s.id, source: source } : s
- ),
- });
- };
-
- const addSource = async () => {
- const id = await databaseSaver.addSource(exhibitionId);
- id &&
- setExhibitionText({
- ...exhibitionText,
- sources: [...exhibitionText.sources.concat({ id: id, source: '' })],
- });
- };
-
const toggleIsPublished = () => {
databaseSaver.setIsPublished(!exhibitionText.isPublished, exhibitionId);
setExhibitionText({ ...exhibitionText, isPublished: !exhibitionText.isPublished });
@@ -411,10 +394,8 @@ export const ExhibitionStateChanger = ({
setIntroduction,
setSectionTitle,
setSectionText,
- setEpilog,
- setSource,
- addSource,
toggleIsPublished,
+ deleteExhibitionPicture,
}}
>
{children}
@@ -444,23 +425,25 @@ const ExhibitionDragNDrop = ({
}>) => {
const [isSorting, setIsSorting] = useState(false);
- const swapSectionDraggables = (oldIndex: number, newIndex: number, sectionId: string) => {
- databaseSaver.swapOrderInExhibitionPicture(sections, oldIndex, newIndex, sectionId);
- setSections(
- sections.map(section =>
- section.id === sectionId
- ? ({
- id: section.id,
- text: section.text,
- dragElements: section.dragElements.map((elem, index) => {
- if (index === oldIndex) return section.dragElements[newIndex];
- if (index === newIndex) return section.dragElements[oldIndex];
- return elem;
- }),
- } as SectionState)
- : section
- )
+ const moveSections = (oldSectionId: string, newSectionId: string) => {
+ const oldIndex = sections.findIndex(section => section.id === oldSectionId);
+ const newIndex = sections.findIndex(section => section.id === newSectionId);
+ const newSectionOrder = arrayMove(sections, oldIndex, newIndex);
+ databaseSaver.updateSectionsOrder(newSectionOrder);
+ setSections(newSectionOrder);
+ };
+ const deleteSection = (sectionId: string) => {
+ databaseSaver.deleteSection(sectionId);
+ setSections(sections => sections.filter(section => section.id !== sectionId));
+ };
+ const moveSectionDraggables = (oldIndex: number, newIndex: number, sectionId: string) => {
+ const newDraggablesOrder = sections.map(section =>
+ section.id === sectionId
+ ? { ...section, dragElements: arrayMove(section.dragElements, oldIndex, newIndex) }
+ : section
);
+ setSections(newDraggablesOrder);
+ databaseSaver.moveOrderInExhibitionPicture(newDraggablesOrder, sectionId);
};
const getSorting = () => {
@@ -488,12 +471,11 @@ const ExhibitionDragNDrop = ({
) => {
if (sectionId) return addToSection(dragElement, sectionId);
if (isTitle) {
- if (idealot && titlePicture) setIdealot([...idealot, titlePicture]);
- setTitlePicture(dragElement);
if (titlePicture) {
- databaseSaver.addToIdealot(exhibitionId, idealot, dragElement.id);
+ databaseSaver.addToIdealot(exhibitionId, idealot, titlePicture.id);
}
databaseSaver.setTitlePicture(exhibitionId, dragElement.id);
+ setTitlePicture(dragElement);
return;
}
if (isIdeaLot && idealot) {
@@ -565,11 +547,13 @@ const ExhibitionDragNDrop = ({
return (
{
refetchQueries: ['getExhibition'],
});
- const [updateExhibitionSource] = useUpdateExhibitionSourceMutation({
- refetchQueries: ['getExhibition'],
- });
-
const [updateExhibition] = useUpdateExhibitionMutation({ refetchQueries: ['getExhibition'] });
- const [createSource] = useCreateExhibitionSourceMutation({ refetchQueries: ['getExhibition'] });
-
const [createSection] = useCreateExhibitionSectionMutation({ refetchQueries: ['getExhibition'] });
const [createExhibitionPicture] = useCreateExhibitionPictureMutation({
refetchQueries: ['getExhibition'],
});
+
+ const [deleteExhibitionPicture] = useDeleteExhibitionPictureMutation({
+ refetchQueries: ['getExhibition'],
+ });
+ const [deleteExhibitionSection] = useDeleteExhibitionSectionMutation({
+ refetchQueries: ['getExhibition'],
+ });
return {
+ deleteSection: (id: string) => {
+ deleteExhibitionSection({ variables: { id: id } });
+ },
+ deletePicture: (id: string) => {
+ deleteExhibitionPicture({
+ variables: { id: id },
+ });
+ },
setSectionText: (id: string, text: string) => {
updateExhibitionSection({
variables: {
@@ -698,38 +691,21 @@ const useExhibitionDatabaseSaver = () => {
},
});
},
- swapOrderInExhibitionPicture: (
- sections: SectionState[],
- oldIndex: number,
- newIndex: number,
- sectionId: string
- ) => {
- const currentDragElement = sections.find(section => section.id === sectionId)?.dragElements[
- oldIndex
- ];
- const otherDragElement = sections.find(section => section.id === sectionId)?.dragElements[
- newIndex
- ];
- currentDragElement &&
- updateExhibitionPicture({
- variables: {
- id: currentDragElement.id,
- data: {
- order: newIndex,
- subtitle: currentDragElement.subtitle,
- },
- },
- });
- otherDragElement &&
- updateExhibitionPicture({
+ moveOrderInExhibitionPicture: (sections: SectionState[], sectionId: string) => {
+ const currentSection = sections.find(section => section.id === sectionId);
+ currentSection?.dragElements.forEach((elem, index) =>
+ updateExhibitionPicture({ variables: { id: elem.id, data: { order: index } } })
+ );
+ },
+ updateSectionsOrder: (sections: SectionState[]) => {
+ sections.forEach((section, index) => {
+ updateExhibitionSection({
variables: {
- id: otherDragElement.id,
- data: {
- order: oldIndex,
- subtitle: otherDragElement.subtitle,
- },
+ id: section.id,
+ order: index,
},
});
+ });
},
setSectionTitle: (sectionId: string, title: string) => {
@@ -775,28 +751,6 @@ const useExhibitionDatabaseSaver = () => {
});
},
- setEpilog: (exhibitionId: string, epilog: string) => {
- updateExhibition({
- variables: {
- id: exhibitionId,
- data: {
- epilog: epilog,
- },
- },
- });
- },
-
- setSource: (source: string, sourceId: string) => {
- updateExhibitionSource({ variables: { id: sourceId, source: source } });
- },
-
- addSource: async (exhibitionId: string) => {
- const result = await createSource({
- variables: { exhibitionId: exhibitionId, publishedAt: new Date().toISOString() },
- });
- const id = result.data?.createExhibitionSource?.data?.id;
- return id;
- },
setIsPublished: (isPublished: boolean, exhibitionId: string) => {
updateExhibition({
variables: {
@@ -858,6 +812,8 @@ export const ExhibitionStateManager = ({
sections={sections}
setSections={setSections}
databaseSaver={databaseSaver}
+ setTitlePicture={setTitlePicture}
+ setIdealot={setIdealot}
>
{
// Builds query from search params in the path
const queryParams = useMemo(() => {
+ searchParams.delete('exhibitionId');
const allSearchTerms = searchParams
.getAll(toURLSearchParam(SearchType.ALL))
.map(decodeURIComponent);
diff --git a/projects/bp-gallery/src/graphql/APIConnector.tsx b/projects/bp-gallery/src/graphql/APIConnector.tsx
index 0655984a7..06ae59cac 100644
--- a/projects/bp-gallery/src/graphql/APIConnector.tsx
+++ b/projects/bp-gallery/src/graphql/APIConnector.tsx
@@ -436,9 +436,7 @@ export type DescriptionRelationResponseCollection = {
export type Exhibition = {
archive_tag?: Maybe;
createdAt?: Maybe;
- epilog?: Maybe;
exhibition_sections?: Maybe;
- exhibition_sources?: Maybe;
idealot_pictures?: Maybe;
introduction?: Maybe;
is_published?: Maybe;
@@ -455,13 +453,6 @@ export type ExhibitionExhibition_SectionsArgs = {
sort?: InputMaybe>>;
};
-export type ExhibitionExhibition_SourcesArgs = {
- filters?: InputMaybe;
- pagination?: InputMaybe;
- publicationState?: InputMaybe;
- sort?: InputMaybe>>;
-};
-
export type ExhibitionIdealot_PicturesArgs = {
filters?: InputMaybe;
pagination?: InputMaybe;
@@ -487,9 +478,7 @@ export type ExhibitionFiltersInput = {
and?: InputMaybe>>;
archive_tag?: InputMaybe;
createdAt?: InputMaybe;
- epilog?: InputMaybe;
exhibition_sections?: InputMaybe;
- exhibition_sources?: InputMaybe;
id?: InputMaybe;
idealot_pictures?: InputMaybe;
introduction?: InputMaybe;
@@ -504,7 +493,6 @@ export type ExhibitionFiltersInput = {
export type ExhibitionInput = {
archive_tag?: InputMaybe;
- epilog?: InputMaybe;
exhibition_sections?: InputMaybe>>;
exhibition_sources?: InputMaybe>>;
idealot_pictures?: InputMaybe>>;
@@ -632,50 +620,6 @@ export type ExhibitionSectionRelationResponseCollection = {
data: Array;
};
-export type ExhibitionSource = {
- createdAt?: Maybe;
- exhibition?: Maybe;
- publishedAt?: Maybe;
- source?: Maybe;
- updatedAt?: Maybe;
-};
-
-export type ExhibitionSourceEntity = {
- attributes?: Maybe;
- id?: Maybe;
-};
-
-export type ExhibitionSourceEntityResponse = {
- data?: Maybe;
-};
-
-export type ExhibitionSourceEntityResponseCollection = {
- data: Array;
- meta: ResponseCollectionMeta;
-};
-
-export type ExhibitionSourceFiltersInput = {
- and?: InputMaybe>>;
- createdAt?: InputMaybe;
- exhibition?: InputMaybe;
- id?: InputMaybe;
- not?: InputMaybe;
- or?: InputMaybe>>;
- publishedAt?: InputMaybe;
- source?: InputMaybe;
- updatedAt?: InputMaybe;
-};
-
-export type ExhibitionSourceInput = {
- exhibition?: InputMaybe;
- publishedAt?: InputMaybe;
- source?: InputMaybe;
-};
-
-export type ExhibitionSourceRelationResponseCollection = {
- data: Array;
-};
-
export type FaceTag = {
createdAt?: Maybe;
person_tag?: Maybe;
@@ -767,7 +711,6 @@ export type GenericMorph =
| Exhibition
| ExhibitionPicture
| ExhibitionSection
- | ExhibitionSource
| FaceTag
| KeywordTag
| Link
@@ -1081,7 +1024,6 @@ export type Mutation = {
createExhibition?: Maybe;
createExhibitionPicture?: Maybe;
createExhibitionSection?: Maybe;
- createExhibitionSource?: Maybe;
createFaceTag?: Maybe;
createKeywordTag?: Maybe;
createLink?: Maybe;
@@ -1106,7 +1048,6 @@ export type Mutation = {
deleteExhibition?: Maybe;
deleteExhibitionPicture?: Maybe;
deleteExhibitionSection?: Maybe;
- deleteExhibitionSource?: Maybe;
deleteFaceTag?: Maybe;
deleteKeywordTag?: Maybe;
deleteLink?: Maybe;
@@ -1151,7 +1092,6 @@ export type Mutation = {
updateExhibition?: Maybe;
updateExhibitionPicture?: Maybe;
updateExhibitionSection?: Maybe;
- updateExhibitionSource?: Maybe;
updateFaceTag?: Maybe;
updateFileInfo: UploadFileEntityResponse;
updateKeywordTag?: Maybe;
@@ -1232,10 +1172,6 @@ export type MutationCreateExhibitionSectionArgs = {
data: ExhibitionSectionInput;
};
-export type MutationCreateExhibitionSourceArgs = {
- data: ExhibitionSourceInput;
-};
-
export type MutationCreateFaceTagArgs = {
data: FaceTagInput;
};
@@ -1320,10 +1256,6 @@ export type MutationDeleteExhibitionSectionArgs = {
id: Scalars['ID'];
};
-export type MutationDeleteExhibitionSourceArgs = {
- id: Scalars['ID'];
-};
-
export type MutationDeleteFaceTagArgs = {
id: Scalars['ID'];
};
@@ -1494,11 +1426,6 @@ export type MutationUpdateExhibitionSectionArgs = {
id: Scalars['ID'];
};
-export type MutationUpdateExhibitionSourceArgs = {
- data: ExhibitionSourceInput;
- id: Scalars['ID'];
-};
-
export type MutationUpdateFaceTagArgs = {
data: FaceTagInput;
id: Scalars['ID'];
@@ -2031,8 +1958,6 @@ export type Query = {
exhibitionPictures?: Maybe;
exhibitionSection?: Maybe;
exhibitionSections?: Maybe;
- exhibitionSource?: Maybe;
- exhibitionSources?: Maybe;
exhibitions?: Maybe;
faceTag?: Maybe;
faceTags?: Maybe;
@@ -2148,17 +2073,6 @@ export type QueryExhibitionSectionsArgs = {
sort?: InputMaybe>>;
};
-export type QueryExhibitionSourceArgs = {
- id?: InputMaybe;
-};
-
-export type QueryExhibitionSourcesArgs = {
- filters?: InputMaybe;
- pagination?: InputMaybe;
- publicationState?: InputMaybe;
- sort?: InputMaybe>>;
-};
-
export type QueryExhibitionsArgs = {
filters?: InputMaybe;
pagination?: InputMaybe;
@@ -3090,7 +3004,6 @@ export type GetExhibitionQuery = {
attributes?: {
title?: string | null;
introduction?: string | null;
- epilog?: string | null;
is_published?: boolean | null;
title_picture?: {
data?: {
@@ -3187,9 +3100,6 @@ export type GetExhibitionQuery = {
} | null;
}>;
} | null;
- exhibition_sources?: {
- data: Array<{ id?: string | null; attributes?: { source?: string | null } | null }>;
- } | null;
} | null;
} | null;
} | null;
@@ -3969,15 +3879,6 @@ export type CreateExhibitionSectionMutation = {
createExhibitionSection?: { data?: { id?: string | null } | null } | null;
};
-export type CreateExhibitionSourceMutationVariables = Exact<{
- exhibitionId: Scalars['ID'];
- publishedAt: Scalars['DateTime'];
-}>;
-
-export type CreateExhibitionSourceMutation = {
- createExhibitionSource?: { data?: { id?: string | null } | null } | null;
-};
-
export type CreateFaceTagMutationVariables = Exact<{
pictureId: Scalars['ID'];
personTagId: Scalars['ID'];
@@ -4084,6 +3985,22 @@ export type DeleteExhibitionMutation = {
deleteExhibition?: { data?: { id?: string | null } | null } | null;
};
+export type DeleteExhibitionPictureMutationVariables = Exact<{
+ id: Scalars['ID'];
+}>;
+
+export type DeleteExhibitionPictureMutation = {
+ deleteExhibitionPicture?: { data?: { id?: string | null } | null } | null;
+};
+
+export type DeleteExhibitionSectionMutationVariables = Exact<{
+ id: Scalars['ID'];
+}>;
+
+export type DeleteExhibitionSectionMutation = {
+ deleteExhibitionSection?: { data?: { id?: string | null } | null } | null;
+};
+
export type DeleteFaceTagMutationVariables = Exact<{
id: Scalars['ID'];
}>;
@@ -4329,15 +4246,6 @@ export type UpdateExhibitionSectionMutation = {
updateExhibitionSection?: { data?: { id?: string | null } | null } | null;
};
-export type UpdateExhibitionSourceMutationVariables = Exact<{
- id: Scalars['ID'];
- source: Scalars['String'];
-}>;
-
-export type UpdateExhibitionSourceMutation = {
- updateExhibitionSource?: { data?: { id?: string | null } | null } | null;
-};
-
export type UpdateFaceTagDirectionMutationVariables = Exact<{
faceTagId: Scalars['ID'];
tag_direction?: InputMaybe;
@@ -5649,7 +5557,6 @@ export const GetExhibitionDocument = gql`
attributes {
title
introduction
- epilog
is_published
title_picture {
data {
@@ -5746,14 +5653,6 @@ export const GetExhibitionDocument = gql`
}
}
}
- exhibition_sources {
- data {
- id
- attributes {
- source
- }
- }
- }
}
}
}
@@ -5806,7 +5705,7 @@ export type GetExhibitionQueryResult = Apollo.QueryResult<
>;
export const GetExhibitionsDocument = gql`
- query getExhibitions($archiveId: ID, $sortBy: [String] = ["createdAt:desc"]) {
+ query getExhibitions($archiveId: ID, $sortBy: [String] = ["updatedAt:desc"]) {
exhibitions(filters: { archive_tag: { id: { eq: $archiveId } } }, sort: $sortBy) {
data {
id
@@ -8341,64 +8240,6 @@ export type CreateExhibitionSectionMutationOptions = Apollo.BaseMutationOptions<
CreateExhibitionSectionMutationVariables
>;
-export const CreateExhibitionSourceDocument = gql`
- mutation createExhibitionSource($exhibitionId: ID!, $publishedAt: DateTime!) {
- createExhibitionSource(data: { exhibition: $exhibitionId, publishedAt: $publishedAt }) {
- data {
- id
- }
- }
- }
-`;
-
-export type CreateExhibitionSourceMutationFn = Apollo.MutationFunction<
- CreateExhibitionSourceMutation,
- CreateExhibitionSourceMutationVariables
->;
-
-/**
- * __useCreateExhibitionSourceMutation__
- *
- * To run a mutation, you first call `useCreateExhibitionSourceMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useCreateExhibitionSourceMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [createExhibitionSourceMutation, { data, loading, error }] = useCreateExhibitionSourceMutation({
- * variables: {
- * exhibitionId: // value for 'exhibitionId'
- * publishedAt: // value for 'publishedAt'
- * },
- * });
- */
-export function useCreateExhibitionSourceMutation(
- baseOptions?: Apollo.MutationHookOptions<
- CreateExhibitionSourceMutation,
- CreateExhibitionSourceMutationVariables
- >
-) {
- const options = { ...defaultOptions, ...baseOptions };
- return Apollo.useMutation<
- CreateExhibitionSourceMutation,
- CreateExhibitionSourceMutationVariables
- >(CreateExhibitionSourceDocument, options);
-}
-
-export type CreateExhibitionSourceMutationHookResult = ReturnType<
- typeof useCreateExhibitionSourceMutation
->;
-
-export type CreateExhibitionSourceMutationResult =
- Apollo.MutationResult;
-
-export type CreateExhibitionSourceMutationOptions = Apollo.BaseMutationOptions<
- CreateExhibitionSourceMutation,
- CreateExhibitionSourceMutationVariables
->;
-
export const CreateFaceTagDocument = gql`
mutation createFaceTag(
$pictureId: ID!
@@ -9085,6 +8926,120 @@ export type DeleteExhibitionMutationOptions = Apollo.BaseMutationOptions<
DeleteExhibitionMutationVariables
>;
+export const DeleteExhibitionPictureDocument = gql`
+ mutation deleteExhibitionPicture($id: ID!) {
+ deleteExhibitionPicture(id: $id) {
+ data {
+ id
+ }
+ }
+ }
+`;
+
+export type DeleteExhibitionPictureMutationFn = Apollo.MutationFunction<
+ DeleteExhibitionPictureMutation,
+ DeleteExhibitionPictureMutationVariables
+>;
+
+/**
+ * __useDeleteExhibitionPictureMutation__
+ *
+ * To run a mutation, you first call `useDeleteExhibitionPictureMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useDeleteExhibitionPictureMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [deleteExhibitionPictureMutation, { data, loading, error }] = useDeleteExhibitionPictureMutation({
+ * variables: {
+ * id: // value for 'id'
+ * },
+ * });
+ */
+export function useDeleteExhibitionPictureMutation(
+ baseOptions?: Apollo.MutationHookOptions<
+ DeleteExhibitionPictureMutation,
+ DeleteExhibitionPictureMutationVariables
+ >
+) {
+ const options = { ...defaultOptions, ...baseOptions };
+ return Apollo.useMutation<
+ DeleteExhibitionPictureMutation,
+ DeleteExhibitionPictureMutationVariables
+ >(DeleteExhibitionPictureDocument, options);
+}
+
+export type DeleteExhibitionPictureMutationHookResult = ReturnType<
+ typeof useDeleteExhibitionPictureMutation
+>;
+
+export type DeleteExhibitionPictureMutationResult =
+ Apollo.MutationResult;
+
+export type DeleteExhibitionPictureMutationOptions = Apollo.BaseMutationOptions<
+ DeleteExhibitionPictureMutation,
+ DeleteExhibitionPictureMutationVariables
+>;
+
+export const DeleteExhibitionSectionDocument = gql`
+ mutation deleteExhibitionSection($id: ID!) {
+ deleteExhibitionSection(id: $id) {
+ data {
+ id
+ }
+ }
+ }
+`;
+
+export type DeleteExhibitionSectionMutationFn = Apollo.MutationFunction<
+ DeleteExhibitionSectionMutation,
+ DeleteExhibitionSectionMutationVariables
+>;
+
+/**
+ * __useDeleteExhibitionSectionMutation__
+ *
+ * To run a mutation, you first call `useDeleteExhibitionSectionMutation` within a React component and pass it any options that fit your needs.
+ * When your component renders, `useDeleteExhibitionSectionMutation` returns a tuple that includes:
+ * - A mutate function that you can call at any time to execute the mutation
+ * - An object with fields that represent the current status of the mutation's execution
+ *
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
+ *
+ * @example
+ * const [deleteExhibitionSectionMutation, { data, loading, error }] = useDeleteExhibitionSectionMutation({
+ * variables: {
+ * id: // value for 'id'
+ * },
+ * });
+ */
+export function useDeleteExhibitionSectionMutation(
+ baseOptions?: Apollo.MutationHookOptions<
+ DeleteExhibitionSectionMutation,
+ DeleteExhibitionSectionMutationVariables
+ >
+) {
+ const options = { ...defaultOptions, ...baseOptions };
+ return Apollo.useMutation<
+ DeleteExhibitionSectionMutation,
+ DeleteExhibitionSectionMutationVariables
+ >(DeleteExhibitionSectionDocument, options);
+}
+
+export type DeleteExhibitionSectionMutationHookResult = ReturnType<
+ typeof useDeleteExhibitionSectionMutation
+>;
+
+export type DeleteExhibitionSectionMutationResult =
+ Apollo.MutationResult;
+
+export type DeleteExhibitionSectionMutationOptions = Apollo.BaseMutationOptions<
+ DeleteExhibitionSectionMutation,
+ DeleteExhibitionSectionMutationVariables
+>;
+
export const DeleteFaceTagDocument = gql`
mutation deleteFaceTag($id: ID!) {
deleteFaceTag(id: $id) {
@@ -10738,64 +10693,6 @@ export type UpdateExhibitionSectionMutationOptions = Apollo.BaseMutationOptions<
UpdateExhibitionSectionMutationVariables
>;
-export const UpdateExhibitionSourceDocument = gql`
- mutation updateExhibitionSource($id: ID!, $source: String!) {
- updateExhibitionSource(id: $id, data: { source: $source }) {
- data {
- id
- }
- }
- }
-`;
-
-export type UpdateExhibitionSourceMutationFn = Apollo.MutationFunction<
- UpdateExhibitionSourceMutation,
- UpdateExhibitionSourceMutationVariables
->;
-
-/**
- * __useUpdateExhibitionSourceMutation__
- *
- * To run a mutation, you first call `useUpdateExhibitionSourceMutation` within a React component and pass it any options that fit your needs.
- * When your component renders, `useUpdateExhibitionSourceMutation` returns a tuple that includes:
- * - A mutate function that you can call at any time to execute the mutation
- * - An object with fields that represent the current status of the mutation's execution
- *
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
- *
- * @example
- * const [updateExhibitionSourceMutation, { data, loading, error }] = useUpdateExhibitionSourceMutation({
- * variables: {
- * id: // value for 'id'
- * source: // value for 'source'
- * },
- * });
- */
-export function useUpdateExhibitionSourceMutation(
- baseOptions?: Apollo.MutationHookOptions<
- UpdateExhibitionSourceMutation,
- UpdateExhibitionSourceMutationVariables
- >
-) {
- const options = { ...defaultOptions, ...baseOptions };
- return Apollo.useMutation<
- UpdateExhibitionSourceMutation,
- UpdateExhibitionSourceMutationVariables
- >(UpdateExhibitionSourceDocument, options);
-}
-
-export type UpdateExhibitionSourceMutationHookResult = ReturnType<
- typeof useUpdateExhibitionSourceMutation
->;
-
-export type UpdateExhibitionSourceMutationResult =
- Apollo.MutationResult;
-
-export type UpdateExhibitionSourceMutationOptions = Apollo.BaseMutationOptions<
- UpdateExhibitionSourceMutation,
- UpdateExhibitionSourceMutationVariables
->;
-
export const UpdateFaceTagDirectionDocument = gql`
mutation updateFaceTagDirection($faceTagId: ID!, $tag_direction: Int) {
updateFaceTag(id: $faceTagId, data: { tag_direction: $tag_direction }) {
@@ -13923,50 +13820,6 @@ export function useCanRunMultipleCreateExhibitionSectionMutations(
};
}
-export function useCanRunCreateExhibitionSourceMutation(
- options?: Omit<
- Apollo.QueryHookOptions,
- 'variables'
- > & {
- variables?: Partial;
- withSomeVariables?: boolean;
- }
-) {
- const { data, loading, refetch } = useCanRunOperationQuery({
- ...options,
- variables: {
- operation: CreateExhibitionSourceDocument.loc?.source.body ?? '',
- variableSets: [options?.variables ?? {}],
- withSomeVariables: options?.withSomeVariables,
- },
- });
- useAuthChangeEffect(refetch);
- return { canRun: data?.canRunOperation?.[0] ?? (loading ? false : true), loading };
-}
-
-export function useCanRunMultipleCreateExhibitionSourceMutations(
- options: Omit<
- Apollo.QueryHookOptions,
- 'variables'
- > & {
- variableSets: Partial[];
- }
-) {
- const { data, loading, refetch } = useCanRunOperationQuery({
- ...options,
- variables: {
- operation: CreateExhibitionSourceDocument.loc?.source.body ?? '',
- variableSets: options.variableSets,
- },
- });
- useAuthChangeEffect(refetch);
- return {
- canRunMultiple:
- data?.canRunOperation ?? options.variableSets.map(_ => (loading ? false : true)),
- loading,
- };
-}
-
export function useCanRunCreateFaceTagMutation(
options?: Omit<
Apollo.QueryHookOptions,
@@ -14495,6 +14348,94 @@ export function useCanRunMultipleDeleteExhibitionMutations(
};
}
+export function useCanRunDeleteExhibitionPictureMutation(
+ options?: Omit<
+ Apollo.QueryHookOptions,
+ 'variables'
+ > & {
+ variables?: Partial;
+ withSomeVariables?: boolean;
+ }
+) {
+ const { data, loading, refetch } = useCanRunOperationQuery({
+ ...options,
+ variables: {
+ operation: DeleteExhibitionPictureDocument.loc?.source.body ?? '',
+ variableSets: [options?.variables ?? {}],
+ withSomeVariables: options?.withSomeVariables,
+ },
+ });
+ useAuthChangeEffect(refetch);
+ return { canRun: data?.canRunOperation?.[0] ?? (loading ? false : true), loading };
+}
+
+export function useCanRunMultipleDeleteExhibitionPictureMutations(
+ options: Omit<
+ Apollo.QueryHookOptions,
+ 'variables'
+ > & {
+ variableSets: Partial[];
+ }
+) {
+ const { data, loading, refetch } = useCanRunOperationQuery({
+ ...options,
+ variables: {
+ operation: DeleteExhibitionPictureDocument.loc?.source.body ?? '',
+ variableSets: options.variableSets,
+ },
+ });
+ useAuthChangeEffect(refetch);
+ return {
+ canRunMultiple:
+ data?.canRunOperation ?? options.variableSets.map(_ => (loading ? false : true)),
+ loading,
+ };
+}
+
+export function useCanRunDeleteExhibitionSectionMutation(
+ options?: Omit<
+ Apollo.QueryHookOptions,
+ 'variables'
+ > & {
+ variables?: Partial;
+ withSomeVariables?: boolean;
+ }
+) {
+ const { data, loading, refetch } = useCanRunOperationQuery({
+ ...options,
+ variables: {
+ operation: DeleteExhibitionSectionDocument.loc?.source.body ?? '',
+ variableSets: [options?.variables ?? {}],
+ withSomeVariables: options?.withSomeVariables,
+ },
+ });
+ useAuthChangeEffect(refetch);
+ return { canRun: data?.canRunOperation?.[0] ?? (loading ? false : true), loading };
+}
+
+export function useCanRunMultipleDeleteExhibitionSectionMutations(
+ options: Omit<
+ Apollo.QueryHookOptions,
+ 'variables'
+ > & {
+ variableSets: Partial[];
+ }
+) {
+ const { data, loading, refetch } = useCanRunOperationQuery({
+ ...options,
+ variables: {
+ operation: DeleteExhibitionSectionDocument.loc?.source.body ?? '',
+ variableSets: options.variableSets,
+ },
+ });
+ useAuthChangeEffect(refetch);
+ return {
+ canRunMultiple:
+ data?.canRunOperation ?? options.variableSets.map(_ => (loading ? false : true)),
+ loading,
+ };
+}
+
export function useCanRunDeleteFaceTagMutation(
options?: Omit<
Apollo.QueryHookOptions,
@@ -15859,50 +15800,6 @@ export function useCanRunMultipleUpdateExhibitionSectionMutations(
};
}
-export function useCanRunUpdateExhibitionSourceMutation(
- options?: Omit<
- Apollo.QueryHookOptions,
- 'variables'
- > & {
- variables?: Partial;
- withSomeVariables?: boolean;
- }
-) {
- const { data, loading, refetch } = useCanRunOperationQuery({
- ...options,
- variables: {
- operation: UpdateExhibitionSourceDocument.loc?.source.body ?? '',
- variableSets: [options?.variables ?? {}],
- withSomeVariables: options?.withSomeVariables,
- },
- });
- useAuthChangeEffect(refetch);
- return { canRun: data?.canRunOperation?.[0] ?? (loading ? false : true), loading };
-}
-
-export function useCanRunMultipleUpdateExhibitionSourceMutations(
- options: Omit<
- Apollo.QueryHookOptions,
- 'variables'
- > & {
- variableSets: Partial[];
- }
-) {
- const { data, loading, refetch } = useCanRunOperationQuery({
- ...options,
- variables: {
- operation: UpdateExhibitionSourceDocument.loc?.source.body ?? '',
- variableSets: options.variableSets,
- },
- });
- useAuthChangeEffect(refetch);
- return {
- canRunMultiple:
- data?.canRunOperation ?? options.variableSets.map(_ => (loading ? false : true)),
- loading,
- };
-}
-
export function useCanRunUpdateFaceTagDirectionMutation(
options?: Omit<
Apollo.QueryHookOptions,
diff --git a/projects/bp-gallery/src/graphql/operation.graphql b/projects/bp-gallery/src/graphql/operation.graphql
index ca81c6a8c..2f5532baa 100644
--- a/projects/bp-gallery/src/graphql/operation.graphql
+++ b/projects/bp-gallery/src/graphql/operation.graphql
@@ -13,8 +13,8 @@ query getCollectionInfoById($collectionId: ID!) { collection(id: $collectionId)
query getCollectionInfoByName($collectionName: String) { collections(filters: { name: { eq: $collectionName } } publicationState: PREVIEW) { data { id attributes { name description child_collections(sort: "name:asc" publicationState: PREVIEW) { data { id attributes { name thumbnail publishedAt } } } } } } }
query getDailyPictureInfo($pictureId: ID!) { picture(id: $pictureId) { data { id attributes { descriptions(sort: "createdAt:asc") { data { id attributes { text } } } time_range_tag { data { id attributes { start end isEstimate } } } verified_time_range_tag { data { id attributes { start end isEstimate } } } comments { data { id } } likes media { data { id attributes { url updatedAt provider } } } archive_tag { data { id attributes { name restrictImageDownloading } } } } } } }
query getDecadePreviewThumbnails( $filter40s: PictureFiltersInput! $filter50s: PictureFiltersInput! $filter60s: PictureFiltersInput! $filter70s: PictureFiltersInput! $filter80s: PictureFiltersInput! $filter90s: PictureFiltersInput! ) { decade40s: pictures( filters: { and: [$filter40s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } decade50s: pictures( filters: { and: [$filter50s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } decade60s: pictures( filters: { and: [$filter60s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } decade70s: pictures( filters: { and: [$filter70s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } decade80s: pictures( filters: { and: [$filter80s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } decade90s: pictures( filters: { and: [$filter90s { or: [{ is_text: { eq: false } } { is_text: { null: true } }] }] } pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } }
-query getExhibition($exhibitionId: ID!) { exhibition(id: $exhibitionId) { data { id attributes { title introduction epilog is_published title_picture { data { id attributes { subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } idealot_pictures { data { id attributes { subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } exhibition_sections(sort: "order:asc") { data { id attributes { title text order exhibition_pictures(sort: "order:asc") { data { id attributes { order subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } } } } exhibition_sources { data { id attributes { source } } } } } } }
-query getExhibitions($archiveId: ID $sortBy: [String] = ["createdAt:desc"]) { exhibitions(filters: { archive_tag: { id: { eq: $archiveId } } } sort: $sortBy) { data { id attributes { title introduction is_published archive_tag { data { id } } title_picture { data { id attributes { picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } } } } }
+query getExhibition($exhibitionId: ID!) { exhibition(id: $exhibitionId) { data { id attributes { title introduction is_published title_picture { data { id attributes { subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } idealot_pictures { data { id attributes { subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } exhibition_sections(sort: "order:asc") { data { id attributes { title text order exhibition_pictures(sort: "order:asc") { data { id attributes { order subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } } } } } } } }
+query getExhibitions($archiveId: ID $sortBy: [String] = ["updatedAt:desc"]) { exhibitions(filters: { archive_tag: { id: { eq: $archiveId } } } sort: $sortBy) { data { id attributes { title introduction is_published archive_tag { data { id } } title_picture { data { id attributes { picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } } } } }
query getFaceTags($pictureId: ID!) { faceTags(filters: { picture: { id: { eq: $pictureId } } }) { data { id attributes { x y tag_direction person_tag { data { id attributes { name } } } } } } }
query getIdeaLotContent($exhibitionId: ID!) { exhibition(id: $exhibitionId) { data { id attributes { idealot_pictures { data { id attributes { subtitle picture { data { id attributes { media { data { id attributes { width height formats url updatedAt provider } } } } } } } } } } } } }
query getKeywordTagsWithThumbnail( $filters: KeywordTagFiltersInput = {} $thumbnailFilters: PictureFiltersInput = {} $pagination: PaginationArg! $sortBy: [String] ) { keywordTags(filters: $filters pagination: $pagination sort: $sortBy) { data { id attributes { name thumbnail: pictures(filters: $thumbnailFilters pagination: { limit: 1 }) { data { attributes { media { data { attributes { formats provider } } } } } } verified_thumbnail: verified_pictures( filters: $thumbnailFilters pagination: { limit: 1 } ) { data { attributes { media { data { attributes { formats provider } } } } } } } } } }
@@ -46,7 +46,6 @@ mutation contact( $recipient: String! $sender_name: String! $reply_email: String
mutation createExhibition($archiveId: ID! $publishedAt: DateTime!) { createExhibition(data: { archive_tag: $archiveId publishedAt: $publishedAt }) { data { id } } }
mutation createExhibitionPicture( $exhibitionIdealotId: ID! $pictureId: ID! $publishedAt: DateTime! ) { createExhibitionPicture( data: { exhibition_idealot: $exhibitionIdealotId picture: $pictureId publishedAt: $publishedAt } ) { data { id } } }
mutation createExhibitionSection($exhibitionId: ID! $order: Int $publishedAt: DateTime!) { createExhibitionSection( data: { exhibition: $exhibitionId order: $order publishedAt: $publishedAt } ) { data { id } } }
-mutation createExhibitionSource($exhibitionId: ID! $publishedAt: DateTime!) { createExhibitionSource(data: { exhibition: $exhibitionId publishedAt: $publishedAt }) { data { id } } }
mutation createFaceTag( $pictureId: ID! $personTagId: ID! $x: Float $y: Float $tag_direction: Int ) { createFaceTag( data: { picture: $pictureId person_tag: $personTagId x: $x y: $y tag_direction: $tag_direction } ) { data { id } } }
mutation createKeywordTag($name: String!) { createKeywordTag(data: { name: $name }) { data { id } } }
mutation createLink($title: String! $url: String! $archive_tag: ID!) { createLink(data: { title: $title url: $url archive_tag: $archive_tag }) { data { id } } }
@@ -59,6 +58,8 @@ mutation createSubCollection($name: String! $parentId: ID! $publishedAt: DateTim
mutation declineComment($commentId: ID!) { deleteComment(id: $commentId) { data { id } } }
mutation deleteCollection($collectionId: ID!) { deleteCollection(id: $collectionId) { data { id } } }
mutation deleteExhibition($id: ID!) { deleteExhibition(id: $id) { data { id } } }
+mutation deleteExhibitionPicture($id: ID!) { deleteExhibitionPicture(id: $id) { data { id } } }
+mutation deleteExhibitionSection($id: ID!) { deleteExhibitionSection(id: $id) { data { id } } }
mutation deleteFaceTag($id: ID!) { deleteFaceTag(id: $id) { data { id } } }
mutation deleteKeywordTag($id: ID!) { deleteKeywordTag(id: $id) { data { id } } }
mutation deleteLink($id: ID!) { deleteLink(id: $id) { data { id } } }
@@ -90,7 +91,6 @@ mutation updateCollectionParents($collectionId: ID! $parentCollectionIds: [ID]!)
mutation updateExhibition($id: ID! $data: ExhibitionInput!) { updateExhibition(id: $id data: $data) { data { id } } }
mutation updateExhibitionPicture($id: ID! $data: ExhibitionPictureInput!) { updateExhibitionPicture(id: $id data: $data) { data { id } } }
mutation updateExhibitionSection( $id: ID! $title: String $text: String $order: Int $exhibitionPictureIds: [ID] ) { updateExhibitionSection( id: $id data: { title: $title text: $text exhibition_pictures: $exhibitionPictureIds order: $order } ) { data { id } } }
-mutation updateExhibitionSource($id: ID! $source: String!) { updateExhibitionSource(id: $id data: { source: $source }) { data { id } } }
mutation updateFaceTagDirection($faceTagId: ID! $tag_direction: Int) { updateFaceTag(id: $faceTagId data: { tag_direction: $tag_direction }) { data { id } } }
mutation updateKeywordName($tagId: ID! $name: String!) { updateKeywordTag(id: $tagId data: { name: $name }) { data { id } } }
mutation updateKeywordSynonyms($tagId: ID! $synonyms: [ComponentCommonSynonymsInput]!) { updateKeywordTag(id: $tagId data: { synonyms: $synonyms }) { data { id } } }
diff --git a/projects/bp-gallery/src/graphql/schema/schema.json b/projects/bp-gallery/src/graphql/schema/schema.json
index 9feb72f65..c5a46ca3f 100644
--- a/projects/bp-gallery/src/graphql/schema/schema.json
+++ b/projects/bp-gallery/src/graphql/schema/schema.json
@@ -7544,26 +7544,6 @@
},
"defaultValue": null
},
- {
- "name": "epilog",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "StringFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "exhibition_sources",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- },
{
"name": "idealot_pictures",
"description": null,
@@ -7717,16 +7697,6 @@
},
"defaultValue": null
},
- {
- "name": "epilog",
- "description": null,
- "type": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- },
- "defaultValue": null
- },
{
"name": "exhibition_sources",
"description": null,
@@ -7888,75 +7858,6 @@
"isDeprecated": false,
"deprecationReason": null
},
- {
- "name": "epilog",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "exhibition_sources",
- "description": null,
- "args": [
- {
- "name": "filters",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "pagination",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "PaginationArg",
- "ofType": null
- },
- "defaultValue": "{}"
- },
- {
- "name": "sort",
- "description": null,
- "type": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- }
- },
- "defaultValue": "[]"
- },
- {
- "name": "publicationState",
- "description": null,
- "type": {
- "kind": "ENUM",
- "name": "PublicationState",
- "ofType": null
- },
- "defaultValue": "LIVE"
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceRelationResponseCollection",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
{
"name": "idealot_pictures",
"description": null,
@@ -8922,453 +8823,88 @@
"args": [],
"type": {
"kind": "SCALAR",
- "name": "String",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "exhibition_pictures",
- "description": null,
- "args": [
- {
- "name": "filters",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionPictureFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "pagination",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "PaginationArg",
- "ofType": null
- },
- "defaultValue": "{}"
- },
- {
- "name": "sort",
- "description": null,
- "type": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- }
- },
- "defaultValue": "[]"
- },
- {
- "name": "publicationState",
- "description": null,
- "type": {
- "kind": "ENUM",
- "name": "PublicationState",
- "ofType": null
- },
- "defaultValue": "LIVE"
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionPictureRelationResponseCollection",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "exhibition",
- "description": null,
- "args": [],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionEntityResponse",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "order",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "Int",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "createdAt",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "DateTime",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "updatedAt",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "DateTime",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "publishedAt",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "DateTime",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- }
- ],
- "inputFields": null,
- "interfaces": [],
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntity",
- "description": null,
- "fields": [
- {
- "name": "id",
- "description": null,
- "args": [],
- "type": {
- "kind": "SCALAR",
- "name": "ID",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "attributes",
- "description": null,
- "args": [],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSection",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- }
- ],
- "inputFields": null,
- "interfaces": [],
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntityResponse",
- "description": null,
- "fields": [
- {
- "name": "data",
- "description": null,
- "args": [],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntity",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- }
- ],
- "inputFields": null,
- "interfaces": [],
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntityResponseCollection",
- "description": null,
- "fields": [
- {
- "name": "data",
- "description": null,
- "args": [],
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntity",
- "ofType": null
- }
- }
- }
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "meta",
- "description": null,
- "args": [],
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "OBJECT",
- "name": "ResponseCollectionMeta",
- "ofType": null
- }
- },
- "isDeprecated": false,
- "deprecationReason": null
- }
- ],
- "inputFields": null,
- "interfaces": [],
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "OBJECT",
- "name": "ExhibitionSectionRelationResponseCollection",
- "description": null,
- "fields": [
- {
- "name": "data",
- "description": null,
- "args": [],
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "OBJECT",
- "name": "ExhibitionSectionEntity",
- "ofType": null
- }
- }
- }
- },
- "isDeprecated": false,
- "deprecationReason": null
- }
- ],
- "inputFields": null,
- "interfaces": [],
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "description": null,
- "fields": null,
- "inputFields": [
- {
- "name": "id",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "IDFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "source",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "StringFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "exhibition",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "createdAt",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "DateTimeFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "updatedAt",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "DateTimeFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "publishedAt",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "DateTimeFilterInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "and",
- "description": null,
- "type": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- }
- },
- "defaultValue": null
- },
- {
- "name": "or",
- "description": null,
- "type": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- }
- },
- "defaultValue": null
- },
- {
- "name": "not",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- }
- ],
- "interfaces": null,
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceInput",
- "description": null,
- "fields": null,
- "inputFields": [
- {
- "name": "source",
- "description": null,
- "type": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "exhibition",
- "description": null,
- "type": {
- "kind": "SCALAR",
- "name": "ID",
+ "name": "String",
"ofType": null
},
- "defaultValue": null
+ "isDeprecated": false,
+ "deprecationReason": null
},
{
- "name": "publishedAt",
+ "name": "exhibition_pictures",
"description": null,
+ "args": [
+ {
+ "name": "filters",
+ "description": null,
+ "type": {
+ "kind": "INPUT_OBJECT",
+ "name": "ExhibitionPictureFiltersInput",
+ "ofType": null
+ },
+ "defaultValue": null
+ },
+ {
+ "name": "pagination",
+ "description": null,
+ "type": {
+ "kind": "INPUT_OBJECT",
+ "name": "PaginationArg",
+ "ofType": null
+ },
+ "defaultValue": "{}"
+ },
+ {
+ "name": "sort",
+ "description": null,
+ "type": {
+ "kind": "LIST",
+ "name": null,
+ "ofType": {
+ "kind": "SCALAR",
+ "name": "String",
+ "ofType": null
+ }
+ },
+ "defaultValue": "[]"
+ },
+ {
+ "name": "publicationState",
+ "description": null,
+ "type": {
+ "kind": "ENUM",
+ "name": "PublicationState",
+ "ofType": null
+ },
+ "defaultValue": "LIVE"
+ }
+ ],
"type": {
- "kind": "SCALAR",
- "name": "DateTime",
+ "kind": "OBJECT",
+ "name": "ExhibitionPictureRelationResponseCollection",
"ofType": null
},
- "defaultValue": null
- }
- ],
- "interfaces": null,
- "enumValues": null,
- "possibleTypes": null
- },
- {
- "kind": "OBJECT",
- "name": "ExhibitionSource",
- "description": null,
- "fields": [
+ "isDeprecated": false,
+ "deprecationReason": null
+ },
{
- "name": "source",
+ "name": "exhibition",
"description": null,
"args": [],
"type": {
- "kind": "SCALAR",
- "name": "String",
+ "kind": "OBJECT",
+ "name": "ExhibitionEntityResponse",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
- "name": "exhibition",
+ "name": "order",
"description": null,
"args": [],
"type": {
- "kind": "OBJECT",
- "name": "ExhibitionEntityResponse",
+ "kind": "SCALAR",
+ "name": "Int",
"ofType": null
},
"isDeprecated": false,
@@ -9418,7 +8954,7 @@
},
{
"kind": "OBJECT",
- "name": "ExhibitionSourceEntity",
+ "name": "ExhibitionSectionEntity",
"description": null,
"fields": [
{
@@ -9439,7 +8975,7 @@
"args": [],
"type": {
"kind": "OBJECT",
- "name": "ExhibitionSource",
+ "name": "ExhibitionSection",
"ofType": null
},
"isDeprecated": false,
@@ -9453,7 +8989,7 @@
},
{
"kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponse",
+ "name": "ExhibitionSectionEntityResponse",
"description": null,
"fields": [
{
@@ -9462,7 +8998,7 @@
"args": [],
"type": {
"kind": "OBJECT",
- "name": "ExhibitionSourceEntity",
+ "name": "ExhibitionSectionEntity",
"ofType": null
},
"isDeprecated": false,
@@ -9476,7 +9012,7 @@
},
{
"kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponseCollection",
+ "name": "ExhibitionSectionEntityResponseCollection",
"description": null,
"fields": [
{
@@ -9494,7 +9030,7 @@
"name": null,
"ofType": {
"kind": "OBJECT",
- "name": "ExhibitionSourceEntity",
+ "name": "ExhibitionSectionEntity",
"ofType": null
}
}
@@ -9527,7 +9063,7 @@
},
{
"kind": "OBJECT",
- "name": "ExhibitionSourceRelationResponseCollection",
+ "name": "ExhibitionSectionRelationResponseCollection",
"description": null,
"fields": [
{
@@ -9545,7 +9081,7 @@
"name": null,
"ofType": {
"kind": "OBJECT",
- "name": "ExhibitionSourceEntity",
+ "name": "ExhibitionSectionEntity",
"ofType": null
}
}
@@ -15677,11 +15213,6 @@
"name": "ExhibitionSection",
"ofType": null
},
- {
- "kind": "OBJECT",
- "name": "ExhibitionSource",
- "ofType": null
- },
{
"kind": "OBJECT",
"name": "FaceTag",
@@ -17190,86 +16721,6 @@
"isDeprecated": false,
"deprecationReason": null
},
- {
- "name": "exhibitionSource",
- "description": null,
- "args": [
- {
- "name": "id",
- "description": null,
- "type": {
- "kind": "SCALAR",
- "name": "ID",
- "ofType": null
- },
- "defaultValue": null
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponse",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "exhibitionSources",
- "description": null,
- "args": [
- {
- "name": "filters",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceFiltersInput",
- "ofType": null
- },
- "defaultValue": null
- },
- {
- "name": "pagination",
- "description": null,
- "type": {
- "kind": "INPUT_OBJECT",
- "name": "PaginationArg",
- "ofType": null
- },
- "defaultValue": "{}"
- },
- {
- "name": "sort",
- "description": null,
- "type": {
- "kind": "LIST",
- "name": null,
- "ofType": {
- "kind": "SCALAR",
- "name": "String",
- "ofType": null
- }
- },
- "defaultValue": "[]"
- },
- {
- "name": "publicationState",
- "description": null,
- "type": {
- "kind": "ENUM",
- "name": "PublicationState",
- "ofType": null
- },
- "defaultValue": "LIVE"
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponseCollection",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
{
"name": "faceTag",
"description": null,
@@ -19108,101 +18559,6 @@
"isDeprecated": false,
"deprecationReason": null
},
- {
- "name": "createExhibitionSource",
- "description": null,
- "args": [
- {
- "name": "data",
- "description": null,
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceInput",
- "ofType": null
- }
- },
- "defaultValue": null
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponse",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "updateExhibitionSource",
- "description": null,
- "args": [
- {
- "name": "id",
- "description": null,
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "SCALAR",
- "name": "ID",
- "ofType": null
- }
- },
- "defaultValue": null
- },
- {
- "name": "data",
- "description": null,
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "INPUT_OBJECT",
- "name": "ExhibitionSourceInput",
- "ofType": null
- }
- },
- "defaultValue": null
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponse",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
- {
- "name": "deleteExhibitionSource",
- "description": null,
- "args": [
- {
- "name": "id",
- "description": null,
- "type": {
- "kind": "NON_NULL",
- "name": null,
- "ofType": {
- "kind": "SCALAR",
- "name": "ID",
- "ofType": null
- }
- },
- "defaultValue": null
- }
- ],
- "type": {
- "kind": "OBJECT",
- "name": "ExhibitionSourceEntityResponse",
- "ofType": null
- },
- "isDeprecated": false,
- "deprecationReason": null
- },
{
"name": "createFaceTag",
"description": null,
diff --git a/projects/bp-gallery/src/shared/locales/de.json b/projects/bp-gallery/src/shared/locales/de.json
index 154444a07..f664f62c4 100755
--- a/projects/bp-gallery/src/shared/locales/de.json
+++ b/projects/bp-gallery/src/shared/locales/de.json
@@ -620,10 +620,6 @@
"delete-title": "Möchten Sie wirklich die Geschichte \"{{exhibitionName}}\" löschen?",
"new-exhibition": "Neue Geschichte"
},
- "viewer": {
- "epilog": "Epilog",
- "sources": "Weiterführende Quellen"
- },
"buttons": {
"publish": "Veröffentlichen",
"unPublish": "Privat stellen",
@@ -647,12 +643,6 @@
"exit-sort": "Fertig sortiert",
"add-section": "Neuer Abschnitt",
"dropzone": "Ziehe hier Bilder hinein"
- },
- "epilog": {
- "title": "Epilog",
- "text-placeholder": "Epilogtext",
- "sources": "Quellen",
- "add-source": "Quelle hinzufügen"
}
}
},
diff --git a/projects/bp-gallery/src/types/additionalFlatTypes.ts b/projects/bp-gallery/src/types/additionalFlatTypes.ts
index 67c1d4565..51ffac132 100755
--- a/projects/bp-gallery/src/types/additionalFlatTypes.ts
+++ b/projects/bp-gallery/src/types/additionalFlatTypes.ts
@@ -8,7 +8,6 @@ import {
Exhibition,
ExhibitionPicture,
ExhibitionSection,
- ExhibitionSource,
FaceTag,
KeywordTag,
Link,
@@ -44,16 +43,11 @@ type FlatExhibitionPictureWithoutRelations = ID &
Omit;
type FlatExhibitionWithoutRelations = ID &
- Omit<
- Exhibition,
- 'title_picture' | 'exhibition_sections' | 'exhibition_sources' | 'idealot_pictures'
- >;
+ Omit;
type FlatExhibitionSectionWithoutRelations = ID &
Omit;
-type FlatExhibitionSourceWithoutRelations = ID & Omit;
-
type FlatPictureWithoutRelations = ID &
Omit<
Picture,
@@ -106,10 +100,6 @@ export type FlatUsersPermissionsUserWithoutRelations = ID & Omit;
-export type FlatExhibitionSource = FlatExhibitionSourceWithoutRelations & {
- exhibition?: FlatExhibition;
-};
-
export type FlatExhibitionSection = FlatExhibitionSectionWithoutRelations & {
exhibition_pictures?: FlatExhibitionPicture[];
exhibition?: FlatExhibition;
@@ -124,7 +114,6 @@ export type FlatExhibitionPicture = FlatExhibitionPictureWithoutRelations & {
export type FlatExhibition = FlatExhibitionWithoutRelations & {
title_picture?: FlatExhibitionPicture;
exhibition_sections?: FlatExhibitionSection[];
- exhibition_sources?: FlatExhibitionSource[];
idealot_pictures?: FlatExhibitionPicture[];
};
diff --git a/projects/bp-gallery/tailwind.config.cjs b/projects/bp-gallery/tailwind.config.cjs
index b30afddc8..90e459343 100644
--- a/projects/bp-gallery/tailwind.config.cjs
+++ b/projects/bp-gallery/tailwind.config.cjs
@@ -7,7 +7,7 @@ module.exports = {
theme: {
extend: {
gridTemplateColumns: {
- 'autofit-card': 'repeat(auto-fit, minmax(20rem, 1fr))',
+ 'autofill-card': 'repeat(auto-fill, minmax(20rem, 1fr))',
},
height: {
'50vh': '50vh',
diff --git a/projects/bp-gallery/yarn.lock b/projects/bp-gallery/yarn.lock
index ae2125096..53dce0dfd 100755
--- a/projects/bp-gallery/yarn.lock
+++ b/projects/bp-gallery/yarn.lock
@@ -2165,9 +2165,9 @@
integrity sha512-IASpMGVcWpUsx5xBOrxMj7Bl8lqfuTY7FKAnPmu5cHkfQVWF8GulWS1jbRqA934qZL35xh5xN/+Xe/i26Bod4w==
"@types/node@^18.16.0":
- version "18.16.19"
- resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.19.tgz#cb03fca8910fdeb7595b755126a8a78144714eea"
- integrity sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==
+ version "18.18.3"
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.18.3.tgz#e5188135fc2909b46530c798ef49be65083be3fd"
+ integrity sha512-0OVfGupTl3NBFr8+iXpfZ8NR7jfFO+P1Q+IO/q0wbo02wYkP5gy36phojeYWpLQ6WAMjl+VfmqUk2YbUfp0irA==
"@types/normalize-package-data@^2.4.0":
version "2.4.1"
@@ -7088,6 +7088,11 @@ react-dropzone@^12.0.5:
file-selector "^0.5.0"
prop-types "^15.8.1"
+react-grid-gallery@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/react-grid-gallery/-/react-grid-gallery-1.0.0.tgz#31604b9488dfa75a899aa39bc8884138f0409a12"
+ integrity sha512-S1gr6WXBlPFVrE0x2BHuu7jhyaB61mabcMQyx+8KCgAyKzGza0WF67AfAnS9Q00aurFEq4IP8eqb2Bk5F4RAmQ==
+
react-html-parser@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/react-html-parser/-/react-html-parser-2.0.2.tgz#6dbe1ddd2cebc1b34ca15215158021db5fc5685e"
diff --git a/projects/bp-graphql/src/DB.ts b/projects/bp-graphql/src/DB.ts
index 399b534ef..403fbb12b 100644
--- a/projects/bp-graphql/src/DB.ts
+++ b/projects/bp-graphql/src/DB.ts
@@ -3,7 +3,6 @@ import {
Exhibition,
ExhibitionPicture,
ExhibitionSection,
- ExhibitionSource,
FaceTag,
Link,
ParameterizedPermission,
@@ -57,7 +56,6 @@ export class DB {
private exhibitionLoader: Loader;
private exhibitionSectionLoader: Loader;
private exhibitionPictureLoader: Loader;
- private exhibitionSourceLoader: Loader;
public constructor(queries: {
picture: Query