@eeacms/volto-cca-policy 0.1.78 → 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 CHANGED
@@ -4,6 +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.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)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
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
+
7
22
  ### [0.1.78](https://github.com/eea/volto-cca-policy/compare/0.1.77...0.1.78) - 20 February 2024
8
23
 
9
24
  #### :house: Internal changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -108,7 +108,7 @@ const EEAHeader = (props) => {
108
108
  }
109
109
  }, [token, dispatch, pathname, previousToken]);
110
110
 
111
- const download = subsite?.subsite_logo.scales?.preview?.download;
111
+ const download = subsite?.subsite_logo?.scales?.preview?.download;
112
112
  const subsiteLogo = subsite?.subsite_logo
113
113
  ? download || toPublicURL(`${subsite['@id']}/@@images/subsite_logo`)
114
114
  : null;
@@ -230,22 +230,24 @@ const EEAHeader = (props) => {
230
230
  {item.title}
231
231
  </a>
232
232
  )}
233
- renderMenuItem={(item, options, props) => (
234
- <UniversalLink
235
- openLinkInNewTab={false}
236
- href={item.nonclickable ? null : item.url || '/'}
237
- title={item.nav_title || item.title}
238
- {...(options || {})}
239
- className={cx(options?.className, {
240
- active: item.url === router_pathname,
241
- 'item-nonclickable': item.nonclickable,
242
- })}
243
- >
244
- {props?.iconPosition !== 'right' && props?.children}
245
- <span>{item.nav_title || item.title}</span>
246
- {props?.iconPosition === 'right' && props?.children}
247
- </UniversalLink>
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: 'Mission Portal',
41
+ cca: 'Climate-ADAPT',
42
42
  },
43
43
  },
44
44
  runtime_mappings: build_runtime_mappings(clusters),
@@ -13,7 +13,6 @@
13
13
  }
14
14
  }
15
15
 
16
-
17
16
  .item-nonclickable {
18
17
  pointer-events: none;
19
18
  }