From b33986f65fb7e8132016edcf104414be95bd87d3 Mon Sep 17 00:00:00 2001 From: gappc Date: Sun, 14 Apr 2024 15:59:12 +0200 Subject: [PATCH] Remove Quick View and related facilities The Quick View was intended to provide a nice overview over datasets. Implemented for the ODHActivityPoi datasets, it turned out that the Quick View it is not needed at the moment (see issue #552 on GitHub). Therefor, this commit removes all of the Quick View related code and configs and moves / renames the shared stuff that is still used to other locations. --- README.md | 2 +- databrowser/guideline.md | 2 +- .../quickview/QuickViewCardOverview.vue | 93 ----------- .../QuickViewCardOverviewContentContainer.vue | 32 ---- .../QuickViewCardOverviewContentText.vue | 22 --- .../QuickViewCardOverviewContentTitle.vue | 20 --- .../QuickViewCardOverviewGallery.vue | 100 ----------- .../quickview/QuickViewCommonTypes.ts | 13 -- .../quickview/QuickViewContactsCard.vue | 110 ------------ .../quickview/QuickViewFullscreenGallery.vue | 88 ---------- .../components/quickview/QuickViewMapView.vue | 56 ------- .../quickview/QuickViewOpeningHoursView.vue | 63 ------- .../quickview/QuickViewRecordInfoView.vue | 94 ----------- .../quickview/QuickViewTextInfoCard.vue | 57 ------- .../components/quickview/QuickViewUtils.ts | 18 -- .../quickview/QuickViewWebcamsView.vue | 60 ------- .../stationTypes/stationTypes.sharedView.ts | 4 +- .../accommodation/accommodation.quickView.ts | 9 - .../accommodationTypes.quickView.ts | 9 - .../tourism/article/article.quickView.ts | 9 - .../tourism/district/district.quickView.ts | 9 - .../config/tourism/event/event.quickView.ts | 9 - .../eventShort/eventShort.quickView.ts | 9 - .../eventTopics/eventTopics.quickView.ts | 9 - .../gastronomy/gastronomy.quickView.ts | 9 - databrowser/src/config/tourism/index.ts | 7 - .../measuringPoint.quickView.ts | 9 - .../tourism/metaData/metaData.quickView.ts | 9 - .../metaRegion/metaRegion.quickView.ts | 9 - .../municipality/municipality.quickView.ts | 9 - .../odhActivityPoi.quickView.ts | 75 --------- .../odhActivityPoi/odhActivityPoi.views.ts | 2 - .../odhActivityPoiTypes.quickView.ts | 9 - .../publishedOn/publishedOn.quickView.ts | 9 - .../pushResponse/pushResponse.quickView.ts | 9 - .../config/tourism/region/region.quickView.ts | 9 - .../tourism/skiArea/skiArea.quickView.ts | 9 - .../tourism/skiRegion/skiRegion.quickView.ts | 9 - .../snowReport/snowReport.quickView.ts | 9 - .../config/tourism/source/source.quickView.ts | 9 - .../tourismAssociationList.quickView.ts | 9 - .../config/tourism/venue/venue.quickView.ts | 9 - .../tourism/weather/weather.quickView.ts | 9 - .../weatherDistrict.quickView.ts | 9 - .../weatherForecast.quickView.ts | 9 - .../weatherInfo/weatherInfo.quickView.ts | 9 - .../weatherRealTime.quickView.ts | 9 - .../editGpsInfoCell/EditGpsPointBase.vue} | 2 +- .../cells/editGpsInfoCell/EditGpsPointMap.vue | 13 +- .../editGpsInfoCell/EditGpsPointOverview.vue | 39 +++++ .../OperationScheduleDayInfo.vue} | 6 +- .../OperationScheduleTab.vue | 4 +- .../plugins/registerCellComponents.ts | 23 +-- .../src/domain/cellComponents/types.ts | 8 +- .../src/domain/datasets/config/types.ts | 17 -- .../datasets/location/datasetViewLocation.ts | 1 - .../location/store/useDatasetLocationStore.ts | 3 - .../src/domain/datasets/location/types.ts | 1 - .../location/useDatasetLocationLinks.ts | 1 - .../ui/common/load/useSingleRecordLoad.ts | 6 - .../datasets/ui/header/DatasetNavigation.vue | 10 -- .../src/domain/datasets/ui/header/usePaths.ts | 9 - .../datasets/ui/quickView/QuickView.vue | 156 ------------------ .../datasets/ui/tableView/TableContent.vue | 6 +- .../datasets/ui/tableView/TableLinks.vue | 21 +-- .../datasets/ui/tableView/TableView.vue | 2 - .../ui/tableView/load/useTableLoad.ts | 5 +- .../dynamicParams/dynamicParamsReplacement.ts | 22 --- .../computeDeprecationAndRequired.ts | 16 -- .../domain/datasets/view/store/datasetView.ts | 22 +-- databrowser/src/domain/datasets/view/types.ts | 6 - .../src/domain/datasets/view/viewKey.ts | 2 - .../src/domain/datasets/view/viewPresence.ts | 2 - .../src/domain/datasets/view/viewType.ts | 2 - databrowser/src/locales/en.json | 37 +---- .../src/pages/datasets/DatasetQuickPage.vue | 16 -- databrowser/src/routes.ts | 6 - doc/developers/dataset-configuration.md | 12 +- doc/developers/vue-components.md | 1 - doc/overview.md | 1 - doc/style-guidelines.md | 2 +- 81 files changed, 75 insertions(+), 1566 deletions(-) delete mode 100644 databrowser/src/components/quickview/QuickViewCardOverview.vue delete mode 100644 databrowser/src/components/quickview/QuickViewCardOverviewContentContainer.vue delete mode 100644 databrowser/src/components/quickview/QuickViewCardOverviewContentText.vue delete mode 100644 databrowser/src/components/quickview/QuickViewCardOverviewContentTitle.vue delete mode 100644 databrowser/src/components/quickview/QuickViewCardOverviewGallery.vue delete mode 100644 databrowser/src/components/quickview/QuickViewCommonTypes.ts delete mode 100644 databrowser/src/components/quickview/QuickViewContactsCard.vue delete mode 100644 databrowser/src/components/quickview/QuickViewFullscreenGallery.vue delete mode 100644 databrowser/src/components/quickview/QuickViewMapView.vue delete mode 100644 databrowser/src/components/quickview/QuickViewOpeningHoursView.vue delete mode 100644 databrowser/src/components/quickview/QuickViewRecordInfoView.vue delete mode 100644 databrowser/src/components/quickview/QuickViewTextInfoCard.vue delete mode 100644 databrowser/src/components/quickview/QuickViewUtils.ts delete mode 100644 databrowser/src/components/quickview/QuickViewWebcamsView.vue delete mode 100644 databrowser/src/config/tourism/accommodation/accommodation.quickView.ts delete mode 100644 databrowser/src/config/tourism/accommodationTypes/accommodationTypes.quickView.ts delete mode 100644 databrowser/src/config/tourism/article/article.quickView.ts delete mode 100644 databrowser/src/config/tourism/district/district.quickView.ts delete mode 100644 databrowser/src/config/tourism/event/event.quickView.ts delete mode 100644 databrowser/src/config/tourism/eventShort/eventShort.quickView.ts delete mode 100644 databrowser/src/config/tourism/eventTopics/eventTopics.quickView.ts delete mode 100644 databrowser/src/config/tourism/gastronomy/gastronomy.quickView.ts delete mode 100644 databrowser/src/config/tourism/measuringPoint/measuringPoint.quickView.ts delete mode 100644 databrowser/src/config/tourism/metaData/metaData.quickView.ts delete mode 100644 databrowser/src/config/tourism/metaRegion/metaRegion.quickView.ts delete mode 100644 databrowser/src/config/tourism/municipality/municipality.quickView.ts delete mode 100644 databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.quickView.ts delete mode 100644 databrowser/src/config/tourism/odhActivityPoiTypes/odhActivityPoiTypes.quickView.ts delete mode 100644 databrowser/src/config/tourism/publishedOn/publishedOn.quickView.ts delete mode 100644 databrowser/src/config/tourism/pushResponse/pushResponse.quickView.ts delete mode 100644 databrowser/src/config/tourism/region/region.quickView.ts delete mode 100644 databrowser/src/config/tourism/skiArea/skiArea.quickView.ts delete mode 100644 databrowser/src/config/tourism/skiRegion/skiRegion.quickView.ts delete mode 100644 databrowser/src/config/tourism/snowReport/snowReport.quickView.ts delete mode 100644 databrowser/src/config/tourism/source/source.quickView.ts delete mode 100644 databrowser/src/config/tourism/tourismAssociationList/tourismAssociationList.quickView.ts delete mode 100644 databrowser/src/config/tourism/venue/venue.quickView.ts delete mode 100644 databrowser/src/config/tourism/weather/weather.quickView.ts delete mode 100644 databrowser/src/config/tourism/weatherDistrict/weatherDistrict.quickView.ts delete mode 100644 databrowser/src/config/tourism/weatherForecast/weatherForecast.quickView.ts delete mode 100644 databrowser/src/config/tourism/weatherInfo/weatherInfo.quickView.ts delete mode 100644 databrowser/src/config/tourism/weatherRealTime/weatherRealTime.quickView.ts rename databrowser/src/{components/quickview/QuickViewCardBase.vue => domain/cellComponents/components/cells/editGpsInfoCell/EditGpsPointBase.vue} (94%) create mode 100644 databrowser/src/domain/cellComponents/components/cells/editGpsInfoCell/EditGpsPointOverview.vue rename databrowser/src/{components/quickview/QuickViewDayInfo.vue => domain/cellComponents/components/cells/operationScheduleCell/OperationScheduleDayInfo.vue} (83%) delete mode 100644 databrowser/src/domain/datasets/ui/quickView/QuickView.vue delete mode 100644 databrowser/src/pages/datasets/DatasetQuickPage.vue diff --git a/README.md b/README.md index abdad9792..a22ca7e63 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ For more information on how to make new files REUSE compliant check the project - **Christian Gapp** - _Initial work_ - [gappc](https://github.com/gappc) - **AboutBits** - _Initial work_ - [AboutBits](https://github.com/aboutbits) -- **FlashBeing** - Guideline and _Quick View_ [FlashBeing](https://flashbeing.com/) +- **FlashBeing** - _Lots of contributions_ [FlashBeing](https://flashbeing.com/) - **NOI Support Team** - _Configurations and tests_ ### Acknowledgements diff --git a/databrowser/guideline.md b/databrowser/guideline.md index e4e50e4b2..425e5940c 100644 --- a/databrowser/guideline.md +++ b/databrowser/guideline.md @@ -50,7 +50,7 @@ const MyLibrary = defineAsyncComponent(() => ### Platform assumptions -1. The DetailView and QuickView are designed to be generated through configuration files, differentiated according to the type of dataset. These files are located in the path /src/config/DATASET_NAME/DATASET_NAME.VIEW_TYPE.ts. For example, in /src/config/odhActivityPoi/odhActivityPoi.quickView.ts, you can see the configuration of the QuickView for points of interest. +1. The DetailView and EditView are designed to be generated through configuration files, differentiated according to the type of dataset. These files are located in the path /src/config/DATASET_NAME/DATASET_NAME.VIEW_TYPE.ts. For example, in /src/config/odhActivityPoi/odhActivityPoi.detailView.ts, you can see the configuration of the DetailView for points of interest. 2. If the views define their respective components from the configuration file, they must use the ComponentRender component. To include the components with the ComponentRender component, they must be defined in /src/components/registerForComponentRender.js, and then the related components must be placed in the /src/components/ folder, using the following extension: "forRender". Eg, a component called Table that can ben rendered using the ComponentRender component, must be called Table.forRender.vue. Plus, all components built to be rendered with the ComponentRender, must respect the following predefined structure details: ``` diff --git a/databrowser/src/components/quickview/QuickViewCardOverview.vue b/databrowser/src/components/quickview/QuickViewCardOverview.vue deleted file mode 100644 index ca26bb015..000000000 --- a/databrowser/src/components/quickview/QuickViewCardOverview.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewCardOverviewContentContainer.vue b/databrowser/src/components/quickview/QuickViewCardOverviewContentContainer.vue deleted file mode 100644 index c2c528f7d..000000000 --- a/databrowser/src/components/quickview/QuickViewCardOverviewContentContainer.vue +++ /dev/null @@ -1,32 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewCardOverviewContentText.vue b/databrowser/src/components/quickview/QuickViewCardOverviewContentText.vue deleted file mode 100644 index b27b69824..000000000 --- a/databrowser/src/components/quickview/QuickViewCardOverviewContentText.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewCardOverviewContentTitle.vue b/databrowser/src/components/quickview/QuickViewCardOverviewContentTitle.vue deleted file mode 100644 index 514a45dd4..000000000 --- a/databrowser/src/components/quickview/QuickViewCardOverviewContentTitle.vue +++ /dev/null @@ -1,20 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewCardOverviewGallery.vue b/databrowser/src/components/quickview/QuickViewCardOverviewGallery.vue deleted file mode 100644 index 374be88a6..000000000 --- a/databrowser/src/components/quickview/QuickViewCardOverviewGallery.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewCommonTypes.ts b/databrowser/src/components/quickview/QuickViewCommonTypes.ts deleted file mode 100644 index a83a5bdc3..000000000 --- a/databrowser/src/components/quickview/QuickViewCommonTypes.ts +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -export enum MediaItemType { - IMAGE = 'IMAGE', -} - -export interface MediaItem { - type: MediaItemType; - url: string; - name: string; -} diff --git a/databrowser/src/components/quickview/QuickViewContactsCard.vue b/databrowser/src/components/quickview/QuickViewContactsCard.vue deleted file mode 100644 index 4e2a86860..000000000 --- a/databrowser/src/components/quickview/QuickViewContactsCard.vue +++ /dev/null @@ -1,110 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewFullscreenGallery.vue b/databrowser/src/components/quickview/QuickViewFullscreenGallery.vue deleted file mode 100644 index 81df63b4b..000000000 --- a/databrowser/src/components/quickview/QuickViewFullscreenGallery.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewMapView.vue b/databrowser/src/components/quickview/QuickViewMapView.vue deleted file mode 100644 index 56f06b329..000000000 --- a/databrowser/src/components/quickview/QuickViewMapView.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewOpeningHoursView.vue b/databrowser/src/components/quickview/QuickViewOpeningHoursView.vue deleted file mode 100644 index 583d294cc..000000000 --- a/databrowser/src/components/quickview/QuickViewOpeningHoursView.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewRecordInfoView.vue b/databrowser/src/components/quickview/QuickViewRecordInfoView.vue deleted file mode 100644 index cce94fe33..000000000 --- a/databrowser/src/components/quickview/QuickViewRecordInfoView.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewTextInfoCard.vue b/databrowser/src/components/quickview/QuickViewTextInfoCard.vue deleted file mode 100644 index 6244beefb..000000000 --- a/databrowser/src/components/quickview/QuickViewTextInfoCard.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - diff --git a/databrowser/src/components/quickview/QuickViewUtils.ts b/databrowser/src/components/quickview/QuickViewUtils.ts deleted file mode 100644 index 1f2261229..000000000 --- a/databrowser/src/components/quickview/QuickViewUtils.ts +++ /dev/null @@ -1,18 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -export const getValueOfLocale = ( - currentLocale: string, - obj: Record -) => { - // Note: function can be moved as utils - const fallbackLocale = 'en'; - - return obj?.[currentLocale] || obj?.[fallbackLocale]; -}; - -export const getTextValue = (value?: String) => { - // Note: function can be moved as utils - return value ?? '/'; -}; diff --git a/databrowser/src/components/quickview/QuickViewWebcamsView.vue b/databrowser/src/components/quickview/QuickViewWebcamsView.vue deleted file mode 100644 index 0bbe82582..000000000 --- a/databrowser/src/components/quickview/QuickViewWebcamsView.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - diff --git a/databrowser/src/config/mobility/stationTypes/stationTypes.sharedView.ts b/databrowser/src/config/mobility/stationTypes/stationTypes.sharedView.ts index fe1e0694f..fb40dc5f1 100644 --- a/databrowser/src/config/mobility/stationTypes/stationTypes.sharedView.ts +++ b/databrowser/src/config/mobility/stationTypes/stationTypes.sharedView.ts @@ -143,7 +143,7 @@ export const stationTypesSharedView = (): properties: [ { title: '', - component: CellComponent.QuickViewMapView, + component: CellComponent.GpsPointMap, objectMapping: { latitude: 'data.0.scoordinate.y', longitude: 'data.0.scoordinate.x', @@ -281,7 +281,7 @@ export const stationTypesSharedView = (): properties: [ { title: '', - component: CellComponent.QuickViewMapView, + component: CellComponent.GpsPointMap, objectMapping: { latitude: 'data.0.pcoordinate.y', longitude: 'data.0.pcoordinate.x', diff --git a/databrowser/src/config/tourism/accommodation/accommodation.quickView.ts b/databrowser/src/config/tourism/accommodation/accommodation.quickView.ts deleted file mode 100644 index b7cfdc272..000000000 --- a/databrowser/src/config/tourism/accommodation/accommodation.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const accommodationQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/accommodationTypes/accommodationTypes.quickView.ts b/databrowser/src/config/tourism/accommodationTypes/accommodationTypes.quickView.ts deleted file mode 100644 index dc1399715..000000000 --- a/databrowser/src/config/tourism/accommodationTypes/accommodationTypes.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const accommodationTypesQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/article/article.quickView.ts b/databrowser/src/config/tourism/article/article.quickView.ts deleted file mode 100644 index 73311d8c4..000000000 --- a/databrowser/src/config/tourism/article/article.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const articleQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/district/district.quickView.ts b/databrowser/src/config/tourism/district/district.quickView.ts deleted file mode 100644 index 1826127fb..000000000 --- a/databrowser/src/config/tourism/district/district.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const districtQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/event/event.quickView.ts b/databrowser/src/config/tourism/event/event.quickView.ts deleted file mode 100644 index 67e31b19a..000000000 --- a/databrowser/src/config/tourism/event/event.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const eventQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/eventShort/eventShort.quickView.ts b/databrowser/src/config/tourism/eventShort/eventShort.quickView.ts deleted file mode 100644 index 5b6410cbd..000000000 --- a/databrowser/src/config/tourism/eventShort/eventShort.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const eventShortQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/eventTopics/eventTopics.quickView.ts b/databrowser/src/config/tourism/eventTopics/eventTopics.quickView.ts deleted file mode 100644 index 53b949f10..000000000 --- a/databrowser/src/config/tourism/eventTopics/eventTopics.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const eventTopicsQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/gastronomy/gastronomy.quickView.ts b/databrowser/src/config/tourism/gastronomy/gastronomy.quickView.ts deleted file mode 100644 index 6b7a27918..000000000 --- a/databrowser/src/config/tourism/gastronomy/gastronomy.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const gastronomyQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/index.ts b/databrowser/src/config/tourism/index.ts index 402378882..c0b56df30 100644 --- a/databrowser/src/config/tourism/index.ts +++ b/databrowser/src/config/tourism/index.ts @@ -96,13 +96,6 @@ export const tourismEmbeddedDatasetConfigs = [ ...config.views?.edit, defaultQueryParams: defaultTourismSingleRecordQueryParameters, }, - quick: - config.views?.quick == null - ? undefined - : { - ...config.views?.quick, - defaultQueryParams: defaultTourismSingleRecordQueryParameters, - }, raw: config.views?.raw == null ? undefined diff --git a/databrowser/src/config/tourism/measuringPoint/measuringPoint.quickView.ts b/databrowser/src/config/tourism/measuringPoint/measuringPoint.quickView.ts deleted file mode 100644 index 8a0527692..000000000 --- a/databrowser/src/config/tourism/measuringPoint/measuringPoint.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const measuringPointQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/metaData/metaData.quickView.ts b/databrowser/src/config/tourism/metaData/metaData.quickView.ts deleted file mode 100644 index b570df69f..000000000 --- a/databrowser/src/config/tourism/metaData/metaData.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const metaDataQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/metaRegion/metaRegion.quickView.ts b/databrowser/src/config/tourism/metaRegion/metaRegion.quickView.ts deleted file mode 100644 index a3e9dbf5a..000000000 --- a/databrowser/src/config/tourism/metaRegion/metaRegion.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const metaRegionQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/municipality/municipality.quickView.ts b/databrowser/src/config/tourism/municipality/municipality.quickView.ts deleted file mode 100644 index 82d25cd3b..000000000 --- a/databrowser/src/config/tourism/municipality/municipality.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const municipalityQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.quickView.ts b/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.quickView.ts deleted file mode 100644 index a2ebf71b1..000000000 --- a/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.quickView.ts +++ /dev/null @@ -1,75 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; -import { CellComponent } from '../../../domain/cellComponents/types'; - -export const odhActivityPoiQuickView: QuickViewConfig = { - topGallery: { - isVisible: true, - objectMapping: { - gallery: 'ImageGallery', - }, - }, - elements: [ - { - component: CellComponent.QuickViewTextInfoCard, - objectMapping: { - header: 'Detail.{language}.Header', - subHeader: 'Detail.{language}.SubHeader', - introText: 'Detail.{language}.IntroText', - }, - }, - { - component: CellComponent.QuickViewContactsCard, - objectMapping: { - companyName: 'ContactInfos.{language}.CompanyName', - givenName: 'ContactInfos.{language}.Givenname', - surname: 'ContactInfos.{language}.Surname', - address: 'ContactInfos.{language}.Address', - city: 'ContactInfos.{language}.City', - zipCode: 'ContactInfos.{language}.ZipCode', - countryName: 'ContactInfos.{language}.CountryName', - email: 'ContactInfos.{language}.Email', - phoneNumber: 'ContactInfos.{language}.Phonenumber', - url: 'ContactInfos.{language}.Url', - }, - }, - { - component: CellComponent.QuickViewWebcamsView, - objectMapping: { - webcamsMediaItems: 'Webcam', - }, - }, - { - component: CellComponent.QuickViewMapView, - objectMapping: { - latitude: 'GpsPoints.position.Latitude', - longitude: 'GpsPoints.position.Longitude', - }, - }, - { - component: CellComponent.QuickViewOpeningHoursView, - arrayMapping: { - pathToParent: 'OperationSchedule', - targetPropertyName: 'operationSchedules', - objectMapping: { - name: 'OperationscheduleName.{language}', - start: 'Start', - stop: 'Stop', - type: 'Type', - operationScheduleTimes: 'OperationScheduleTime', - }, - }, - }, - { - component: CellComponent.QuickViewRecordInfoView, - objectMapping: { - lastUpdate: '_Meta.LastUpdate', - active: 'Active', - odhActive: 'OdhActive', - }, - }, - ], -}; diff --git a/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.views.ts b/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.views.ts index 2eb0f1b1e..4d19867c1 100644 --- a/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.views.ts +++ b/databrowser/src/config/tourism/odhActivityPoi/odhActivityPoi.views.ts @@ -4,12 +4,10 @@ import { odhActivityPoiListView } from './odhActivityPoi.listView'; import { odhActivityPoiSharedView } from './odhActivityPoi.sharedView'; -import { odhActivityPoiQuickView } from './odhActivityPoi.quickView'; export const odhActivityPoiViews = { table: odhActivityPoiListView, detail: odhActivityPoiSharedView(), edit: odhActivityPoiSharedView(), new: odhActivityPoiSharedView(), - quick: odhActivityPoiQuickView, }; diff --git a/databrowser/src/config/tourism/odhActivityPoiTypes/odhActivityPoiTypes.quickView.ts b/databrowser/src/config/tourism/odhActivityPoiTypes/odhActivityPoiTypes.quickView.ts deleted file mode 100644 index 31d59c8ba..000000000 --- a/databrowser/src/config/tourism/odhActivityPoiTypes/odhActivityPoiTypes.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const odhActivityPoiTypesQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/publishedOn/publishedOn.quickView.ts b/databrowser/src/config/tourism/publishedOn/publishedOn.quickView.ts deleted file mode 100644 index 095afb3f6..000000000 --- a/databrowser/src/config/tourism/publishedOn/publishedOn.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const publishedOnQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/pushResponse/pushResponse.quickView.ts b/databrowser/src/config/tourism/pushResponse/pushResponse.quickView.ts deleted file mode 100644 index 318b08235..000000000 --- a/databrowser/src/config/tourism/pushResponse/pushResponse.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const pushResponseQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/region/region.quickView.ts b/databrowser/src/config/tourism/region/region.quickView.ts deleted file mode 100644 index 14fbd68a5..000000000 --- a/databrowser/src/config/tourism/region/region.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const regionQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/skiArea/skiArea.quickView.ts b/databrowser/src/config/tourism/skiArea/skiArea.quickView.ts deleted file mode 100644 index 21b871f5a..000000000 --- a/databrowser/src/config/tourism/skiArea/skiArea.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const skiAreaQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/skiRegion/skiRegion.quickView.ts b/databrowser/src/config/tourism/skiRegion/skiRegion.quickView.ts deleted file mode 100644 index 7d9634071..000000000 --- a/databrowser/src/config/tourism/skiRegion/skiRegion.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const skiRegionQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/snowReport/snowReport.quickView.ts b/databrowser/src/config/tourism/snowReport/snowReport.quickView.ts deleted file mode 100644 index 1cad8df13..000000000 --- a/databrowser/src/config/tourism/snowReport/snowReport.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const snowReportQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/source/source.quickView.ts b/databrowser/src/config/tourism/source/source.quickView.ts deleted file mode 100644 index 9e02c6ee3..000000000 --- a/databrowser/src/config/tourism/source/source.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const sourceQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/tourismAssociationList/tourismAssociationList.quickView.ts b/databrowser/src/config/tourism/tourismAssociationList/tourismAssociationList.quickView.ts deleted file mode 100644 index 973152f9b..000000000 --- a/databrowser/src/config/tourism/tourismAssociationList/tourismAssociationList.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const tourismAssociationListQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/venue/venue.quickView.ts b/databrowser/src/config/tourism/venue/venue.quickView.ts deleted file mode 100644 index 410964fd2..000000000 --- a/databrowser/src/config/tourism/venue/venue.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const venueQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/weather/weather.quickView.ts b/databrowser/src/config/tourism/weather/weather.quickView.ts deleted file mode 100644 index 6e1bbef11..000000000 --- a/databrowser/src/config/tourism/weather/weather.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const weatherQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/weatherDistrict/weatherDistrict.quickView.ts b/databrowser/src/config/tourism/weatherDistrict/weatherDistrict.quickView.ts deleted file mode 100644 index 41660ad44..000000000 --- a/databrowser/src/config/tourism/weatherDistrict/weatherDistrict.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const weatherDistrictQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/weatherForecast/weatherForecast.quickView.ts b/databrowser/src/config/tourism/weatherForecast/weatherForecast.quickView.ts deleted file mode 100644 index 8a9a796eb..000000000 --- a/databrowser/src/config/tourism/weatherForecast/weatherForecast.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const weatherForecastQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/weatherInfo/weatherInfo.quickView.ts b/databrowser/src/config/tourism/weatherInfo/weatherInfo.quickView.ts deleted file mode 100644 index 85f18ee54..000000000 --- a/databrowser/src/config/tourism/weatherInfo/weatherInfo.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const weatherInfoQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/config/tourism/weatherRealTime/weatherRealTime.quickView.ts b/databrowser/src/config/tourism/weatherRealTime/weatherRealTime.quickView.ts deleted file mode 100644 index 793915f62..000000000 --- a/databrowser/src/config/tourism/weatherRealTime/weatherRealTime.quickView.ts +++ /dev/null @@ -1,9 +0,0 @@ -// SPDX-FileCopyrightText: NOI Techpark -// -// SPDX-License-Identifier: AGPL-3.0-or-later - -import { QuickViewConfig } from '../../../domain/datasets/config/types'; - -export const weatherRealTimeQuickView: QuickViewConfig = { - elements: [], -}; diff --git a/databrowser/src/components/quickview/QuickViewCardBase.vue b/databrowser/src/domain/cellComponents/components/cells/editGpsInfoCell/EditGpsPointBase.vue similarity index 94% rename from databrowser/src/components/quickview/QuickViewCardBase.vue rename to databrowser/src/domain/cellComponents/components/cells/editGpsInfoCell/EditGpsPointBase.vue index 1c890cf07..e4c1d2551 100644 --- a/databrowser/src/components/quickview/QuickViewCardBase.vue +++ b/databrowser/src/domain/cellComponents/components/cells/editGpsInfoCell/EditGpsPointBase.vue @@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/databrowser/src/components/quickview/QuickViewDayInfo.vue b/databrowser/src/domain/cellComponents/components/cells/operationScheduleCell/OperationScheduleDayInfo.vue similarity index 83% rename from databrowser/src/components/quickview/QuickViewDayInfo.vue rename to databrowser/src/domain/cellComponents/components/cells/operationScheduleCell/OperationScheduleDayInfo.vue index 56ca02fb0..f22dd422f 100644 --- a/databrowser/src/components/quickview/QuickViewDayInfo.vue +++ b/databrowser/src/domain/cellComponents/components/cells/operationScheduleCell/OperationScheduleDayInfo.vue @@ -23,7 +23,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later {{ d.end ?? ' ' }} {{ - t('datasets.quickView.closed') + t('components.operationSchedule.closed') }} @@ -32,8 +32,8 @@ SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/databrowser/src/domain/datasets/ui/tableView/TableContent.vue b/databrowser/src/domain/datasets/ui/tableView/TableContent.vue index 69488c092..19be6ee9f 100644 --- a/databrowser/src/domain/datasets/ui/tableView/TableContent.vue +++ b/databrowser/src/domain/datasets/ui/tableView/TableContent.vue @@ -69,7 +69,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later @@ -101,7 +100,6 @@ const props = withDefaults( cols: Column[]; showDetail: boolean; showEdit: boolean; - showQuick: boolean; showDelete: boolean; datasetDomain: DatasetDomain | undefined; }>(), @@ -114,9 +112,7 @@ const { rows, cols } = toRefs(props); const { selectedRowIndex, rowClicked, rowDblClicked } = useTableRowSelection(rows); -const showLinkColumn = computed( - () => props.showDetail || props.showEdit || props.showQuick -); +const showLinkColumn = computed(() => props.showDetail || props.showEdit); const getHasDeprecationInfo = (col: Column) => col.deprecationInfo && col.deprecationInfo.length > 0; diff --git a/databrowser/src/domain/datasets/ui/tableView/TableLinks.vue b/databrowser/src/domain/datasets/ui/tableView/TableLinks.vue index ad1459db5..c3184031f 100644 --- a/databrowser/src/domain/datasets/ui/tableView/TableLinks.vue +++ b/databrowser/src/domain/datasets/ui/tableView/TableLinks.vue @@ -6,17 +6,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later