@eeacms/volto-eea-website-theme 0.7.7 → 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 +12 -3
- package/README.md +3 -25
- package/babel.config.js +1 -1
- package/cypress.config.js +26 -0
- package/jest-addon.config.js +4 -4
- package/package.json +16 -13
- package/src/index.js +5 -1
- 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,6 +4,18 @@ 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-eea-website-theme/compare/0.7.7...1.0.0) - 28 October 2022
|
8
|
+
|
9
|
+
#### :nail_care: Enhancements
|
10
|
+
|
11
|
+
- refactor(volto-slate): Upgrade to @plone/volto-slate - refs #153447 [Alin Voinea - [`025ef41`](https://github.com/eea/volto-eea-website-theme/commit/025ef419feff51ab9c8d838bbdb8863ed2e6ed9c)]
|
12
|
+
- change(theme): added human-readable labels for homepage views [David Ichim - [`bd320c3`](https://github.com/eea/volto-eea-website-theme/commit/bd320c3f04a330ea3e6831edc6dcaf55f05fa25f)]
|
13
|
+
|
14
|
+
#### :hammer_and_wrench: Others
|
15
|
+
|
16
|
+
- test(cypress): Upgrade to Cypress 10 / Razzle 4 [Alin Voinea - [`a0b0b85`](https://github.com/eea/volto-eea-website-theme/commit/a0b0b85cb18a3041b23fd4abc76f2839b4109ae8)]
|
17
|
+
- Cleanup [Alin Voinea - [`c42299e`](https://github.com/eea/volto-eea-website-theme/commit/c42299ec830d0704d4103651efc41ecc99f647e3)]
|
18
|
+
- Update dependencies [Alin Voinea - [`6c2bddd`](https://github.com/eea/volto-eea-website-theme/commit/6c2bdddd5bb122b67bf29edaed58191a3cf3bfa3)]
|
7
19
|
### [0.7.7](https://github.com/eea/volto-eea-website-theme/compare/0.7.6...0.7.7) - 19 October 2022
|
8
20
|
|
9
21
|
#### :hammer_and_wrench: Others
|
@@ -33,7 +45,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
33
45
|
|
34
46
|
#### :hammer_and_wrench: Others
|
35
47
|
|
36
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
37
48
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
38
49
|
|
39
50
|
#### :hammer_and_wrench: Others
|
@@ -301,7 +312,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
301
312
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
302
313
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
303
314
|
- feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
|
304
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
305
315
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
306
316
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
307
317
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -343,5 +353,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
343
353
|
|
344
354
|
#### :hammer_and_wrench: Others
|
345
355
|
|
346
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
347
356
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/README.md
CHANGED
@@ -15,36 +15,14 @@
|
|
15
15
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-eea-website-theme-develop)
|
16
16
|
|
17
17
|
|
18
|
-
[Volto](https://github.com/plone/volto)
|
18
|
+
EEA Website [Volto](https://github.com/plone/volto) Theme
|
19
19
|
|
20
|
-
##
|
20
|
+
## Demo
|
21
21
|
|
22
|
-
|
22
|
+
- https://demo-www.eea.europa.eu
|
23
23
|
|
24
24
|
## Getting started
|
25
25
|
|
26
|
-
### Try volto-eea-website-theme 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-eea-website-theme" plone/volto
|
44
|
-
```
|
45
|
-
|
46
|
-
1. Go to http://localhost:3000
|
47
|
-
|
48
26
|
### Add volto-eea-website-theme 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
|
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-eea-website-theme",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.0",
|
4
4
|
"description": "@eeacms/volto-eea-website-theme: Volto add-on",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
@@ -8,6 +8,7 @@
|
|
8
8
|
"homepage": "https://github.com/eea/volto-eea-website-theme",
|
9
9
|
"keywords": [
|
10
10
|
"volto-addon",
|
11
|
+
"volto-theme",
|
11
12
|
"volto",
|
12
13
|
"plone",
|
13
14
|
"react"
|
@@ -20,31 +21,33 @@
|
|
20
21
|
"url": "git@github.com:eea/volto-eea-website-theme.git"
|
21
22
|
},
|
22
23
|
"dependencies": {
|
23
|
-
"@plone/scripts": "*",
|
24
24
|
"@eeacms/volto-eea-design-system": "*",
|
25
25
|
"slate": "^0.71.0",
|
26
26
|
"slate-react": "^0.71.0"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
-
"@
|
29
|
+
"@plone/scripts": "*",
|
30
|
+
"@cypress/code-coverage": "^3.10.0",
|
30
31
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
31
32
|
"md5": "^2.3.0"
|
32
33
|
},
|
33
34
|
"scripts": {
|
34
35
|
"release": "release-it",
|
36
|
+
"release-major-beta": "release-it major --preRelease=beta",
|
37
|
+
"release-beta": "release-it --preRelease=beta",
|
35
38
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
36
39
|
"test": "make test",
|
37
40
|
"test:fix": "make test-update",
|
38
41
|
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
|
39
|
-
"stylelint": "
|
40
|
-
"stylelint:overrides": "
|
41
|
-
"stylelint:fix": "
|
42
|
-
"prettier": "
|
43
|
-
"prettier:fix": "
|
44
|
-
"lint": "
|
45
|
-
"lint:fix": "
|
46
|
-
"i18n": "
|
47
|
-
"cypress:run": "
|
48
|
-
"cypress:open": "
|
42
|
+
"stylelint": "make stylelint",
|
43
|
+
"stylelint:overrides": "make stylelint-overrides",
|
44
|
+
"stylelint:fix": "make stylelint-fix",
|
45
|
+
"prettier": "make prettier",
|
46
|
+
"prettier:fix": "make prettier-fix",
|
47
|
+
"lint": "make lint",
|
48
|
+
"lint:fix": "make lint-fix",
|
49
|
+
"i18n": "make i18n",
|
50
|
+
"cypress:run": "make cypress-run",
|
51
|
+
"cypress:open": "make cypress-open"
|
49
52
|
}
|
50
53
|
}
|
package/src/index.js
CHANGED
@@ -25,7 +25,11 @@ const applyConfig = (config) => {
|
|
25
25
|
homepage_view: HomePageView,
|
26
26
|
homepage_inverse_view: HomePageInverseView,
|
27
27
|
};
|
28
|
-
|
28
|
+
config.views.layoutViewsNamesMapping = {
|
29
|
+
...(config.views.layoutViewsNamesMapping || {}),
|
30
|
+
homepage_view: 'Homepage view',
|
31
|
+
homepage_inverse_view: 'Homepage white view',
|
32
|
+
};
|
29
33
|
// Apply accordion block customization
|
30
34
|
if (config.blocks.blocksConfig.accordion) {
|
31
35
|
config.blocks.blocksConfig.accordion.semanticIcon = 'ri-arrow-down-s-line';
|
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
|
-
}
|