@eeacms/volto-globalsearch 0.1.6 → 1.0.0
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/.coverage.babel.config.js +1 -1
- package/.i18n.babel.config.js +1 -0
- package/CHANGELOG.md +13 -4
- package/README.md +4 -30
- package/babel.config.js +1 -1
- package/cypress.config.js +26 -0
- package/jest-addon.config.js +4 -4
- package/package.json +20 -17
- package/cypress.json +0 -17
|
@@ -2,7 +2,7 @@ const defaultBabel = require('@plone/volto/babel');
|
|
|
2
2
|
|
|
3
3
|
function applyDefault(api) {
|
|
4
4
|
const voltoBabel = defaultBabel(api);
|
|
5
|
-
voltoBabel.plugins.push('
|
|
5
|
+
voltoBabel.plugins.push('istanbul');
|
|
6
6
|
return voltoBabel;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@plone/volto/babel');
|
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,24 @@ 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.0](https://github.com/eea/volto-globalsearch/compare/0.1.7...1.0.0) - 28 October 2022
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- refactor(cypress): Cypress 10 / Razzle 4 [Alin Voinea - [`12e1c49`](https://github.com/eea/volto-globalsearch/commit/12e1c498311752bd5d2fae59b26055d79bb90f45)]
|
|
12
|
+
- refactor(volto-slate): Upgrade to @plone/volto-slate - refs #153447 [Alin Voinea - [`ee7cff9`](https://github.com/eea/volto-globalsearch/commit/ee7cff9442027ff25a80ce77fd99994fa01c0a50)]
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- Cleanup [Alin Voinea - [`4ca5553`](https://github.com/eea/volto-globalsearch/commit/4ca55539c748ffc43a65092cfc4d159f885605bc)]
|
|
17
|
+
- Update dependencies [Alin Voinea - [`03d8040`](https://github.com/eea/volto-globalsearch/commit/03d8040b74a22cf23680fa5161b95885f4b0ee84)]
|
|
18
|
+
### [0.1.7](https://github.com/eea/volto-globalsearch/compare/0.1.6...0.1.7) - 19 October 2022
|
|
19
|
+
|
|
7
20
|
### [0.1.6](https://github.com/eea/volto-globalsearch/compare/0.1.5...0.1.6) - 27 September 2022
|
|
8
21
|
|
|
9
22
|
#### :hammer_and_wrench: Others
|
|
10
23
|
|
|
11
24
|
- Fix dependencies [kreafox - [`50ad307`](https://github.com/eea/volto-globalsearch/commit/50ad307d64140c43df9dded27c0b532923885764)]
|
|
12
|
-
- Add UniversalItem [kreafox - [`bd71e6b`](https://github.com/eea/volto-globalsearch/commit/bd71e6b7c6f9f57563c0eefd60ebeaeb53fff43f)]
|
|
13
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c2d848e`](https://github.com/eea/volto-globalsearch/commit/c2d848e1efa456f53d883c50769882101e1ce19f)]
|
|
14
25
|
### [0.1.5](https://github.com/eea/volto-globalsearch/compare/0.1.4...0.1.5) - 28 July 2022
|
|
15
26
|
|
|
16
27
|
#### :hammer_and_wrench: Others
|
|
@@ -23,7 +34,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
23
34
|
|
|
24
35
|
#### :hammer_and_wrench: Others
|
|
25
36
|
|
|
26
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5dce07b`](https://github.com/eea/volto-globalsearch/commit/5dce07ba7d1e82776a426e9746d5dab1b0acf738)]
|
|
27
37
|
### [0.1.3](https://github.com/eea/volto-globalsearch/compare/0.1.2...0.1.3) - 10 June 2022
|
|
28
38
|
|
|
29
39
|
### [0.1.2](https://github.com/eea/volto-globalsearch/compare/0.1.1...0.1.2) - 10 June 2022
|
|
@@ -46,7 +56,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
46
56
|
- ignore eslint for *.json files [Zoltan Szabo - [`e18919e`](https://github.com/eea/volto-globalsearch/commit/e18919e1255818c5cf33bf769cca078d75ca3422)]
|
|
47
57
|
- formatting [Zoltan Szabo - [`18282ed`](https://github.com/eea/volto-globalsearch/commit/18282ed159865bcbc50e2fd17417cf6d90d3e593)]
|
|
48
58
|
- updated dependencies [Zoltan Szabo - [`cfcf46e`](https://github.com/eea/volto-globalsearch/commit/cfcf46ee33b23bb31f76955c12a857411f042daf)]
|
|
49
|
-
- [JENKINSFILE] fix after bootstrap [valentinab25 - [`61c8c46`](https://github.com/eea/volto-globalsearch/commit/61c8c46891edf3b52768f12cf7505c034ef7bb89)]
|
|
50
59
|
### 0.0.1 - 19 May 2022
|
|
51
60
|
|
|
52
61
|
#### :hammer_and_wrench: Others
|
package/README.md
CHANGED
|
@@ -15,36 +15,14 @@
|
|
|
15
15
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-globalsearch-develop)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
[Volto](https://github.com/plone/volto) add-on
|
|
18
|
+
EEA Elastic Search Block with NLP integration [Volto](https://github.com/plone/volto) add-on
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## Demo
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
- https://demo-www.eea.europa.eu/en/advanced-search
|
|
23
23
|
|
|
24
24
|
## Getting started
|
|
25
25
|
|
|
26
|
-
### Try volto-globalsearch with Docker
|
|
27
|
-
|
|
28
|
-
1. Get the latest Docker images
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
docker pull plone
|
|
32
|
-
docker pull plone/volto
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
1. Start Plone backend
|
|
36
|
-
```
|
|
37
|
-
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
1. Start Volto frontend
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
docker run -it --rm -p 3000:3000 --link plone -e ADDONS="@eeacms/volto-globalsearch" plone/volto
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
1. Go to http://localhost:3000
|
|
47
|
-
|
|
48
26
|
### Add volto-globalsearch to your Volto project
|
|
49
27
|
|
|
50
28
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
@@ -59,7 +37,7 @@ Demo GIF
|
|
|
59
37
|
],
|
|
60
38
|
|
|
61
39
|
"dependencies": {
|
|
62
|
-
"@eeacms/volto-globalsearch": "
|
|
40
|
+
"@eeacms/volto-globalsearch": "*"
|
|
63
41
|
}
|
|
64
42
|
```
|
|
65
43
|
|
|
@@ -100,7 +78,3 @@ See [LICENSE.md](https://github.com/eea/volto-globalsearch/blob/master/LICENSE.m
|
|
|
100
78
|
## Funding
|
|
101
79
|
|
|
102
80
|
[European Environment Agency (EU)](http://eea.europa.eu)
|
|
103
|
-
nding
|
|
104
|
-
|
|
105
|
-
[European Environment Agency (EU)](http://eea.europa.eu)
|
|
106
|
-
|
package/babel.config.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const { defineConfig } = require('cypress');
|
|
2
|
+
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
viewportWidth: 1280,
|
|
5
|
+
defaultCommandTimeout: 8888,
|
|
6
|
+
chromeWebSecurity: false,
|
|
7
|
+
reporter: 'junit',
|
|
8
|
+
video: true,
|
|
9
|
+
retries: {
|
|
10
|
+
runMode: 8,
|
|
11
|
+
openMode: 0,
|
|
12
|
+
},
|
|
13
|
+
reporterOptions: {
|
|
14
|
+
mochaFile: 'cypress/reports/cypress-[hash].xml',
|
|
15
|
+
jenkinsMode: true,
|
|
16
|
+
toConsole: true,
|
|
17
|
+
},
|
|
18
|
+
e2e: {
|
|
19
|
+
setupNodeEvents(on, config) {
|
|
20
|
+
// e2e testing node events setup code
|
|
21
|
+
require('@cypress/code-coverage/task')(on, config);
|
|
22
|
+
return config;
|
|
23
|
+
},
|
|
24
|
+
baseUrl: 'http://localhost:3000',
|
|
25
|
+
},
|
|
26
|
+
});
|
package/jest-addon.config.js
CHANGED
|
@@ -9,18 +9,18 @@ module.exports = {
|
|
|
9
9
|
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
|
|
10
10
|
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
|
11
11
|
'@package/(.*)$': '<rootDir>/src/$1',
|
|
12
|
+
'@root/(.*)$': '<rootDir>/src/$1',
|
|
12
13
|
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
|
|
13
14
|
'@eeacms/(.*?)/(.*)$': '<rootDir>/src/addons/$1/src/$2',
|
|
14
|
-
'volto-slate
|
|
15
|
+
'@plone/volto-slate':
|
|
16
|
+
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
|
|
15
17
|
'~/(.*)$': '<rootDir>/src/$1',
|
|
16
18
|
'load-volto-addons':
|
|
17
19
|
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
|
|
20
|
+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
18
21
|
},
|
|
19
22
|
transform: {
|
|
20
23
|
'^.+\\.js(x)?$': 'babel-jest',
|
|
21
|
-
'^.+\\.css$': 'jest-css-modules',
|
|
22
|
-
'^.+\\.less$': 'jest-css-modules',
|
|
23
|
-
'^.+\\.scss$': 'jest-css-modules',
|
|
24
24
|
'^.+\\.(png)$': 'jest-file',
|
|
25
25
|
'^.+\\.(jpg)$': 'jest-file',
|
|
26
26
|
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-globalsearch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "@eeacms/volto-globalsearch: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -16,34 +16,37 @@
|
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git@github.com:eea/volto-globalsearch.git"
|
|
18
18
|
},
|
|
19
|
+
"addons": [
|
|
20
|
+
"@eeacms/volto-searchlib",
|
|
21
|
+
"@eeacms/volto-listing-block"
|
|
22
|
+
],
|
|
19
23
|
"dependencies": {
|
|
20
24
|
"@eeacms/volto-searchlib": "*",
|
|
21
25
|
"@eeacms/volto-listing-block": "*"
|
|
22
26
|
},
|
|
23
27
|
"devDependencies": {
|
|
24
28
|
"@plone/scripts": "*",
|
|
25
|
-
"@cypress/code-coverage": "^3.
|
|
26
|
-
"babel-plugin-transform-class-properties": "^6.24.1"
|
|
29
|
+
"@cypress/code-coverage": "^3.10.0",
|
|
30
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
31
|
+
"md5": "^2.3.0"
|
|
27
32
|
},
|
|
28
|
-
"addons": [
|
|
29
|
-
"@eeacms/volto-searchlib",
|
|
30
|
-
"@eeacms/volto-listing-block"
|
|
31
|
-
],
|
|
32
33
|
"scripts": {
|
|
33
34
|
"release": "release-it",
|
|
35
|
+
"release-major-beta": "release-it major --preRelease=beta",
|
|
36
|
+
"release-beta": "release-it --preRelease=beta",
|
|
34
37
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
|
35
38
|
"test": "make test",
|
|
36
39
|
"test:fix": "make test-update",
|
|
37
40
|
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
|
|
38
|
-
"stylelint": "
|
|
39
|
-
"stylelint:overrides": "
|
|
40
|
-
"stylelint:fix": "
|
|
41
|
-
"prettier": "
|
|
42
|
-
"prettier:fix": "
|
|
43
|
-
"lint": "
|
|
44
|
-
"lint:fix": "
|
|
45
|
-
"i18n": "
|
|
46
|
-
"cypress:run": "
|
|
47
|
-
"cypress:open": "
|
|
41
|
+
"stylelint": "make stylelint",
|
|
42
|
+
"stylelint:overrides": "make stylelint-overrides",
|
|
43
|
+
"stylelint:fix": "make stylelint-fix",
|
|
44
|
+
"prettier": "make prettier",
|
|
45
|
+
"prettier:fix": "make prettier-fix",
|
|
46
|
+
"lint": "make lint",
|
|
47
|
+
"lint:fix": "make lint-fix",
|
|
48
|
+
"i18n": "make i18n",
|
|
49
|
+
"cypress:run": "make cypress-run",
|
|
50
|
+
"cypress:open": "make cypress-open"
|
|
48
51
|
}
|
|
49
52
|
}
|
package/cypress.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"baseUrl": "http://localhost:3000",
|
|
3
|
-
"viewportWidth": 1280,
|
|
4
|
-
"defaultCommandTimeout": 8888,
|
|
5
|
-
"chromeWebSecurity": false,
|
|
6
|
-
"reporter": "junit",
|
|
7
|
-
"video": true,
|
|
8
|
-
"retries": {
|
|
9
|
-
"runMode": 8,
|
|
10
|
-
"openMode": 0
|
|
11
|
-
},
|
|
12
|
-
"reporterOptions": {
|
|
13
|
-
"mochaFile": "cypress/reports/cypress-[hash].xml",
|
|
14
|
-
"jenkinsMode": true,
|
|
15
|
-
"toConsole": true
|
|
16
|
-
}
|
|
17
|
-
}
|