@eeacms/volto-cca-policy 0.1.79 → 0.1.80
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 +12 -2
- package/package.json +1 -1
- package/src/components/theme/Header.jsx +18 -16
- package/src/customizations/@eeacms/volto-eea-design-system/ui/Header/HeaderMenuPopUp.js +1 -0
- package/src/index.js +6 -0
- package/src/search/mission_projects/config-projects.js +1 -1
- package/theme/extras/header.overrides +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ 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
|
-
### [0.1.
|
|
7
|
+
### [0.1.80](https://github.com/eea/volto-cca-policy/compare/0.1.79...0.1.80) - 21 February 2024
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: add missing class on menu accordion [kreafox - [`0b7008e`](https://github.com/eea/volto-cca-policy/commit/0b7008ee7252a5bd44c5d41f7804f63e3f81b3ca)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change: update cluster name in mission proiects search [kreafox - [`6a95c93`](https://github.com/eea/volto-cca-policy/commit/6a95c936e0fe015ec1fae7524cf3a8360fbb339d)]
|
|
8
16
|
|
|
9
17
|
#### :hammer_and_wrench: Others
|
|
10
18
|
|
|
11
|
-
-
|
|
19
|
+
- Fix sitemap route for observatory [Tiberiu Ichim - [`0780e4d`](https://github.com/eea/volto-cca-policy/commit/0780e4dfd9fc2416e927beff2bb5cb07a36ef244)]
|
|
20
|
+
### [0.1.79](https://github.com/eea/volto-cca-policy/compare/0.1.78...0.1.79) - 20 February 2024
|
|
21
|
+
|
|
12
22
|
### [0.1.78](https://github.com/eea/volto-cca-policy/compare/0.1.77...0.1.78) - 20 February 2024
|
|
13
23
|
|
|
14
24
|
#### :house: Internal changes
|
package/package.json
CHANGED
|
@@ -230,22 +230,24 @@ const EEAHeader = (props) => {
|
|
|
230
230
|
{item.title}
|
|
231
231
|
</a>
|
|
232
232
|
)}
|
|
233
|
-
renderMenuItem={(item, options, props) =>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
233
|
+
renderMenuItem={(item, options, props) =>
|
|
234
|
+
options.className !== 'ui button inverted icon right labeled' && (
|
|
235
|
+
<UniversalLink
|
|
236
|
+
openLinkInNewTab={false}
|
|
237
|
+
href={item.nonclickable ? null : item.url || '/'}
|
|
238
|
+
title={item.nav_title || item.title}
|
|
239
|
+
{...(options || {})}
|
|
240
|
+
className={cx(options?.className, {
|
|
241
|
+
active: item.url === router_pathname,
|
|
242
|
+
'item-nonclickable': item.nonclickable,
|
|
243
|
+
})}
|
|
244
|
+
>
|
|
245
|
+
{props?.iconPosition !== 'right' && props?.children}
|
|
246
|
+
<span>{item.nav_title || item.title}</span>
|
|
247
|
+
{props?.iconPosition === 'right' && props?.children}
|
|
248
|
+
</UniversalLink>
|
|
249
|
+
)
|
|
250
|
+
}
|
|
249
251
|
></Header.Main>
|
|
250
252
|
</Header>
|
|
251
253
|
);
|
|
@@ -200,6 +200,7 @@ const FirstLevelContent = ({ element, renderMenuItem, pathName }) => {
|
|
|
200
200
|
firstLevelPanels.push(x);
|
|
201
201
|
return (
|
|
202
202
|
<Accordion.Accordion
|
|
203
|
+
className={'ui'}
|
|
203
204
|
panels={firstLevelPanels}
|
|
204
205
|
key={index}
|
|
205
206
|
defaultActiveIndex={defaultIndex === index ? 0 : -1}
|
package/src/index.js
CHANGED
|
@@ -453,6 +453,12 @@ const applyConfig = (config) => {
|
|
|
453
453
|
)})/mission/sitemap`,
|
|
454
454
|
component: Sitemap,
|
|
455
455
|
},
|
|
456
|
+
{
|
|
457
|
+
path: `/(${config.settings?.supportedLanguages.join(
|
|
458
|
+
'|',
|
|
459
|
+
)})/observatory/sitemap`,
|
|
460
|
+
component: Sitemap,
|
|
461
|
+
},
|
|
456
462
|
|
|
457
463
|
...(config.addonRoutes || []),
|
|
458
464
|
];
|
|
@@ -38,7 +38,7 @@ export default function installMainSearch(config) {
|
|
|
38
38
|
host: process.env.RAZZLE_ES_PROXY_ADDR || 'http://localhost:3000',
|
|
39
39
|
vocab: {
|
|
40
40
|
cluster_name: {
|
|
41
|
-
cca: '
|
|
41
|
+
cca: 'Climate-ADAPT',
|
|
42
42
|
},
|
|
43
43
|
},
|
|
44
44
|
runtime_mappings: build_runtime_mappings(clusters),
|