@eeacms/volto-clms-theme 1.0.181 → 1.0.183
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 +2 -2
- package/.project.eslintrc.js +4 -3
- package/CHANGELOG.md +103 -3
- package/Jenkinsfile +94 -97
- package/babel.config.js +17 -1
- package/cypress/{integration/block-basics.js → e2e/block-basics.cy.js} +6 -4
- package/cypress/support/{index.js → e2e.js} +2 -2
- package/cypress.config.js +21 -0
- package/jest-addon.config.js +7 -10
- package/package.json +21 -55
- package/src/components/Blocks/CclButtonBlock/CclButtonBlockEdit.jsx +2 -2
- package/src/components/Blocks/CclContextNavigationBlock/CclContextNavigationBlockEdit.jsx +1 -1
- package/src/components/Blocks/CclContextNavigationBlock/CclContextNavigationBlockView.jsx +1 -1
- package/src/components/Blocks/CclHomeProductsBlock/__snapshots__/CclHomeProductsBlockView.test.jsx.snap +16 -0
- package/src/components/Blocks/CclHomeSearchBlock/CclHomeSearchBlockEdit.jsx +1 -1
- package/src/components/Blocks/CclHomeSearchBlock/__snapshots__/CclHomeSearchBlockView.test.jsx.snap +0 -23
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingCards.jsx +3 -3
- package/src/components/Blocks/CustomTemplates/VoltoSearchBlock/RightModalFacets.jsx +1 -1
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +6 -2
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.test.jsx +16 -9
- package/src/components/CLMSDatasetDetailView/DataSetInfoContent.jsx +4 -2
- package/src/components/CLMSDatasetDetailView/DownloadDataSetContent.jsx +1 -1
- package/src/components/CLMSDatasetDetailView/DownloadDataSetContent.test.jsx +39 -22
- package/src/components/CLMSDatasetDetailView/GeonetworkImporterButtons.jsx +5 -5
- package/src/components/CLMSNewsItemView/CLMSNewsItemView.jsx +1 -1
- package/src/components/CLMSNewsItemView/CLMSNewsItemView.test.jsx +30 -10
- package/src/components/CclCard/CclCard.test.jsx +0 -24
- package/src/components/CclLoginModal/CclLoginModal.jsx +1 -1
- package/src/components/CclTab/CclTab.jsx +4 -4
- package/src/components/CclTab/CclTab.test.jsx +57 -30
- package/src/components/CclTopMainMenu/CclFooterMenu.jsx +7 -4
- package/src/components/CclTopMainMenu/CclTopMainMenu.jsx +12 -5
- package/src/components/CclUtils/useFilteredPagination.js +1 -1
- package/src/components/CclWhen/CclWhen.jsx +6 -9
- package/src/components/Widgets/ImageSizeWidget.jsx +1 -1
- package/src/components/Widgets/ImageSizeWidget.test.jsx +9 -6
- package/src/components/Widgets/__snapshots__/ImageSizeWidget.test.jsx.snap +91 -0
- package/src/customizations/volto/components/manage/Toolbar/Toolbar.jsx +48 -19
- package/src/customizations/volto/components/manage/UniversalLink/__snapshots__/UniversalLink.test.jsx.snap +71 -0
- package/src/customizations/volto/components/theme/Breadcrumbs/Breadcrumbs.jsx +12 -16
- package/src/customizations/volto/components/theme/Login/Login.jsx +9 -3
- package/src/customizations/volto/components/theme/Navigation/Navigation.jsx +71 -41
- package/src/customizations/volto/components/theme/SearchWidget/SearchWidget.jsx +6 -22
- package/src/customizations/volto/components/theme/Unauthorized/__snapshots__/Unauthorized.test.jsx.snap +43 -0
- package/src/customizations/{volto-slate → volto/packages/volto-slate}/editor/ui/Toolbar.jsx +2 -2
- package/src/customizations/volto-form-block/components/Field.jsx +14 -12
- package/src/index.js +21 -0
- package/src/reducers/meeting/meeting_subscribers_reducer.js +2 -2
- package/src/reducers/meeting/meeting_subscribers_reducer.test.js +4 -4
- package/src/reducers/subscription/subscription_reducer.test.js +1 -0
- package/theme/assets/fonts/Lato/Lato-Bold.woff2 +0 -0
- package/theme/assets/fonts/Lato/Lato-Italic.woff2 +0 -0
- package/theme/assets/fonts/Lato/Lato-Light.woff2 +0 -0
- package/theme/assets/fonts/Lato/Lato-Regular.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300.svg +435 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300italic.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300italic.svg +443 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300italic.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300italic.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-300italic.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700.svg +438 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700italic.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700italic.svg +451 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700italic.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700italic.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-700italic.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900.svg +439 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900italic.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900italic.svg +447 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900italic.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900italic.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-900italic.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-italic.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-italic.svg +450 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-italic.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-italic.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-italic.woff2 +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-regular.eot +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-regular.svg +435 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-regular.ttf +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-regular.woff +0 -0
- package/theme/assets/fonts/Lato/lato-v23-latin-regular.woff2 +0 -0
- package/theme/assets/fonts/icons.eot +0 -0
- package/theme/assets/fonts/icons.svg +320 -0
- package/theme/assets/fonts/icons.ttf +0 -0
- package/theme/assets/fonts/icons.woff +0 -0
- package/theme/site/globals/site.overrides +1 -0
- package/theme/site/globals/site.variables +3 -1
- package/theme/theme.config +3 -1
- package/theme/typography.css +144 -0
- package/cypress.json +0 -12
- package/src/customizations/volto/components/manage/Diff/DiffField.jsx +0 -195
- package/src/customizations/volto/components/manage/Widgets/ArrayWidget.jsx +0 -413
- package/src/customizations/volto/components/theme/Navigation/ContextNavigation.jsx +0 -68
- package/src/customizations/volto/components/theme/Navigation/ContextNavigation.test.jsx +0 -5
- package/src/customizations/volto/components/theme/View/ListingView.jsx +0 -220
- package/src/customizations/volto/helpers/Sitemap/Sitemap.js +0 -49
- package/src/customizations/volto-slate/editor/ui/InlineToolbar.jsx +0 -73
- /package/src/customizations/{volto-slate → volto/packages/volto-slate}/editor/less/globals.less +0 -0
|
@@ -2,8 +2,8 @@ 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
|
|
|
9
|
-
module.exports = applyDefault;
|
|
9
|
+
module.exports = applyDefault;
|
package/.project.eslintrc.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
|
|
4
|
-
const projectRootPath = fs.
|
|
5
|
-
|
|
4
|
+
const projectRootPath = fs.existsSync('./project')
|
|
5
|
+
? fs.realpathSync('./project')
|
|
6
|
+
: fs.realpathSync('./../../../');
|
|
7
|
+
const packageJson = require(path.join(projectRootPath, 'package.json'));
|
|
6
8
|
const jsConfig = require(path.join(projectRootPath, 'jsconfig.json')).compilerOptions;
|
|
7
9
|
|
|
8
10
|
const pathsConfig = jsConfig.paths;
|
|
@@ -43,4 +45,3 @@ module.exports = {
|
|
|
43
45
|
},
|
|
44
46
|
},
|
|
45
47
|
};
|
|
46
|
-
|
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,107 @@ 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.
|
|
7
|
+
### [1.0.183](https://github.com/eea/volto-clms-theme/compare/1.0.182...1.0.183) - 8 March 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- report to sonarqube removed [Unai - [`8ac14b7`](https://github.com/eea/volto-clms-theme/commit/8ac14b707259d3c034dbc3f080027c0df177282e)]
|
|
12
|
+
- integration test removed [Unai - [`b4b316c`](https://github.com/eea/volto-clms-theme/commit/b4b316c60713318a606af740144b59939921abef)]
|
|
13
|
+
- cypress test removed from jenkinsfile [Unai - [`bb28ff4`](https://github.com/eea/volto-clms-theme/commit/bb28ff42a8bb74cb2d378f6a6b974e40527bb6a9)]
|
|
14
|
+
- cypress [Unai - [`625f17e`](https://github.com/eea/volto-clms-theme/commit/625f17e2178caf71374c7adffd514a235ebe5f7c)]
|
|
15
|
+
- remover volot version from jenkinsfile [Unai - [`a6777dc`](https://github.com/eea/volto-clms-theme/commit/a6777dc56429855e9ada37acde2517d608e23c49)]
|
|
16
|
+
- revert last change [Unai - [`c603878`](https://github.com/eea/volto-clms-theme/commit/c6038787d4ce79f79d706aa5a2c861b4d399e4e6)]
|
|
17
|
+
- jenkinsfile [Unai - [`6ba3252`](https://github.com/eea/volto-clms-theme/commit/6ba3252e8032aa19f4b4ff74cb17a21a21615568)]
|
|
18
|
+
- revert last change [Unai - [`52bde39`](https://github.com/eea/volto-clms-theme/commit/52bde397eb2a7f0d6c5430ce077b6f2f66ee79e9)]
|
|
19
|
+
- test [Unai - [`ba59628`](https://github.com/eea/volto-clms-theme/commit/ba59628b32365d960908e12178c71bbdf1a7eabc)]
|
|
20
|
+
- jenkinsfile change [Unai - [`2a5109c`](https://github.com/eea/volto-clms-theme/commit/2a5109c2c151d685763c268a83e5189186714c4a)]
|
|
21
|
+
- utils path added to jest-addon-config [Unai - [`03f8c59`](https://github.com/eea/volto-clms-theme/commit/03f8c59ac6e3223d5e604023e69e4e0cb94b9c0e)]
|
|
22
|
+
- jest addon config fix [Unai - [`f46102d`](https://github.com/eea/volto-clms-theme/commit/f46102d8e6d553341ca36ed0b7614b29a9d915af)]
|
|
23
|
+
- moduleNameMapper [ionlizarazu - [`9d371ad`](https://github.com/eea/volto-clms-theme/commit/9d371ad0866df397625b9d56b1c8332209791365)]
|
|
24
|
+
- add root to jest.addon.config [ionlizarazu - [`5ea9676`](https://github.com/eea/volto-clms-theme/commit/5ea96767f13e20d5e91af48306129f8ab0d142f4)]
|
|
25
|
+
- unused imports [Unai - [`675063b`](https://github.com/eea/volto-clms-theme/commit/675063b1b8677dbd690799b6a5341446d6073c88)]
|
|
26
|
+
- tab and card test fix [Unai - [`edca8e1`](https://github.com/eea/volto-clms-theme/commit/edca8e1e0ed55ea5fb021ca9a9f684e469ad1a99)]
|
|
27
|
+
- add intl provider to test [ionlizarazu - [`d8d8b15`](https://github.com/eea/volto-clms-theme/commit/d8d8b15700f379573a317a8831c50f9db688fa47)]
|
|
28
|
+
- test fix [Unai - [`2cfd3e4`](https://github.com/eea/volto-clms-theme/commit/2cfd3e4b57fbfa1637ce226c5fc631083451d13a)]
|
|
29
|
+
- original data default to [] [ionlizarazu - [`7b14bb2`](https://github.com/eea/volto-clms-theme/commit/7b14bb2748bad8147519224e50a9f75d9dd1923b)]
|
|
30
|
+
- add Provider and store to DownloadDataSetContent test [ionlizarazu - [`00afec6`](https://github.com/eea/volto-clms-theme/commit/00afec65ede0dcd0a35843d4e3d5cd27253d5cfc)]
|
|
31
|
+
- subscriber reducer test [Unai - [`dd3a413`](https://github.com/eea/volto-clms-theme/commit/dd3a4135d81c888a3a71fbf20b5b51cab0701c07)]
|
|
32
|
+
- newsItemView test [Unai - [`f1ab6ca`](https://github.com/eea/volto-clms-theme/commit/f1ab6ca6b2ca806ebba3143c9c08cf1db98abb80)]
|
|
33
|
+
- add provider and store to CclTab test [ionlizarazu - [`fa0abff`](https://github.com/eea/volto-clms-theme/commit/fa0abff256c81200006444d84ced1f504321d394)]
|
|
34
|
+
- update snapshot [ionlizarazu - [`268d002`](https://github.com/eea/volto-clms-theme/commit/268d0020f2bf99c9e5395e2ae0ae73cabb113768)]
|
|
35
|
+
- set selected to false by default [ionlizarazu - [`5c6ce02`](https://github.com/eea/volto-clms-theme/commit/5c6ce0277550b8398df11610c3c331a4eaf256ee)]
|
|
36
|
+
- update snapshots [ionlizarazu - [`80af6ee`](https://github.com/eea/volto-clms-theme/commit/80af6ee00fe2c0be77ecab57aac53ac49b8307f8)]
|
|
37
|
+
- ContextNavigationComponent import [ionlizarazu - [`dad046d`](https://github.com/eea/volto-clms-theme/commit/dad046d5977d85694b5d3f1ad2125026bea95f12)]
|
|
38
|
+
- ContextNavigationComponent import [ionlizarazu - [`c3bdc24`](https://github.com/eea/volto-clms-theme/commit/c3bdc243988da0021a999ff5a4277ecb851fc43f)]
|
|
39
|
+
- some test fixes [Unai - [`e8df30d`](https://github.com/eea/volto-clms-theme/commit/e8df30de368b3ce7e56cda6d49f5953eb712d936)]
|
|
40
|
+
- updated snapshot [Unai - [`84d5c07`](https://github.com/eea/volto-clms-theme/commit/84d5c073597b8a08301c1b2164e203415cc947eb)]
|
|
41
|
+
- jest-css-modules removed [Unai - [`82c8e76`](https://github.com/eea/volto-clms-theme/commit/82c8e76104f99b5b3c0c61f86ebed17b2ad94627)]
|
|
42
|
+
- jest-css-modules added as dependencie [Unai - [`686f90d`](https://github.com/eea/volto-clms-theme/commit/686f90d67dd241a619d741a80089565dffd21555)]
|
|
43
|
+
- jest addon config [Unai - [`d1ce7be`](https://github.com/eea/volto-clms-theme/commit/d1ce7bed6ead9c4cb9e9f42936dc06e5d1ae842f)]
|
|
44
|
+
- jest-css-module removed fom jest addon config [Unai - [`bdca603`](https://github.com/eea/volto-clms-theme/commit/bdca603aca40877ba7d03a5ef9917dc3031d0bac)]
|
|
45
|
+
- jest addon config [Unai - [`4bf039e`](https://github.com/eea/volto-clms-theme/commit/4bf039ea312de58fcb02600f248359914ae7291f)]
|
|
46
|
+
- adjust babel config [Mikel Larreategi - [`142d1fe`](https://github.com/eea/volto-clms-theme/commit/142d1fe8d94ed5ed01a91c31552d5202d22493a5)]
|
|
47
|
+
- update .project.eslintrc.js and Jenkinsfile from volto-eea-website-policy [Mikel Larreategi - [`6fecbeb`](https://github.com/eea/volto-clms-theme/commit/6fecbeb384e8b1b47d3c88dce4658de72bf0c4ee)]
|
|
48
|
+
- adjust test running docker images [Mikel Larreategi - [`816cb53`](https://github.com/eea/volto-clms-theme/commit/816cb53387c263cc8a35d8948cbf27fe85fb5447)]
|
|
49
|
+
- adjust test running docker images [Mikel Larreategi - [`13591a4`](https://github.com/eea/volto-clms-theme/commit/13591a4329ca8d560fe734e98c9084cb1a66da64)]
|
|
50
|
+
- top main menu and footer menu fix [Unai - [`711109c`](https://github.com/eea/volto-clms-theme/commit/711109cc51931410252c900d2ecf479e212a2b2d)]
|
|
51
|
+
- stale config change and volto-slate customizations moved to packages [Unai - [`14c344f`](https://github.com/eea/volto-clms-theme/commit/14c344f61c0492bb6b8cd9f56a71c355886560c1)]
|
|
52
|
+
- searchwidget fix search at global-search [Unai - [`ec1bccb`](https://github.com/eea/volto-clms-theme/commit/ec1bccb34ac809df2fc170717b74ef990d8ef482)]
|
|
53
|
+
- inlinetoolbar override deleted not necesary in volto 16 and slate link advanced configuration added [Unai - [`982a5a2`](https://github.com/eea/volto-clms-theme/commit/982a5a2d29096d4d55e5e61ea38d0524f9e23fe3)]
|
|
54
|
+
- added ...rest to volto-form-block field [Unai - [`2769893`](https://github.com/eea/volto-clms-theme/commit/27698935f37da56ffb823edaaac1da8096a4b974)]
|
|
55
|
+
- volto 16 volto-form-block field [Unai - [`939fcd3`](https://github.com/eea/volto-clms-theme/commit/939fcd306109827330ec9d62c0ef1a873e1b0945)]
|
|
56
|
+
- sitemap override deleted using volto 16 base sitemap [Unai - [`5dd4cee`](https://github.com/eea/volto-clms-theme/commit/5dd4ceeb4493fd9204b4d295cab3dfc8a5f26df6)]
|
|
57
|
+
- volto 16 sitemap [Unai - [`c2a40f9`](https://github.com/eea/volto-clms-theme/commit/c2a40f9e5ad676489afd3b46ebf9550d137ba971)]
|
|
58
|
+
- serachwidgect override to apply style [Unai - [`0462f38`](https://github.com/eea/volto-clms-theme/commit/0462f38ea585347aaaa4a9a1c8496f142d345936)]
|
|
59
|
+
- volto 16 searchWidget [Unai - [`20c51b3`](https://github.com/eea/volto-clms-theme/commit/20c51b310fd9b35d51c1361f604d96a01bc561a1)]
|
|
60
|
+
- navigation override [Unai - [`a74e72a`](https://github.com/eea/volto-clms-theme/commit/a74e72a183ad57b5a730542b4a80d1e482680ee3)]
|
|
61
|
+
- volto 16 navigation [Unai - [`a89b3b5`](https://github.com/eea/volto-clms-theme/commit/a89b3b58d0b295c2c49a6ae6dc8e127236a28d60)]
|
|
62
|
+
- logout overrided not to return login [Unai - [`3338b41`](https://github.com/eea/volto-clms-theme/commit/3338b412f5ae77348f172defcb340dfba6e26fda)]
|
|
63
|
+
- volto 16 logout [Unai - [`509a047`](https://github.com/eea/volto-clms-theme/commit/509a047cc763b75c084c8df3a5a3568dafcbf781)]
|
|
64
|
+
- login override [Unai - [`9490ecb`](https://github.com/eea/volto-clms-theme/commit/9490ecba03222572f99a9fb41041664d4f44fb94)]
|
|
65
|
+
- volto 16 login [Unai - [`86cdd58`](https://github.com/eea/volto-clms-theme/commit/86cdd58a950611a77692469367adff351ab45f7f)]
|
|
66
|
+
- prettier fix [Unai - [`272a169`](https://github.com/eea/volto-clms-theme/commit/272a1698cff169fec1bcbe2c1fe7a64f50fd62bc)]
|
|
67
|
+
- restored footer customization [Unai - [`906f180`](https://github.com/eea/volto-clms-theme/commit/906f180624ca94591e2fa77b27f5491436264a82)]
|
|
68
|
+
- volto 16 footer component [Unai - [`c4fd98e`](https://github.com/eea/volto-clms-theme/commit/c4fd98ef52540d34567c6da1301d517384fc6f0e)]
|
|
69
|
+
- logo override [Unai - [`9aefd6f`](https://github.com/eea/volto-clms-theme/commit/9aefd6f255e44b4be2f71c195b49efe85d9095b6)]
|
|
70
|
+
- volto 16 logo component [Unai - [`818e215`](https://github.com/eea/volto-clms-theme/commit/818e215887c4d1930454e8ee95a3b3744d8dad16)]
|
|
71
|
+
- header overrided [Unai - [`227d47b`](https://github.com/eea/volto-clms-theme/commit/227d47b5c71335dec4ee2d0e4b57a3bb121db0b0)]
|
|
72
|
+
- volto 16 header [Unai - [`3f08fd7`](https://github.com/eea/volto-clms-theme/commit/3f08fd7b013ab6704b57c25f2267a1953f20712d)]
|
|
73
|
+
- deleted unused listingview [Unai - [`24583ba`](https://github.com/eea/volto-clms-theme/commit/24583bac4ab6a026940a99118ea741505d5b464c)]
|
|
74
|
+
- unauthorized customization [Unai - [`0ae63d5`](https://github.com/eea/volto-clms-theme/commit/0ae63d5cf801cb7795bce54f807c850515273306)]
|
|
75
|
+
- volto 16 unauthorized [Unai - [`996fa46`](https://github.com/eea/volto-clms-theme/commit/996fa46e6afb2820d1a3591deeda6f19f1af6f07)]
|
|
76
|
+
- deleted unused contextNavigation override [Unai - [`a543b3c`](https://github.com/eea/volto-clms-theme/commit/a543b3c73deda20d1de96d8c1a1e679e2538bde0)]
|
|
77
|
+
- overrided universallink and removed unnecesary file [Unai - [`3f0c635`](https://github.com/eea/volto-clms-theme/commit/3f0c6355bd57bfbd3fc05fe367e2453f8d5b665c)]
|
|
78
|
+
- volto 16 universallink [Unai - [`21ed038`](https://github.com/eea/volto-clms-theme/commit/21ed038160d8510ce77f345739106753c90800f7)]
|
|
79
|
+
- volto 16 universallink and deleted diffield [Unai - [`e900b7b`](https://github.com/eea/volto-clms-theme/commit/e900b7b03bc2459d91278933c9d834152c05b2ee)]
|
|
80
|
+
- volto 16 diffField [Unai - [`d028f96`](https://github.com/eea/volto-clms-theme/commit/d028f968cfc80587bfd46ba7e6e2a2c5b54c907d)]
|
|
81
|
+
- facets customizatin [Unai - [`31df7e9`](https://github.com/eea/volto-clms-theme/commit/31df7e9fa6467ccc8b8482a5d64ccc8bc680056d)]
|
|
82
|
+
- volto 16 facets component [Unai - [`d1570f6`](https://github.com/eea/volto-clms-theme/commit/d1570f6025cae8c883b4e72b8ba9ba6b82f20156)]
|
|
83
|
+
- remove ArrayWidget, unneeded customization with Volto 16 [ionlizarazu - [`b8c49e8`](https://github.com/eea/volto-clms-theme/commit/b8c49e8c67f23b42b4fb7d9a8e8fd3276e37572f)]
|
|
84
|
+
- Breadcrumbs customization [ionlizarazu - [`9fcb66a`](https://github.com/eea/volto-clms-theme/commit/9fcb66ab4d7b46fb3ba5d0668f798beeeffe0bae)]
|
|
85
|
+
- Original Breadcrubms volto 16.12.0 [ionlizarazu - [`598a65e`](https://github.com/eea/volto-clms-theme/commit/598a65e2ddec302699d910338fd59cafa512f86e)]
|
|
86
|
+
- volto-slate imports [ionlizarazu - [`872ccf6`](https://github.com/eea/volto-clms-theme/commit/872ccf6a4656339e22c838c0d9acad7ba2e83804)]
|
|
87
|
+
- send 'data' to SearchDetails [ionlizarazu - [`d4c80f6`](https://github.com/eea/volto-clms-theme/commit/d4c80f6bb8c917067a6961ed1ee549c9fe697034)]
|
|
88
|
+
- customize Toolbar [ionlizarazu - [`6504e61`](https://github.com/eea/volto-clms-theme/commit/6504e61ad67b41df96634a6bd5025a8865590be4)]
|
|
89
|
+
- original Toolbar volto 16.12.0 [ionlizarazu - [`7e85226`](https://github.com/eea/volto-clms-theme/commit/7e852269ce24c108f6fe1d5fd1fccc04341494a6)]
|
|
90
|
+
- load Font [ionlizarazu - [`21410a2`](https://github.com/eea/volto-clms-theme/commit/21410a2674ffccb551ab3d9d5683c4d6b7afeee0)]
|
|
91
|
+
- Jenkinsfile with volto 16.10.0 [ionlizarazu - [`9b518cc`](https://github.com/eea/volto-clms-theme/commit/9b518ccab7a4629212e2fd7d5968d89e9b7942c8)]
|
|
92
|
+
- dependencies order and remove some unneeded configurations [ionlizarazu - [`cd597b3`](https://github.com/eea/volto-clms-theme/commit/cd597b39f337390e29ca4f4e69ce214e609d06d2)]
|
|
93
|
+
- jest addon config [ionlizarazu - [`5f5bc40`](https://github.com/eea/volto-clms-theme/commit/5f5bc40f5f75595018e9b6d0b6b94d74ece627bc)]
|
|
94
|
+
- babel config [ionlizarazu - [`16f34c9`](https://github.com/eea/volto-clms-theme/commit/16f34c9f552e967caa1b9e1fe75c4f53e22be5a0)]
|
|
95
|
+
- uncomment theme folders and fix the siteFolder route [ionlizarazu - [`2c274ad`](https://github.com/eea/volto-clms-theme/commit/2c274ad067d6b62151971529e1c71cbbc5045ca5)]
|
|
96
|
+
- volto 16 [Unai - [`b30e9c4`](https://github.com/eea/volto-clms-theme/commit/b30e9c42bcf80a90450fb5a8d1fd6d1fe7a49364)]
|
|
97
|
+
### [1.0.182](https://github.com/eea/volto-clms-theme/compare/1.0.181...1.0.182) - 2 March 2023
|
|
8
98
|
|
|
9
|
-
#### :
|
|
99
|
+
#### :bug: Bug Fixes
|
|
100
|
+
|
|
101
|
+
- fix: give the currentLocation to the tab to redirect after login [ionlizarazu - [`8aded12`](https://github.com/eea/volto-clms-theme/commit/8aded12e4b0ea1392d9b0b03db9b36ecde933edd)]
|
|
10
102
|
|
|
11
|
-
|
|
103
|
+
#### :hammer_and_wrench: Others
|
|
104
|
+
|
|
105
|
+
- remove unused import [Mikel Larreategi - [`76bc3e9`](https://github.com/eea/volto-clms-theme/commit/76bc3e9924f354fc32e6127e43e5a9d2e306adcd)]
|
|
106
|
+
- restore date formats [Mikel Larreategi - [`a7e04a4`](https://github.com/eea/volto-clms-theme/commit/a7e04a471c3e345219c5c9ff3a3fca8e577f7d2a)]
|
|
107
|
+
### [1.0.181](https://github.com/eea/volto-clms-theme/compare/1.0.180...1.0.181) - 2 March 2023
|
|
12
108
|
|
|
13
109
|
#### :bug: Bug Fixes
|
|
14
110
|
|
|
@@ -832,6 +928,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
832
928
|
#### :hammer_and_wrench: Others
|
|
833
929
|
|
|
834
930
|
- related products and datasets added to news and meeting views and login-plone route created [Unai - [`5704a1a`](https://github.com/eea/volto-clms-theme/commit/5704a1a766148746162b60efaf232ea90dc20cf4)]
|
|
931
|
+
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`46eb694`](https://github.com/eea/volto-clms-theme/commit/46eb69415280a3c982405299135027ae4221426a)]
|
|
835
932
|
- sort items according to the lowercased label and put those with special meaning at the end [Mikel Larreategi - [`6410abe`](https://github.com/eea/volto-clms-theme/commit/6410abe096f60dcad54dced2026c9df9b7946d68)]
|
|
836
933
|
- lint fix [Unai - [`1264a7a`](https://github.com/eea/volto-clms-theme/commit/1264a7adfe8d679fea1bd821ad087add20f4271d)]
|
|
837
934
|
- footer newsletter subscription change, global search maxLength change from 8000 to 200 and /login design change [Unai - [`a09d24a`](https://github.com/eea/volto-clms-theme/commit/a09d24adbb6fa053fb2a2cc0071506b906593b42)]
|
|
@@ -982,6 +1079,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
982
1079
|
- search block new features [ionlizarazu - [`8e814cb`](https://github.com/eea/volto-clms-theme/commit/8e814cbd359782540c21fe37b37ef146d331f0d6)]
|
|
983
1080
|
- language selector cookie management [ionlizarazu - [`1385ac9`](https://github.com/eea/volto-clms-theme/commit/1385ac95795702206d3623ba6e780faa43a89e0a)]
|
|
984
1081
|
- toolbar cookie management [ionlizarazu - [`5c23200`](https://github.com/eea/volto-clms-theme/commit/5c23200790b20e1d4f1bc966463c37bf4c808f47)]
|
|
1082
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`0316a0d`](https://github.com/eea/volto-clms-theme/commit/0316a0d8b6fb0fa14af13002415f3c95d9f8ede3)]
|
|
985
1083
|
### [1.0.84](https://github.com/eea/volto-clms-theme/compare/1.0.83...1.0.84) - 18 March 2022
|
|
986
1084
|
|
|
987
1085
|
#### :hammer_and_wrench: Others
|
|
@@ -1886,11 +1984,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1886
1984
|
#### :hammer_and_wrench: Others
|
|
1887
1985
|
|
|
1888
1986
|
- replace @collective/volto-dropdownmenu with volto-dropdownmenu [ionlizarazu - [`07f004f`](https://github.com/eea/volto-clms-theme/commit/07f004fe0219e403fb51bc045c83d34f3b981f76)]
|
|
1987
|
+
- yarn.lock [ionlizarazu - [`fe1ca04`](https://github.com/eea/volto-clms-theme/commit/fe1ca04889d29fe7b653db4c69af2751b84b8a1a)]
|
|
1889
1988
|
- add NODE_ENV parameter [ionlizarazu - [`101f27c`](https://github.com/eea/volto-clms-theme/commit/101f27c25b8fbd192e1b11865e95cf5ffee08c1b)]
|
|
1890
1989
|
- upgrade volto-dropdownmenu version [ionlizarazu - [`2081855`](https://github.com/eea/volto-clms-theme/commit/2081855301f4c708776e0dbab39db143cee00dbc)]
|
|
1891
1990
|
- HomeSearch block missing url behaviour [ionlizarazu - [`d20a378`](https://github.com/eea/volto-clms-theme/commit/d20a378ce3f254b8343692348f314bf281974542)]
|
|
1892
1991
|
- babel configuration [ionlizarazu - [`203ea2d`](https://github.com/eea/volto-clms-theme/commit/203ea2de07f99ca3403e4ca220ca74d7ce69b61d)]
|
|
1893
1992
|
- prettier [ionlizarazu - [`e79e26b`](https://github.com/eea/volto-clms-theme/commit/e79e26bf2fa40ba7b4eb53a24dabd87928221c28)]
|
|
1993
|
+
- add yarn lock [ionlizarazu - [`e1ab28b`](https://github.com/eea/volto-clms-theme/commit/e1ab28b060d5a74431c368b0de82a68dabce1eab)]
|
|
1894
1994
|
- Jenkinsfile cypress test [ionlizarazu - [`b385d65`](https://github.com/eea/volto-clms-theme/commit/b385d65986f717c60f8c434a08fc11b829d08eb4)]
|
|
1895
1995
|
- cypress [ionlizarazu - [`a243cf0`](https://github.com/eea/volto-clms-theme/commit/a243cf0182fa3dd113c16ff495c71e310252d83b)]
|
|
1896
1996
|
- some fixes [ionlizarazu - [`046279b`](https://github.com/eea/volto-clms-theme/commit/046279b9d05bea8a64eca03eed493e02621534c9)]
|
package/Jenkinsfile
CHANGED
|
@@ -6,7 +6,7 @@ pipeline {
|
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
7
|
SONARQUBE_TAGS = "clms.land.copernicus.eu,volto.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu"
|
|
8
8
|
DEPENDENCIES = ""
|
|
9
|
-
VOLTO = "
|
|
9
|
+
VOLTO = ""
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
stages {
|
|
@@ -41,22 +41,19 @@ pipeline {
|
|
|
41
41
|
|
|
42
42
|
"ES lint": {
|
|
43
43
|
node(label: 'docker') {
|
|
44
|
-
sh '''docker
|
|
45
|
-
sh '''docker run -i --rm --name="$BUILD_TAG-eslint" -e VOLTO=$VOLTO -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" plone/volto-addon-ci:15.x eslint'''
|
|
44
|
+
sh '''docker run -i --rm --name="$BUILD_TAG-eslint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha eslint'''
|
|
46
45
|
}
|
|
47
46
|
},
|
|
48
47
|
|
|
49
48
|
"Style lint": {
|
|
50
49
|
node(label: 'docker') {
|
|
51
|
-
sh '''docker
|
|
52
|
-
sh '''docker run -i --rm --name="$BUILD_TAG-stylelint" -e VOLTO=$VOLTO -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" plone/volto-addon-ci:15.x stylelint'''
|
|
50
|
+
sh '''docker run -i --rm --name="$BUILD_TAG-stylelint" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha stylelint'''
|
|
53
51
|
}
|
|
54
52
|
},
|
|
55
53
|
|
|
56
54
|
"Prettier": {
|
|
57
55
|
node(label: 'docker') {
|
|
58
|
-
sh '''docker
|
|
59
|
-
sh '''docker run -i --rm --name="$BUILD_TAG-prettier" -e VOLTO=$VOLTO -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" plone/volto-addon-ci:15.x prettier'''
|
|
56
|
+
sh '''docker run -i --rm --name="$BUILD_TAG-prettier" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha prettier'''
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
59
|
)
|
|
@@ -80,8 +77,8 @@ pipeline {
|
|
|
80
77
|
node(label: 'docker') {
|
|
81
78
|
script {
|
|
82
79
|
try {
|
|
83
|
-
sh '''docker pull plone/volto-addon-ci:
|
|
84
|
-
sh '''docker run -i --name="$BUILD_TAG-volto" -e NAMESPACE="$NAMESPACE" -e
|
|
80
|
+
sh '''docker pull plone/volto-addon-ci:alpha'''
|
|
81
|
+
sh '''docker run -i --name="$BUILD_TAG-volto" -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha'''
|
|
85
82
|
sh '''rm -rf xunit-reports'''
|
|
86
83
|
sh '''mkdir -p xunit-reports'''
|
|
87
84
|
sh '''docker cp $BUILD_TAG-volto:/opt/frontend/my-volto-project/coverage xunit-reports/'''
|
|
@@ -111,93 +108,93 @@ pipeline {
|
|
|
111
108
|
}
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
stage('Integration tests') {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
stage('Report to SonarQube') {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
111
|
+
// stage('Integration tests') {
|
|
112
|
+
// when {
|
|
113
|
+
// allOf {
|
|
114
|
+
// environment name: 'CHANGE_ID', value: ''
|
|
115
|
+
// anyOf {
|
|
116
|
+
// not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
117
|
+
// branch 'master'
|
|
118
|
+
// }
|
|
119
|
+
// }
|
|
120
|
+
// }
|
|
121
|
+
// steps {
|
|
122
|
+
// parallel(
|
|
123
|
+
|
|
124
|
+
// "Cypress": {
|
|
125
|
+
// node(label: 'docker') {
|
|
126
|
+
// script {
|
|
127
|
+
// try {
|
|
128
|
+
// sh '''docker pull eeacms/plone-backend; docker run --rm -d --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend'''
|
|
129
|
+
// sh '''docker pull plone/volto-addon-ci:alpha; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e VOLTO=$VOLTO plone/volto-addon-ci:alpha cypress'''
|
|
130
|
+
// } finally {
|
|
131
|
+
// try {
|
|
132
|
+
// sh '''rm -rf cypress-reports cypress-results cypress-coverage'''
|
|
133
|
+
// sh '''mkdir -p cypress-reports cypress-results cypress-coverage'''
|
|
134
|
+
// sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/videos cypress-reports/'''
|
|
135
|
+
// sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/reports cypress-results/'''
|
|
136
|
+
// coverage = sh script: '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/coverage cypress-coverage/''', returnStatus: true
|
|
137
|
+
// if ( coverage == 0 ) {
|
|
138
|
+
// publishHTML (target : [allowMissing: false,
|
|
139
|
+
// alwaysLinkToLastBuild: true,
|
|
140
|
+
// keepAll: true,
|
|
141
|
+
// reportDir: 'cypress-coverage/coverage/lcov-report',
|
|
142
|
+
// reportFiles: 'index.html',
|
|
143
|
+
// reportName: 'CypressCoverage',
|
|
144
|
+
// reportTitles: 'Integration Tests Code Coverage'])
|
|
145
|
+
// }
|
|
146
|
+
// sh '''touch empty_file; for ok_test in $(grep -E 'file=.*failures="0"' $(grep 'testsuites .*failures="0"' $(find cypress-results -name *.xml) empty_file | awk -F: '{print $1}') empty_file | sed 's/.* file="\\(.*\\)" time.*/\\1/' | sed 's#^cypress/integration/##g' | sed 's#^../../../node_modules/@eeacms/##g'); do rm -f cypress-reports/videos/$ok_test.mp4; rm -f cypress-reports/$ok_test.mp4; done'''
|
|
147
|
+
// archiveArtifacts artifacts: 'cypress-reports/**/*.mp4', fingerprint: true, allowEmptyArchive: true
|
|
148
|
+
// stash name: "cypress-coverage", includes: "cypress-coverage/**", allowEmpty: true
|
|
149
|
+
// }
|
|
150
|
+
// finally {
|
|
151
|
+
// catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
|
|
152
|
+
// junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true
|
|
153
|
+
// }
|
|
154
|
+
// sh script: "docker stop $BUILD_TAG-plone", returnStatus: true
|
|
155
|
+
// sh script: "docker rm -v $BUILD_TAG-plone", returnStatus: true
|
|
156
|
+
// sh script: "docker rm -v $BUILD_TAG-cypress", returnStatus: true
|
|
157
|
+
|
|
158
|
+
// }
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
162
|
+
// }
|
|
163
|
+
|
|
164
|
+
// )
|
|
165
|
+
// }
|
|
166
|
+
// }
|
|
167
|
+
|
|
168
|
+
// stage('Report to SonarQube') {
|
|
169
|
+
// when {
|
|
170
|
+
// allOf {
|
|
171
|
+
// environment name: 'CHANGE_ID', value: ''
|
|
172
|
+
// anyOf {
|
|
173
|
+
// branch 'master'
|
|
174
|
+
// allOf {
|
|
175
|
+
// branch 'develop'
|
|
176
|
+
// not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
177
|
+
// }
|
|
178
|
+
// }
|
|
179
|
+
// }
|
|
180
|
+
// }
|
|
181
|
+
// steps {
|
|
182
|
+
// node(label: 'swarm') {
|
|
183
|
+
// script{
|
|
184
|
+
// checkout scm
|
|
185
|
+
// unstash "xunit-reports"
|
|
186
|
+
// unstash "cypress-coverage"
|
|
187
|
+
// def scannerHome = tool 'SonarQubeScanner';
|
|
188
|
+
// def nodeJS = tool 'NodeJS';
|
|
189
|
+
// withSonarQubeEnv('Sonarqube') {
|
|
190
|
+
// sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
|
|
191
|
+
// sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
|
|
192
|
+
// sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
|
|
193
|
+
// }
|
|
194
|
+
// }
|
|
195
|
+
// }
|
|
196
|
+
// }
|
|
197
|
+
// }
|
|
201
198
|
|
|
202
199
|
stage('Pull Request') {
|
|
203
200
|
when {
|
|
@@ -242,4 +239,4 @@ pipeline {
|
|
|
242
239
|
}
|
|
243
240
|
}
|
|
244
241
|
}
|
|
245
|
-
}
|
|
242
|
+
}
|
package/babel.config.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
|
-
module.exports =
|
|
1
|
+
module.exports = function (api) {
|
|
2
|
+
api.cache(true);
|
|
3
|
+
const presets = ['razzle'];
|
|
4
|
+
const plugins = [
|
|
5
|
+
[
|
|
6
|
+
'react-intl', // React Intl extractor, required for the whole i18n infrastructure to work
|
|
7
|
+
{
|
|
8
|
+
messagesDir: './build/messages/',
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
return {
|
|
14
|
+
plugins,
|
|
15
|
+
presets,
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setupBeforeEach, tearDownAfterEach } from '../support';
|
|
1
|
+
import { setupBeforeEach, tearDownAfterEach } from '../support/e2e';
|
|
2
2
|
|
|
3
3
|
describe('Blocks Tests', () => {
|
|
4
4
|
beforeEach(setupBeforeEach);
|
|
@@ -6,13 +6,15 @@ describe('Blocks Tests', () => {
|
|
|
6
6
|
|
|
7
7
|
it('Add Block: Empty', () => {
|
|
8
8
|
// Change page title
|
|
9
|
-
cy.get('.documentFirstHeading
|
|
9
|
+
cy.get('.documentFirstHeading')
|
|
10
|
+
.focused()
|
|
10
11
|
.clear()
|
|
11
12
|
.type('My Add-on Page')
|
|
12
|
-
.get('.documentFirstHeading
|
|
13
|
+
.get('.documentFirstHeading')
|
|
13
14
|
.contains('My Add-on Page');
|
|
14
15
|
|
|
15
|
-
cy.get('.documentFirstHeading
|
|
16
|
+
cy.get('.documentFirstHeading') /* .focused() */
|
|
17
|
+
.type('{enter}');
|
|
16
18
|
|
|
17
19
|
// Add block
|
|
18
20
|
cy.get('.ui.basic.icon.button.block-add-button').first().click();
|
|
@@ -27,7 +27,7 @@ coverage-end */
|
|
|
27
27
|
export const setupBeforeEach = () => {
|
|
28
28
|
cy.autologin();
|
|
29
29
|
cy.createContent({
|
|
30
|
-
contentType: '
|
|
30
|
+
contentType: 'Document',
|
|
31
31
|
contentId: 'cypress',
|
|
32
32
|
contentTitle: 'Cypress',
|
|
33
33
|
});
|
|
@@ -44,7 +44,7 @@ export const setupBeforeEach = () => {
|
|
|
44
44
|
cy.waitForResourceToLoad('@types');
|
|
45
45
|
cy.waitForResourceToLoad('my-page');
|
|
46
46
|
cy.navigate('/cypress/my-page/edit');
|
|
47
|
-
cy.get(`.block.title [data-contents]`);
|
|
47
|
+
// cy.get(`.block.title [data-contents]`);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
export const tearDownAfterEach = () => {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const { defineConfig } = require('cypress')
|
|
2
|
+
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
viewportWidth: 1280,
|
|
5
|
+
defaultCommandTimeout: 15000,
|
|
6
|
+
reporter: 'junit',
|
|
7
|
+
video: true,
|
|
8
|
+
reporterOptions: {
|
|
9
|
+
mochaFile: 'cypress/reports/cypress-[hash].xml',
|
|
10
|
+
jenkinsMode: true,
|
|
11
|
+
toConsole: true,
|
|
12
|
+
},
|
|
13
|
+
e2e: {
|
|
14
|
+
// We've imported your old cypress plugins here.
|
|
15
|
+
// You may want to clean this up later by importing these.
|
|
16
|
+
setupNodeEvents(on, config) {
|
|
17
|
+
return require('./cypress/plugins/index.js')(on, config)
|
|
18
|
+
},
|
|
19
|
+
baseUrl: 'http://localhost:3000',
|
|
20
|
+
},
|
|
21
|
+
})
|
package/jest-addon.config.js
CHANGED
|
@@ -8,12 +8,15 @@ module.exports = {
|
|
|
8
8
|
'@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
|
|
9
9
|
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
|
|
10
10
|
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
|
11
|
-
'@eeacms/volto-clms-utils/(.*)$':
|
|
12
|
-
'<rootDir>/node_modules/@eeacms/volto-clms-utils/src/$1',
|
|
13
11
|
'@package/(.*)$': '<rootDir>/src/$1',
|
|
14
12
|
'@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
|
|
15
|
-
'@eeacms/
|
|
16
|
-
|
|
13
|
+
'@eeacms/volto-clms-theme/(.*)$':
|
|
14
|
+
'<rootDir>/src/addons/volto-clms-theme/src/$1',
|
|
15
|
+
'@eeacms/volto-clms-utils/(.*)$':
|
|
16
|
+
'<rootDir>/node_modules/@eeacms/volto-clms-utils/src/$1',
|
|
17
|
+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
|
18
|
+
'@plone/volto-slate':
|
|
19
|
+
'<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
|
|
17
20
|
'~/(.*)$': '<rootDir>/src/$1',
|
|
18
21
|
'@root/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
|
19
22
|
'load-volto-addons':
|
|
@@ -21,9 +24,6 @@ module.exports = {
|
|
|
21
24
|
},
|
|
22
25
|
transform: {
|
|
23
26
|
'^.+\\.js(x)?$': 'babel-jest',
|
|
24
|
-
'^.+\\.css$': 'jest-css-modules',
|
|
25
|
-
'^.+\\.less$': 'jest-css-modules',
|
|
26
|
-
'^.+\\.scss$': 'jest-css-modules',
|
|
27
27
|
'^.+\\.(png)$': 'jest-file',
|
|
28
28
|
'^.+\\.(jpg)$': 'jest-file',
|
|
29
29
|
'^.+\\.(svg)$': './node_modules/@plone/volto/jest-svgsystem-transform.js',
|
|
@@ -39,7 +39,4 @@ module.exports = {
|
|
|
39
39
|
statements: 5,
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
roots: ['<rootDir>'],
|
|
43
|
-
modulePaths: ['<rootDir>'],
|
|
44
|
-
moduleDirectories: ['node_modules'],
|
|
45
42
|
};
|