@eeacms/volto-slate-metadata-mentions 8.3.0 → 9.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/CHANGELOG.md +57 -1
- package/DEVELOP.md +19 -17
- package/Dockerfile +10 -1
- package/Jenkinsfile +88 -84
- package/Makefile +14 -12
- package/README.md +33 -19
- package/cypress/e2e/01-metadata-lifecycle.cy.js +44 -0
- package/cypress/e2e/02-metadata-summary.cy.js +42 -0
- package/cypress/e2e/03-metadata-contributors.cy.js +42 -0
- package/cypress/e2e/04-metadata-existing-mentions.cy.js +68 -0
- package/cypress/support/commands.js +67 -13
- package/cypress/support/e2e.js +13 -0
- package/cypress/support/metadata.js +78 -0
- package/docker-compose.yml +1 -1
- package/jest-addon.config.js +11 -4
- package/locales/de/LC_MESSAGES/volto.po +57 -2
- package/locales/en/LC_MESSAGES/volto.po +57 -2
- package/locales/it/LC_MESSAGES/volto.po +57 -2
- package/locales/ro/LC_MESSAGES/volto.po +57 -2
- package/locales/volto.pot +59 -4
- package/package.json +1 -1
- package/src/plugins/Mentions/ErrorBoundary.jsx +1 -1
- package/src/plugins/Mentions/MentionEditor.jsx +96 -45
- package/src/plugins/Mentions/ToolbarButton.jsx +1 -1
- package/src/plugins/Mentions/extensions.js +1 -1
- package/src/plugins/Mentions/extensions.test.js +26 -0
- package/src/plugins/Mentions/{index.js → index.jsx} +1 -1
- package/src/plugins/Mentions/render.jsx +9 -5
- package/src/plugins/Mentions/schema.test.js +49 -0
- package/cypress/e2e/01-block-slate-metadata-mentions.cy.js +0 -46
- /package/src/plugins/Mentions/{utils.test.js → utils.test.jsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,30 @@ 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
|
+
### [9.0.1](https://github.com/eea/volto-slate-metadata-mentions/compare/9.0.0...9.0.1) - 8 April 2026
|
|
8
|
+
|
|
9
|
+
## [9.0.0](https://github.com/eea/volto-slate-metadata-mentions/compare/8.3.0...9.0.0) - 30 March 2026
|
|
10
|
+
|
|
11
|
+
#### :rocket: New Features
|
|
12
|
+
|
|
13
|
+
- feat: Volto 18 support - refs #287700 [Alin Voinea - [`abb36e4`](https://github.com/eea/volto-slate-metadata-mentions/commit/abb36e4aff038c49bf9b567badc20446f1154921)]
|
|
14
|
+
|
|
15
|
+
#### :house: Internal changes
|
|
16
|
+
|
|
17
|
+
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`6312629`](https://github.com/eea/volto-slate-metadata-mentions/commit/631262956a35e4cf194ae2cc138aba5604f7516b)]
|
|
18
|
+
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`1f05e7d`](https://github.com/eea/volto-slate-metadata-mentions/commit/1f05e7d2390deeeb9488bbe8e47f18bf9cc0c4ac)]
|
|
19
|
+
|
|
20
|
+
#### :hammer_and_wrench: Others
|
|
21
|
+
|
|
22
|
+
- Release 9.0.0: Volto 18 support [Alin Voinea - [`11878c5`](https://github.com/eea/volto-slate-metadata-mentions/commit/11878c52236dfdbeca7cd5480f3e90926e76aef7)]
|
|
23
|
+
- test: Fix make test [Alin V. (Claudiu) - [`abc4402`](https://github.com/eea/volto-slate-metadata-mentions/commit/abc4402128767dbe0dc55c04f45f16a7e9ab6b96)]
|
|
24
|
+
- tests: Fix Sonar Qube tags - refs #297339 [Alin Voinea - [`6718de5`](https://github.com/eea/volto-slate-metadata-mentions/commit/6718de5f13f61ca8c8ca65d404b75034e9a07f8f)]
|
|
25
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`f0cd041`](https://github.com/eea/volto-slate-metadata-mentions/commit/f0cd0419c61a38e6d33e023c4e13f08175177e50)]
|
|
26
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`5e8455b`](https://github.com/eea/volto-slate-metadata-mentions/commit/5e8455b3f4b45d754b1edec3aada8ab378aed35a)]
|
|
27
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`2e71895`](https://github.com/eea/volto-slate-metadata-mentions/commit/2e71895d04abfe83dacd47b9a040598661d5008a)]
|
|
28
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`eefdc50`](https://github.com/eea/volto-slate-metadata-mentions/commit/eefdc5023c082f13a3e83cad936c20ea8c72f73f)]
|
|
29
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`bdeee9a`](https://github.com/eea/volto-slate-metadata-mentions/commit/bdeee9a5833e7cb538f1b9d4d09a2e95b2abb57a)]
|
|
30
|
+
### [8.3.0](https://github.com/eea/volto-slate-metadata-mentions/compare/8.2.0...8.3.0) - 1 May 2025
|
|
8
31
|
|
|
9
32
|
#### :bug: Bug Fixes
|
|
10
33
|
|
|
@@ -14,6 +37,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
14
37
|
#### :hammer_and_wrench: Others
|
|
15
38
|
|
|
16
39
|
- test: Fix unit tests [Alin Voinea - [`3e01041`](https://github.com/eea/volto-slate-metadata-mentions/commit/3e010415b1d10da4f2b29f4e3508a657cd2a8c23)]
|
|
40
|
+
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`e76dfe9`](https://github.com/eea/volto-slate-metadata-mentions/commit/e76dfe9ffb245f8fafc08fb5ebd53943234f62ba)]
|
|
17
41
|
### [8.2.0](https://github.com/eea/volto-slate-metadata-mentions/compare/8.1.1...8.2.0) - 13 September 2024
|
|
18
42
|
|
|
19
43
|
#### :rocket: New Features
|
|
@@ -52,10 +76,14 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
52
76
|
|
|
53
77
|
#### :hammer_and_wrench: Others
|
|
54
78
|
|
|
79
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`f917468`](https://github.com/eea/volto-slate-metadata-mentions/commit/f9174680a4bdaca0d4d3113105a0f7533f1e9727)]
|
|
80
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`1acf4e0`](https://github.com/eea/volto-slate-metadata-mentions/commit/1acf4e0ca3befca3b2aae6d2713e61d34564eb18)]
|
|
81
|
+
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`778ac79`](https://github.com/eea/volto-slate-metadata-mentions/commit/778ac7912a6201842b076e7b4b5dc786805d7ec4)]
|
|
55
82
|
### [7.0.3](https://github.com/eea/volto-slate-metadata-mentions/compare/7.0.2...7.0.3) - 18 January 2024
|
|
56
83
|
|
|
57
84
|
#### :house: Internal changes
|
|
58
85
|
|
|
86
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`11e092e`](https://github.com/eea/volto-slate-metadata-mentions/commit/11e092e7b951b1c676e16bc3b08dd868621b6345)]
|
|
59
87
|
|
|
60
88
|
#### :house: Documentation changes
|
|
61
89
|
|
|
@@ -64,6 +92,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
64
92
|
#### :hammer_and_wrench: Others
|
|
65
93
|
|
|
66
94
|
- test: modify cypress test - refs #254313 [ana-oprea - [`df1cff1`](https://github.com/eea/volto-slate-metadata-mentions/commit/df1cff18cc90b327d9cd480af79d62911603e743)]
|
|
95
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`a5aaf33`](https://github.com/eea/volto-slate-metadata-mentions/commit/a5aaf339483b0d9631596610dea1f7e0e7cba9d1)]
|
|
96
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`394a7bd`](https://github.com/eea/volto-slate-metadata-mentions/commit/394a7bd75d6be8cfa89be4927aa056482dddf080)]
|
|
97
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`d739b27`](https://github.com/eea/volto-slate-metadata-mentions/commit/d739b2778eef1854d7c076f2d790c48d42619930)]
|
|
98
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`1435b99`](https://github.com/eea/volto-slate-metadata-mentions/commit/1435b99fd535888698dd0cbb09407b5e4fa02fed)]
|
|
99
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`977fc5b`](https://github.com/eea/volto-slate-metadata-mentions/commit/977fc5b9ee9030dd72d4236f9712082505564bfc)]
|
|
67
100
|
### [7.0.2](https://github.com/eea/volto-slate-metadata-mentions/compare/7.0.1...7.0.2) - 22 October 2023
|
|
68
101
|
|
|
69
102
|
#### :house: Internal changes
|
|
@@ -89,6 +122,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
89
122
|
#### :hammer_and_wrench: Others
|
|
90
123
|
|
|
91
124
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`e13b9b6`](https://github.com/eea/volto-slate-metadata-mentions/commit/e13b9b6c36e4d61905807179459929aabf44f56c)]
|
|
125
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`e085c11`](https://github.com/eea/volto-slate-metadata-mentions/commit/e085c1189c0aa92b984440b51b4534261560c175)]
|
|
92
126
|
- i18n: Add en [Alin Voinea - [`9e7360d`](https://github.com/eea/volto-slate-metadata-mentions/commit/9e7360da54440957842726bae19e093bb1937a49)]
|
|
93
127
|
- test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`b873d00`](https://github.com/eea/volto-slate-metadata-mentions/commit/b873d00ba45dbe569512b54740ab54fa9dd296ce)]
|
|
94
128
|
## [7.0.0](https://github.com/eea/volto-slate-metadata-mentions/compare/6.1.2...7.0.0) - 25 July 2023
|
|
@@ -110,16 +144,24 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
110
144
|
|
|
111
145
|
#### :house: Internal changes
|
|
112
146
|
|
|
147
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`bea37a4`](https://github.com/eea/volto-slate-metadata-mentions/commit/bea37a4cd51c087a67dbb23f8ac778e201f06596)]
|
|
113
148
|
|
|
114
149
|
#### :hammer_and_wrench: Others
|
|
115
150
|
|
|
116
151
|
- test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`98fa009`](https://github.com/eea/volto-slate-metadata-mentions/commit/98fa00918b613bdbf079300e4683f300ba77c575)]
|
|
117
152
|
- test: Fix test config, coverage Refs #253277 [valentinab25 - [`e87dda2`](https://github.com/eea/volto-slate-metadata-mentions/commit/e87dda2b7ec6f8d39383ee4024265628e562be8f)]
|
|
153
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`d941f6b`](https://github.com/eea/volto-slate-metadata-mentions/commit/d941f6bcdf7154c8fac1a6e8c9436f2a0af1dfef)]
|
|
118
154
|
### [6.1.0](https://github.com/eea/volto-slate-metadata-mentions/compare/6.0.1...6.1.0) - 27 March 2023
|
|
119
155
|
|
|
120
156
|
#### :hammer_and_wrench: Others
|
|
121
157
|
|
|
158
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`eb5cef6`](https://github.com/eea/volto-slate-metadata-mentions/commit/eb5cef62bf50f5f100e4348f5642166168f7db3b)]
|
|
159
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`11d00a7`](https://github.com/eea/volto-slate-metadata-mentions/commit/11d00a7994b7ad7efaeb1d23582052be43abac1b)]
|
|
160
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`5293413`](https://github.com/eea/volto-slate-metadata-mentions/commit/5293413f9bbf28d304c3a26c5df9c6bca935ca04)]
|
|
122
161
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`fc0a308`](https://github.com/eea/volto-slate-metadata-mentions/commit/fc0a30840ee5cc4c3d00683800c510080b13cb09)]
|
|
162
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`abb75cd`](https://github.com/eea/volto-slate-metadata-mentions/commit/abb75cd923d258edd89cee3b5ef52e6232cf0a03)]
|
|
163
|
+
- yarn 3 [Alin Voinea - [`ae13d7b`](https://github.com/eea/volto-slate-metadata-mentions/commit/ae13d7b7e029da5765c8e85aede5f08c01131152)]
|
|
164
|
+
- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`561f504`](https://github.com/eea/volto-slate-metadata-mentions/commit/561f5043e35499b2208d81358f3289a9199ce8dd)]
|
|
123
165
|
### [6.0.1](https://github.com/eea/volto-slate-metadata-mentions/compare/6.0.0...6.0.1) - 16 November 2022
|
|
124
166
|
|
|
125
167
|
#### :hammer_and_wrench: Others
|
|
@@ -134,35 +176,47 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
134
176
|
|
|
135
177
|
#### :hammer_and_wrench: Others
|
|
136
178
|
|
|
179
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`a684cac`](https://github.com/eea/volto-slate-metadata-mentions/commit/a684cac03f47b8d89bbf4b14ede23143e4b774a5)]
|
|
180
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`a30ae17`](https://github.com/eea/volto-slate-metadata-mentions/commit/a30ae17a70d891d20f6b73ea4a5c6576316894a2)]
|
|
137
181
|
### [5.0.1](https://github.com/eea/volto-slate-metadata-mentions/compare/5.0.0...5.0.1) - 30 June 2022
|
|
138
182
|
|
|
139
183
|
#### :hammer_and_wrench: Others
|
|
140
184
|
|
|
185
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`6d5c31f`](https://github.com/eea/volto-slate-metadata-mentions/commit/6d5c31f8217c9f5a52fc2447c5d89fafa717932d)]
|
|
141
186
|
## [5.0.0](https://github.com/eea/volto-slate-metadata-mentions/compare/4.0.3...5.0.0) - 6 April 2022
|
|
142
187
|
|
|
143
188
|
#### :hammer_and_wrench: Others
|
|
144
189
|
|
|
145
190
|
- Breaking 5.0.0 [Alin Voinea - [`9daf888`](https://github.com/eea/volto-slate-metadata-mentions/commit/9daf88800e0f375b9e7927540827c64c8f03c00e)]
|
|
191
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`c77d975`](https://github.com/eea/volto-slate-metadata-mentions/commit/c77d975b57d3982b360b8d0bc2d3aa4d64a41254)]
|
|
146
192
|
### [4.0.3](https://github.com/eea/volto-slate-metadata-mentions/compare/4.0.2...4.0.3) - 16 March 2022
|
|
147
193
|
|
|
148
194
|
#### :hammer_and_wrench: Others
|
|
149
195
|
|
|
196
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`80d1b4e`](https://github.com/eea/volto-slate-metadata-mentions/commit/80d1b4eafce60c03c5fb3698ef2375ee903c05d6)]
|
|
150
197
|
### [4.0.2](https://github.com/eea/volto-slate-metadata-mentions/compare/4.0.1...4.0.2) - 3 January 2022
|
|
151
198
|
|
|
152
199
|
### [4.0.1](https://github.com/eea/volto-slate-metadata-mentions/compare/4.0.0...4.0.1) - 18 December 2021
|
|
153
200
|
|
|
154
201
|
#### :hammer_and_wrench: Others
|
|
155
202
|
|
|
203
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`2de3bf6`](https://github.com/eea/volto-slate-metadata-mentions/commit/2de3bf624ff35504add94f5daf37484a8f459df7)]
|
|
156
204
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3a6a696`](https://github.com/eea/volto-slate-metadata-mentions/commit/3a6a69612652cd947d54f77c430bdca21b82a0df)]
|
|
205
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`6e8fb49`](https://github.com/eea/volto-slate-metadata-mentions/commit/6e8fb492411d12c570ae75f00ee710818e5027f8)]
|
|
206
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`fc8fcc3`](https://github.com/eea/volto-slate-metadata-mentions/commit/fc8fcc35bf20e4a1c3b3bbc099e67045e3feea15)]
|
|
207
|
+
- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`9e0c360`](https://github.com/eea/volto-slate-metadata-mentions/commit/9e0c360b5e842d30f4cc09efe3e3f8f7d3bd351c)]
|
|
208
|
+
- Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`e7404b9`](https://github.com/eea/volto-slate-metadata-mentions/commit/e7404b9f21415e894c149e5c8275bf74d0540c2c)]
|
|
157
209
|
## [4.0.0](https://github.com/eea/volto-slate-metadata-mentions/compare/3.0.2...4.0.0) - 24 September 2021
|
|
158
210
|
|
|
159
211
|
#### :hammer_and_wrench: Others
|
|
160
212
|
|
|
161
213
|
- Allow also dict fields: temporal, geolocation [Alin Voinea - [`49be384`](https://github.com/eea/volto-slate-metadata-mentions/commit/49be3845a5fed9957139ebe88d24adc44b2521d5)]
|
|
214
|
+
- Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`53de974`](https://github.com/eea/volto-slate-metadata-mentions/commit/53de9745893b04f14f4688c81e52a857a5fbe7b9)]
|
|
162
215
|
### [3.0.2](https://github.com/eea/volto-slate-metadata-mentions/compare/3.0.1...3.0.2) - 10 September 2021
|
|
163
216
|
|
|
164
217
|
#### :hammer_and_wrench: Others
|
|
165
218
|
|
|
219
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`cc67fec`](https://github.com/eea/volto-slate-metadata-mentions/commit/cc67fec41698b99c1382b8be4a9aec4d14806d15)]
|
|
166
220
|
### [3.0.1](https://github.com/eea/volto-slate-metadata-mentions/compare/3.0.0...3.0.1) - 9 September 2021
|
|
167
221
|
|
|
168
222
|
## [3.0.0](https://github.com/eea/volto-slate-metadata-mentions/compare/2.4.0...3.0.0) - 3 September 2021
|
|
@@ -172,6 +226,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
172
226
|
- Update package metadata [Alin Voinea - [`af8c5b3`](https://github.com/eea/volto-slate-metadata-mentions/commit/af8c5b3bf2ce6d9520b3d9378c648a37d8d519d3)]
|
|
173
227
|
- Add ErrorBoundary to Widgets [Alin Voinea - [`f9c7e0d`](https://github.com/eea/volto-slate-metadata-mentions/commit/f9c7e0de20c13305e9dfe09a968753f44e3224ce)]
|
|
174
228
|
- Make sure it doesn't crash if used with SlateJSONField [Alin Voinea - [`60dbd38`](https://github.com/eea/volto-slate-metadata-mentions/commit/60dbd389f217b7341eb0c369abd044424357ab05)]
|
|
229
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`7c7f219`](https://github.com/eea/volto-slate-metadata-mentions/commit/7c7f2196bafde9bbb3ecead19d65ff109080e1f1)]
|
|
175
230
|
### [2.4.0](https://github.com/eea/volto-slate-metadata-mentions/compare/2.3.1...2.4.0) - 1 July 2021
|
|
176
231
|
|
|
177
232
|
### [2.3.1](https://github.com/eea/volto-slate-metadata-mentions/compare/2.3.0...2.3.1) - 1 July 2021
|
|
@@ -291,6 +346,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
291
346
|
- Cleanup [Alin Voinea - [`4edb16c`](https://github.com/eea/volto-slate-metadata-mentions/commit/4edb16c39bd1632a285aae1dc4b23bc3121b30af)]
|
|
292
347
|
- Remove unused uid normalizer [Alin Voinea - [`6006d90`](https://github.com/eea/volto-slate-metadata-mentions/commit/6006d9070ca8418c508f002032eca087c851b489)]
|
|
293
348
|
- Cosmetics [Alin Voinea - [`15424a4`](https://github.com/eea/volto-slate-metadata-mentions/commit/15424a48b14117a19c00167966a8fa15bcff8504)]
|
|
349
|
+
- yarn lint [Alin Voinea - [`45403b3`](https://github.com/eea/volto-slate-metadata-mentions/commit/45403b3962c2c995e22c8c40535098948f6f8d2b)]
|
|
294
350
|
- lint [Alin Voinea - [`9eedfe6`](https://github.com/eea/volto-slate-metadata-mentions/commit/9eedfe614e9202a2fd3d97c5d8cf53a52a43a3a4)]
|
|
295
351
|
- Update widgets to use children; lint [Alin Voinea - [`17b5eec`](https://github.com/eea/volto-slate-metadata-mentions/commit/17b5eecc0ce445c123fd57abbc14e045f4920370)]
|
|
296
352
|
- Style token widget [Alin Voinea - [`4fa52f5`](https://github.com/eea/volto-slate-metadata-mentions/commit/4fa52f5cc7cfde140e482048792c6f1782b4ee4e)]
|
package/DEVELOP.md
CHANGED
|
@@ -26,21 +26,20 @@
|
|
|
26
26
|
|
|
27
27
|
### Or add @eeacms/volto-slate-metadata-mentions to your Volto project
|
|
28
28
|
|
|
29
|
-
Before starting make sure your development environment is properly set. See [Volto
|
|
29
|
+
Before starting make sure your development environment is properly set. See the official Plone documentation for [creating a project with Cookieplone](https://6.docs.plone.org/install/create-project-cookieplone.html) and [installing an add-on in development mode in Volto 18 and 19](https://6.docs.plone.org/volto/development/add-ons/install-an-add-on-dev-18.html).
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
For new Volto 18+ projects, use Cookieplone. It includes `mrs-developer` by default.
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
1. Create a new Volto project with Cookieplone
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
yo @plone/volto my-volto-project --addon @eeacms/volto-slate-metadata-mentions --skip-install
|
|
38
|
-
cd my-volto-project
|
|
35
|
+
uvx cookieplone project
|
|
36
|
+
cd project-title
|
|
39
37
|
|
|
40
38
|
1. Add the following to `mrs.developer.json`:
|
|
41
39
|
|
|
42
40
|
{
|
|
43
41
|
"volto-slate-metadata-mentions": {
|
|
42
|
+
"output": "packages",
|
|
44
43
|
"url": "https://github.com/eea/volto-slate-metadata-mentions.git",
|
|
45
44
|
"package": "@eeacms/volto-slate-metadata-mentions",
|
|
46
45
|
"branch": "develop",
|
|
@@ -48,28 +47,31 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
51
|
-
1.
|
|
50
|
+
1. Add `@eeacms/volto-slate-metadata-mentions` to the `addons` key in your project `volto.config.js`
|
|
51
|
+
|
|
52
|
+
1. Install or refresh the project setup
|
|
52
53
|
|
|
53
|
-
make
|
|
54
|
-
yarn
|
|
54
|
+
make install
|
|
55
55
|
|
|
56
|
-
1. Start backend
|
|
56
|
+
1. Start backend in one terminal
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
make backend-start
|
|
59
59
|
|
|
60
|
-
...wait for backend to setup and start
|
|
60
|
+
...wait for backend to setup and start, ending with `Ready to handle requests`
|
|
61
61
|
|
|
62
62
|
...you can also check http://localhost:8080/Plone
|
|
63
63
|
|
|
64
|
-
1. Start frontend
|
|
64
|
+
1. Start frontend in a second terminal
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
make frontend-start
|
|
67
67
|
|
|
68
68
|
1. Go to http://localhost:3000
|
|
69
69
|
|
|
70
70
|
1. Happy hacking!
|
|
71
71
|
|
|
72
|
-
cd
|
|
72
|
+
cd packages/volto-slate-metadata-mentions
|
|
73
|
+
|
|
74
|
+
For legacy Volto 17 projects, keep using the yarn-based workflow from the Volto 17 documentation.
|
|
73
75
|
|
|
74
76
|
## Cypress
|
|
75
77
|
|
|
@@ -81,7 +83,7 @@ project where you added `volto-slate-metadata-mentions` to `mrs.developer.json`
|
|
|
81
83
|
Go to:
|
|
82
84
|
|
|
83
85
|
```BASH
|
|
84
|
-
cd
|
|
86
|
+
cd packages/volto-slate-metadata-mentions/
|
|
85
87
|
```
|
|
86
88
|
|
|
87
89
|
Start:
|
package/Dockerfile
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
# syntax=docker/dockerfile:1
|
|
2
2
|
ARG VOLTO_VERSION
|
|
3
|
-
FROM
|
|
3
|
+
FROM plone/frontend-builder:${VOLTO_VERSION}
|
|
4
4
|
|
|
5
5
|
ARG ADDON_NAME
|
|
6
6
|
ARG ADDON_PATH
|
|
7
|
+
ENV HOST="0.0.0.0"
|
|
8
|
+
|
|
9
|
+
USER root
|
|
10
|
+
RUN apt-get update -q \
|
|
11
|
+
&& apt-get install -qy --no-install-recommends \
|
|
12
|
+
chromium libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \
|
|
13
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
14
|
+
USER node
|
|
7
15
|
|
|
8
16
|
COPY --chown=node:node ./ /app/src/addons/${ADDON_PATH}/
|
|
9
17
|
|
|
10
18
|
RUN /setupAddon
|
|
19
|
+
RUN yarn add jest-junit
|
|
11
20
|
RUN yarn install
|
|
12
21
|
|
|
13
22
|
ENTRYPOINT ["yarn"]
|