@eeacms/volto-tableau 4.1.0 → 4.1.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/CHANGELOG.md +13 -3
- package/Jenkinsfile +1 -1
- package/package.json +1 -1
- package/src/Views/VisualizationView.jsx +18 -12
- package/src/Widgets/VisualizationViewWidget.jsx +20 -0
- package/src/Widgets/index.js +2 -1
- package/src/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,16 +4,20 @@ 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.1.
|
|
7
|
+
### [4.1.1](https://github.com/eea/volto-tableau/compare/4.1.0...4.1.1) - 20 July 2023
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- Add VisualizationViewWidget [Tiberiu Ichim - [`fa881cb`](https://github.com/eea/volto-tableau/commit/fa881cbc3643a46697fb16d1c86ada1d4121a46a)]
|
|
12
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`cbcbad2`](https://github.com/eea/volto-tableau/commit/cbcbad26f7aa3683122199c8d5cbd142903df93b)]
|
|
13
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`51abe6d`](https://github.com/eea/volto-tableau/commit/51abe6d4db80825fe2e396e04c7003c6ad79b480)]
|
|
14
|
+
### [4.1.0](https://github.com/eea/volto-tableau/compare/4.0.0...4.1.0) - 15 June 2023
|
|
12
15
|
|
|
13
16
|
## [4.0.0](https://github.com/eea/volto-tableau/compare/3.0.8...4.0.0) - 13 June 2023
|
|
14
17
|
|
|
15
18
|
#### :house: Internal changes
|
|
16
19
|
|
|
20
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`e33bb21`](https://github.com/eea/volto-tableau/commit/e33bb21eb429c33e3a15d771487a1c9af8ccb0d5)]
|
|
17
21
|
|
|
18
22
|
#### :hammer_and_wrench: Others
|
|
19
23
|
|
|
@@ -45,6 +49,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
45
49
|
|
|
46
50
|
#### :hammer_and_wrench: Others
|
|
47
51
|
|
|
52
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`f5deccd`](https://github.com/eea/volto-tableau/commit/f5deccd84372752908b300c5cfd78134818e5ce4)]
|
|
48
53
|
### [3.0.6](https://github.com/eea/volto-tableau/compare/3.0.5...3.0.6) - 30 January 2023
|
|
49
54
|
|
|
50
55
|
### [3.0.5](https://github.com/eea/volto-tableau/compare/3.0.4...3.0.5) - 26 January 2023
|
|
@@ -116,6 +121,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
116
121
|
- Update commands.js [Nilesh - [`7c48437`](https://github.com/eea/volto-tableau/commit/7c4843780efb9b85a4728de73c00d831c1d8fdcf)]
|
|
117
122
|
- Update e2e.js [Nilesh - [`f67b45c`](https://github.com/eea/volto-tableau/commit/f67b45c170f58f8d0301192994226f173e4cb00a)]
|
|
118
123
|
- latest volto compatibility refs #154757 [nileshgulia1 - [`881ba48`](https://github.com/eea/volto-tableau/commit/881ba482dc9b82e7fdac16549d41e80a6d26b3de)]
|
|
124
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`58e25df`](https://github.com/eea/volto-tableau/commit/58e25df2291add09670143bee54cde103ee835b9)]
|
|
119
125
|
### [1.3.0](https://github.com/eea/volto-tableau/compare/1.2.5...1.3.0) - 28 September 2022
|
|
120
126
|
|
|
121
127
|
#### :hammer_and_wrench: Others
|
|
@@ -129,11 +135,15 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
129
135
|
- Use volto 16 alpha 14 [Miu Razvan - [`93641be`](https://github.com/eea/volto-tableau/commit/93641be4c2393f49008aff789400cf7c947949fd)]
|
|
130
136
|
- Revert volto-tableau group to common [Andrei Grigore - [`9d24c6d`](https://github.com/eea/volto-tableau/commit/9d24c6d2767fed6a840cddaee55dbd5cecb544b5)]
|
|
131
137
|
- Tableaugroup typo fix [Andrei Grigore - [`b0b5378`](https://github.com/eea/volto-tableau/commit/b0b5378a437043120a96c9e5e8802584145daa22)]
|
|
138
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`3234347`](https://github.com/eea/volto-tableau/commit/3234347e524cc0ed4918242f503fe9e7dba266b2)]
|
|
132
139
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d237e1c`](https://github.com/eea/volto-tableau/commit/d237e1c72817d7e68a3eb698563674d1514db24f)]
|
|
133
140
|
### [1.2.4](https://github.com/eea/volto-tableau/compare/1.2.3...1.2.4) - 25 October 2021
|
|
134
141
|
|
|
135
142
|
#### :hammer_and_wrench: Others
|
|
136
143
|
|
|
144
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`2b19679`](https://github.com/eea/volto-tableau/commit/2b19679e2c7bcdc83082d1c73a595eea8b86d14f)]
|
|
145
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`384ccae`](https://github.com/eea/volto-tableau/commit/384ccaebed8c414a5c90eb96c6ce0a2b091f249c)]
|
|
146
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`589258e`](https://github.com/eea/volto-tableau/commit/589258e9b3cbba9cee37c57bb85ca5b707bc65d7)]
|
|
137
147
|
### [1.2.3](https://github.com/eea/volto-tableau/compare/1.2.2...1.2.3) - 14 June 2021
|
|
138
148
|
|
|
139
149
|
#### :hammer_and_wrench: Others
|
package/Jenkinsfile
CHANGED
|
@@ -4,7 +4,7 @@ pipeline {
|
|
|
4
4
|
environment {
|
|
5
5
|
GIT_NAME = "volto-tableau"
|
|
6
6
|
NAMESPACE = "@eeacms"
|
|
7
|
-
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,water.europa.eu-freshwater,water.europa.eu-marine,industry.eea.europa.eu"
|
|
7
|
+
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,water.europa.eu-freshwater,water.europa.eu-marine,industry.eea.europa.eu,demo-www.eea.europa.eu"
|
|
8
8
|
DEPENDENCIES = ""
|
|
9
9
|
VOLTO = ""
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { hasBlocksData } from '@plone/volto/helpers';
|
|
2
3
|
import { Container } from 'semantic-ui-react';
|
|
3
4
|
import config from '@plone/volto/registry';
|
|
5
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
4
6
|
import Tableau from '@eeacms/volto-tableau/Tableau/Tableau';
|
|
5
7
|
|
|
6
8
|
const VisualizationView = (props) => {
|
|
@@ -9,18 +11,22 @@ const VisualizationView = (props) => {
|
|
|
9
11
|
|
|
10
12
|
return (
|
|
11
13
|
<Container id="page-document">
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
{hasBlocksData(content) ? (
|
|
15
|
+
<RenderBlocks {...props} />
|
|
16
|
+
) : (
|
|
17
|
+
<Tableau
|
|
18
|
+
data={{
|
|
19
|
+
...tableau_visualization,
|
|
20
|
+
with_sources: true,
|
|
21
|
+
with_download: true,
|
|
22
|
+
with_share: true,
|
|
23
|
+
}}
|
|
24
|
+
sources={data_provenance.data || []}
|
|
25
|
+
breakpoints={
|
|
26
|
+
config.blocks.blocksConfig.embed_tableau_visualization.breakpoints
|
|
27
|
+
}
|
|
28
|
+
/>
|
|
29
|
+
)}
|
|
24
30
|
</Container>
|
|
25
31
|
);
|
|
26
32
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Tableau from '@eeacms/volto-tableau/Tableau/Tableau';
|
|
2
|
+
import config from '@plone/volto/registry';
|
|
3
|
+
|
|
4
|
+
export default function VisualizationViewWidget(props) {
|
|
5
|
+
const { value = {} } = props;
|
|
6
|
+
return (
|
|
7
|
+
<Tableau
|
|
8
|
+
data={{
|
|
9
|
+
...value,
|
|
10
|
+
with_sources: true,
|
|
11
|
+
with_download: true,
|
|
12
|
+
with_share: true,
|
|
13
|
+
}}
|
|
14
|
+
sources={[]}
|
|
15
|
+
breakpoints={
|
|
16
|
+
config.blocks.blocksConfig.embed_tableau_visualization.breakpoints
|
|
17
|
+
}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
}
|
package/src/Widgets/index.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import installBlocks from './Blocks';
|
|
2
2
|
import { VisualizationView } from './Views';
|
|
3
|
-
import { VisualizationWidget } from './Widgets';
|
|
3
|
+
import { VisualizationWidget, VisualizationViewWidget } from './Widgets';
|
|
4
4
|
|
|
5
5
|
const applyConfig = (config) => {
|
|
6
6
|
config.settings.allowed_cors_destinations = [
|
|
@@ -12,6 +12,7 @@ const applyConfig = (config) => {
|
|
|
12
12
|
|
|
13
13
|
config.views.contentTypesViews.tableau_visualization = VisualizationView;
|
|
14
14
|
config.widgets.id.tableau_visualization = VisualizationWidget;
|
|
15
|
+
config.widgets.views.id.tableau_visualization = VisualizationViewWidget;
|
|
15
16
|
|
|
16
17
|
return [installBlocks].reduce((acc, apply) => apply(acc), config);
|
|
17
18
|
};
|