@eeacms/volto-globalsearch 4.0.0 → 4.0.1
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/.eslintrc.js +6 -6
- package/CHANGELOG.md +27 -1
- package/package.json +1 -1
- package/src/components/MasonryLandingPage.jsx +4 -4
- package/src/config/clusters.js +27 -24
- package/src/config/clusters.test.js +107 -33
- package/src/config/facets.js +1 -1
- package/src/config/filters.js +1 -1
- package/src/config/global-search-base-config.js +1 -1
package/.eslintrc.js
CHANGED
|
@@ -16,16 +16,16 @@ if (configFile) {
|
|
|
16
16
|
voltoPath = `./${jsConfig.baseUrl}/${pathsConfig['@plone/volto'][0]}`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const
|
|
20
|
-
const
|
|
19
|
+
const { AddonRegistry } = require('@plone/registry/addon-registry');
|
|
20
|
+
const { registry } = AddonRegistry.init(projectRootPath);
|
|
21
21
|
|
|
22
22
|
// Extends ESlint configuration for adding the aliases to `src` directories in Volto addons
|
|
23
|
-
const addonAliases = Object.keys(
|
|
23
|
+
const addonAliases = Object.keys(registry.packages).map((o) => [
|
|
24
24
|
o,
|
|
25
|
-
|
|
25
|
+
registry.packages[o].modulePath,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
|
-
const addonExtenders =
|
|
28
|
+
const addonExtenders = registry.getEslintExtenders().map((m) => require(m));
|
|
29
29
|
|
|
30
30
|
const defaultConfig = {
|
|
31
31
|
extends: `${voltoPath}/.eslintrc`,
|
|
@@ -34,7 +34,7 @@ const defaultConfig = {
|
|
|
34
34
|
alias: {
|
|
35
35
|
map: [
|
|
36
36
|
['@plone/volto', '@plone/volto/src'],
|
|
37
|
-
['@plone/volto-slate', '@plone/volto
|
|
37
|
+
['@plone/volto-slate', '@plone/volto-slate/src'],
|
|
38
38
|
...addonAliases,
|
|
39
39
|
['@package', `${__dirname}/src`],
|
|
40
40
|
['@root', `${__dirname}/src`],
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,13 @@ 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
|
-
### [4.0.
|
|
7
|
+
### [4.0.1](https://github.com/eea/volto-globalsearch/compare/4.0.0...4.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: make test [Alin V. (Claudiu) - [`f0ad1b5`](https://github.com/eea/volto-globalsearch/commit/f0ad1b5627b5a1f015c8489154abed639e2b1020)]
|
|
12
|
+
|
|
13
|
+
## [4.0.0](https://github.com/eea/volto-globalsearch/compare/3.0.0...4.0.0) - 25 March 2026
|
|
8
14
|
|
|
9
15
|
#### :rocket: New Features
|
|
10
16
|
|
|
@@ -12,6 +18,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
12
18
|
|
|
13
19
|
#### :house: Internal changes
|
|
14
20
|
|
|
21
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`3fb8191`](https://github.com/eea/volto-globalsearch/commit/3fb8191bd7408b11799a06026a0bc2dedef35169)]
|
|
22
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`08e3e0f`](https://github.com/eea/volto-globalsearch/commit/08e3e0ff73b2b00d1d70fb105157691d2ab08451)]
|
|
15
23
|
|
|
16
24
|
#### :hammer_and_wrench: Others
|
|
17
25
|
|
|
@@ -43,6 +51,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
43
51
|
#### :hammer_and_wrench: Others
|
|
44
52
|
|
|
45
53
|
- Update package.json [Krisztina Elekes - [`37141a6`](https://github.com/eea/volto-globalsearch/commit/37141a6d38c96f87ce0c6b443b476739b728797f)]
|
|
54
|
+
- Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`661bae3`](https://github.com/eea/volto-globalsearch/commit/661bae385546a308e2b44389ec734be80a6fc916)]
|
|
46
55
|
### [2.0.9](https://github.com/eea/volto-globalsearch/compare/2.0.8...2.0.9) - 6 March 2025
|
|
47
56
|
|
|
48
57
|
#### :hammer_and_wrench: Others
|
|
@@ -88,6 +97,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
88
97
|
|
|
89
98
|
- added logo for copernicus insitu [Zoltan Szabo - [`b6b00ea`](https://github.com/eea/volto-globalsearch/commit/b6b00eacaf5fd798426fd5cf0af50858f8be79ef)]
|
|
90
99
|
- added copernicus in situ [Zoltan Szabo - [`54e3657`](https://github.com/eea/volto-globalsearch/commit/54e3657c28f8aa5a839952e83f9fbdb238e99ff0)]
|
|
100
|
+
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`173f015`](https://github.com/eea/volto-globalsearch/commit/173f015579c8e334c853238d9fbf39261ced1cb4)]
|
|
91
101
|
### [2.0.2](https://github.com/eea/volto-globalsearch/compare/2.0.1...2.0.2) - 16 December 2024
|
|
92
102
|
|
|
93
103
|
#### :house: Internal changes
|
|
@@ -96,6 +106,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
96
106
|
|
|
97
107
|
#### :hammer_and_wrench: Others
|
|
98
108
|
|
|
109
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`5c6aa68`](https://github.com/eea/volto-globalsearch/commit/5c6aa68b0677dca98776114e69275ade89dcdf25)]
|
|
99
110
|
### [2.0.1](https://github.com/eea/volto-globalsearch/compare/2.0.0...2.0.1) - 14 October 2024
|
|
100
111
|
|
|
101
112
|
## [2.0.0](https://github.com/eea/volto-globalsearch/compare/1.1.0...2.0.0) - 22 April 2024
|
|
@@ -107,6 +118,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
107
118
|
|
|
108
119
|
#### :hammer_and_wrench: Others
|
|
109
120
|
|
|
121
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`d37a6cb`](https://github.com/eea/volto-globalsearch/commit/d37a6cbbe18e53abed600c082d7d23f8907fd7d3)]
|
|
110
122
|
### [1.1.0](https://github.com/eea/volto-globalsearch/compare/1.0.22...1.1.0) - 16 January 2024
|
|
111
123
|
|
|
112
124
|
#### :hammer_and_wrench: Others
|
|
@@ -120,6 +132,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
120
132
|
|
|
121
133
|
#### :house: Internal changes
|
|
122
134
|
|
|
135
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`af030b5`](https://github.com/eea/volto-globalsearch/commit/af030b5cc8780353dd67f30857fd20edf746d5a0)]
|
|
123
136
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`866609d`](https://github.com/eea/volto-globalsearch/commit/866609d540bd0efe4bab088305bb2127105d8df7)]
|
|
124
137
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`e09f5e2`](https://github.com/eea/volto-globalsearch/commit/e09f5e2c1161b4b867c04eb1c0421274bd6c7110)]
|
|
125
138
|
|
|
@@ -127,6 +140,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
127
140
|
|
|
128
141
|
- removed try/catch [Zoltan Szabo - [`86cec5d`](https://github.com/eea/volto-globalsearch/commit/86cec5d49d06d41541dc6d42464e9b95769da745)]
|
|
129
142
|
- avoid async promise executor functions [Zoltan Szabo - [`61012e3`](https://github.com/eea/volto-globalsearch/commit/61012e331776fadaa9eafe9f7667b18d08b2351a)]
|
|
143
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`693b9c7`](https://github.com/eea/volto-globalsearch/commit/693b9c7f8c9d96533f04f5ae165e7e63b753222d)]
|
|
144
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`66db063`](https://github.com/eea/volto-globalsearch/commit/66db0635134d95f57c913c400902096980f2b66b)]
|
|
145
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4b8920b`](https://github.com/eea/volto-globalsearch/commit/4b8920b5456e5a7f0ef355a0aa208267b50d395f)]
|
|
146
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`5ea9790`](https://github.com/eea/volto-globalsearch/commit/5ea97905931323146c33be941646fab45643b18b)]
|
|
147
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`1b94a8c`](https://github.com/eea/volto-globalsearch/commit/1b94a8c137d6c4961f811bbc4596da93d2b588bd)]
|
|
130
148
|
### [1.0.21](https://github.com/eea/volto-globalsearch/compare/1.0.20...1.0.21) - 29 September 2023
|
|
131
149
|
|
|
132
150
|
#### :house: Internal changes
|
|
@@ -189,11 +207,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
189
207
|
|
|
190
208
|
#### :house: Internal changes
|
|
191
209
|
|
|
210
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`ae6efed`](https://github.com/eea/volto-globalsearch/commit/ae6efed386f8fd053972a388a3f8714ff36cf575)]
|
|
192
211
|
|
|
193
212
|
#### :hammer_and_wrench: Others
|
|
194
213
|
|
|
195
214
|
- added missing logo [Zoltan Szabo - [`94684b9`](https://github.com/eea/volto-globalsearch/commit/94684b979698c47de353ecc2a9014a8f70d7ecc1)]
|
|
196
215
|
- updated frontend with configuration for 'Climate Advisory Board' [Zoltan Szabo - [`28cf22c`](https://github.com/eea/volto-globalsearch/commit/28cf22c93237226c3957223b497a33ab3cb73623)]
|
|
216
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`b655d51`](https://github.com/eea/volto-globalsearch/commit/b655d51fa3631ae42c89eb85bdcc850f70d9c72c)]
|
|
197
217
|
### [1.0.15](https://github.com/eea/volto-globalsearch/compare/1.0.14...1.0.15) - 14 March 2023
|
|
198
218
|
|
|
199
219
|
#### :hammer_and_wrench: Others
|
|
@@ -213,6 +233,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
213
233
|
#### :hammer_and_wrench: Others
|
|
214
234
|
|
|
215
235
|
- set the middleware proxy address for globalsearchbase [Zoltan Szabo - [`d0a0802`](https://github.com/eea/volto-globalsearch/commit/d0a08026fa73ce8fd15b666c922e7db71104a5d1)]
|
|
236
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b710a4f`](https://github.com/eea/volto-globalsearch/commit/b710a4f73f61e164ecf502a83e7f07d0daf578b3)]
|
|
216
237
|
### [1.0.12](https://github.com/eea/volto-globalsearch/compare/1.0.11...1.0.12) - 1 March 2023
|
|
217
238
|
|
|
218
239
|
#### :hammer_and_wrench: Others
|
|
@@ -280,12 +301,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
280
301
|
- Make last 2 years default [Tiberiu Ichim - [`ff765e2`](https://github.com/eea/volto-globalsearch/commit/ff765e24a1d93c60f091aeffa7c3156d8fb98e49)]
|
|
281
302
|
- Add compact listing, placeholder for now [Tiberiu Ichim - [`3f6104f`](https://github.com/eea/volto-globalsearch/commit/3f6104fb1725f7e3c22736a30629f64e4882242a)]
|
|
282
303
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`8120264`](https://github.com/eea/volto-globalsearch/commit/812026495c31b272e6ae6415642cf1a6b2f783cf)]
|
|
304
|
+
- yarn 3 [Alin Voinea - [`b61ad50`](https://github.com/eea/volto-globalsearch/commit/b61ad5075a79bebfce1044a6cd4978c92d98fbdc)]
|
|
283
305
|
### [1.0.1](https://github.com/eea/volto-globalsearch/compare/1.0.0...1.0.1) - 16 November 2022
|
|
284
306
|
|
|
285
307
|
#### :hammer_and_wrench: Others
|
|
286
308
|
|
|
287
309
|
- Fix eslint [Tiberiu Ichim - [`cf2886b`](https://github.com/eea/volto-globalsearch/commit/cf2886b412013f9427cf5d39cdf00004bdd9f80b)]
|
|
288
310
|
- test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`40c08d2`](https://github.com/eea/volto-globalsearch/commit/40c08d2d4eda81ce306225a81f09e0bcfe6794eb)]
|
|
311
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`af6e020`](https://github.com/eea/volto-globalsearch/commit/af6e020794798c1f69fee8c08bdf71fc3992230a)]
|
|
289
312
|
## [1.0.0](https://github.com/eea/volto-globalsearch/compare/0.1.7...1.0.0) - 28 October 2022
|
|
290
313
|
|
|
291
314
|
#### :nail_care: Enhancements
|
|
@@ -304,6 +327,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
304
327
|
#### :hammer_and_wrench: Others
|
|
305
328
|
|
|
306
329
|
- Fix dependencies [kreafox - [`50ad307`](https://github.com/eea/volto-globalsearch/commit/50ad307d64140c43df9dded27c0b532923885764)]
|
|
330
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c2d848e`](https://github.com/eea/volto-globalsearch/commit/c2d848e1efa456f53d883c50769882101e1ce19f)]
|
|
307
331
|
### [0.1.5](https://github.com/eea/volto-globalsearch/compare/0.1.4...0.1.5) - 28 July 2022
|
|
308
332
|
|
|
309
333
|
#### :hammer_and_wrench: Others
|
|
@@ -316,6 +340,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
316
340
|
|
|
317
341
|
#### :hammer_and_wrench: Others
|
|
318
342
|
|
|
343
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5dce07b`](https://github.com/eea/volto-globalsearch/commit/5dce07ba7d1e82776a426e9746d5dab1b0acf738)]
|
|
319
344
|
### [0.1.3](https://github.com/eea/volto-globalsearch/compare/0.1.2...0.1.3) - 10 June 2022
|
|
320
345
|
|
|
321
346
|
### [0.1.2](https://github.com/eea/volto-globalsearch/compare/0.1.1...0.1.2) - 10 June 2022
|
|
@@ -338,6 +363,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
338
363
|
- ignore eslint for *.json files [Zoltan Szabo - [`e18919e`](https://github.com/eea/volto-globalsearch/commit/e18919e1255818c5cf33bf769cca078d75ca3422)]
|
|
339
364
|
- formatting [Zoltan Szabo - [`18282ed`](https://github.com/eea/volto-globalsearch/commit/18282ed159865bcbc50e2fd17417cf6d90d3e593)]
|
|
340
365
|
- updated dependencies [Zoltan Szabo - [`cfcf46e`](https://github.com/eea/volto-globalsearch/commit/cfcf46ee33b23bb31f76955c12a857411f042daf)]
|
|
366
|
+
- [JENKINSFILE] fix after bootstrap [valentinab25 - [`61c8c46`](https://github.com/eea/volto-globalsearch/commit/61c8c46891edf3b52768f12cf7505c034ef7bb89)]
|
|
341
367
|
### 0.0.1 - 19 May 2022
|
|
342
368
|
|
|
343
369
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -3,12 +3,12 @@ import Masonry from 'react-masonry-component';
|
|
|
3
3
|
|
|
4
4
|
import { runRequest } from '@eeacms/search';
|
|
5
5
|
|
|
6
|
-
import objectProvidesWhitelist from '
|
|
7
|
-
import spatialWhitelist from '
|
|
6
|
+
import objectProvidesWhitelist from '@eeacms/volto-globalsearch/config/json/objectProvidesWhitelist.json';
|
|
7
|
+
import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist.json';
|
|
8
8
|
|
|
9
|
-
import { getTodayWithTime } from '
|
|
9
|
+
import { getTodayWithTime } from '@eeacms/volto-globalsearch/utils';
|
|
10
10
|
|
|
11
|
-
import '
|
|
11
|
+
import '@eeacms/volto-globalsearch/styles/masonry-landing-page.less';
|
|
12
12
|
|
|
13
13
|
const RES_REQUEST = {
|
|
14
14
|
// es_query_metadata: {
|
package/src/config/clusters.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
get_cluster_icons_dict,
|
|
3
|
+
get_cluster_icons,
|
|
4
|
+
} from '@eeacms/volto-globalsearch/utils';
|
|
2
5
|
|
|
3
6
|
export const clusters = {
|
|
4
7
|
name: 'op_cluster',
|
|
@@ -75,79 +78,79 @@ const config = {
|
|
|
75
78
|
'Content types': get_cluster_icons_dict(clusters),
|
|
76
79
|
Sources: {
|
|
77
80
|
fallback: {
|
|
78
|
-
url: require('
|
|
81
|
+
url: require('@eeacms/volto-globalsearch/static/website-logo.png'),
|
|
79
82
|
},
|
|
80
83
|
eea: {
|
|
81
|
-
url: require('
|
|
84
|
+
url: require('@eeacms/volto-globalsearch/static/eea-logo.svg'),
|
|
82
85
|
},
|
|
83
86
|
ias: {
|
|
84
|
-
url: require('
|
|
87
|
+
url: require('@eeacms/volto-globalsearch/static/ias-logo.png'),
|
|
85
88
|
},
|
|
86
89
|
bise: {
|
|
87
|
-
url: require('
|
|
90
|
+
url: require('@eeacms/volto-globalsearch/static/bise-logo.png'),
|
|
88
91
|
},
|
|
89
92
|
'wise-marine': {
|
|
90
|
-
url: require('
|
|
93
|
+
url: require('@eeacms/volto-globalsearch/static/wise-logo.png'),
|
|
91
94
|
},
|
|
92
95
|
energy: {
|
|
93
|
-
url: require('
|
|
96
|
+
url: require('@eeacms/volto-globalsearch/static/energy-logo.png'),
|
|
94
97
|
},
|
|
95
98
|
'wise-freshwater': {
|
|
96
|
-
url: require('
|
|
99
|
+
url: require('@eeacms/volto-globalsearch/static/water-logo.png'),
|
|
97
100
|
},
|
|
98
101
|
fise: {
|
|
99
|
-
url: require('
|
|
102
|
+
url: require('@eeacms/volto-globalsearch/static/forest-logo.png'),
|
|
100
103
|
},
|
|
101
104
|
industry: {
|
|
102
|
-
url: require('
|
|
105
|
+
url: require('@eeacms/volto-globalsearch/static/industry-logo.png'),
|
|
103
106
|
},
|
|
104
107
|
cca: {
|
|
105
|
-
url: require('
|
|
108
|
+
url: require('@eeacms/volto-globalsearch/static/climate-adapt-logo.png'),
|
|
106
109
|
},
|
|
107
110
|
etc: {
|
|
108
|
-
url: require('
|
|
111
|
+
url: require('@eeacms/volto-globalsearch/static/eionet-logo.png'),
|
|
109
112
|
},
|
|
110
113
|
'etc-atni': {
|
|
111
|
-
url: require('
|
|
114
|
+
url: require('@eeacms/volto-globalsearch/static/etc-atni.png'),
|
|
112
115
|
},
|
|
113
116
|
|
|
114
117
|
'etc-bd': {
|
|
115
|
-
url: require('
|
|
118
|
+
url: require('@eeacms/volto-globalsearch/static/etc-bd.jpg'),
|
|
116
119
|
},
|
|
117
120
|
|
|
118
121
|
'etc-cca': {
|
|
119
|
-
url: require('
|
|
122
|
+
url: require('@eeacms/volto-globalsearch/static/etc-cca.jpeg'),
|
|
120
123
|
},
|
|
121
124
|
|
|
122
125
|
'etc-cme': {
|
|
123
|
-
url: require('
|
|
126
|
+
url: require('@eeacms/volto-globalsearch/static/etc-cme.png'),
|
|
124
127
|
},
|
|
125
128
|
|
|
126
129
|
'etc-icm': {
|
|
127
|
-
url: require('
|
|
130
|
+
url: require('@eeacms/volto-globalsearch/static/etc-icm.jpg'),
|
|
128
131
|
},
|
|
129
132
|
|
|
130
133
|
'etc-uls': {
|
|
131
|
-
url: require('
|
|
134
|
+
url: require('@eeacms/volto-globalsearch/static/etc-uls.png'),
|
|
132
135
|
},
|
|
133
136
|
|
|
134
137
|
'etc-wmge': {
|
|
135
|
-
url: require('
|
|
138
|
+
url: require('@eeacms/volto-globalsearch/static/etc-wmge.png'),
|
|
136
139
|
},
|
|
137
140
|
sdi: {
|
|
138
|
-
url: require('
|
|
141
|
+
url: require('@eeacms/volto-globalsearch/static/eea-logo.svg'),
|
|
139
142
|
},
|
|
140
143
|
cab: {
|
|
141
|
-
url: require('
|
|
144
|
+
url: require('@eeacms/volto-globalsearch/static/cab-logo.png'),
|
|
142
145
|
},
|
|
143
146
|
discomap: {
|
|
144
|
-
url: require('
|
|
147
|
+
url: require('@eeacms/volto-globalsearch/static/eea-logo.svg'),
|
|
145
148
|
},
|
|
146
149
|
noise: {
|
|
147
|
-
url: require('
|
|
150
|
+
url: require('@eeacms/volto-globalsearch/static/eea-logo.svg'),
|
|
148
151
|
},
|
|
149
152
|
copernicus_insitu: {
|
|
150
|
-
url: require('
|
|
153
|
+
url: require('@eeacms/volto-globalsearch/static/copernicus_insitu_logo.svg'),
|
|
151
154
|
},
|
|
152
155
|
},
|
|
153
156
|
Countries: {
|
|
@@ -7,41 +7,115 @@ import config, {
|
|
|
7
7
|
} from './clusters';
|
|
8
8
|
|
|
9
9
|
// Mock static image imports
|
|
10
|
-
jest.mock(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
jest.mock(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
virtual: true,
|
|
31
|
-
|
|
32
|
-
jest.mock(
|
|
10
|
+
jest.mock(
|
|
11
|
+
'@eeacms/volto-globalsearch/static/website-logo.png',
|
|
12
|
+
() => 'website-logo.png',
|
|
13
|
+
{
|
|
14
|
+
virtual: true,
|
|
15
|
+
},
|
|
16
|
+
);
|
|
17
|
+
jest.mock(
|
|
18
|
+
'@eeacms/volto-globalsearch/static/eea-logo.svg',
|
|
19
|
+
() => 'eea-logo.svg',
|
|
20
|
+
{ virtual: true },
|
|
21
|
+
);
|
|
22
|
+
jest.mock(
|
|
23
|
+
'@eeacms/volto-globalsearch/static/ias-logo.png',
|
|
24
|
+
() => 'ias-logo.png',
|
|
25
|
+
{ virtual: true },
|
|
26
|
+
);
|
|
27
|
+
jest.mock(
|
|
28
|
+
'@eeacms/volto-globalsearch/static/bise-logo.png',
|
|
29
|
+
() => 'bise-logo.png',
|
|
30
|
+
{ virtual: true },
|
|
31
|
+
);
|
|
32
|
+
jest.mock(
|
|
33
|
+
'@eeacms/volto-globalsearch/static/wise-logo.png',
|
|
34
|
+
() => 'wise-logo.png',
|
|
35
|
+
{ virtual: true },
|
|
36
|
+
);
|
|
37
|
+
jest.mock(
|
|
38
|
+
'@eeacms/volto-globalsearch/static/energy-logo.png',
|
|
39
|
+
() => 'energy-logo.png',
|
|
40
|
+
{
|
|
41
|
+
virtual: true,
|
|
42
|
+
},
|
|
43
|
+
);
|
|
44
|
+
jest.mock(
|
|
45
|
+
'@eeacms/volto-globalsearch/static/water-logo.png',
|
|
46
|
+
() => 'water-logo.png',
|
|
47
|
+
{
|
|
48
|
+
virtual: true,
|
|
49
|
+
},
|
|
50
|
+
);
|
|
51
|
+
jest.mock(
|
|
52
|
+
'@eeacms/volto-globalsearch/static/forest-logo.png',
|
|
53
|
+
() => 'forest-logo.png',
|
|
54
|
+
{
|
|
55
|
+
virtual: true,
|
|
56
|
+
},
|
|
57
|
+
);
|
|
58
|
+
jest.mock(
|
|
59
|
+
'@eeacms/volto-globalsearch/static/industry-logo.png',
|
|
60
|
+
() => 'industry-logo.png',
|
|
61
|
+
{
|
|
62
|
+
virtual: true,
|
|
63
|
+
},
|
|
64
|
+
);
|
|
65
|
+
jest.mock(
|
|
66
|
+
'@eeacms/volto-globalsearch/static/climate-adapt-logo.png',
|
|
67
|
+
() => 'climate-adapt-logo.png',
|
|
68
|
+
{
|
|
69
|
+
virtual: true,
|
|
70
|
+
},
|
|
71
|
+
);
|
|
72
|
+
jest.mock(
|
|
73
|
+
'@eeacms/volto-globalsearch/static/eionet-logo.png',
|
|
74
|
+
() => 'eionet-logo.png',
|
|
75
|
+
{
|
|
76
|
+
virtual: true,
|
|
77
|
+
},
|
|
78
|
+
);
|
|
79
|
+
jest.mock(
|
|
80
|
+
'@eeacms/volto-globalsearch/static/etc-atni.png',
|
|
81
|
+
() => 'etc-atni.png',
|
|
82
|
+
{ virtual: true },
|
|
83
|
+
);
|
|
84
|
+
jest.mock('@eeacms/volto-globalsearch/static/etc-bd.jpg', () => 'etc-bd.jpg', {
|
|
33
85
|
virtual: true,
|
|
34
86
|
});
|
|
35
|
-
jest.mock(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
jest.mock(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
87
|
+
jest.mock(
|
|
88
|
+
'@eeacms/volto-globalsearch/static/etc-cca.jpeg',
|
|
89
|
+
() => 'etc-cca.jpeg',
|
|
90
|
+
{ virtual: true },
|
|
91
|
+
);
|
|
92
|
+
jest.mock(
|
|
93
|
+
'@eeacms/volto-globalsearch/static/etc-cme.png',
|
|
94
|
+
() => 'etc-cme.png',
|
|
95
|
+
{ virtual: true },
|
|
96
|
+
);
|
|
97
|
+
jest.mock(
|
|
98
|
+
'@eeacms/volto-globalsearch/static/etc-icm.jpg',
|
|
99
|
+
() => 'etc-icm.jpg',
|
|
100
|
+
{ virtual: true },
|
|
101
|
+
);
|
|
102
|
+
jest.mock(
|
|
103
|
+
'@eeacms/volto-globalsearch/static/etc-uls.png',
|
|
104
|
+
() => 'etc-uls.png',
|
|
105
|
+
{ virtual: true },
|
|
106
|
+
);
|
|
107
|
+
jest.mock(
|
|
108
|
+
'@eeacms/volto-globalsearch/static/etc-wmge.png',
|
|
109
|
+
() => 'etc-wmge.png',
|
|
110
|
+
{ virtual: true },
|
|
111
|
+
);
|
|
112
|
+
jest.mock(
|
|
113
|
+
'@eeacms/volto-globalsearch/static/cab-logo.png',
|
|
114
|
+
() => 'cab-logo.png',
|
|
115
|
+
{ virtual: true },
|
|
116
|
+
);
|
|
117
|
+
jest.mock(
|
|
118
|
+
'@eeacms/volto-globalsearch/static/copernicus_insitu_logo.svg',
|
|
45
119
|
() => 'copernicus_insitu_logo.svg',
|
|
46
120
|
{ virtual: true },
|
|
47
121
|
);
|
package/src/config/facets.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import spatialWhitelist from './json/spatialWhitelist.json';
|
|
10
10
|
import placesBlacklist from './json/placesBlacklist.json';
|
|
11
11
|
import topicsBlacklist from './json/topicsBlacklist.json';
|
|
12
|
-
import { getTodayWithTime } from '
|
|
12
|
+
import { getTodayWithTime } from '@eeacms/volto-globalsearch/utils';
|
|
13
13
|
|
|
14
14
|
import { defineMessages } from 'react-intl';
|
|
15
15
|
|
package/src/config/filters.js
CHANGED