@eeacms/volto-clms-theme 1.0.63 → 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +148 -3
- package/jest-addon.config.js +5 -0
- package/package.json +20 -17
- package/src/actions/datasets_by_uid/datasets_by_uid.test.js +14 -0
- package/src/actions/downloadtool/downloadtool.test.js +54 -0
- package/src/actions/downloadtool/get_downloadtool.js +22 -1
- package/src/actions/extra_breadcrumbs/extra_breadcrumb.test.js +16 -0
- package/src/actions/format_conversion_table/format_conversion_table.test.js +16 -0
- package/src/actions/geonetwork/import_geonetwork.test.js +15 -0
- package/src/actions/index.js +2 -0
- package/src/actions/meeting/meeting.test.js +41 -0
- package/src/actions/newsletter/get_newsletter_subscribers.test.js +14 -0
- package/src/actions/projections/get_projections.test.js +13 -0
- package/src/actions/registry/registry.test.js +15 -0
- package/src/actions/subscription/post_subscription.js +0 -3
- package/src/actions/subscription/post_subscription.test.js +64 -0
- package/src/actions/tokens/tokens.test.js +39 -0
- package/src/actions/userschema/userschema.test.js +14 -0
- package/src/components/Blocks/CclButtonBlock/CclButtonBlockEdit.test.jsx +123 -0
- package/src/components/Blocks/CclButtonBlock/CclButtonBlockView.jsx +8 -11
- package/src/components/Blocks/CclButtonBlock/CclButtonBlockView.test.jsx +42 -0
- package/src/components/Blocks/CclButtonBlock/__snapshots__/CclButtonBlockEdit.test.jsx.snap +27 -0
- package/src/components/Blocks/CclButtonBlock/__snapshots__/CclButtonBlockView.test.jsx.snap +56 -0
- package/src/components/Blocks/CclCardBlock/CclCardBlockEdit.jsx +8 -8
- package/src/components/Blocks/CclCardBlock/CclCardBlockEdit.test.jsx +159 -0
- package/src/components/Blocks/CclCardBlock/CclCardBlockView.test.jsx +61 -0
- package/src/components/Blocks/CclCardBlock/__snapshots__/CclCardBlockEdit.test.jsx.snap +45 -0
- package/src/components/Blocks/CclCardContainerBlock/CclCardContainerBlockEdit.jsx +8 -12
- package/src/components/Blocks/CclCardContainerBlock/CclCardContainerBlockView.jsx +3 -3
- package/src/components/Blocks/CclContextNavigationBlock/CclContextNavigationBlockEdit.test.jsx +42 -0
- package/src/components/Blocks/CclContextNavigationBlock/CclContextNavigationBlockView.test.jsx +42 -0
- package/src/components/Blocks/CclContextNavigationBlock/__snapshots__/CclContextNavigationBlockEdit.test.jsx.snap +12 -0
- package/src/components/Blocks/CclContextNavigationBlock/__snapshots__/CclContextNavigationBlockView.test.jsx.snap +3 -0
- package/src/components/Blocks/CclHomeBgImageBlock/CclHomeImageEditor.jsx +43 -41
- package/src/components/Blocks/CclHomeProductsBlock/CclHomeProductsBlockView.test.jsx +54 -0
- package/src/components/Blocks/CclHomeProductsBlock/__snapshots__/CclHomeProductsBlockView.test.jsx.snap +57 -0
- package/src/components/Blocks/CclHomeSearchBlock/CclHomeSearchBlockEdit.jsx +9 -10
- package/src/components/Blocks/CclHomeSearchBlock/CclHomeSearchBlockView.jsx +28 -9
- package/src/components/Blocks/CclHomeSearchBlock/CclHomeSearchBlockView.test.jsx +113 -0
- package/src/components/Blocks/CclHomeSearchBlock/__snapshots__/CclHomeSearchBlockView.test.jsx.snap +310 -0
- package/src/components/Blocks/CclHomeUsersBlock/CclHomeUserBlockView.test.jsx +61 -0
- package/src/components/Blocks/CclHomeUsersBlock/CclHomeUsersBlockEdit.jsx +180 -146
- package/src/components/Blocks/CclHomeUsersBlock/CclHomeUsersBlockView.jsx +8 -1
- package/src/components/Blocks/CclHomeUsersBlock/HomeUsersSchema.js +0 -1
- package/src/components/Blocks/CclRelatedListingBlock/CclRelatedListingEdit.jsx +4 -6
- package/src/components/Blocks/CclRelatedListingBlock/CclRelatedListingView.jsx +26 -23
- package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselEdit.jsx +4 -10
- package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselView.jsx +2 -6
- package/src/components/Blocks/CclUseCaseList/CclUseCaseListEdit.jsx +16 -13
- package/src/components/Blocks/CclUseCaseList/CclUseCaseListView.jsx +17 -19
- package/src/components/Blocks/CclUseCaseList/utils.js +1 -1
- package/src/components/Blocks/CustomTemplates/VoltoArcgisBlock/CclMapMenu.jsx +2 -2
- package/src/components/Blocks/CustomTemplates/VoltoFormBlock/customIdFieldSchema.js +2 -2
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingCards.jsx +0 -3
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingCards.test.jsx +247 -0
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/AccordionFacet.jsx +82 -0
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/RightModalFacets.jsx +37 -31
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/WithType.jsx +8 -0
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/index.js +3 -3
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclCarouselView.jsx +17 -48
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclTabsView.jsx +11 -55
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclVerticalFaqTabsView.jsx +17 -17
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclVerticalTabsView.jsx +24 -15
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/RoutingHOC.jsx +18 -48
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/TabsWidget.jsx +11 -8
- package/src/components/Blocks/customBlocks.js +57 -155
- package/src/components/Blocks/{CclCardContainerBlock/utils.js → utils.js} +0 -0
- package/src/components/CLMSDatasetDetailView/BoundingBoxComponent.test.jsx +27 -0
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +14 -21
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.test.jsx +194 -0
- package/src/components/CLMSDatasetDetailView/ContactComponent.test.jsx +34 -0
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +155 -101
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.test.jsx +63 -0
- package/src/components/CLMSDatasetDetailView/DistributionInfoComponent.test.jsx +24 -0
- package/src/components/CLMSDatasetDetailView/DownloadDataSetContent.jsx +1 -13
- package/src/components/CLMSDatasetDetailView/DownloadDataSetContent.test.jsx +136 -0
- package/src/components/CLMSDatasetDetailView/index.js +0 -1
- package/src/components/CLMSDownloadCartView/CLMSCartContent.jsx +202 -144
- package/src/components/CLMSDownloadCartView/CLMSCartContent.test.jsx +5 -0
- package/src/components/CLMSDownloadCartView/CLMSDownloadCartView.jsx +39 -45
- package/src/components/CLMSDownloadCartView/CLMSDownloadCartView.test.jsx +5 -0
- package/src/components/CLMSDownloadCartView/cartUtils.js +9 -7
- package/src/components/CLMSDownloadCartView/cartUtils.test.js +5 -0
- package/src/components/CLMSDownloadCartView/conversion.js +1 -2
- package/src/components/CLMSDownloadCartView/conversion.test.js +5 -0
- package/src/components/CLMSDownloadableFileView/CLMSDownloadableFile.test.jsx +5 -0
- package/src/components/CLMSDownloadableFileView/CLMSDownloadableFileView.jsx +10 -1
- package/src/components/CLMSDownloadsView/CLMSDownloadTasks.jsx +196 -0
- package/src/components/CLMSDownloadsView/CLMSDownloadTasks.test.jsx +5 -0
- package/src/components/CLMSDownloadsView/CLMSDownloadsView.jsx +141 -0
- package/src/components/CLMSDownloadsView/CLMSDownloadsView.test.jsx +5 -0
- package/src/components/CLMSDownloadsView/FileCard.jsx +231 -0
- package/src/components/CLMSDownloadsView/FileCard.test.jsx +5 -0
- package/src/components/CLMSDownloadsView/filecard.less +21 -0
- package/src/components/CLMSMapViewerView/CLMSMapViewerView.jsx +3 -3
- package/src/components/CLMSMapViewerView/CLMSMapViewerView.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingEmailView.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingEmailsView.jsx +6 -5
- package/src/components/CLMSMeetingView/CLMSMeetingEmailsView.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingSubscriberVew.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingSubscriberView.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingSubscribersView.test.jsx +5 -0
- package/src/components/CLMSMeetingView/CLMSMeetingView.jsx +49 -36
- package/src/components/CLMSNewsItemView/CLMSNewsItemView.test.jsx +44 -0
- package/src/components/CLMSProfileView/CLMSApiTokensView.test.jsx +5 -0
- package/src/components/CLMSProfileView/CLMSNewsletterSubscriberView.test.jsx +5 -0
- package/src/components/CLMSProfileView/CLMSProfileView.jsx +6 -3
- package/src/components/CLMSProfileView/CLMSProfileView.test.jsx +5 -0
- package/src/components/CLMSProfileView/CLMSUserProfileView.test.jsx +5 -0
- package/src/components/CLMSSubscriptionView/ConfirmSubscriptionView.jsx +18 -12
- package/src/components/CLMSSubscriptionView/ConfirmSubscriptionView.test.jsx +5 -0
- package/src/components/CLMSSubscriptionView/SubscriptionView.jsx +33 -33
- package/src/components/CLMSSubscriptionView/SubscriptionView.test.jsx +5 -0
- package/src/components/CLMSSubscriptionView/subscription_utils.test.js +5 -0
- package/src/components/CclButton/CclButton.jsx +4 -3
- package/src/components/CclButton/CclButton.test.js +76 -0
- package/src/components/CclCard/CclCard.jsx +5 -34
- package/src/components/CclCard/CclCard.test.jsx +133 -0
- package/src/components/CclCitation/CclCitation.test.jsx +11 -0
- package/src/components/CclCitation/__snapshots__/CclCitation.test.jsx.snap +14 -0
- package/src/components/CclDownloadTable/CclDownloadTable.jsx +145 -40
- package/src/components/CclDownloadTable/CclDownloadTable.test.jsx +5 -0
- package/src/components/CclDownloadTable/download-table.less +14 -1
- package/src/components/CclDownloadTable/modkData.test.js +5 -0
- package/src/components/CclExpandableFilter/CclExpandableFilter.test.jsx +60 -0
- package/src/components/CclFiltersModal/CclFiltersModal.test.jsx +5 -0
- package/src/components/CclFooterColumn/CclFooterColumn.test.jsx +5 -0
- package/src/components/CclInfoDescription/CclInfoContainer.test.js +16 -0
- package/src/components/CclInfoDescription/CclInfoDescription.test.js +18 -0
- package/src/components/CclLanguageSelector/CclLanguageSelector.jsx +80 -109
- package/src/components/CclLanguageSelector/CclLanguageSelector.test.jsx +117 -0
- package/src/components/CclLanguageSelector/__snapshots__/CclLanguageSelector.test.jsx.snap +43 -0
- package/src/components/CclLoginModal/CclLoginModal.jsx +3 -1
- package/src/components/CclLoginModal/CclLoginModal.test.jsx +5 -0
- package/src/components/CclModal/CclModal.test.js +71 -0
- package/src/components/CclTab/CclTab.jsx +8 -3
- package/src/components/CclTab/CclTab.test.jsx +55 -0
- package/src/components/CclTab/CclTabs.jsx +10 -11
- package/src/components/CclTab/CclTabs.test.jsx +5 -0
- package/src/components/CclTopMainMenu/CclFooterMenu.jsx +4 -4
- package/src/components/CclTopMainMenu/CclFooterMenu.test.jsx +5 -0
- package/src/components/CclTopMainMenu/CclTopMainMenu.jsx +6 -6
- package/src/components/CclTopMainMenu/CclTopMainMenu.test.jsx +5 -0
- package/src/components/CclTopMainMenu/multilingualPath.js +1 -3
- package/src/components/CclTopMainMenu/multilingualPath.test.js +5 -0
- package/src/components/CclUtils/StringToHTML.test.jsx +5 -0
- package/src/components/CclVerticalFilterMenu/CclVerticalFilterMenu.jsx +2 -2
- package/src/components/CclVerticalFilterMenu/CclVerticalFilterMenu.test.jsx +30 -0
- package/src/components/Widgets/BoundingWidget.test.jsx +5 -0
- package/src/components/Widgets/ContactWidget.test.jsx +5 -0
- package/src/components/Widgets/DistributionInfoWidget.test.jsx +5 -0
- package/src/components/Widgets/DownloadableFilesWidget.test.jsx +5 -0
- package/src/components/Widgets/GeonetworkIdentifiersWidget.test.jsx +5 -0
- package/src/components/Widgets/MapLayersWidget.jsx +8 -1
- package/src/components/Widgets/MapLayersWidget.test.jsx +5 -0
- package/src/components/Widgets/TextLinkWidget.test.jsx +5 -0
- package/src/customizations/volto/components/manage/Toolbar/Toolbar.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Breadcrumbs/Breadcrumbs.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +58 -34
- package/src/customizations/volto/components/theme/Footer/Footer.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +57 -71
- package/src/customizations/volto/components/theme/Header/Header.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Logo/Logo.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Logout/Logout.jsx +74 -0
- package/src/customizations/volto/components/theme/Logout/Logout.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Navigation/ContextNavigation.test.jsx +5 -0
- package/src/customizations/volto/components/theme/Navigation/Navigation.test.jsx +5 -0
- package/src/customizations/volto/components/theme/SearchWidget/SerachWidget.test.jsx +5 -0
- package/src/index.js +9 -5
- package/src/reducers/datasets_by_uid/datasets_by_uid.test.js +53 -0
- package/src/reducers/downloadtool/downloadtool_reducer.js +34 -66
- package/src/reducers/downloadtool/downloadtool_reducer.test.js +340 -0
- package/src/reducers/downloadtool/nutsnames_reducer.js +45 -0
- package/src/reducers/downloadtool/nutsnames_reducer.test.js +61 -0
- package/src/reducers/extra_breadcrumbs/extra_breadcrumb_reducer.js +21 -1
- package/src/reducers/extra_breadcrumbs/extra_breadcrumb_reducer.test.js +51 -0
- package/src/reducers/geonetwork/import_geonetwork_reducer.test.js +60 -0
- package/src/reducers/index.js +4 -4
- package/src/reducers/meeting/meeting_register_reducer.test.js +82 -0
- package/src/reducers/meeting/meeting_subscribers_reducer.js +4 -2
- package/src/reducers/meeting/meeting_subscribers_reducer.test.js +149 -0
- package/src/reducers/newsletter/get_newsletter_reducer.test.js +75 -0
- package/src/reducers/registry/registry.test.js +74 -0
- package/src/reducers/subscription/subscription_reducer.test.js +71 -0
- package/src/reducers/tokens/tokens.test.js +221 -0
- package/src/reducers/userschema/userschema.js +1 -1
- package/src/reducers/userschema/userschema.test.js +63 -0
- package/theme/clms/css/carousel.css +1 -1
- package/theme/clms/css/header.css +4 -0
- package/theme/clms/css/home.css +4 -4
- package/theme/clms/css/styles.less +17 -4
- package/src/components/Blocks/CclHomeUsersBlock/utils.js +0 -27
- package/src/components/Blocks/CclProductLeftMenu/CclProductLeftMenuEdit.jsx +0 -124
- package/src/components/Blocks/CclProductLeftMenu/CclProductLeftMenuView.jsx +0 -48
- package/src/components/Blocks/CclProductLeftMenu/LeftMenuSchema.js +0 -78
- package/src/components/Blocks/CclProductLeftMenu/utils.js +0 -25
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/AccordionCheckboxFacet.jsx +0 -56
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/AccordionLabelFacet.jsx +0 -58
- package/src/components/CLMSDatasetDetailView/MetadataContent.jsx +0 -255
- package/src/components/CLMSDownloadCartView/CLMSTasksInProgress.jsx +0 -238
- package/src/components/CLMSEventView/CLMSEventView.jsx +0 -53
- package/src/components/CclTable/CclTable.jsx +0 -95
- package/src/components/CclTable/table.less +0 -42
- package/src/i18n.js +0 -183
package/CHANGELOG.md
CHANGED
|
@@ -4,9 +4,154 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [1.0.67](https://github.com/eea/volto-clms-theme/compare/1.0.66...1.0.67)
|
|
8
|
+
|
|
9
|
+
- code smells [`b07ed5d`](https://github.com/eea/volto-clms-theme/commit/b07ed5d8101981349d768e47553277d1f049eed5)
|
|
10
|
+
- small fix [`3fc4119`](https://github.com/eea/volto-clms-theme/commit/3fc4119394c6fc0782d41878e153bff79060605d)
|
|
11
|
+
- all initial test created [`240fc74`](https://github.com/eea/volto-clms-theme/commit/240fc74514051740098b026cc0ad834d3a3a1763)
|
|
12
|
+
- render loading component while libraries accordion is loading [`d7955ae`](https://github.com/eea/volto-clms-theme/commit/d7955aebabc3b969a7753a89e54e63f58799dd1e)
|
|
13
|
+
- fix test imports [`3c61991`](https://github.com/eea/volto-clms-theme/commit/3c61991b8559c508ec009d2a4ebdc8bdb704a985)
|
|
14
|
+
- hide searchbox when the results are less than 10 [`eedda03`](https://github.com/eea/volto-clms-theme/commit/eedda03b4d752f2c54714dbb97c624eba8332494)
|
|
15
|
+
- downloadable files modifications [`7bdf690`](https://github.com/eea/volto-clms-theme/commit/7bdf6909693640d33e4087281d49c8497cf65c02)
|
|
16
|
+
- downloadable files modifications [`16b86fd`](https://github.com/eea/volto-clms-theme/commit/16b86fd056cc2790335505f80fc67d37c674f260)
|
|
17
|
+
- redesign dataset view [`05b2688`](https://github.com/eea/volto-clms-theme/commit/05b2688d0d490c35fe65810e0a5497712948db24)
|
|
18
|
+
|
|
19
|
+
#### [1.0.66](https://github.com/eea/volto-clms-theme/compare/1.0.65...1.0.66)
|
|
20
|
+
|
|
21
|
+
> 9 February 2022
|
|
22
|
+
|
|
23
|
+
- Add tests [`#201`](https://github.com/eea/volto-clms-theme/pull/201)
|
|
24
|
+
- Setup testing [`#199`](https://github.com/eea/volto-clms-theme/pull/199)
|
|
25
|
+
- Setup testing [`#200`](https://github.com/eea/volto-clms-theme/pull/200)
|
|
26
|
+
- Bugs n improvements [`#198`](https://github.com/eea/volto-clms-theme/pull/198)
|
|
27
|
+
- Header and table styles [`#197`](https://github.com/eea/volto-clms-theme/pull/197)
|
|
28
|
+
- Develop [`#196`](https://github.com/eea/volto-clms-theme/pull/196)
|
|
29
|
+
- Trello issues [`#195`](https://github.com/eea/volto-clms-theme/pull/195)
|
|
30
|
+
- testing some components [`#41`](https://github.com/eea/volto-clms-theme/pull/41)
|
|
31
|
+
- Test [`#38`](https://github.com/eea/volto-clms-theme/pull/38)
|
|
32
|
+
- remove default carousel arrows [`ff257c8`](https://github.com/eea/volto-clms-theme/commit/ff257c8a36963e9a07f976357b0d0e05116f1993)
|
|
33
|
+
- activate renamed tests [`17f91d6`](https://github.com/eea/volto-clms-theme/commit/17f91d649b5797c47fb438c577ffdf2cdf042d72)
|
|
34
|
+
- add transformIgnorePatterns to jest-addon.config.js [`f290905`](https://github.com/eea/volto-clms-theme/commit/f290905a8f2476953a043961f80ea0e81734c7a9)
|
|
35
|
+
- comment tests [`8a16439`](https://github.com/eea/volto-clms-theme/commit/8a164398992bddb8edd1030cc2b2a4538d5c3215)
|
|
36
|
+
- upgrade volto-clms-utils [`fe54d62`](https://github.com/eea/volto-clms-theme/commit/fe54d62c40b3477fcf97a46baa3f4f4e70c8bd6a)
|
|
37
|
+
- add volto-clms-utils alias to jest modules [`f336eca`](https://github.com/eea/volto-clms-theme/commit/f336ecab808d856460293919d69524e8b5d92406)
|
|
38
|
+
- add @wojtekmaj/enzyme-adapter-react-17 to use enzyme with react 17 [`0274055`](https://github.com/eea/volto-clms-theme/commit/0274055622745b56392679e14b14e4eab62ad8c8)
|
|
39
|
+
- fix tests [`cb5c45a`](https://github.com/eea/volto-clms-theme/commit/cb5c45a592d402c5d58b08979c1e34e992881efe)
|
|
40
|
+
- fix component tests [`5ff51ce`](https://github.com/eea/volto-clms-theme/commit/5ff51ce8ec08e56fab452480ecedc54d24574eb3)
|
|
41
|
+
- fix reducer tests [`63484e5`](https://github.com/eea/volto-clms-theme/commit/63484e5c8480dad453aff42486fc9441f2b052d9)
|
|
42
|
+
- actions tests fix [`f83fa7c`](https://github.com/eea/volto-clms-theme/commit/f83fa7ce29b7e04b70438a2a0408b581672da12e)
|
|
43
|
+
- delete removed components tests [`1f3aaf1`](https://github.com/eea/volto-clms-theme/commit/1f3aaf14ecf76ea6680c47916dca0455aa46bdba)
|
|
44
|
+
- test up to 59% [`52751d4`](https://github.com/eea/volto-clms-theme/commit/52751d4237c26e9319e1c5d75fa2b39d7d05cee3)
|
|
45
|
+
- test coverage up to 56% [`78d3dcb`](https://github.com/eea/volto-clms-theme/commit/78d3dcb264b38e690e7257a8165cc091dbd37752)
|
|
46
|
+
- remove unused CclTable component [`76231ad`](https://github.com/eea/volto-clms-theme/commit/76231adc2a7cd7ea5e9464cf4b9c95bbcc7e9952)
|
|
47
|
+
- Mobile menu close icon [`1c06ef0`](https://github.com/eea/volto-clms-theme/commit/1c06ef0215b751af4414277fc72215cdfc11db7b)
|
|
48
|
+
- remove duplicated code Header [`f74f07a`](https://github.com/eea/volto-clms-theme/commit/f74f07aeaeb4a2ee31a20aace8ac4bf88a3c844d)
|
|
49
|
+
- add new field to hide some layers [`fe18c8f`](https://github.com/eea/volto-clms-theme/commit/fe18c8f64188799a007d56bffbd3d6bc2e985f7b)
|
|
50
|
+
- Download filecards [`f60d1a0`](https://github.com/eea/volto-clms-theme/commit/f60d1a0783aa1a9d98aa702f26eab1ce6ef22a6f)
|
|
51
|
+
- remove default Event view [`862dd90`](https://github.com/eea/volto-clms-theme/commit/862dd90752c2917ac1f4f179cad1cf431f274eeb)
|
|
52
|
+
- remove duplicated lines customBlocks [`7227e3f`](https://github.com/eea/volto-clms-theme/commit/7227e3fa2635cefea371d3829ea7e1f87120c4b4)
|
|
53
|
+
- remove duplicated code on languageselector [`8de39e6`](https://github.com/eea/volto-clms-theme/commit/8de39e6f989f62bf7df26ecd3850609ff4d990d3)
|
|
54
|
+
- new facet component and HOC to send the type [`07c3794`](https://github.com/eea/volto-clms-theme/commit/07c379424ac396d9a646b25cda272f7d3e4d2f90)
|
|
55
|
+
- Facets unification [`139e198`](https://github.com/eea/volto-clms-theme/commit/139e1985eec07148516875874c2be21cc3a41f41)
|
|
56
|
+
- remove unused cclproductleftmenu block [`123737c`](https://github.com/eea/volto-clms-theme/commit/123737c4ee470e6ba6a6188466690a33d2ca55ed)
|
|
57
|
+
- remove duplicated lines [`dc27ce7`](https://github.com/eea/volto-clms-theme/commit/dc27ce72b1fcbbe72da6aaff113733f3a131813d)
|
|
58
|
+
- ESLint fix [`21cda52`](https://github.com/eea/volto-clms-theme/commit/21cda52c57b68fb63dc4b29494cd86d8d5768e1c)
|
|
59
|
+
- Table styles [`05f61a3`](https://github.com/eea/volto-clms-theme/commit/05f61a3ef3572c46b33c8645ac1d3755ce932bbf)
|
|
60
|
+
- move duplicated utils [`ece1afa`](https://github.com/eea/volto-clms-theme/commit/ece1afa2aeac5a4f3c12e16444a8ea0c3b9bcc57)
|
|
61
|
+
- sonarqube [`e944edb`](https://github.com/eea/volto-clms-theme/commit/e944edb6c629a8fc1fa4c5d461212c1d12e22d81)
|
|
62
|
+
- sonarqube bugfixes [`cae76a6`](https://github.com/eea/volto-clms-theme/commit/cae76a603974f83421f9f09d58409117e3b0a6b1)
|
|
63
|
+
- Header improvements [`8d45a97`](https://github.com/eea/volto-clms-theme/commit/8d45a9729ee29a8915d2fd859a7eae17b14113ae)
|
|
64
|
+
- sonarqube CclUseCaseList Edit and View [`0e58b9a`](https://github.com/eea/volto-clms-theme/commit/0e58b9af3578785609a71751987ed26845046254)
|
|
65
|
+
- sonarqube CclHomeImageEditor [`e7819a5`](https://github.com/eea/volto-clms-theme/commit/e7819a518372f0122580637a60dc1f2965980466)
|
|
66
|
+
- sonarqube minor [`2b3985d`](https://github.com/eea/volto-clms-theme/commit/2b3985d61a31ef8888c4f1be8b7769bd597856a9)
|
|
67
|
+
- sonarqube minors [`53e7b31`](https://github.com/eea/volto-clms-theme/commit/53e7b31999ad42d895ea0b1a4b7a3a552726459b)
|
|
68
|
+
- sonarqube [`01f4dfe`](https://github.com/eea/volto-clms-theme/commit/01f4dfeaab602e07c3085ae15c87d40e7055fd07)
|
|
69
|
+
- sonarqube [`bfacc2e`](https://github.com/eea/volto-clms-theme/commit/bfacc2e988223f1b28fb05e9275234f408d94c83)
|
|
70
|
+
- sonarqube major [`2ef2392`](https://github.com/eea/volto-clms-theme/commit/2ef2392fd857111f86d7d01e3e39acadebe8c48a)
|
|
71
|
+
- sonarqube and RoutingHOC uneeded code [`3df5ecf`](https://github.com/eea/volto-clms-theme/commit/3df5ecff2bf3a3362e03471b6d0b16aa0e0cac61)
|
|
72
|
+
- sonarqube [`cff1ff6`](https://github.com/eea/volto-clms-theme/commit/cff1ff6bab4b089d2c4dc25c9d85e6ac80d3990e)
|
|
73
|
+
- sonarqube [`813d085`](https://github.com/eea/volto-clms-theme/commit/813d085a062b65e5652c185e91469181184d986a)
|
|
74
|
+
- sonarqube [`c70c021`](https://github.com/eea/volto-clms-theme/commit/c70c021d1a88e50415006b6903fcbe1b63766504)
|
|
75
|
+
- remove unneeded useEffect [`3981f33`](https://github.com/eea/volto-clms-theme/commit/3981f335e65ba455571930f9f43a510c1a83ac40)
|
|
76
|
+
- sonarqube [`9a0e9a1`](https://github.com/eea/volto-clms-theme/commit/9a0e9a1d7390610e97d3da48998cbae27ab2a4d7)
|
|
77
|
+
- bugfixes [`5f659f9`](https://github.com/eea/volto-clms-theme/commit/5f659f935e7e0b4c409fd421349e6b972ba71f74)
|
|
78
|
+
- code issues [`2d64947`](https://github.com/eea/volto-clms-theme/commit/2d6494713403939772c5f6779a503c169113fa32)
|
|
79
|
+
- remove unused setActiveTab [`392986e`](https://github.com/eea/volto-clms-theme/commit/392986ede8b39059fe28c00b586def25896c6fdd)
|
|
80
|
+
- conflict resolved [`5b90061`](https://github.com/eea/volto-clms-theme/commit/5b900617c3df49245a506627d67c6b4b2300267d)
|
|
81
|
+
- conflict resolved [`c626459`](https://github.com/eea/volto-clms-theme/commit/c626459dc0557766261a1df7d4c3f12f0f660fcd)
|
|
82
|
+
- BreadCrumb removed from technical library view and home page dataset search block now working [`23d233f`](https://github.com/eea/volto-clms-theme/commit/23d233fb76997fea8ce7ee862338aef76b12a0d1)
|
|
83
|
+
- carousel style fixed, 'came_from' added to login modal EULogin button, and omelette log out view overrided [`9e31782`](https://github.com/eea/volto-clms-theme/commit/9e31782782f10ab9decac964d1a10f8c2432e5d9)
|
|
84
|
+
- versions [`05bfc33`](https://github.com/eea/volto-clms-theme/commit/05bfc335411f988bf04981c7bb012f0dd38b1929)
|
|
85
|
+
- inputValue initialiced to false [`5d082db`](https://github.com/eea/volto-clms-theme/commit/5d082dbb6690ea869b32b4bf034c2590f6c698d2)
|
|
86
|
+
- code cleaning [`0bd34cc`](https://github.com/eea/volto-clms-theme/commit/0bd34ccda06b8caf68fda8bce421d4ab1d9b3f07)
|
|
87
|
+
- personal data protection link changed to react-router-dom Link [`cb96f16`](https://github.com/eea/volto-clms-theme/commit/cb96f16cd64e94f09b2bea7bbd4c596bd7783c43)
|
|
88
|
+
- footer link to personal data protection fixed [`e046e51`](https://github.com/eea/volto-clms-theme/commit/e046e51574e070b657620907134e171faa0f14b7)
|
|
89
|
+
- code cleaning [`de99d74`](https://github.com/eea/volto-clms-theme/commit/de99d741c9294521ee87995782bd5b7e38407689)
|
|
90
|
+
- event listing change, newsletter subscription working again from footer and language selector temporally removed from header [`aa02604`](https://github.com/eea/volto-clms-theme/commit/aa0260483c685dcfac2e46caca41a855d0bf8454)
|
|
91
|
+
- react-redux store in the CLMSDataset test [`df8a921`](https://github.com/eea/volto-clms-theme/commit/df8a921fe95e7446c788bb792655af516418b42e)
|
|
92
|
+
- Fixed test error [`9d019f0`](https://github.com/eea/volto-clms-theme/commit/9d019f03d9099dc7b59330fa389fa023bd3f5941)
|
|
93
|
+
- add snapshots [`ab527f1`](https://github.com/eea/volto-clms-theme/commit/ab527f1ea87c65c9db8ad65ed55a5a7569622d0b)
|
|
94
|
+
- merge develop branch into setup-testing [`e5f1545`](https://github.com/eea/volto-clms-theme/commit/e5f15458d5a590e77f8acbed17282af050670d13)
|
|
95
|
+
- merge develop into setup-testing [`0e9c30f`](https://github.com/eea/volto-clms-theme/commit/0e9c30f4cd17b86900731e40aa79d82629c647a8)
|
|
96
|
+
- snapshots [`90724e6`](https://github.com/eea/volto-clms-theme/commit/90724e63ad2be2a1004a6a0e1cdd4f573bba624f)
|
|
97
|
+
- prettier fix [`cfa5efd`](https://github.com/eea/volto-clms-theme/commit/cfa5efd6d9f40f1496fe6b3d0bcf1ba60ea59f14)
|
|
98
|
+
- test with prettier [`7d4eda6`](https://github.com/eea/volto-clms-theme/commit/7d4eda6b40d54991151bb507a58719ce3c4f3ab1)
|
|
99
|
+
- test [`962115a`](https://github.com/eea/volto-clms-theme/commit/962115a942630dc24a5eb2f1ecc5004e626da4c6)
|
|
100
|
+
- button block tests [`2f4d2af`](https://github.com/eea/volto-clms-theme/commit/2f4d2af8d76297544e570df9bd6b6ceeef035169)
|
|
101
|
+
- button block edit test [`b71b632`](https://github.com/eea/volto-clms-theme/commit/b71b63202ad7743d59efa71b1f7b281b7ebc1a62)
|
|
102
|
+
- CclModal test [`0b9a278`](https://github.com/eea/volto-clms-theme/commit/0b9a278a5c4c068ad5796cda76d71dcfa1411bdd)
|
|
103
|
+
- Ccl modal test improved [`3915419`](https://github.com/eea/volto-clms-theme/commit/39154190ffbb8d98067eade318cc674e40af2ff9)
|
|
104
|
+
- CclInfoDescription test [`bdfb4c8`](https://github.com/eea/volto-clms-theme/commit/bdfb4c83c9cf499e7f33b0dd134d1aa4bb08ad49)
|
|
105
|
+
- tests [`9b1ff4a`](https://github.com/eea/volto-clms-theme/commit/9b1ff4a1d7e5fa0e09ce3bfced51f7c1fd4023e9)
|
|
106
|
+
- add new tests [`5eddfb2`](https://github.com/eea/volto-clms-theme/commit/5eddfb25d6580541d2bf11597413e0c1cacc5408)
|
|
107
|
+
- Remove unused variable [`0bee972`](https://github.com/eea/volto-clms-theme/commit/0bee972878df7bdbd42eea0f19e9757e0e6bcf02)
|
|
108
|
+
- CclButton unittest [`4933a37`](https://github.com/eea/volto-clms-theme/commit/4933a371134b18d9924632092de266622e8032fd)
|
|
109
|
+
|
|
110
|
+
#### [1.0.65](https://github.com/eea/volto-clms-theme/compare/1.0.64...1.0.65)
|
|
111
|
+
|
|
112
|
+
> 2 February 2022
|
|
113
|
+
|
|
114
|
+
- Develop [`#194`](https://github.com/eea/volto-clms-theme/pull/194)
|
|
115
|
+
- Download page changes [`#193`](https://github.com/eea/volto-clms-theme/pull/193)
|
|
116
|
+
- remove unneeded getNutsNames action dispatch [`9a1df64`](https://github.com/eea/volto-clms-theme/commit/9a1df64768757eeba697344ac0ceb3b715241baf)
|
|
117
|
+
- reducer parameter [`ec242bc`](https://github.com/eea/volto-clms-theme/commit/ec242bc1c4039dc67ff5e54cdd078bf56692fdb2)
|
|
118
|
+
- dispatch getDownloadtool when the task is deleted [`9354609`](https://github.com/eea/volto-clms-theme/commit/9354609c05a9efaae909f04af0195d27c82c076b)
|
|
119
|
+
- add cart-downloads route to noncontentRoute [`f1d945f`](https://github.com/eea/volto-clms-theme/commit/f1d945f278c57e142010bc170e5526dcf639b826)
|
|
120
|
+
- new texts [`31c96ce`](https://github.com/eea/volto-clms-theme/commit/31c96ce9de77d783768614260e319966c53fd1b9)
|
|
121
|
+
- card styles [`15ddb0d`](https://github.com/eea/volto-clms-theme/commit/15ddb0daea6e949c371dc32d008f189bc82b350f)
|
|
122
|
+
- text correction [`326f94c`](https://github.com/eea/volto-clms-theme/commit/326f94c95c37dcf5babdb157155795e6a0b33339)
|
|
123
|
+
- texts and columns [`053e48c`](https://github.com/eea/volto-clms-theme/commit/053e48c05bf0629f616d16484640552b6ca1f083)
|
|
124
|
+
- add Downloads to logged in user dropdown [`8bceefd`](https://github.com/eea/volto-clms-theme/commit/8bceefd619d31947ceed3da042c7995e1e26d86d)
|
|
125
|
+
- bugfixes [`f8b3dc6`](https://github.com/eea/volto-clms-theme/commit/f8b3dc674b7cbba405e641465892028e757ed468)
|
|
126
|
+
- subjects to taxonomy_technical_library_categorization at TL view [`73a4a25`](https://github.com/eea/volto-clms-theme/commit/73a4a252cba51e338e9c79572f92abc5c5a6ea16)
|
|
127
|
+
- cart and donwload progress views with the nutsname [`bb9c42c`](https://github.com/eea/volto-clms-theme/commit/bb9c42c213dead2fbebf148cd34eb3fd268761e9)
|
|
128
|
+
- add action and reducer for nutsnames [`67c4bee`](https://github.com/eea/volto-clms-theme/commit/67c4beea48c2833e4d77280636d2035ce901212d)
|
|
129
|
+
- add initial tasks states [`9f61e7c`](https://github.com/eea/volto-clms-theme/commit/9f61e7c9ac35d3206f333b2026540e53e817a174)
|
|
130
|
+
- replace subjects with taxonomy_technical_library_categorization [`df730eb`](https://github.com/eea/volto-clms-theme/commit/df730eb63cf096aa90be0567ceebebe0c21cf0f9)
|
|
131
|
+
- show extra information in the file download card [`ff80e03`](https://github.com/eea/volto-clms-theme/commit/ff80e0344bee86d857ffadeb97bc2c5592735539)
|
|
132
|
+
- show file size in human notation [`a5aa684`](https://github.com/eea/volto-clms-theme/commit/a5aa684f6ed6037a4a5e70c2605ba95a16fbb3b7)
|
|
133
|
+
- fixedWidth to comment icon [`46edf90`](https://github.com/eea/volto-clms-theme/commit/46edf90311929c0eb3f26c48f8453d54ff120ee3)
|
|
134
|
+
- request root breadcrumb to remove from the view and add subjects customized labels to the view [`3051e68`](https://github.com/eea/volto-clms-theme/commit/3051e68c62c040f7d2712e3b3df674b02e76607c)
|
|
135
|
+
- hide default tags from Volto config [`5ca6bc9`](https://github.com/eea/volto-clms-theme/commit/5ca6bc9f8ba3718bf1397cd939c20caad909ff0c)
|
|
136
|
+
|
|
137
|
+
#### [1.0.64](https://github.com/eea/volto-clms-theme/compare/1.0.63...1.0.64)
|
|
138
|
+
|
|
139
|
+
> 31 January 2022
|
|
140
|
+
|
|
141
|
+
- meeting anonymous form data issue [`#191`](https://github.com/eea/volto-clms-theme/pull/191)
|
|
142
|
+
- Cart download page [`#192`](https://github.com/eea/volto-clms-theme/pull/192)
|
|
143
|
+
- texts for no tasks [`169cd93`](https://github.com/eea/volto-clms-theme/commit/169cd93a8519f08a365852efc27db7edc5498a53)
|
|
144
|
+
- show the selected nuts ID and improve wording [`8378a73`](https://github.com/eea/volto-clms-theme/commit/8378a7307093c4f9fa90f130d9ce0438ac443f2e)
|
|
145
|
+
- add a link to the download process [`444dbff`](https://github.com/eea/volto-clms-theme/commit/444dbff4cab5f0f53a307685e6ba88a808ccfa1d)
|
|
146
|
+
- loading process while download request is completed [`5f82fa8`](https://github.com/eea/volto-clms-theme/commit/5f82fa84c6c513653125fe80be00255d636521c1)
|
|
147
|
+
- download link and filesize only on Finished_ok files [`f68b30c`](https://github.com/eea/volto-clms-theme/commit/f68b30c1330e25e4cd400f83e582e8143dbba576)
|
|
148
|
+
- reorganize reducer response and create a new route to render the Cart Download view separated from the Cart view [`9ac01f7`](https://github.com/eea/volto-clms-theme/commit/9ac01f7f0ac3b812b20a66d326034f34327ca93f)
|
|
149
|
+
|
|
7
150
|
#### [1.0.63](https://github.com/eea/volto-clms-theme/compare/1.0.62...1.0.63)
|
|
8
151
|
|
|
9
|
-
|
|
152
|
+
> 28 January 2022
|
|
153
|
+
|
|
154
|
+
- expose timeExtent info in cart data [`#190`](https://github.com/eea/volto-clms-theme/pull/190)
|
|
10
155
|
|
|
11
156
|
#### [1.0.62](https://github.com/eea/volto-clms-theme/compare/1.0.61...1.0.62)
|
|
12
157
|
|
|
@@ -312,7 +457,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
312
457
|
- test [`daa9d02`](https://github.com/eea/volto-clms-theme/commit/daa9d020eb1a089afc87ad4b5c83a50ab144a54c)
|
|
313
458
|
- use value attribute [`02b57fe`](https://github.com/eea/volto-clms-theme/commit/02b57fe0a1db2c4d1ec6b3786b12e2e782b0b60c)
|
|
314
459
|
- use a textarea [`58d8d17`](https://github.com/eea/volto-clms-theme/commit/58d8d1710be3d7bade93ffc3ecca6f0173878efc)
|
|
315
|
-
-
|
|
460
|
+
- change some screen messages [`beed740`](https://github.com/eea/volto-clms-theme/commit/beed740d88f93e73cd3f13611c75cf7acab9dcb6)
|
|
316
461
|
- when copying to clipboard copy the full object [`3717f38`](https://github.com/eea/volto-clms-theme/commit/3717f388fb7c828b7c422c058630c115b891810b)
|
|
317
462
|
- hoem carousel [`01eecf8`](https://github.com/eea/volto-clms-theme/commit/01eecf84e23845c79920004ce9990b282445c0d7)
|
|
318
463
|
- prettier fix [`27aa6c2`](https://github.com/eea/volto-clms-theme/commit/27aa6c223279977d9a8228e845a1b50f02c42253)
|
|
@@ -1019,7 +1164,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1019
1164
|
- full width plone-site content type [`ded9191`](https://github.com/eea/volto-clms-theme/commit/ded9191fb3cab2d5ab6dc7625482c19251b7ba56)
|
|
1020
1165
|
- organize customBlocks properties, getting them out of index.js and adding into blocks folder. New CclProductLeftMenu block component added [`e927add`](https://github.com/eea/volto-clms-theme/commit/e927addf8475cea5d3ef120c910f9fff11a0da14)
|
|
1021
1166
|
- top main menu component fixes [`eed0a1c`](https://github.com/eea/volto-clms-theme/commit/eed0a1c5eef44ebabed72fa32f9fff1e434a29f6)
|
|
1022
|
-
-
|
|
1167
|
+
- dataset info content tooltip info added [`3d64560`](https://github.com/eea/volto-clms-theme/commit/3d6456073a6fb4260e72c98b6877d22b206cf755)
|
|
1023
1168
|
- Dataset card and accordion [`d6f4381`](https://github.com/eea/volto-clms-theme/commit/d6f4381b6e88589eb80bf51f823a689a822453f2)
|
|
1024
1169
|
- import React from 'react'; [`4547d29`](https://github.com/eea/volto-clms-theme/commit/4547d297870691cb551d5954de8b1725271fa58f)
|
|
1025
1170
|
- prettier [`a1b5c82`](https://github.com/eea/volto-clms-theme/commit/a1b5c82b7e361f856ec3b63716a5264ceefa398c)
|
package/jest-addon.config.js
CHANGED
|
@@ -8,6 +8,8 @@ module.exports = {
|
|
|
8
8
|
'@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
|
|
9
9
|
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
|
|
10
10
|
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
|
11
|
+
'@eeacms/volto-clms-utils/(.*)$':
|
|
12
|
+
'<rootDir>/node_modules/@eeacms/volto-clms-utils/src/$1',
|
|
11
13
|
'@package/(.*)$': '<rootDir>/src/$1',
|
|
12
14
|
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
|
|
13
15
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
|
|
@@ -25,6 +27,9 @@ module.exports = {
|
|
|
25
27
|
'^.+\\.(jpg)$': 'jest-file',
|
|
26
28
|
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
|
|
27
29
|
},
|
|
30
|
+
transformIgnorePatterns: [
|
|
31
|
+
'node_modules/(?!(@eeacms/volto-clms-utils/|@plone/volto/|slick-carousel))',
|
|
32
|
+
],
|
|
28
33
|
coverageThreshold: {
|
|
29
34
|
global: {
|
|
30
35
|
branches: 5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-clms-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
4
4
|
"description": "volto-clms-theme: Volto theme for CLMS site",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "CodeSyntax for the European Environment Agency",
|
|
@@ -30,40 +30,44 @@
|
|
|
30
30
|
"@eeacms/volto-taxonomy"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@eeacms/volto-tabs-block": "1.2.7",
|
|
34
33
|
"@eeacms/volto-accordion-block": "3.4.7",
|
|
34
|
+
"@eeacms/volto-arcgis-block": "*",
|
|
35
|
+
"@eeacms/volto-clms-utils": "0.1.6",
|
|
35
36
|
"@eeacms/volto-columns-block": "4.4.3",
|
|
36
37
|
"@eeacms/volto-metadata-block": "^2.1.0",
|
|
37
38
|
"@eeacms/volto-resize-helper": "0.2.1",
|
|
38
|
-
"volto-
|
|
39
|
+
"@eeacms/volto-tabs-block": "1.2.7",
|
|
40
|
+
"@eeacms/volto-taxonomy": "^1.0.0",
|
|
39
41
|
"@fortawesome/fontawesome-svg-core": "1.2.35",
|
|
40
|
-
"@fortawesome/free-solid-svg-icons": "5.15.3",
|
|
41
42
|
"@fortawesome/free-regular-svg-icons": "5.15.3",
|
|
43
|
+
"@fortawesome/free-solid-svg-icons": "5.15.3",
|
|
42
44
|
"@fortawesome/react-fontawesome": "0.1.14",
|
|
43
|
-
"
|
|
44
|
-
"slick-carousel": "1.8.1",
|
|
45
|
+
"husky": "7.0.4",
|
|
45
46
|
"react-csv": "2.2.2",
|
|
46
|
-
"react-svg": "14.0.4",
|
|
47
|
-
"@eeacms/volto-arcgis-block": "*",
|
|
48
47
|
"react-native-mime-types": "2.3.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
48
|
+
"react-slick": "0.28.1",
|
|
49
|
+
"react-svg": "14.0.4",
|
|
50
|
+
"slick-carousel": "1.8.1",
|
|
51
|
+
"volto-dropdownmenu": "2.2.7",
|
|
52
|
+
"volto-form-block": "2.2.2"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
55
|
+
"@cypress/code-coverage": "^3.9.5",
|
|
56
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
57
|
+
"enzyme": "3.11.0",
|
|
58
|
+
"enzyme-adapter-react-16": "1.15.6",
|
|
59
|
+
"@wojtekmaj/enzyme-adapter-react-17": "0.6.6",
|
|
54
60
|
"eslint": "^6.8.0",
|
|
55
61
|
"eslint-config-prettier": "^8.2.0",
|
|
56
62
|
"eslint-plugin-prettier": "3.1.3",
|
|
57
63
|
"eslint-plugin-react-app": "^6.2.2",
|
|
58
|
-
"husky": "
|
|
64
|
+
"husky": "7.0.4",
|
|
59
65
|
"jsconfig": "^0.2.0",
|
|
60
66
|
"prettier": "2.0.5",
|
|
61
67
|
"prettier-eslint": "^12.0.0",
|
|
62
68
|
"stylelint": "^13.12.0",
|
|
63
69
|
"stylelint-config-idiomatic-order": "8.1.0",
|
|
64
|
-
"stylelint-prettier": "1.1.2"
|
|
65
|
-
"@cypress/code-coverage": "^3.9.5",
|
|
66
|
-
"babel-plugin-transform-class-properties": "^6.24.1"
|
|
70
|
+
"stylelint-prettier": "1.1.2"
|
|
67
71
|
},
|
|
68
72
|
"prettier": {
|
|
69
73
|
"trailingComma": "all",
|
|
@@ -113,10 +117,9 @@
|
|
|
113
117
|
"prettier:fix": "../../../node_modules/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'",
|
|
114
118
|
"lint": "../../../node_modules/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx}'",
|
|
115
119
|
"lint:fix": "../../../node_modules/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx}'",
|
|
116
|
-
"i18n": "NODE_ENV=production node src/i18n.js",
|
|
117
120
|
"cypress:run": "NODE_ENV=production CYPRESS_API=plone ../../../node_modules/cypress/bin/cypress run",
|
|
118
121
|
"cypress:open": "NODE_ENV=production CYPRESS_API=plone ../../../node_modules/cypress/bin/cypress open",
|
|
119
122
|
"precommit": "yarn stylelint && yarn prettier && yarn lint",
|
|
120
|
-
"
|
|
123
|
+
"test": "docker run -it --rm -v $(pwd):/opt/frontend/my-volto-project/src/addons/volto-clms-theme -e GIT_NAME=volto-clms-theme -e NAMESPACE=@eeacms plone/volto-addon-ci"
|
|
121
124
|
}
|
|
122
125
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getDatasetsByUid, DATASETS_BY_UID } from './datasets_by_uid';
|
|
2
|
+
|
|
3
|
+
describe('Dataset action', () => {
|
|
4
|
+
describe('getDatasetsByUid', () => {
|
|
5
|
+
it('should create an action to get datasets', () => {
|
|
6
|
+
const uids = ['uid1', 'uid2'];
|
|
7
|
+
const action = getDatasetsByUid(uids);
|
|
8
|
+
|
|
9
|
+
expect(action.type).toEqual(DATASETS_BY_UID);
|
|
10
|
+
expect(action.request.op).toEqual('get');
|
|
11
|
+
expect(action.request.path).toEqual('/@datasets_by_uid?UID=' + uids);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DELETE_DOWNLOADTOOL, deleteDownloadtool } from './delete_downloadtool';
|
|
2
|
+
import {
|
|
3
|
+
GET_DOWNLOADTOOL,
|
|
4
|
+
getDownloadtool,
|
|
5
|
+
GET_NUTSNAME,
|
|
6
|
+
getNutsNames,
|
|
7
|
+
} from './get_downloadtool';
|
|
8
|
+
import { POST_DOWNLOADTOOL, postDownloadtool } from './post_downloadtool';
|
|
9
|
+
|
|
10
|
+
describe('Downloadtool actions', () => {
|
|
11
|
+
describe('deleteDownloadtool', () => {
|
|
12
|
+
it('should create an action to delete downloadtool', () => {
|
|
13
|
+
const task_id = 'task_id';
|
|
14
|
+
const action = deleteDownloadtool(task_id);
|
|
15
|
+
|
|
16
|
+
expect(action.type).toEqual(DELETE_DOWNLOADTOOL);
|
|
17
|
+
expect(action.request.op).toEqual('del');
|
|
18
|
+
expect(action.request.path).toEqual('/@datarequest_delete');
|
|
19
|
+
expect(action.request.data).toEqual({ TaskID: task_id });
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
describe('getDownloadtool', () => {
|
|
23
|
+
it('should create an action to get downloadtool', () => {
|
|
24
|
+
const action = getDownloadtool();
|
|
25
|
+
|
|
26
|
+
expect(action.type).toEqual(GET_DOWNLOADTOOL);
|
|
27
|
+
expect(action.request.op).toEqual('get');
|
|
28
|
+
expect(action.request.path).toEqual('/@datarequest_search');
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe('getNutsNames', () => {
|
|
32
|
+
it('should create an action to get downloadtool', () => {
|
|
33
|
+
const nutsids = 'nutsids';
|
|
34
|
+
const action = getNutsNames(nutsids);
|
|
35
|
+
|
|
36
|
+
expect(action.type).toEqual(GET_NUTSNAME);
|
|
37
|
+
expect(action.request.op).toEqual('get');
|
|
38
|
+
expect(action.request.path).toEqual(`/@nuts_name?nuts_ids=${nutsids}`);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
describe('postDownloadtool', () => {
|
|
42
|
+
it('should create an action to post downloadtool', () => {
|
|
43
|
+
const item = { data: 'data' };
|
|
44
|
+
const unique_ids = ['unique_ids'];
|
|
45
|
+
const action = postDownloadtool(item, unique_ids);
|
|
46
|
+
|
|
47
|
+
expect(action.type).toEqual(POST_DOWNLOADTOOL);
|
|
48
|
+
expect(action.request.op).toEqual('post');
|
|
49
|
+
expect(action.request.data).toEqual(item);
|
|
50
|
+
expect(action.request.path).toEqual('/@datarequest_post');
|
|
51
|
+
expect(action.unique_ids).toEqual(unique_ids);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -14,7 +14,28 @@ export function getDownloadtool() {
|
|
|
14
14
|
type: GET_DOWNLOADTOOL,
|
|
15
15
|
request: {
|
|
16
16
|
op: 'get',
|
|
17
|
-
path: `/@datarequest_search
|
|
17
|
+
path: `/@datarequest_search`,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Get nuts name by id.
|
|
24
|
+
* @module actions/getNutsName
|
|
25
|
+
*/
|
|
26
|
+
export const GET_NUTSNAME = 'GET_NUTSNAME';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get cart selection to downloadtool.
|
|
30
|
+
* @function getNutsNames
|
|
31
|
+
* @returns {Object} NutsName per NutsId.
|
|
32
|
+
*/
|
|
33
|
+
export function getNutsNames(nutsids) {
|
|
34
|
+
return {
|
|
35
|
+
type: GET_NUTSNAME,
|
|
36
|
+
request: {
|
|
37
|
+
op: 'get',
|
|
38
|
+
path: `/@nuts_name?nuts_ids=${nutsids}`,
|
|
18
39
|
},
|
|
19
40
|
};
|
|
20
41
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getExtraBreadcrumbItems,
|
|
3
|
+
GET_EXTRA_BREADCRUMB_ITEMS,
|
|
4
|
+
} from './extra_breadcrumb';
|
|
5
|
+
|
|
6
|
+
describe('Breadcrumbs action', () => {
|
|
7
|
+
describe('getBreadcrumbs', () => {
|
|
8
|
+
it('should create an action to get the breadcrumbs', () => {
|
|
9
|
+
const items = ['item1', 'item2'];
|
|
10
|
+
const action = getExtraBreadcrumbItems(items);
|
|
11
|
+
|
|
12
|
+
expect(action.type).toEqual(GET_EXTRA_BREADCRUMB_ITEMS);
|
|
13
|
+
expect(action.items).toEqual(items);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getFormatConversionTable,
|
|
3
|
+
GET_FORMATCONVERSIONTABLE,
|
|
4
|
+
} from './get_format_conversion_table';
|
|
5
|
+
|
|
6
|
+
describe('Format converson table action', () => {
|
|
7
|
+
describe('getFormatConversionTable', () => {
|
|
8
|
+
it('should create an action to get the format conversion table', () => {
|
|
9
|
+
const action = getFormatConversionTable();
|
|
10
|
+
|
|
11
|
+
expect(action.type).toEqual(GET_FORMATCONVERSIONTABLE);
|
|
12
|
+
expect(action.request.op).toEqual('get');
|
|
13
|
+
expect(action.request.path).toEqual('/@format_conversion_table');
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { postImportGeonetwork } from './import_geonetwork';
|
|
2
|
+
import { POST_IMPORT_GEONETWORK } from './import_geonetwork';
|
|
3
|
+
|
|
4
|
+
describe('Import geonetwork action', () => {
|
|
5
|
+
describe('postImportGeonetwork', () => {
|
|
6
|
+
it('should create an action to post geonetwork', () => {
|
|
7
|
+
const url = 'http://localhost';
|
|
8
|
+
const action = postImportGeonetwork(url);
|
|
9
|
+
|
|
10
|
+
expect(action.type).toEqual(POST_IMPORT_GEONETWORK);
|
|
11
|
+
expect(action.request.op).toEqual('post');
|
|
12
|
+
expect(action.request.path).toEqual(`${url}/@import-from-geonetwork`);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
package/src/actions/index.js
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { postMeetingRegister } from './meeting_register';
|
|
2
|
+
import { POST_MEETING_REGISTER } from './meeting_register';
|
|
3
|
+
import { MeetingSubscribersManipulation } from './meeting_subscribers_manipulation';
|
|
4
|
+
import { MEETING_SUBSCRIBERS_MANIPULATION } from './meeting_subscribers_manipulation';
|
|
5
|
+
import { MeetingSubscribers } from './meeting_subscribers';
|
|
6
|
+
import { MEETING_SUBSCRIBERS } from './meeting_subscribers';
|
|
7
|
+
|
|
8
|
+
describe('Meeting actions', () => {
|
|
9
|
+
describe('postMeetingRegister', () => {
|
|
10
|
+
it('should create an action to post the meeting', () => {
|
|
11
|
+
const url = 'http://localhost';
|
|
12
|
+
const action = postMeetingRegister(url);
|
|
13
|
+
|
|
14
|
+
expect(action.type).toEqual(POST_MEETING_REGISTER);
|
|
15
|
+
expect(action.request.op).toEqual('post');
|
|
16
|
+
expect(action.request.path).toEqual(`${url}/@register`);
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
describe('MeetingSubscribersManipulation', () => {
|
|
20
|
+
it('should create an action to post subscribers', () => {
|
|
21
|
+
const url = 'http://localhost';
|
|
22
|
+
const action = MeetingSubscribersManipulation(url);
|
|
23
|
+
|
|
24
|
+
expect(action.type).toEqual(MEETING_SUBSCRIBERS_MANIPULATION);
|
|
25
|
+
expect(action.request.op).toEqual('post');
|
|
26
|
+
expect(action.request.path).toEqual(`${url}/@manipulation`);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
describe('MeetingSubscribers', () => {
|
|
30
|
+
it('should create an action to get the subscribers', () => {
|
|
31
|
+
const url = 'http://localhost';
|
|
32
|
+
const action = MeetingSubscribers(url);
|
|
33
|
+
|
|
34
|
+
expect(action.type).toEqual(MEETING_SUBSCRIBERS);
|
|
35
|
+
expect(action.request.op).toEqual('get');
|
|
36
|
+
expect(action.request.path).toEqual(
|
|
37
|
+
`${url}/@search?portal_type=eea.meeting.subscriber&fullobjects=true`,
|
|
38
|
+
);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { getNewsletterSubscriber } from './get_newsletter_subscribers';
|
|
2
|
+
import { GET_NEWSLETTER } from './get_newsletter_subscribers';
|
|
3
|
+
|
|
4
|
+
describe('Newsletter action', () => {
|
|
5
|
+
describe('getNewsletterSubscriber', () => {
|
|
6
|
+
it('should create an action to get the newsletter subscribers', () => {
|
|
7
|
+
const action = getNewsletterSubscriber();
|
|
8
|
+
|
|
9
|
+
expect(action.type).toEqual(GET_NEWSLETTER);
|
|
10
|
+
expect(action.request.op).toEqual('get');
|
|
11
|
+
expect(action.request.path).toEqual('/@newsletter-subscribers');
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getProjections, GET_PROJECTIONS } from './get_projections';
|
|
2
|
+
|
|
3
|
+
describe('Projections action', () => {
|
|
4
|
+
describe('getProjections', () => {
|
|
5
|
+
it('should create an action to get the projections', () => {
|
|
6
|
+
const action = getProjections();
|
|
7
|
+
|
|
8
|
+
expect(action.type).toEqual(GET_PROJECTIONS);
|
|
9
|
+
expect(action.request.op).toEqual('get');
|
|
10
|
+
expect(action.request.path).toEqual('/@projections');
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { getRegistry, GET_REGISTRY } from './registry';
|
|
2
|
+
|
|
3
|
+
describe('Registry action', () => {
|
|
4
|
+
describe('getRegistry', () => {
|
|
5
|
+
it('should create an action to get the registry', () => {
|
|
6
|
+
const registry_key = 'registry_key';
|
|
7
|
+
const action = getRegistry(registry_key);
|
|
8
|
+
|
|
9
|
+
expect(action.type).toEqual(GET_REGISTRY);
|
|
10
|
+
expect(action.registry_key).toEqual(registry_key);
|
|
11
|
+
expect(action.request.op).toEqual('get');
|
|
12
|
+
expect(action.request.path).toEqual(`/@anon-registry/${registry_key}`);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* @module actions/event
|
|
4
4
|
*/
|
|
5
5
|
export const POST_SUBSCRIBE_TO = 'POST_SUBSCRIBE_TO';
|
|
6
|
-
// export const POST_CONFIRM_SUBSCRIBE_TO = 'POST_CONFIRM_SUBSCRIBE_TO';
|
|
7
|
-
// export const POST_UNSUBSCRIBE_TO = 'POST_UNSUBSCRIBE_TO';
|
|
8
|
-
// export const POST_CONFIRM_UNSUBSCRIBE_TO = 'POST_CONFIRM_UNSUBSCRIBE_TO';
|
|
9
6
|
|
|
10
7
|
/**
|
|
11
8
|
* Subscribe to event.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
POST_SUBSCRIBE_TO,
|
|
3
|
+
subscribeTo,
|
|
4
|
+
unsubscribeTo,
|
|
5
|
+
confirmSubscribeTo,
|
|
6
|
+
confirmUnsubscribeTo,
|
|
7
|
+
} from './post_subscription';
|
|
8
|
+
|
|
9
|
+
describe('Subscription actions', () => {
|
|
10
|
+
describe('subscribeTo', () => {
|
|
11
|
+
it('should create an action to post subscription', () => {
|
|
12
|
+
const type_url = 'newsletter';
|
|
13
|
+
const email = 'newsletter@mail.com';
|
|
14
|
+
const action = subscribeTo(type_url, email);
|
|
15
|
+
|
|
16
|
+
expect(action.type).toEqual(POST_SUBSCRIBE_TO);
|
|
17
|
+
expect(action.request.op).toEqual('post');
|
|
18
|
+
expect(action.request.path).toEqual(
|
|
19
|
+
`/@${type_url}-notification-subscribe`,
|
|
20
|
+
);
|
|
21
|
+
expect(action.request.data).toEqual({ email: email });
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
describe('unsubscribeTo', () => {
|
|
25
|
+
it('should create an action to post unsubscribe', () => {
|
|
26
|
+
const email = 'newsletter@mail.com';
|
|
27
|
+
const type_url = 'newsletter';
|
|
28
|
+
const action = unsubscribeTo(type_url, email);
|
|
29
|
+
|
|
30
|
+
expect(action.type).toEqual(POST_SUBSCRIBE_TO);
|
|
31
|
+
expect(action.request.op).toEqual('post');
|
|
32
|
+
expect(action.request.path).toEqual(
|
|
33
|
+
`/@${type_url}-notification-unsubscribe`,
|
|
34
|
+
);
|
|
35
|
+
expect(action.request.data).toEqual({ email: email });
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
describe('confirmSubscribeTo', () => {
|
|
39
|
+
it('should create an action to post confirm subscribe', () => {
|
|
40
|
+
const type_url = 'newsletter';
|
|
41
|
+
const id = 'id';
|
|
42
|
+
const action = confirmSubscribeTo(type_url, id);
|
|
43
|
+
|
|
44
|
+
expect(action.type).toEqual(POST_SUBSCRIBE_TO);
|
|
45
|
+
expect(action.request.op).toEqual('post');
|
|
46
|
+
expect(action.request.path).toEqual(
|
|
47
|
+
`/@${type_url}-notification-subscribe-confirm/${id}`,
|
|
48
|
+
);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
describe('confirmUnsubscribeTo', () => {
|
|
52
|
+
it('should create an action to post confirm unsubscribe', () => {
|
|
53
|
+
const type_url = 'type_url';
|
|
54
|
+
const id = 'id';
|
|
55
|
+
const action = confirmUnsubscribeTo(type_url, id);
|
|
56
|
+
|
|
57
|
+
expect(action.type).toEqual(POST_SUBSCRIBE_TO);
|
|
58
|
+
expect(action.request.op).toEqual('post');
|
|
59
|
+
expect(action.request.path).toEqual(
|
|
60
|
+
`/@${type_url}-notification-unsubscribe-confirm/${id}`,
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
});
|