@eeacms/volto-tableau 4.1.1 → 5.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/.husky/pre-commit +2 -0
- package/CHANGELOG.md +30 -10
- package/DEVELOP.md +61 -6
- package/Dockerfile +14 -0
- package/Jenkinsfile +68 -19
- package/Makefile +131 -0
- package/README.md +12 -113
- package/RELEASE.md +74 -0
- package/cypress.config.js +1 -1
- package/docker-compose.yml +32 -0
- package/locales/de/LC_MESSAGES/volto.po +14 -0
- package/locales/en/LC_MESSAGES/volto.po +14 -0
- package/locales/it/LC_MESSAGES/volto.po +14 -0
- package/locales/ro/LC_MESSAGES/volto.po +14 -0
- package/locales/volto.pot +16 -0
- package/package.json +37 -12
- package/.i18n.babel.config.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,20 +4,46 @@ 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
|
-
### [
|
|
7
|
+
### [5.0.1](https://github.com/eea/volto-tableau/compare/5.0.0...5.0.1) - 10 October 2023
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`b59b145`](https://github.com/eea/volto-tableau/commit/b59b14508c169c364d4b2fd79f670b275bb41ae2)]
|
|
12
|
+
- style: lint-staged reorder in package.json [Alin Voinea - [`8d49c01`](https://github.com/eea/volto-tableau/commit/8d49c0133bfa06699f6d4260784ba483d04f3dd1)]
|
|
13
|
+
|
|
14
|
+
#### :house: Documentation changes
|
|
15
|
+
|
|
16
|
+
- docs: Update README and DEVELOP [Alin Voinea - [`354dc34`](https://github.com/eea/volto-tableau/commit/354dc3468a9ae124398710af6e61f11382f61607)]
|
|
17
|
+
- docs: Update README and DEVELOP [Alin Voinea - [`6104ff9`](https://github.com/eea/volto-tableau/commit/6104ff9978abe872bcffbc9257173887b622d533)]
|
|
18
|
+
- docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`8f58341`](https://github.com/eea/volto-tableau/commit/8f58341dcccabde9e605a6b3abace49e1a1e31b3)]
|
|
19
|
+
|
|
20
|
+
#### :hammer_and_wrench: Others
|
|
21
|
+
|
|
22
|
+
- test: change volto version in Jenkinsfile [ana-oprea - [`347aceb`](https://github.com/eea/volto-tableau/commit/347aceb07d152fddeebbf3a7e7a6ac9c55dc21ba)]
|
|
23
|
+
- test: increase cypress timeout [ana-oprea - [`bdf4408`](https://github.com/eea/volto-tableau/commit/bdf44083cd84c96b4914d3f8a3bb17c5187f191c)]
|
|
24
|
+
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`caff974`](https://github.com/eea/volto-tableau/commit/caff9742a703b224133a8dd2a969629e70c9fd33)]
|
|
25
|
+
- i18n: Add en [Alin Voinea - [`c5e20dd`](https://github.com/eea/volto-tableau/commit/c5e20ddea25c830ac80665ee9a71e557e8cd117d)]
|
|
26
|
+
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`2116ff9`](https://github.com/eea/volto-tableau/commit/2116ff95c6454e813bdca44e6c3aa81fa0a916b8)]
|
|
27
|
+
## [5.0.0](https://github.com/eea/volto-tableau/compare/4.1.1...5.0.0) - 25 July 2023
|
|
28
|
+
|
|
29
|
+
#### :nail_care: Enhancements
|
|
30
|
+
|
|
31
|
+
- refactor: remove countup - refs #254634 [dobri1408 - [`8f08d1a`](https://github.com/eea/volto-tableau/commit/8f08d1ae5e4612a706cdb2f487db81b6b20a9c4f)]
|
|
32
|
+
|
|
33
|
+
#### :hammer_and_wrench: Others
|
|
34
|
+
|
|
35
|
+
- Release 5.0.0 [Alin Voinea - [`97c98e9`](https://github.com/eea/volto-tableau/commit/97c98e98b1295a4ad45756326dc20cd59517515f)]
|
|
36
|
+
### [4.1.1](https://github.com/eea/volto-tableau/compare/4.1.0...4.1.1) - 21 July 2023
|
|
8
37
|
|
|
9
38
|
#### :hammer_and_wrench: Others
|
|
10
39
|
|
|
11
40
|
- 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
41
|
### [4.1.0](https://github.com/eea/volto-tableau/compare/4.0.0...4.1.0) - 15 June 2023
|
|
15
42
|
|
|
16
43
|
## [4.0.0](https://github.com/eea/volto-tableau/compare/3.0.8...4.0.0) - 13 June 2023
|
|
17
44
|
|
|
18
45
|
#### :house: Internal changes
|
|
19
46
|
|
|
20
|
-
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`e33bb21`](https://github.com/eea/volto-tableau/commit/e33bb21eb429c33e3a15d771487a1c9af8ccb0d5)]
|
|
21
47
|
|
|
22
48
|
#### :hammer_and_wrench: Others
|
|
23
49
|
|
|
@@ -49,7 +75,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
49
75
|
|
|
50
76
|
#### :hammer_and_wrench: Others
|
|
51
77
|
|
|
52
|
-
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`f5deccd`](https://github.com/eea/volto-tableau/commit/f5deccd84372752908b300c5cfd78134818e5ce4)]
|
|
53
78
|
### [3.0.6](https://github.com/eea/volto-tableau/compare/3.0.5...3.0.6) - 30 January 2023
|
|
54
79
|
|
|
55
80
|
### [3.0.5](https://github.com/eea/volto-tableau/compare/3.0.4...3.0.5) - 26 January 2023
|
|
@@ -121,7 +146,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
121
146
|
- Update commands.js [Nilesh - [`7c48437`](https://github.com/eea/volto-tableau/commit/7c4843780efb9b85a4728de73c00d831c1d8fdcf)]
|
|
122
147
|
- Update e2e.js [Nilesh - [`f67b45c`](https://github.com/eea/volto-tableau/commit/f67b45c170f58f8d0301192994226f173e4cb00a)]
|
|
123
148
|
- 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)]
|
|
125
149
|
### [1.3.0](https://github.com/eea/volto-tableau/compare/1.2.5...1.3.0) - 28 September 2022
|
|
126
150
|
|
|
127
151
|
#### :hammer_and_wrench: Others
|
|
@@ -135,15 +159,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
135
159
|
- Use volto 16 alpha 14 [Miu Razvan - [`93641be`](https://github.com/eea/volto-tableau/commit/93641be4c2393f49008aff789400cf7c947949fd)]
|
|
136
160
|
- Revert volto-tableau group to common [Andrei Grigore - [`9d24c6d`](https://github.com/eea/volto-tableau/commit/9d24c6d2767fed6a840cddaee55dbd5cecb544b5)]
|
|
137
161
|
- 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)]
|
|
139
162
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d237e1c`](https://github.com/eea/volto-tableau/commit/d237e1c72817d7e68a3eb698563674d1514db24f)]
|
|
140
163
|
### [1.2.4](https://github.com/eea/volto-tableau/compare/1.2.3...1.2.4) - 25 October 2021
|
|
141
164
|
|
|
142
165
|
#### :hammer_and_wrench: Others
|
|
143
166
|
|
|
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)]
|
|
147
167
|
### [1.2.3](https://github.com/eea/volto-tableau/compare/1.2.2...1.2.3) - 14 June 2021
|
|
148
168
|
|
|
149
169
|
#### :hammer_and_wrench: Others
|
package/DEVELOP.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
## Develop
|
|
4
4
|
|
|
5
|
+
1. Make sure you have `docker` and `docker compose` installed and running on your machine:
|
|
6
|
+
|
|
7
|
+
```Bash
|
|
8
|
+
git clone https://github.com/eea/volto-tableau.git
|
|
9
|
+
cd volto-tableau
|
|
10
|
+
git checkout -b bugfix-123456 develop
|
|
11
|
+
make
|
|
12
|
+
make start
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
1. Wait for `Volto started at 0.0.0.0:3000` meesage
|
|
16
|
+
|
|
17
|
+
1. Go to http://localhost:3000
|
|
18
|
+
|
|
19
|
+
1. Initialize git hooks
|
|
20
|
+
|
|
21
|
+
```Bash
|
|
22
|
+
yarn prepare
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
1. Happy hacking!
|
|
26
|
+
|
|
27
|
+
### Or add @eeacms/volto-tableau to your Volto project
|
|
28
|
+
|
|
5
29
|
Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
|
|
6
30
|
|
|
7
31
|
1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
|
|
@@ -26,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
26
50
|
|
|
27
51
|
1. Install
|
|
28
52
|
|
|
29
|
-
|
|
53
|
+
make develop
|
|
30
54
|
yarn
|
|
31
55
|
|
|
32
56
|
1. Start backend
|
|
33
57
|
|
|
34
|
-
docker pull plone
|
|
35
|
-
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
|
|
58
|
+
docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
|
|
36
59
|
|
|
37
60
|
...wait for backend to setup and start - `Ready to handle requests`:
|
|
38
61
|
|
|
39
|
-
docker logs -f plone
|
|
40
|
-
|
|
41
62
|
...you can also check http://localhost:8080/Plone
|
|
42
63
|
|
|
43
64
|
1. Start frontend
|
|
@@ -48,4 +69,38 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
48
69
|
|
|
49
70
|
1. Happy hacking!
|
|
50
71
|
|
|
51
|
-
cd src/addons/volto-tableau/
|
|
72
|
+
cd src/addons/volto-tableau/
|
|
73
|
+
|
|
74
|
+
## Cypress
|
|
75
|
+
|
|
76
|
+
To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
|
|
77
|
+
|
|
78
|
+
You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
|
|
79
|
+
project where you added `volto-tableau` to `mrs.developer.json`
|
|
80
|
+
|
|
81
|
+
Go to:
|
|
82
|
+
|
|
83
|
+
```BASH
|
|
84
|
+
cd src/addons/volto-tableau/
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Start:
|
|
88
|
+
|
|
89
|
+
```Bash
|
|
90
|
+
make
|
|
91
|
+
make start
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-tableau` block installed.
|
|
95
|
+
|
|
96
|
+
Open Cypress Interface:
|
|
97
|
+
|
|
98
|
+
```Bash
|
|
99
|
+
make cypress-open
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Or run it:
|
|
103
|
+
|
|
104
|
+
```Bash
|
|
105
|
+
make cypress-run
|
|
106
|
+
```
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
ARG VOLTO_VERSION
|
|
3
|
+
FROM plone/frontend-builder:${VOLTO_VERSION}
|
|
4
|
+
|
|
5
|
+
ARG ADDON_NAME
|
|
6
|
+
ARG ADDON_PATH
|
|
7
|
+
|
|
8
|
+
COPY --chown=node:node ./ /app/src/addons/${ADDON_PATH}/
|
|
9
|
+
|
|
10
|
+
RUN /setupAddon
|
|
11
|
+
RUN yarn install
|
|
12
|
+
|
|
13
|
+
ENTRYPOINT ["yarn"]
|
|
14
|
+
CMD ["start"]
|
package/Jenkinsfile
CHANGED
|
@@ -4,9 +4,9 @@ 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,demo-www.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,www.eea.europa.eu-en"
|
|
8
8
|
DEPENDENCIES = ""
|
|
9
|
-
VOLTO = ""
|
|
9
|
+
VOLTO = "16"
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
stages {
|
|
@@ -62,11 +62,17 @@ pipeline {
|
|
|
62
62
|
|
|
63
63
|
stage('Tests') {
|
|
64
64
|
when {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
anyOf {
|
|
66
|
+
allOf {
|
|
67
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
68
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
69
|
+
}
|
|
70
|
+
allOf {
|
|
71
|
+
environment name: 'CHANGE_ID', value: ''
|
|
72
|
+
anyOf {
|
|
73
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
74
|
+
branch 'master'
|
|
75
|
+
}
|
|
70
76
|
}
|
|
71
77
|
}
|
|
72
78
|
}
|
|
@@ -110,11 +116,17 @@ pipeline {
|
|
|
110
116
|
|
|
111
117
|
stage('Integration tests') {
|
|
112
118
|
when {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
anyOf {
|
|
120
|
+
allOf {
|
|
121
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
122
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
123
|
+
}
|
|
124
|
+
allOf {
|
|
125
|
+
environment name: 'CHANGE_ID', value: ''
|
|
126
|
+
anyOf {
|
|
127
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
128
|
+
branch 'master'
|
|
129
|
+
}
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
}
|
|
@@ -167,13 +179,19 @@ pipeline {
|
|
|
167
179
|
|
|
168
180
|
stage('Report to SonarQube') {
|
|
169
181
|
when {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
182
|
+
anyOf {
|
|
183
|
+
allOf {
|
|
184
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
185
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
186
|
+
}
|
|
187
|
+
allOf {
|
|
188
|
+
environment name: 'CHANGE_ID', value: ''
|
|
189
|
+
anyOf {
|
|
190
|
+
allOf {
|
|
191
|
+
branch 'develop'
|
|
192
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
193
|
+
}
|
|
194
|
+
branch 'master'
|
|
177
195
|
}
|
|
178
196
|
}
|
|
179
197
|
}
|
|
@@ -197,6 +215,37 @@ pipeline {
|
|
|
197
215
|
}
|
|
198
216
|
}
|
|
199
217
|
|
|
218
|
+
stage('SonarQube compare to master') {
|
|
219
|
+
when {
|
|
220
|
+
anyOf {
|
|
221
|
+
allOf {
|
|
222
|
+
not { environment name: 'CHANGE_ID', value: '' }
|
|
223
|
+
environment name: 'CHANGE_TARGET', value: 'develop'
|
|
224
|
+
}
|
|
225
|
+
allOf {
|
|
226
|
+
environment name: 'CHANGE_ID', value: ''
|
|
227
|
+
branch 'develop'
|
|
228
|
+
not { changelog '.*^Automated release [0-9\\.]+$' }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
steps {
|
|
233
|
+
node(label: 'docker') {
|
|
234
|
+
script {
|
|
235
|
+
sh '''docker pull eeacms/gitflow'''
|
|
236
|
+
sh '''echo "Error" > checkresult.txt'''
|
|
237
|
+
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
|
|
238
|
+
sh '''set -o pipefail; docker run -i --rm --name="$BUILD_TAG-gitflow-sn" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" eeacms/gitflow /checkSonarqubemaster.sh | grep -v "Found script" | tee checkresult.txt'''
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
publishChecks name: 'SonarQube', title: 'Sonarqube Code Quality Check', summary: "Quality check on the SonarQube metrics from branch develop, comparing it with the ones from master branch. No bugs are allowed",
|
|
242
|
+
text: readFile(file: 'checkresult.txt'), conclusion: "${currentBuild.currentResult}",
|
|
243
|
+
detailsURL: "${env.BUILD_URL}display/redirect"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
200
249
|
stage('Pull Request') {
|
|
201
250
|
when {
|
|
202
251
|
not {
|
package/Makefile
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
# Run:
|
|
3
|
+
# make
|
|
4
|
+
# make start
|
|
5
|
+
#
|
|
6
|
+
# Go to:
|
|
7
|
+
#
|
|
8
|
+
# http://localhost:3000
|
|
9
|
+
#
|
|
10
|
+
# Cypress:
|
|
11
|
+
#
|
|
12
|
+
# make cypress-open
|
|
13
|
+
#
|
|
14
|
+
##############################################################################
|
|
15
|
+
# SETUP MAKE
|
|
16
|
+
#
|
|
17
|
+
## Defensive settings for make: https://tech.davis-hansson.com/p/make/
|
|
18
|
+
SHELL:=bash
|
|
19
|
+
.ONESHELL:
|
|
20
|
+
# for Makefile debugging purposes add -x to the .SHELLFLAGS
|
|
21
|
+
.SHELLFLAGS:=-eu -o pipefail -O inherit_errexit -c
|
|
22
|
+
.SILENT:
|
|
23
|
+
.DELETE_ON_ERROR:
|
|
24
|
+
MAKEFLAGS+=--warn-undefined-variables
|
|
25
|
+
MAKEFLAGS+=--no-builtin-rules
|
|
26
|
+
|
|
27
|
+
# Colors
|
|
28
|
+
# OK=Green, warn=yellow, error=red
|
|
29
|
+
ifeq ($(TERM),)
|
|
30
|
+
# no colors if not in terminal
|
|
31
|
+
MARK_COLOR=
|
|
32
|
+
OK_COLOR=
|
|
33
|
+
WARN_COLOR=
|
|
34
|
+
ERROR_COLOR=
|
|
35
|
+
NO_COLOR=
|
|
36
|
+
else
|
|
37
|
+
MARK_COLOR=`tput setaf 6`
|
|
38
|
+
OK_COLOR=`tput setaf 2`
|
|
39
|
+
WARN_COLOR=`tput setaf 3`
|
|
40
|
+
ERROR_COLOR=`tput setaf 1`
|
|
41
|
+
NO_COLOR=`tput sgr0`
|
|
42
|
+
endif
|
|
43
|
+
|
|
44
|
+
##############################################################################
|
|
45
|
+
# SETTINGS AND VARIABLE
|
|
46
|
+
DIR=$(shell basename $$(pwd))
|
|
47
|
+
NODE_MODULES?="../../../node_modules"
|
|
48
|
+
PLONE_VERSION?=6
|
|
49
|
+
VOLTO_VERSION?=16
|
|
50
|
+
ADDON_PATH="${DIR}"
|
|
51
|
+
ADDON_NAME="@eeacms/${ADDON_PATH}"
|
|
52
|
+
DOCKER_COMPOSE=PLONE_VERSION=${PLONE_VERSION} VOLTO_VERSION=${VOLTO_VERSION} ADDON_NAME=${ADDON_NAME} ADDON_PATH=${ADDON_PATH} docker compose
|
|
53
|
+
|
|
54
|
+
# Top-level targets
|
|
55
|
+
.PHONY: all
|
|
56
|
+
all: clean install
|
|
57
|
+
|
|
58
|
+
.PHONY: clean
|
|
59
|
+
clean: ## Cleanup development environment
|
|
60
|
+
${DOCKER_COMPOSE} down --volumes --remove-orphans
|
|
61
|
+
|
|
62
|
+
.PHONY: install
|
|
63
|
+
install: ## Build and install development environment
|
|
64
|
+
echo "Running: ${DOCKER_COMPOSE} build"
|
|
65
|
+
${DOCKER_COMPOSE} pull
|
|
66
|
+
${DOCKER_COMPOSE} build
|
|
67
|
+
|
|
68
|
+
.PHONY: start
|
|
69
|
+
start: ## Start development environment
|
|
70
|
+
echo "Running: ${DOCKER_COMPOSE} up"
|
|
71
|
+
${DOCKER_COMPOSE} up
|
|
72
|
+
|
|
73
|
+
.PHONY: shell
|
|
74
|
+
shell: ## Start a shell in the frontend container
|
|
75
|
+
echo "Running: ${DOCKER_COMPOSE} run frontend bash"
|
|
76
|
+
${DOCKER_COMPOSE} run --entrypoint=bash frontend
|
|
77
|
+
|
|
78
|
+
.PHONY: cypress-open
|
|
79
|
+
cypress-open: ## Open cypress integration tests
|
|
80
|
+
NODE_ENV=development $(NODE_MODULES)/cypress/bin/cypress open
|
|
81
|
+
|
|
82
|
+
.PHONY: cypress-run
|
|
83
|
+
cypress-run: ## Run cypress integration tests
|
|
84
|
+
NODE_ENV=development $(NODE_MODULES)/cypress/bin/cypress run
|
|
85
|
+
|
|
86
|
+
.PHONY: test
|
|
87
|
+
test: ## Run jest tests
|
|
88
|
+
${DOCKER_COMPOSE} run -e CI=1 frontend test
|
|
89
|
+
|
|
90
|
+
.PHONY: test-update
|
|
91
|
+
test-update: ## Update jest tests snapshots
|
|
92
|
+
${DOCKER_COMPOSE} run -e CI=1 frontend test -u
|
|
93
|
+
|
|
94
|
+
.PHONY: stylelint
|
|
95
|
+
stylelint: ## Stylelint
|
|
96
|
+
$(NODE_MODULES)/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}'
|
|
97
|
+
|
|
98
|
+
.PHONY: stylelint-overrides
|
|
99
|
+
stylelint-overrides:
|
|
100
|
+
$(NODE_MODULES)/.bin/stylelint --custom-syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides'
|
|
101
|
+
|
|
102
|
+
.PHONY: stylelint-fix
|
|
103
|
+
stylelint-fix: ## Fix stylelint
|
|
104
|
+
$(NODE_MODULES)/stylelint/bin/stylelint.js --allow-empty-input 'src/**/*.{css,less}' --fix
|
|
105
|
+
$(NODE_MODULES)/.bin/stylelint --custom-syntax less --allow-empty-input 'theme/**/*.overrides' 'src/**/*.overrides' --fix
|
|
106
|
+
|
|
107
|
+
.PHONY: prettier
|
|
108
|
+
prettier: ## Prettier
|
|
109
|
+
$(NODE_MODULES)/.bin/prettier --single-quote --check 'src/**/*.{js,jsx,json,css,less,md}'
|
|
110
|
+
|
|
111
|
+
.PHONY: prettier-fix
|
|
112
|
+
prettier-fix: ## Fix prettier
|
|
113
|
+
$(NODE_MODULES)/.bin/prettier --single-quote --write 'src/**/*.{js,jsx,json,css,less,md}'
|
|
114
|
+
|
|
115
|
+
.PHONY: lint
|
|
116
|
+
lint: ## ES Lint
|
|
117
|
+
$(NODE_MODULES)/eslint/bin/eslint.js --max-warnings=0 'src/**/*.{js,jsx}'
|
|
118
|
+
|
|
119
|
+
.PHONY: lint-fix
|
|
120
|
+
lint-fix: ## Fix ES Lint
|
|
121
|
+
$(NODE_MODULES)/eslint/bin/eslint.js --fix 'src/**/*.{js,jsx}'
|
|
122
|
+
|
|
123
|
+
.PHONY: i18n
|
|
124
|
+
i18n: ## i18n
|
|
125
|
+
rm -rf build/messages
|
|
126
|
+
NODE_ENV=development $(NODE_MODULES)/.bin/i18n --addon
|
|
127
|
+
|
|
128
|
+
.PHONY: help
|
|
129
|
+
help: ## Show this help.
|
|
130
|
+
@echo -e "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)"
|
|
131
|
+
head -n 14 Makefile
|
package/README.md
CHANGED
|
@@ -20,38 +20,25 @@
|
|
|
20
20
|
|
|
21
21
|
Registers a VisualizationView component for a content type named 'tableau_visualization'.
|
|
22
22
|
|
|
23
|
-
## Features
|
|
24
|
-
|
|
25
|
-
Demo GIF
|
|
26
|
-
|
|
27
23
|
## Getting started
|
|
28
24
|
|
|
29
25
|
### Try volto-tableau with Docker
|
|
30
26
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
docker pull plone/volto
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
1. Start Plone backend
|
|
39
|
-
```
|
|
40
|
-
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
1. Start Volto frontend
|
|
27
|
+
git clone https://github.com/eea/volto-tableau.git
|
|
28
|
+
cd volto-tableau
|
|
29
|
+
make
|
|
30
|
+
make start
|
|
44
31
|
|
|
45
|
-
|
|
46
|
-
docker run -it --rm -p 3000:3000 --link plone -e ADDONS="@eeacms/volto-tableau" plone/volto
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
1. Go to http://localhost:3000
|
|
32
|
+
Go to http://localhost:3000
|
|
50
33
|
|
|
51
34
|
### Add volto-tableau to your Volto project
|
|
52
35
|
|
|
53
36
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
54
37
|
|
|
38
|
+
```Bash
|
|
39
|
+
docker compose up backend
|
|
40
|
+
```
|
|
41
|
+
|
|
55
42
|
1. Start Volto frontend
|
|
56
43
|
|
|
57
44
|
* If you already have a volto project, just update `package.json`:
|
|
@@ -62,7 +49,7 @@ Demo GIF
|
|
|
62
49
|
],
|
|
63
50
|
|
|
64
51
|
"dependencies": {
|
|
65
|
-
"@eeacms/volto-tableau": "
|
|
52
|
+
"@eeacms/volto-tableau": "*"
|
|
66
53
|
}
|
|
67
54
|
```
|
|
68
55
|
|
|
@@ -70,7 +57,7 @@ Demo GIF
|
|
|
70
57
|
|
|
71
58
|
```
|
|
72
59
|
npm install -g yo @plone/generator-volto
|
|
73
|
-
yo @plone/volto my-volto-project --addon @eeacms/volto-tableau
|
|
60
|
+
yo @plone/volto my-volto-project --canary --addon @eeacms/volto-tableau
|
|
74
61
|
cd my-volto-project
|
|
75
62
|
```
|
|
76
63
|
|
|
@@ -87,95 +74,7 @@ Demo GIF
|
|
|
87
74
|
|
|
88
75
|
## Release
|
|
89
76
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
* The automatic release is started by creating a [Pull Request](../../compare/master...develop) from `develop` to `master`. The pull request status checks correlated to the branch and PR Jenkins jobs need to be processed successfully. 1 review from a github user with rights is mandatory.
|
|
93
|
-
* It runs on every commit on `master` branch, which is protected from direct commits, only allowing pull request merge commits.
|
|
94
|
-
* The automatic release is done by [Jenkins](https://ci.eionet.europa.eu). The status of the release job can be seen both in the Readme.md badges and the green check/red cross/yellow circle near the last commit information. If you click on the icon, you will have the list of checks that were run. The `continuous-integration/jenkins/branch` link goes to the Jenkins job execution webpage.
|
|
95
|
-
* Automated release scripts are located in the `eeacms/gitflow` docker image, specifically [js-release.sh](https://github.com/eea/eea.docker.gitflow/blob/master/src/js-release.sh) script. It uses the `release-it` tool.
|
|
96
|
-
* As long as a PR request is open from develop to master, the PR Jenkins job will automatically re-create the CHANGELOG.md and package.json files to be production-ready.
|
|
97
|
-
* The version format must be MAJOR.MINOR.PATCH. By default, next release is set to next minor version (with patch 0).
|
|
98
|
-
* You can manually change the version in `package.json`. The new version must not be already present in the tags/releases of the repository, otherwise it will be automatically increased by the script. Any changes to the version will trigger a `CHANGELOG.md` re-generation.
|
|
99
|
-
* Automated commits and commits with [JENKINS] or [YARN] in the commit log are excluded from `CHANGELOG.md` file.
|
|
100
|
-
|
|
101
|
-
### Manual release from the develop branch ( beta release )
|
|
102
|
-
|
|
103
|
-
#### Installation and configuration of release-it
|
|
104
|
-
|
|
105
|
-
You need to first install the [release-it](https://github.com/release-it/release-it) client.
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
npm install -g release-it
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
|
|
112
|
-
|
|
113
|
-
Release-it is a tool that automates 4 important steps in the release process:
|
|
114
|
-
|
|
115
|
-
1. Version increase in `package.json` ( increased from the current version in `package.json`)
|
|
116
|
-
2. `CHANGELOG.md` automatic generation from commit messages ( grouped by releases )
|
|
117
|
-
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
|
|
118
|
-
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
|
|
119
|
-
|
|
120
|
-
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
|
|
127
|
-
|
|
128
|
-
```
|
|
129
|
-
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
#### Using release-it tool
|
|
133
|
-
|
|
134
|
-
There are 3 yarn scripts that can be run to do the release
|
|
135
|
-
|
|
136
|
-
##### yarn release-beta
|
|
137
|
-
|
|
138
|
-
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
|
139
|
-
|
|
140
|
-
```
|
|
141
|
-
? Select increment (next version):
|
|
142
|
-
❯ prepatch (0.1.1-beta.0)
|
|
143
|
-
preminor (0.2.0-beta.0)
|
|
144
|
-
premajor (1.0.0-beta.0)
|
|
145
|
-
Other, please specify...
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
##### yarn release-major-beta
|
|
149
|
-
|
|
150
|
-
Same as `yarn release-beta`, but with premajor version pre-selected.
|
|
151
|
-
|
|
152
|
-
##### yarn release
|
|
153
|
-
|
|
154
|
-
Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
|
|
155
|
-
|
|
156
|
-
#### Important notes
|
|
157
|
-
|
|
158
|
-
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
|
159
|
-
|
|
160
|
-
> Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
|
|
161
|
-
|
|
162
|
-
## Enable Sources
|
|
163
|
-
|
|
164
|
-
https://github.com/eea/eea.coremetadata EEA Core Metadata addon is needed.
|
|
165
|
-
|
|
166
|
-
Sources (Data provenance) should be set on the visualization. To enable this, "EEA Core Metadata" should be checked as behavior on the visualization content-type.
|
|
167
|
-
|
|
168
|
-
controlpanel/dexterity-types/tableau_visualization
|
|
169
|
-
|
|
170
|
-
After this, sources can be added from the visualization edit interface. "EEA core metadata" tab => "Add source"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
## Add a Tableau Visualization
|
|
174
|
-
|
|
175
|
-
1. Add the corresponding content-type. Project should also contain https://github.com/eea/eea.api.dataconnector which hosts the content-type.
|
|
176
|
-
2. Fill in the mandatory fields
|
|
177
|
-
3. "Tableau Widget" section => "Open Tableau Editor"
|
|
178
|
-
4. Provide the necessary settings to create the visualization
|
|
77
|
+
See [RELEASE.md](https://github.com/eea/volto-tableau/blob/master/RELEASE.md).
|
|
179
78
|
|
|
180
79
|
## How to contribute
|
|
181
80
|
|
package/RELEASE.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
## Release
|
|
2
|
+
|
|
3
|
+
### Automatic release using Jenkins
|
|
4
|
+
|
|
5
|
+
* The automatic release is started by creating a [Pull Request](../../compare/master...develop) from `develop` to `master`. The pull request status checks correlated to the branch and PR Jenkins jobs need to be processed successfully. 1 review from a github user with rights is mandatory.
|
|
6
|
+
* It runs on every commit on `master` branch, which is protected from direct commits, only allowing pull request merge commits.
|
|
7
|
+
* The automatic release is done by [Jenkins](https://ci.eionet.europa.eu). The status of the release job can be seen both in the Readme.md badges and the green check/red cross/yellow circle near the last commit information. If you click on the icon, you will have the list of checks that were run. The `continuous-integration/jenkins/branch` link goes to the Jenkins job execution webpage.
|
|
8
|
+
* Automated release scripts are located in the `eeacms/gitflow` docker image, specifically [js-release.sh](https://github.com/eea/eea.docker.gitflow/blob/master/src/js-release.sh) script. It uses the `release-it` tool.
|
|
9
|
+
* As long as a PR request is open from develop to master, the PR Jenkins job will automatically re-create the CHANGELOG.md and package.json files to be production-ready.
|
|
10
|
+
* The version format must be MAJOR.MINOR.PATCH. By default, next release is set to next minor version (with patch 0).
|
|
11
|
+
* You can manually change the version in `package.json`. The new version must not be already present in the tags/releases of the repository, otherwise it will be automatically increased by the script. Any changes to the version will trigger a `CHANGELOG.md` re-generation.
|
|
12
|
+
* Automated commits and commits with [JENKINS] or [YARN] in the commit log are excluded from `CHANGELOG.md` file.
|
|
13
|
+
|
|
14
|
+
### Manual release from the develop branch ( beta release )
|
|
15
|
+
|
|
16
|
+
#### Installation and configuration of release-it
|
|
17
|
+
|
|
18
|
+
You need to first install the [release-it](https://github.com/release-it/release-it) client.
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
npm install -g release-it
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
|
|
25
|
+
|
|
26
|
+
Release-it is a tool that automates 4 important steps in the release process:
|
|
27
|
+
|
|
28
|
+
1. Version increase in `package.json` ( increased from the current version in `package.json`)
|
|
29
|
+
2. `CHANGELOG.md` automatic generation from commit messages ( grouped by releases )
|
|
30
|
+
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
|
|
31
|
+
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
|
|
32
|
+
|
|
33
|
+
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### Using release-it tool
|
|
46
|
+
|
|
47
|
+
There are 3 yarn scripts that can be run to do the release
|
|
48
|
+
|
|
49
|
+
##### yarn release-beta
|
|
50
|
+
|
|
51
|
+
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
? Select increment (next version):
|
|
55
|
+
❯ prepatch (0.1.1-beta.0)
|
|
56
|
+
preminor (0.2.0-beta.0)
|
|
57
|
+
premajor (1.0.0-beta.0)
|
|
58
|
+
Other, please specify...
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
##### yarn release-major-beta
|
|
62
|
+
|
|
63
|
+
Same as `yarn release-beta`, but with premajor version pre-selected.
|
|
64
|
+
|
|
65
|
+
##### yarn release
|
|
66
|
+
|
|
67
|
+
Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
|
|
68
|
+
|
|
69
|
+
#### Important notes
|
|
70
|
+
|
|
71
|
+
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
|
72
|
+
|
|
73
|
+
> Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
|
|
74
|
+
|
package/cypress.config.js
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
version: "3"
|
|
2
|
+
services:
|
|
3
|
+
backend:
|
|
4
|
+
image: eeacms/plone-backend
|
|
5
|
+
ports:
|
|
6
|
+
- "8080:8080"
|
|
7
|
+
environment:
|
|
8
|
+
SITE: "Plone"
|
|
9
|
+
PROFILES: "eea.kitkat:testing"
|
|
10
|
+
|
|
11
|
+
frontend:
|
|
12
|
+
build:
|
|
13
|
+
context: ./
|
|
14
|
+
dockerfile: ./Dockerfile
|
|
15
|
+
args:
|
|
16
|
+
ADDON_NAME: "${ADDON_NAME}"
|
|
17
|
+
ADDON_PATH: "${ADDON_PATH}"
|
|
18
|
+
VOLTO_VERSION: ${VOLTO_VERSION:-16}
|
|
19
|
+
ports:
|
|
20
|
+
- "3000:3000"
|
|
21
|
+
- "3001:3001"
|
|
22
|
+
depends_on:
|
|
23
|
+
- backend
|
|
24
|
+
volumes:
|
|
25
|
+
- ./:/app/src/addons/${ADDON_PATH}
|
|
26
|
+
environment:
|
|
27
|
+
CI: "true"
|
|
28
|
+
NODE_ENV: "development"
|
|
29
|
+
RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js"
|
|
30
|
+
RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
|
|
31
|
+
RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
|
|
32
|
+
HOST: "0.0.0.0"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: Plone\n"
|
|
4
|
+
"POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
|
|
5
|
+
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
|
+
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
|
+
"MIME-Version: 1.0\n"
|
|
8
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
9
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
10
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
11
|
+
"Language-Code: en\n"
|
|
12
|
+
"Language-Name: English\n"
|
|
13
|
+
"Preferred-Encodings: utf-8\n"
|
|
14
|
+
"Domain: volto\n"
|
|
15
|
+
|
|
16
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-tableau",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "@eeacms/volto-tableau: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -30,24 +30,49 @@
|
|
|
30
30
|
"@cypress/code-coverage": "^3.9.5",
|
|
31
31
|
"@plone/scripts": "*",
|
|
32
32
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
33
|
+
"husky": "*",
|
|
34
|
+
"lint-staged": "*",
|
|
33
35
|
"md5": "^2.3.0"
|
|
34
36
|
},
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
+
"lint-staged": {
|
|
38
|
+
"src/**/*.{js,jsx,ts,tsx,json}": [
|
|
39
|
+
"make lint-fix",
|
|
40
|
+
"make prettier-fix"
|
|
41
|
+
],
|
|
42
|
+
"src/**/*.{jsx}": [
|
|
43
|
+
"make i18n"
|
|
44
|
+
],
|
|
45
|
+
"theme/**/*.{css,less}": [
|
|
46
|
+
"make stylelint-fix"
|
|
47
|
+
],
|
|
48
|
+
"src/**/*.{css,less}": [
|
|
49
|
+
"make stylelint-fix"
|
|
50
|
+
],
|
|
51
|
+
"theme/**/*.overrides": [
|
|
52
|
+
"make stylelint-fix"
|
|
53
|
+
],
|
|
54
|
+
"src/**/*.overrides": [
|
|
55
|
+
"make stylelint-fix"
|
|
56
|
+
]
|
|
37
57
|
},
|
|
38
58
|
"scripts": {
|
|
39
59
|
"release": "release-it",
|
|
40
60
|
"release-major-beta": "release-it major --preRelease=beta",
|
|
41
61
|
"release-beta": "release-it --preRelease=beta",
|
|
42
62
|
"bootstrap": "npm install -g ejs; npm link ejs; node bootstrap",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
63
|
+
"test": "make test",
|
|
64
|
+
"test:fix": "make test-update",
|
|
65
|
+
"pre-commit": "yarn stylelint:fix && yarn prettier:fix && yarn lint:fix",
|
|
66
|
+
"stylelint": "make stylelint",
|
|
67
|
+
"stylelint:overrides": "make stylelint-overrides",
|
|
68
|
+
"stylelint:fix": "make stylelint-fix",
|
|
69
|
+
"prettier": "make prettier",
|
|
70
|
+
"prettier:fix": "make prettier-fix",
|
|
71
|
+
"lint": "make lint",
|
|
72
|
+
"lint:fix": "make lint-fix",
|
|
73
|
+
"i18n": "make i18n",
|
|
74
|
+
"cypress:run": "make cypress-run",
|
|
75
|
+
"cypress:open": "make cypress-open",
|
|
76
|
+
"prepare": "husky install"
|
|
52
77
|
}
|
|
53
78
|
}
|
package/.i18n.babel.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('@plone/volto/babel');
|