@eeacms/volto-clms-theme 1.0.41 → 1.0.45
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 +117 -0
- package/Jenkinsfile +17 -19
- package/package.json +5 -3
- package/src/actions/geonetwork/import_geonetwork.js +21 -0
- package/src/actions/index.js +16 -0
- package/src/actions/registry/registry.js +21 -0
- package/src/actions/userschema/userschema.js +17 -0
- package/src/components/Blocks/CclHomeBgImageBlock/CclGreenBgView.jsx +32 -8
- package/src/components/Blocks/CclHomeBgImageBlock/CclHomeBgImageBlockEdit.jsx +5 -1
- package/src/components/Blocks/CclHomeBgImageBlock/CclHomeBgImageSchema.js +36 -7
- package/src/components/Blocks/CclRelatedListingBlock/CclRelatedListingEdit.jsx +95 -0
- package/src/components/Blocks/CclRelatedListingBlock/CclRelatedListingView.jsx +67 -0
- package/src/components/Blocks/CclRelatedListingBlock/schema.js +34 -0
- package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselEdit.jsx +38 -0
- package/src/components/Blocks/CclTextLinkCarouselBlock/CclTextLinkCarouselView.jsx +41 -0
- package/src/components/Blocks/CclTextLinkCarouselBlock/TextLinkCarouselSchema.js +18 -0
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingWorkOpportunities.jsx +5 -15
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclCarouselView.jsx +39 -13
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclProductTabsView.jsx +6 -1
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/CclVerticalFaqTabsView.jsx +19 -60
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/FixTemplates.jsx +19 -0
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/custom.less +55 -1
- package/src/components/Blocks/CustomTemplates/VoltoTabsBlock/index.js +2 -0
- package/src/components/Blocks/customBlocks.js +97 -26
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +175 -15
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +20 -13
- package/src/components/CLMSDatasetDetailView/MetadataContent.jsx +26 -7
- package/src/components/CLMSDownloadCartView/CLMSDownloadCartView.jsx +5 -1
- package/src/components/CLMSProfileView/CLMSApiTokensView.jsx +55 -33
- package/src/components/CLMSProfileView/CLMSProfileView.jsx +28 -15
- package/src/components/CLMSProfileView/CLMSUserProfileView.jsx +37 -64
- package/src/components/CclCard/CclCard.jsx +1 -7
- package/src/components/CclCard/cards.less +1 -1
- package/src/components/CclLoginModal/CclLoginModal.jsx +83 -0
- package/src/components/CclLoginModal/ccl-login-modal.css +3 -0
- package/src/components/CclModal/CclModal.jsx +20 -5
- package/src/components/Widgets/ContactWidget.jsx +91 -0
- package/src/components/Widgets/DistributionInfoWidget.jsx +40 -0
- package/src/components/Widgets/GeonetworkIdentifiersWidget.jsx +48 -0
- package/src/components/Widgets/TextLinkWidget.jsx +41 -0
- package/src/constants/ActionTypes.js +1 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +31 -31
- package/src/customizations/volto/components/theme/SearchWidget/SearchWidget.jsx +11 -3
- package/src/index.js +13 -8
- package/src/reducers/geonetwork/import_geonetwork_reducer.js +45 -0
- package/src/reducers/index.js +9 -3
- package/src/reducers/registry/registry.js +46 -0
- package/src/reducers/tokens/tokens.js +14 -10
- package/src/reducers/userschema/userschema.js +48 -0
- package/theme/clms/css/breadcrumbs.css +1 -0
- package/theme/clms/css/carousel.css +109 -11
- package/theme/clms/css/forms.css +6 -1
- package/theme/clms/css/home.css +29 -4
- package/theme/clms/css/maps.css +4 -0
- package/theme/clms/css/maps.less +4 -0
- package/theme/clms/css/styles.less +12 -3
- package/src/components/Blocks/CclTechnicalLibrariesList/CclTechnicalLibrariesListEdit.jsx +0 -63
- package/src/components/Blocks/CclTechnicalLibrariesList/CclTechnicalLibrariesListView.jsx +0 -43
- package/src/components/Blocks/CclTechnicalLibrariesList/TechnicalLibrariesListSchema.js +0 -17
- package/src/components/CLMSServiceDeskView/CLMSServiceDeskView.jsx +0 -113
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,125 @@ 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.45](https://github.com/eea/volto-clms-theme/compare/1.0.44...1.0.45)
|
|
8
|
+
|
|
9
|
+
- Geonetwork importer [`#146`](https://github.com/eea/volto-clms-theme/pull/146)
|
|
10
|
+
- @userschema endpoint based dynamic user profile form [`#145`](https://github.com/eea/volto-clms-theme/pull/145)
|
|
11
|
+
- Changes after the release of ftw.tokenauth 2.0+cs5 [`#144`](https://github.com/eea/volto-clms-theme/pull/144)
|
|
12
|
+
- Api token changes [`#142`](https://github.com/eea/volto-clms-theme/pull/142)
|
|
13
|
+
- Bugs n improvements [`#141`](https://github.com/eea/volto-clms-theme/pull/141)
|
|
14
|
+
- Text carousel to develop [`#140`](https://github.com/eea/volto-clms-theme/pull/140)
|
|
15
|
+
- Text carousel corrections and image carousel dots change [`#139`](https://github.com/eea/volto-clms-theme/pull/139)
|
|
16
|
+
- Text carousel [`#138`](https://github.com/eea/volto-clms-theme/pull/138)
|
|
17
|
+
- resolve conflicts [`27ac50c`](https://github.com/eea/volto-clms-theme/commit/27ac50c69e5fe7af3fbad72cf0d273d74cb28d71)
|
|
18
|
+
- add breadcrumb and container class to get more structured profile page [`7787080`](https://github.com/eea/volto-clms-theme/commit/77870805f4c249aaa7552e53d66305b8eb493c85)
|
|
19
|
+
- dataset catalogue view width [`c218194`](https://github.com/eea/volto-clms-theme/commit/c21819442b8af0327fd5ea80769ea479a331ccd4)
|
|
20
|
+
- add a dynamic userschema [`8c38d98`](https://github.com/eea/volto-clms-theme/commit/8c38d983eb92ef216ece00e55a3e18926671970c)
|
|
21
|
+
- show the tokens only when they have a private key [`f6a4fb1`](https://github.com/eea/volto-clms-theme/commit/f6a4fb16baf0e66721af2ce93d5c07220855bbdd)
|
|
22
|
+
- save only tokens when they exist [`a9e8ec1`](https://github.com/eea/volto-clms-theme/commit/a9e8ec17ea88a675fbdb62034a851ccb72270313)
|
|
23
|
+
- show metadata download links pointing to geonetwork [`122442c`](https://github.com/eea/volto-clms-theme/commit/122442cbcd23be54bc6d43e04226d621c635599e)
|
|
24
|
+
- use sdi full link [`6837d90`](https://github.com/eea/volto-clms-theme/commit/6837d9055877d51df7832c1cb15287ac83507e14)
|
|
25
|
+
- add translations [`c8373db`](https://github.com/eea/volto-clms-theme/commit/c8373db635dcd9dda0155b44daca29f8a76bcc53)
|
|
26
|
+
- merge develop into geonetwork [`67c5b39`](https://github.com/eea/volto-clms-theme/commit/67c5b3977bd51c84d24d6bf2389c162a3391cd7d)
|
|
27
|
+
- add vito link [`0c6b4c3`](https://github.com/eea/volto-clms-theme/commit/0c6b4c340b6f26c878924862357c843fc1100c5a)
|
|
28
|
+
- add a segment to import data from geonetwork endpoints [`dc941a3`](https://github.com/eea/volto-clms-theme/commit/dc941a3fedcf29760274d15c0d1c0c2f0a919c75)
|
|
29
|
+
- geonetwork importer endpoint reducer and action [`6bb0939`](https://github.com/eea/volto-clms-theme/commit/6bb0939d8f2efefa8970ecfc23f244e0ed60dbce)
|
|
30
|
+
- test [`daa9d02`](https://github.com/eea/volto-clms-theme/commit/daa9d020eb1a089afc87ad4b5c83a50ab144a54c)
|
|
31
|
+
- use value attribute [`02b57fe`](https://github.com/eea/volto-clms-theme/commit/02b57fe0a1db2c4d1ec6b3786b12e2e782b0b60c)
|
|
32
|
+
- use a textarea [`58d8d17`](https://github.com/eea/volto-clms-theme/commit/58d8d1710be3d7bade93ffc3ecca6f0173878efc)
|
|
33
|
+
- change some screen messages [`beed740`](https://github.com/eea/volto-clms-theme/commit/beed740d88f93e73cd3f13611c75cf7acab9dcb6)
|
|
34
|
+
- when copying to clipboard copy the full object [`3717f38`](https://github.com/eea/volto-clms-theme/commit/3717f388fb7c828b7c422c058630c115b891810b)
|
|
35
|
+
- hoem carousel [`01eecf8`](https://github.com/eea/volto-clms-theme/commit/01eecf84e23845c79920004ce9990b282445c0d7)
|
|
36
|
+
- prettier fix [`27aa6c2`](https://github.com/eea/volto-clms-theme/commit/27aa6c223279977d9a8228e845a1b50f02c42253)
|
|
37
|
+
- Api tokens changes [`41e75a1`](https://github.com/eea/volto-clms-theme/commit/41e75a1bca8bc93c0cee8fe675098ac32c464d7a)
|
|
38
|
+
- show Download tab only in items explicitely marked to be downloadable [`0f1884b`](https://github.com/eea/volto-clms-theme/commit/0f1884b83c803e1cab89fbd03edbca3dba12dcb4)
|
|
39
|
+
- change mapviewer link for dataset [`2833557`](https://github.com/eea/volto-clms-theme/commit/28335576b8eebfd3f87c37872a846739f2e25edb)
|
|
40
|
+
- prettier:fix [`8643889`](https://github.com/eea/volto-clms-theme/commit/8643889c14ed42ff72d4fa4f9c0d4493eab237f3)
|
|
41
|
+
- li styles [`6f1c3b0`](https://github.com/eea/volto-clms-theme/commit/6f1c3b07d1ac88fa581344824cfac20e0197c4a6)
|
|
42
|
+
- home text carousel desktop [`9b7402f`](https://github.com/eea/volto-clms-theme/commit/9b7402f3aa0c8d9c8bf46656e0f6af1c521759fb)
|
|
43
|
+
- Header cart icon [`ffd90d6`](https://github.com/eea/volto-clms-theme/commit/ffd90d6d3f294a5ac6db4b3abc8fb70cf3538ff1)
|
|
44
|
+
- fix map-viewer link [`aeb571b`](https://github.com/eea/volto-clms-theme/commit/aeb571bad44ab346104993f847e48e1c996023cd)
|
|
45
|
+
- new distribution info widget [`a3c3edd`](https://github.com/eea/volto-clms-theme/commit/a3c3edde299749644596439a31671bd9e44ecb08)
|
|
46
|
+
- add fields to contact widget [`6493c32`](https://github.com/eea/volto-clms-theme/commit/6493c323fe0564c0e36f7face0f37460d5f20d69)
|
|
47
|
+
- code cleaned [`1ee2dfa`](https://github.com/eea/volto-clms-theme/commit/1ee2dfa606c3f927a8f9042836b71683fe7a1fe0)
|
|
48
|
+
- login modal bug fixed [`2cc3b77`](https://github.com/eea/volto-clms-theme/commit/2cc3b77304863be8c8556f9cff287db6d7ce4a03)
|
|
49
|
+
- reverse last change [`71eb265`](https://github.com/eea/volto-clms-theme/commit/71eb265bcf328208bba079f7b92a0ddf5d27dbf6)
|
|
50
|
+
- redirect to home page if carousel url is empty [`27b129d`](https://github.com/eea/volto-clms-theme/commit/27b129d1bf81cc18b25bba9aa8a7ceec4ab04cd2)
|
|
51
|
+
- contact widget [`dcf1ee4`](https://github.com/eea/volto-clms-theme/commit/dcf1ee477344375e8dd944c56490427aab43e5ec)
|
|
52
|
+
- ESLint fix [`f507e3a`](https://github.com/eea/volto-clms-theme/commit/f507e3a643bc6740d5d3aba0da8d92b1ee28fd81)
|
|
53
|
+
- Empty cart text style [`6e16941`](https://github.com/eea/volto-clms-theme/commit/6e1694176e00d5afaf0c5b8335ab24bf67744abe)
|
|
54
|
+
- dataset catalogue size fixed when logged in [`ce66ec1`](https://github.com/eea/volto-clms-theme/commit/ce66ec11713a273d8bea77f104a457649916868a)
|
|
55
|
+
- Card block image fix [`25535bc`](https://github.com/eea/volto-clms-theme/commit/25535bc0dbcce80a60e6a115f1709e5dd1f04b62)
|
|
56
|
+
- image carousel dots change and text carousel style change [`509eb04`](https://github.com/eea/volto-clms-theme/commit/509eb04e0320de8ea6fe9121ca15498274de170e)
|
|
57
|
+
- Basemap gallery bug fix [`00aed49`](https://github.com/eea/volto-clms-theme/commit/00aed490b48c405edf474b20fad98f5653783a82)
|
|
58
|
+
- text carousel [`0becdb2`](https://github.com/eea/volto-clms-theme/commit/0becdb254318fd010b916adefa0ef7e9ec0b5b79)
|
|
59
|
+
- add dataset citation [`895bbc3`](https://github.com/eea/volto-clms-theme/commit/895bbc3ce48badfd3b03afcecccacba0505508d6)
|
|
60
|
+
- Text and link carousel block created [`c4d8bb3`](https://github.com/eea/volto-clms-theme/commit/c4d8bb34b2fbb1a3f3064f073b0441366a5d2839)
|
|
61
|
+
- add a new data-grid widget [`dd64854`](https://github.com/eea/volto-clms-theme/commit/dd648544afa2c8896981fe0feded18b38f236e79)
|
|
62
|
+
|
|
63
|
+
#### [1.0.44](https://github.com/eea/volto-clms-theme/compare/1.0.43...1.0.44)
|
|
64
|
+
|
|
65
|
+
> 1 December 2021
|
|
66
|
+
|
|
67
|
+
- Develop [`#136`](https://github.com/eea/volto-clms-theme/pull/136)
|
|
68
|
+
- CclLoginModal - external link fixed [`736f348`](https://github.com/eea/volto-clms-theme/commit/736f348712c473d323a8bf2b6a1c6a10ab0aa266)
|
|
69
|
+
- change login modal texts [`b0c98af`](https://github.com/eea/volto-clms-theme/commit/b0c98af08501c830bb175b4ec69ad711c2874da1)
|
|
70
|
+
|
|
71
|
+
#### [1.0.43](https://github.com/eea/volto-clms-theme/compare/1.0.42...1.0.43)
|
|
72
|
+
|
|
73
|
+
> 30 November 2021
|
|
74
|
+
|
|
75
|
+
- related-listing path [`#135`](https://github.com/eea/volto-clms-theme/pull/135)
|
|
76
|
+
|
|
77
|
+
#### [1.0.42](https://github.com/eea/volto-clms-theme/compare/1.0.41...1.0.42)
|
|
78
|
+
|
|
79
|
+
> 30 November 2021
|
|
80
|
+
|
|
81
|
+
- Some more changes [`#130`](https://github.com/eea/volto-clms-theme/pull/130)
|
|
82
|
+
- Related listing [`#134`](https://github.com/eea/volto-clms-theme/pull/134)
|
|
83
|
+
- Button status [`#133`](https://github.com/eea/volto-clms-theme/pull/133)
|
|
84
|
+
- Carousel [`#132`](https://github.com/eea/volto-clms-theme/pull/132)
|
|
85
|
+
- Login popup [`#131`](https://github.com/eea/volto-clms-theme/pull/131)
|
|
86
|
+
- no items text [`b1e8430`](https://github.com/eea/volto-clms-theme/commit/b1e8430d6800fea1bf046bd2e0b00686bdf111f2)
|
|
87
|
+
- breadcrumb margin left 0 [`0f989e8`](https://github.com/eea/volto-clms-theme/commit/0f989e871dd8f20ad6ea4dbb89c04ef37854d544)
|
|
88
|
+
- add mostused [`2a5794f`](https://github.com/eea/volto-clms-theme/commit/2a5794f9dbbf5cd7e3a22d44a3b2de4e34d5436a)
|
|
89
|
+
- add mapviewer link to product tabs template [`2f210fc`](https://github.com/eea/volto-clms-theme/commit/2f210fc1a8a3c53a8649ac5be5fbf7c7bcdb541a)
|
|
90
|
+
- related dataset and technicalLibrary [`23becd3`](https://github.com/eea/volto-clms-theme/commit/23becd31613b35bed58488cbaf2f53a609d6b435)
|
|
91
|
+
- check when there is no existing variation [`2339fd0`](https://github.com/eea/volto-clms-theme/commit/2339fd055093f3622d112069855f2488220f86c7)
|
|
92
|
+
- set default values [`add1a47`](https://github.com/eea/volto-clms-theme/commit/add1a47300cc8e313923f27e529c1ef3a25b8369)
|
|
93
|
+
- rename carousel item [`3d8c612`](https://github.com/eea/volto-clms-theme/commit/3d8c612d2c7da673729a0e259bcce5d61bdb4f4b)
|
|
94
|
+
- fix initial setup [`c6d064a`](https://github.com/eea/volto-clms-theme/commit/c6d064a523ffddd32baba34cca51619c8e9f4434)
|
|
95
|
+
- fix initial variation selection [`7c00529`](https://github.com/eea/volto-clms-theme/commit/7c00529309051a4a7008a230097b917e867bff04)
|
|
96
|
+
- manage state on varousel view [`4c0ce0f`](https://github.com/eea/volto-clms-theme/commit/4c0ce0f73a900494ae6fbe1aea7216842d854e60)
|
|
97
|
+
- Carousel bug [`5aa1891`](https://github.com/eea/volto-clms-theme/commit/5aa18915ab0192146a327a14072c14cd4c3cb71e)
|
|
98
|
+
- remove one deprecated template [`a12a9fd`](https://github.com/eea/volto-clms-theme/commit/a12a9fd17e1b07d3e025f5891fd0b6d40a475f96)
|
|
99
|
+
- unused variable [`ac6171b`](https://github.com/eea/volto-clms-theme/commit/ac6171b629a8fab7acd9f382f0a430577fb4331e)
|
|
100
|
+
- tabs-block template id to default [`a3bdf6b`](https://github.com/eea/volto-clms-theme/commit/a3bdf6b887c5fd85798b5796e7610f3263f24f82)
|
|
101
|
+
- remove TL block, rename carousel item and add routing to FAQ navigation [`0e9c675`](https://github.com/eea/volto-clms-theme/commit/0e9c67580923143978819a78c279d6c94bfd0860)
|
|
102
|
+
- remove TL block, rename carousel item and add routing to FAQ navigation [`312eeb0`](https://github.com/eea/volto-clms-theme/commit/312eeb0778e18509e5ac8c2716f8e7ed10fd040f)
|
|
103
|
+
- add taxonomy deps [`df8addb`](https://github.com/eea/volto-clms-theme/commit/df8addb54d9f331dd947d9a39a73981a0eaaf772)
|
|
104
|
+
- header design bug fixed [`5ad7912`](https://github.com/eea/volto-clms-theme/commit/5ad7912f04ad67d7f6164ec9da6f02bfd5488a87)
|
|
105
|
+
- reducer bug fixed [`bf29e34`](https://github.com/eea/volto-clms-theme/commit/bf29e34ce4479e9a4bbe8a3e2eb13779d9718ab6)
|
|
106
|
+
- callback the modal status [`a1494f9`](https://github.com/eea/volto-clms-theme/commit/a1494f903d33d1d291ce52eabb0c1fb10c513dd5)
|
|
107
|
+
- registry keys from config.settings [`4867a52`](https://github.com/eea/volto-clms-theme/commit/4867a5204a22f99bab2d3412431164823447b514)
|
|
108
|
+
- anom-registry [`79d50c7`](https://github.com/eea/volto-clms-theme/commit/79d50c78539b98fda4758e832748f8c2f5748f48)
|
|
109
|
+
- related listing block and renaming listing templates [`91dda03`](https://github.com/eea/volto-clms-theme/commit/91dda0348b03f9bc5926a45b9d57380848300b7c)
|
|
110
|
+
- related listing block and renaming listing templates [`300b29f`](https://github.com/eea/volto-clms-theme/commit/300b29f320ce99fa3513582c8d5d9ea43761ced2)
|
|
111
|
+
- get registry value from redux action [`82e4ff7`](https://github.com/eea/volto-clms-theme/commit/82e4ff76aaca0cbdfaf947829965042d0e6e4855)
|
|
112
|
+
- dynamic registry request with key values [`ae1927d`](https://github.com/eea/volto-clms-theme/commit/ae1927d311262554be094476af55105d4fe6df33)
|
|
113
|
+
- dynamic registry request with key values [`5bf7cbb`](https://github.com/eea/volto-clms-theme/commit/5bf7cbb9cc816df5ce31ce1d9d5a06ababe6ed16)
|
|
114
|
+
- login modal component [`6b03fff`](https://github.com/eea/volto-clms-theme/commit/6b03fffdb592015166d950e56aaa5623a51e68aa)
|
|
115
|
+
- use date comparisons [`fd9ec67`](https://github.com/eea/volto-clms-theme/commit/fd9ec6797b35c8eee342885e859e1d9dd9a296ec)
|
|
116
|
+
- change links in products card [`fb539fb`](https://github.com/eea/volto-clms-theme/commit/fb539fbe1f9c087f1bf44b241506d51ddc584a71)
|
|
117
|
+
- green bg block [`f025495`](https://github.com/eea/volto-clms-theme/commit/f02549541c0d8b20c441c650eb16d9a3948445d8)
|
|
118
|
+
- searchwidget and carousel changes [`923c403`](https://github.com/eea/volto-clms-theme/commit/923c403cbf1f2b5118d2a41385dbfe4b403f8b51)
|
|
119
|
+
- some fixes and new features on bg image block [`3fb3c51`](https://github.com/eea/volto-clms-theme/commit/3fb3c5173eaacb1c3a2bbd0fc34a061ff17294f0)
|
|
120
|
+
|
|
7
121
|
#### [1.0.41](https://github.com/eea/volto-clms-theme/compare/1.0.40...1.0.41)
|
|
8
122
|
|
|
123
|
+
> 25 November 2021
|
|
124
|
+
|
|
125
|
+
- Develop [`#129`](https://github.com/eea/volto-clms-theme/pull/129)
|
|
9
126
|
- Map download styles [`#128`](https://github.com/eea/volto-clms-theme/pull/128)
|
|
10
127
|
- Product tab view [`#127`](https://github.com/eea/volto-clms-theme/pull/127)
|
|
11
128
|
- routing HOC for tabs templating [`#126`](https://github.com/eea/volto-clms-theme/pull/126)
|
package/Jenkinsfile
CHANGED
|
@@ -10,6 +10,23 @@ pipeline {
|
|
|
10
10
|
|
|
11
11
|
stages {
|
|
12
12
|
|
|
13
|
+
stage('Release') {
|
|
14
|
+
when {
|
|
15
|
+
allOf {
|
|
16
|
+
environment name: 'CHANGE_ID', value: ''
|
|
17
|
+
branch 'master'
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
steps {
|
|
21
|
+
node(label: 'docker') {
|
|
22
|
+
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
|
|
23
|
+
sh '''docker pull eeacms/gitflow'''
|
|
24
|
+
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
13
30
|
stage('Code') {
|
|
14
31
|
when {
|
|
15
32
|
allOf {
|
|
@@ -46,7 +63,6 @@ pipeline {
|
|
|
46
63
|
when {
|
|
47
64
|
allOf {
|
|
48
65
|
environment name: 'CHANGE_ID', value: ''
|
|
49
|
-
not { branch 'master' }
|
|
50
66
|
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
51
67
|
}
|
|
52
68
|
}
|
|
@@ -92,7 +108,6 @@ pipeline {
|
|
|
92
108
|
when {
|
|
93
109
|
allOf {
|
|
94
110
|
environment name: 'CHANGE_ID', value: ''
|
|
95
|
-
not { branch 'master' }
|
|
96
111
|
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
97
112
|
}
|
|
98
113
|
}
|
|
@@ -191,23 +206,6 @@ pipeline {
|
|
|
191
206
|
}
|
|
192
207
|
}
|
|
193
208
|
|
|
194
|
-
stage('Release') {
|
|
195
|
-
when {
|
|
196
|
-
allOf {
|
|
197
|
-
environment name: 'CHANGE_ID', value: ''
|
|
198
|
-
branch 'master'
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
steps {
|
|
202
|
-
node(label: 'docker') {
|
|
203
|
-
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
|
|
204
|
-
sh '''docker pull eeacms/gitflow'''
|
|
205
|
-
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
209
|
}
|
|
212
210
|
|
|
213
211
|
post {
|
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.45",
|
|
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",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"@eeacms/volto-resize-helper",
|
|
27
27
|
"@eeacms/volto-tabs-block",
|
|
28
28
|
"@eeacms/volto-clms-utils",
|
|
29
|
-
"volto-form-block"
|
|
29
|
+
"volto-form-block",
|
|
30
|
+
"@eeacms/volto-taxonomy"
|
|
30
31
|
],
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@eeacms/volto-tabs-block": "1.2.7",
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
"@eeacms/volto-arcgis-block": "*",
|
|
46
47
|
"react-native-mime-types": "2.3.0",
|
|
47
48
|
"@eeacms/volto-clms-utils": "0.1.1",
|
|
48
|
-
"volto-form-block": "2.1.0"
|
|
49
|
+
"volto-form-block": "2.1.0",
|
|
50
|
+
"@eeacms/volto-taxonomy": "^1.0.0"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"eslint": "^6.8.0",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Post meeting register actions.
|
|
3
|
+
* @module actions/postImportGeonetwork
|
|
4
|
+
*/
|
|
5
|
+
export const POST_IMPORT_GEONETWORK = 'POST_IMPORT_GEONETWORK';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Post import geonetwork.
|
|
9
|
+
* @function postImportGeonetwork
|
|
10
|
+
* @returns {Object} Get extra items action.
|
|
11
|
+
*/
|
|
12
|
+
export function postImportGeonetwork(url, id, type) {
|
|
13
|
+
return {
|
|
14
|
+
type: POST_IMPORT_GEONETWORK,
|
|
15
|
+
request: {
|
|
16
|
+
op: 'post',
|
|
17
|
+
data: { id: id, type: type },
|
|
18
|
+
path: `${url}/@import-from-geonetwork`,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}
|
package/src/actions/index.js
CHANGED
|
@@ -11,31 +11,47 @@
|
|
|
11
11
|
* };
|
|
12
12
|
*/
|
|
13
13
|
export { getTokens, createTokens, deleteTokens } from './tokens/tokens';
|
|
14
|
+
|
|
14
15
|
export {
|
|
15
16
|
getExtraBreadcrumbItems,
|
|
16
17
|
GET_EXTRA_BREADCRUMB_ITEMS,
|
|
17
18
|
} from './extra_breadcrumbs/extra_breadcrumb';
|
|
19
|
+
|
|
18
20
|
export {
|
|
19
21
|
POST_MEETING_REGISTER,
|
|
20
22
|
postMeetingRegister,
|
|
21
23
|
} from './meeting/meeting_register';
|
|
24
|
+
|
|
22
25
|
export {
|
|
23
26
|
MEETING_SUBSCRIBERS_MANIPULATION,
|
|
24
27
|
MeetingSubscribersManipulation,
|
|
25
28
|
} from './meeting/meeting_subscribers_manipulation';
|
|
29
|
+
|
|
26
30
|
export {
|
|
27
31
|
MEETING_SUBSCRIBERS,
|
|
28
32
|
MeetingSubscribers,
|
|
29
33
|
} from './meeting/meeting_subscribers';
|
|
34
|
+
|
|
30
35
|
export {
|
|
31
36
|
POST_DOWNLOADTOOL,
|
|
32
37
|
postDownloadtool,
|
|
33
38
|
} from './downloadtool/post_downloadtool';
|
|
39
|
+
|
|
34
40
|
export {
|
|
35
41
|
GET_DOWNLOADTOOL,
|
|
36
42
|
getDownloadtool,
|
|
37
43
|
} from './downloadtool/get_downloadtool';
|
|
44
|
+
|
|
38
45
|
export {
|
|
39
46
|
DELETE_DOWNLOADTOOL,
|
|
40
47
|
deleteDownloadtool,
|
|
41
48
|
} from './downloadtool/delete_downloadtool';
|
|
49
|
+
|
|
50
|
+
export { GET_REGISTRY, getRegistry } from './registry/registry';
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
POST_IMPORT_GEONETWORK,
|
|
54
|
+
postImportGeonetwork,
|
|
55
|
+
} from './geonetwork/import_geonetwork';
|
|
56
|
+
|
|
57
|
+
export { getUserSchema } from './userschema/userschema';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get cart selection to downloadtool.
|
|
3
|
+
* @module actions/registry
|
|
4
|
+
*/
|
|
5
|
+
export const GET_REGISTRY = 'GET_REGISTRY';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Get cart selection to registry.
|
|
9
|
+
* @function GetRegistry
|
|
10
|
+
* @returns {Object} Get extra items action.
|
|
11
|
+
*/
|
|
12
|
+
export function getRegistry(registry_key) {
|
|
13
|
+
return {
|
|
14
|
+
type: GET_REGISTRY,
|
|
15
|
+
registry_key: registry_key,
|
|
16
|
+
request: {
|
|
17
|
+
op: 'get',
|
|
18
|
+
path: `/@anon-registry/${registry_key}`,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-unresolved
|
|
2
|
+
import { GET_USERSCHEMA } from '../../constants/ActionTypes';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Get the user schema.
|
|
6
|
+
* @function getUserSchema
|
|
7
|
+
* @returns {Object} Get the user schema action.
|
|
8
|
+
*/
|
|
9
|
+
export function getUserSchema() {
|
|
10
|
+
return {
|
|
11
|
+
type: GET_USERSCHEMA,
|
|
12
|
+
request: {
|
|
13
|
+
op: 'get',
|
|
14
|
+
path: `/@userschema`,
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -4,7 +4,7 @@ import CclHomeImageEditor from './CclHomeImageEditor';
|
|
|
4
4
|
|
|
5
5
|
const CclGreenBgView = (props) => {
|
|
6
6
|
const { data, isEditMode } = props;
|
|
7
|
-
|
|
7
|
+
const { showInfo, setShowInfo } = props.properties;
|
|
8
8
|
return (
|
|
9
9
|
<div className="ccl-banner-top-container">
|
|
10
10
|
<div
|
|
@@ -44,15 +44,39 @@ const CclGreenBgView = (props) => {
|
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
|
-
|
|
48
|
-
<div className="ccl-
|
|
49
|
-
<div className="ccl-
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
|
|
47
|
+
{data?.hasLocationInfo && (
|
|
48
|
+
<div className="ccl-banner-top-bar">
|
|
49
|
+
<div className="ccl-container">
|
|
50
|
+
<div className="ccl-banner-top-bar-left"></div>
|
|
51
|
+
<div
|
|
52
|
+
role={'button'}
|
|
53
|
+
tabIndex={0}
|
|
54
|
+
className="ccl-banner-top-bar-right"
|
|
55
|
+
onClick={() => setShowInfo(!showInfo)}
|
|
56
|
+
onKeyDown={() => setShowInfo(!showInfo)}
|
|
57
|
+
>
|
|
58
|
+
<span className="ccl-icon-map-dot"></span>
|
|
59
|
+
{data?.location}
|
|
60
|
+
</div>
|
|
61
|
+
{showInfo && (
|
|
62
|
+
<div className="ccl-banner-info" style={{ display: 'block' }}>
|
|
63
|
+
<div className="ccl-banner-info-title">
|
|
64
|
+
{data?.locationInfoTitle}
|
|
65
|
+
</div>
|
|
66
|
+
<div className="ccl-banner-info-content">
|
|
67
|
+
<p>{data?.locationDescription}</p>
|
|
68
|
+
</div>
|
|
69
|
+
<a
|
|
70
|
+
className="ccl-banner-info-link"
|
|
71
|
+
href={'' + data?.locationHref?.[0]?.['@id']}
|
|
72
|
+
>
|
|
73
|
+
More info
|
|
74
|
+
</a>
|
|
75
|
+
</div>
|
|
76
|
+
)}
|
|
53
77
|
</div>
|
|
54
78
|
</div>
|
|
55
|
-
|
|
79
|
+
)}
|
|
56
80
|
</div>
|
|
57
81
|
);
|
|
58
82
|
};
|
|
@@ -40,7 +40,11 @@ const CclHomeBgImageBlockEdit = (props) => {
|
|
|
40
40
|
/>
|
|
41
41
|
<SidebarPortal selected={selected}>
|
|
42
42
|
<BlockDataForm
|
|
43
|
-
schema={HomeBgImageSchema(
|
|
43
|
+
schema={HomeBgImageSchema(
|
|
44
|
+
config,
|
|
45
|
+
data.hasButton,
|
|
46
|
+
data.hasLocationInfo,
|
|
47
|
+
)}
|
|
44
48
|
title="Carousel Div block"
|
|
45
49
|
onChangeField={(id, value) => {
|
|
46
50
|
onChangeBlock(block, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const HomeBgImageSchema = (config, hasButton) => {
|
|
1
|
+
export const HomeBgImageSchema = (config, hasButton, hasLocationInfo) => {
|
|
2
2
|
const variationsConfig = config.blocks.blocksConfig['homeBgImage'].variations;
|
|
3
3
|
const variations = Object.keys(variationsConfig).map((variation) => [
|
|
4
4
|
variationsConfig[variation].id,
|
|
@@ -13,6 +13,15 @@ export const HomeBgImageSchema = (config, hasButton) => {
|
|
|
13
13
|
},
|
|
14
14
|
]
|
|
15
15
|
: [];
|
|
16
|
+
const hasLocationFieldset = hasLocationInfo
|
|
17
|
+
? [
|
|
18
|
+
{
|
|
19
|
+
id: 'locationInfo',
|
|
20
|
+
title: 'Location info',
|
|
21
|
+
fields: ['locationInfoTitle', 'locationDescription', 'locationHref'],
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
: [];
|
|
16
25
|
return {
|
|
17
26
|
title: 'Card container',
|
|
18
27
|
fieldsets: [
|
|
@@ -24,11 +33,12 @@ export const HomeBgImageSchema = (config, hasButton) => {
|
|
|
24
33
|
'subtitle',
|
|
25
34
|
'description',
|
|
26
35
|
'variation',
|
|
27
|
-
'greenText',
|
|
28
36
|
'location',
|
|
37
|
+
'hasLocationInfo',
|
|
29
38
|
'hasButton',
|
|
30
39
|
],
|
|
31
40
|
},
|
|
41
|
+
...hasLocationFieldset,
|
|
32
42
|
...hasButtonFieldset,
|
|
33
43
|
],
|
|
34
44
|
properties: {
|
|
@@ -57,16 +67,35 @@ export const HomeBgImageSchema = (config, hasButton) => {
|
|
|
57
67
|
type: 'array',
|
|
58
68
|
choices: [...variations],
|
|
59
69
|
},
|
|
60
|
-
greenText: {
|
|
61
|
-
title: 'Left text',
|
|
62
|
-
description: 'Green bg left side text',
|
|
63
|
-
type: 'string',
|
|
64
|
-
},
|
|
65
70
|
location: {
|
|
66
71
|
title: 'Location',
|
|
67
72
|
description: 'Green bg location',
|
|
68
73
|
type: 'string',
|
|
69
74
|
},
|
|
75
|
+
hasLocationInfo: {
|
|
76
|
+
title: 'Location info',
|
|
77
|
+
description: 'Green bg location info',
|
|
78
|
+
type: 'boolean',
|
|
79
|
+
default: false,
|
|
80
|
+
},
|
|
81
|
+
locationInfoTitle: {
|
|
82
|
+
title: 'Location info title',
|
|
83
|
+
description: 'Green bg location info title',
|
|
84
|
+
type: 'string',
|
|
85
|
+
},
|
|
86
|
+
locationDescription: {
|
|
87
|
+
title: 'Location description',
|
|
88
|
+
description: 'Green bg location description',
|
|
89
|
+
type: 'string',
|
|
90
|
+
},
|
|
91
|
+
locationHref: {
|
|
92
|
+
title: 'location URL',
|
|
93
|
+
description: 'Select site content or paste external url',
|
|
94
|
+
widget: 'object_browser',
|
|
95
|
+
mode: 'link',
|
|
96
|
+
selectedItemAttrs: ['Title', 'Description', '@type', '@id'],
|
|
97
|
+
allowExternals: true,
|
|
98
|
+
},
|
|
70
99
|
buttonTitle: {
|
|
71
100
|
title: 'Title',
|
|
72
101
|
description: 'Add button text',
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SidebarPortal } from '@plone/volto/components';
|
|
3
|
+
import InlineForm from '@plone/volto/components/manage/Form/InlineForm';
|
|
4
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
5
|
+
import { searchContent } from '@plone/volto/actions';
|
|
6
|
+
import config from '@plone/volto/registry';
|
|
7
|
+
// import { getBaseUrl } from '@plone/volto/helpers';
|
|
8
|
+
|
|
9
|
+
const CclReatedListingEdit = (props) => {
|
|
10
|
+
const {
|
|
11
|
+
block,
|
|
12
|
+
data,
|
|
13
|
+
onChangeBlock,
|
|
14
|
+
selected,
|
|
15
|
+
id,
|
|
16
|
+
properties,
|
|
17
|
+
metadata,
|
|
18
|
+
} = props;
|
|
19
|
+
const dispatch = useDispatch();
|
|
20
|
+
const schema = config.blocks.blocksConfig['relatedListing'].schema;
|
|
21
|
+
const searchSubrequests = useSelector((state) => state.search.subrequests);
|
|
22
|
+
const types = useSelector((state) => state.types.types);
|
|
23
|
+
const types_schema = types.map((type) => [type.title, type.title]);
|
|
24
|
+
// const path = getBaseUrl(metadata ? metadata['@id'] : properties['@id']);
|
|
25
|
+
const uid = metadata ? metadata['UID'] : properties['UID'];
|
|
26
|
+
let libraries = searchSubrequests?.[props.id]?.items || [];
|
|
27
|
+
const variationsConfig =
|
|
28
|
+
config.blocks.blocksConfig['relatedListing'].variations;
|
|
29
|
+
let TemplateView = '';
|
|
30
|
+
let template_id = '';
|
|
31
|
+
for (let variation in variationsConfig) {
|
|
32
|
+
if (!data?.variation && variationsConfig[variation].isDefault) {
|
|
33
|
+
TemplateView = variationsConfig[variation].template;
|
|
34
|
+
template_id = variationsConfig[variation].id;
|
|
35
|
+
data.variation = template_id;
|
|
36
|
+
}
|
|
37
|
+
if (variationsConfig[variation].id === data?.variation) {
|
|
38
|
+
TemplateView = variationsConfig[variation].template;
|
|
39
|
+
template_id = variationsConfig[variation].id;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (template_id === '') {
|
|
43
|
+
for (let variation in variationsConfig) {
|
|
44
|
+
if (variationsConfig[variation].isDefault) {
|
|
45
|
+
TemplateView = variationsConfig[variation].template;
|
|
46
|
+
template_id = variationsConfig[variation].id;
|
|
47
|
+
data.variation = template_id;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (!data.content_type) {
|
|
52
|
+
data.content_type = 'News Item';
|
|
53
|
+
}
|
|
54
|
+
React.useEffect(() => {
|
|
55
|
+
dispatch(
|
|
56
|
+
searchContent(
|
|
57
|
+
'',
|
|
58
|
+
{
|
|
59
|
+
fullobjects: 1,
|
|
60
|
+
portal_type: data.content_type,
|
|
61
|
+
path: '/',
|
|
62
|
+
associated_products: uid,
|
|
63
|
+
},
|
|
64
|
+
id,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}, [data, id, uid, dispatch]);
|
|
68
|
+
return (
|
|
69
|
+
<>
|
|
70
|
+
<div className="technical-libraries">
|
|
71
|
+
<h2>Related Listings</h2>
|
|
72
|
+
{libraries.length > 0 ? (
|
|
73
|
+
<TemplateView items={libraries} variation={template_id} />
|
|
74
|
+
) : (
|
|
75
|
+
<p>There are no related {data.content_type} items.</p>
|
|
76
|
+
)}
|
|
77
|
+
</div>
|
|
78
|
+
<SidebarPortal selected={selected}>
|
|
79
|
+
<InlineForm
|
|
80
|
+
schema={schema(types_schema)}
|
|
81
|
+
title="Related Listing block"
|
|
82
|
+
onChangeField={(id, value) => {
|
|
83
|
+
onChangeBlock(block, {
|
|
84
|
+
...data,
|
|
85
|
+
[id]: value,
|
|
86
|
+
});
|
|
87
|
+
}}
|
|
88
|
+
formData={data}
|
|
89
|
+
/>
|
|
90
|
+
</SidebarPortal>
|
|
91
|
+
</>
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
export default CclReatedListingEdit;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSelector, useDispatch } from 'react-redux';
|
|
3
|
+
import { searchContent } from '@plone/volto/actions';
|
|
4
|
+
import config from '@plone/volto/registry';
|
|
5
|
+
// import { getBaseUrl } from '@plone/volto/helpers';
|
|
6
|
+
|
|
7
|
+
const CclReatedListingView = (props) => {
|
|
8
|
+
const { data, id, properties, metadata } = props;
|
|
9
|
+
const dispatch = useDispatch();
|
|
10
|
+
const searchSubrequests = useSelector((state) => state.search.subrequests);
|
|
11
|
+
// const path = getBaseUrl(metadata ? metadata['@id'] : properties['@id']);
|
|
12
|
+
const uid = metadata ? metadata['UID'] : properties['UID'];
|
|
13
|
+
let libraries = searchSubrequests?.[props.id]?.items || [];
|
|
14
|
+
const variationsConfig =
|
|
15
|
+
config.blocks.blocksConfig['relatedListing'].variations;
|
|
16
|
+
let TemplateView = '';
|
|
17
|
+
let template_id = '';
|
|
18
|
+
for (let variation in variationsConfig) {
|
|
19
|
+
if (!data?.variation && variationsConfig[variation].isDefault) {
|
|
20
|
+
TemplateView = variationsConfig[variation].template;
|
|
21
|
+
template_id = variationsConfig[variation].id;
|
|
22
|
+
data.variation = template_id;
|
|
23
|
+
}
|
|
24
|
+
if (variationsConfig[variation].id === data?.variation) {
|
|
25
|
+
TemplateView = variationsConfig[variation].template;
|
|
26
|
+
template_id = variationsConfig[variation].id;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (template_id === '') {
|
|
30
|
+
for (let variation in variationsConfig) {
|
|
31
|
+
if (variationsConfig[variation].isDefault) {
|
|
32
|
+
TemplateView = variationsConfig[variation].template;
|
|
33
|
+
template_id = variationsConfig[variation].id;
|
|
34
|
+
data.variation = template_id;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (!data.content_type) {
|
|
39
|
+
data.content_type = 'News Item';
|
|
40
|
+
}
|
|
41
|
+
React.useEffect(() => {
|
|
42
|
+
dispatch(
|
|
43
|
+
searchContent(
|
|
44
|
+
'',
|
|
45
|
+
{
|
|
46
|
+
fullobjects: 1,
|
|
47
|
+
portal_type: data.content_type || 'News Item',
|
|
48
|
+
path: '/',
|
|
49
|
+
associated_products: uid,
|
|
50
|
+
},
|
|
51
|
+
id,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}, [data, id, uid, dispatch]);
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<>
|
|
58
|
+
{libraries.length > 0 ? (
|
|
59
|
+
<TemplateView items={libraries} variation={template_id} />
|
|
60
|
+
) : (
|
|
61
|
+
<p>There are no related {data.content_type} items.</p>
|
|
62
|
+
)}
|
|
63
|
+
</>
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export default CclReatedListingView;
|