@eeacms/volto-tabs-block 5.1.0 → 6.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 +84 -1
- package/DEVELOP.md +12 -15
- package/README.md +20 -16
- package/cypress.config.js +2 -2
- package/locales/de/LC_MESSAGES/volto.po +395 -0
- package/locales/en/LC_MESSAGES/volto.po +409 -0
- package/locales/es/LC_MESSAGES/volto.po +86 -78
- package/locales/it/LC_MESSAGES/volto.po +395 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +395 -0
- package/locales/volto.pot +2 -2
- package/package.json +26 -2
- package/src/components/View.jsx +28 -2
- package/src/components/templates/accordion/Edit.jsx +8 -4
- package/src/components/templates/accordion/View.jsx +43 -11
- package/src/components/templates/accordion/schema.js +22 -1
- package/src/components/templates/carousel/HorizontalView.jsx +5 -5
- package/src/components/templates/carousel/VerticalView.jsx +1 -1
- package/src/components/templates/default/Edit.jsx +3 -5
- package/src/components/templates/default/View.jsx +1 -0
- package/src/less/menu.less +9 -367
- package/src/less/menu.variables +2 -3
- package/src/less/tabs.less +4 -0
- package/src/less/tabs.variables +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,69 @@ 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
|
+
### [6.0.1](https://github.com/eea/volto-tabs-block/compare/6.0.0...6.0.1) - 29 September 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(edit): block description due to typo [David Ichim - [`942dbb4`](https://github.com/eea/volto-tabs-block/commit/942dbb47230ff115d5dfc3387d4e699f0b23c152)]
|
|
12
|
+
|
|
13
|
+
#### :nail_care: Enhancements
|
|
14
|
+
|
|
15
|
+
- change(tabs): refactor accordion template to use accordion classes refs #256605 #63 from eea/fix-inverted-css [ichim-david - [`5d29463`](https://github.com/eea/volto-tabs-block/commit/5d29463ff58fec4cddefc874369d70e5165923eb)]
|
|
16
|
+
- change(tabs): removed styling for RRT_accordion regarding colors since the options were removed [David Ichim - [`23e33b1`](https://github.com/eea/volto-tabs-block/commit/23e33b181dfd40878d4f987d236aa11cf06898a2)]
|
|
17
|
+
- change(tabs): removed theme styling from package as we already have the styling in volto-eea-design-system [David Ichim - [`d4280b1`](https://github.com/eea/volto-tabs-block/commit/d4280b162f3d572d3095a39d0febccc22a750df5)]
|
|
18
|
+
- change(responsive-tabs): removed rtabs styling, pointing and secondary option from accordion template [David Ichim - [`e084ccc`](https://github.com/eea/volto-tabs-block/commit/e084ccc721e89d62496dabacb068a159ba267cf9)]
|
|
19
|
+
|
|
20
|
+
#### :house: Documentation changes
|
|
21
|
+
|
|
22
|
+
- docs: Update README and DEVELOP [Alin Voinea - [`e35251d`](https://github.com/eea/volto-tabs-block/commit/e35251d1891faf8a9ac801a965c9c4f15669a927)]
|
|
23
|
+
|
|
24
|
+
#### :hammer_and_wrench: Others
|
|
25
|
+
|
|
26
|
+
- test: increase cypress timeout [ana-oprea - [`e3175ba`](https://github.com/eea/volto-tabs-block/commit/e3175bad72169d345dfde75528cf9e15839622a8)]
|
|
27
|
+
- restore test to bump test coverage [David Ichim - [`fbc2291`](https://github.com/eea/volto-tabs-block/commit/fbc22910a4cb8c61f383f529a47faf1b8fbed6be)]
|
|
28
|
+
- end cypress tests with contains statements [David Ichim - [`8bae801`](https://github.com/eea/volto-tabs-block/commit/8bae801c3a7a396b634008af131d4bf40e5736fc)]
|
|
29
|
+
- comment cypress flaky test for now [David Ichim - [`3e679be`](https://github.com/eea/volto-tabs-block/commit/3e679beefdaf061fb114bf3cfb24a6e660cb32b3)]
|
|
30
|
+
- added pointing and secondary tab options also to the accordion responsive template for backward compatibility [David Ichim - [`7a03e3d`](https://github.com/eea/volto-tabs-block/commit/7a03e3d1cd24c281a30c7d02339e1b7122a3f321)]
|
|
31
|
+
- removed color property condition regarding theme colors as that concerns only the accordion template [David Ichim - [`a6f975a`](https://github.com/eea/volto-tabs-block/commit/a6f975affbd85c326f889665902d7c0bf38d3111)]
|
|
32
|
+
- break basic block test into 2 tests since we tested the carousel template [David Ichim - [`ef2c02b`](https://github.com/eea/volto-tabs-block/commit/ef2c02b1c062227631308ea66ad97a9a5bed6306)]
|
|
33
|
+
- modified accordion template test to catch more conditions thus increasing test coverage [David Ichim - [`2345325`](https://github.com/eea/volto-tabs-block/commit/2345325ff0070b845226bf59612a24cc0e2815ac)]
|
|
34
|
+
- add tabs-secondary-variant class tabs for default and accordion variant [David Ichim - [`ff9d558`](https://github.com/eea/volto-tabs-block/commit/ff9d558055ebb51b2979be5aa5d1fa2aacc859cc)]
|
|
35
|
+
- typo fixing in carousel template [David Ichim - [`56341d0`](https://github.com/eea/volto-tabs-block/commit/56341d026eee7352280c4433a908e34e2186d161)]
|
|
36
|
+
- lint fix [David Ichim - [`fb5b681`](https://github.com/eea/volto-tabs-block/commit/fb5b681e5d3821bdf8f8957ff6d9bf97998e4273)]
|
|
37
|
+
- bump package version due to major changes to themes functionality [David Ichim - [`c889732`](https://github.com/eea/volto-tabs-block/commit/c8897320c1548b8242653116804f408681f5ffc7)]
|
|
38
|
+
- lint fix [David Ichim - [`2ef951f`](https://github.com/eea/volto-tabs-block/commit/2ef951fbe231f467dc78693d737d332125ad2a3a)]
|
|
39
|
+
- bring back logic that reads the width of the component to determine if we have accordion or tabs [David Ichim - [`807ce46`](https://github.com/eea/volto-tabs-block/commit/807ce46647ad78eaa514b5951d3dc950e43738a6)]
|
|
40
|
+
- removed extra scrollbar when editing the tab name [David Ichim - [`76f8702`](https://github.com/eea/volto-tabs-block/commit/76f870265017ae066c281b4f4bd1bb9a9eee266b)]
|
|
41
|
+
- bring back resize detector in order to correctly get the re-render of tab to accordion [David Ichim - [`0d72f04`](https://github.com/eea/volto-tabs-block/commit/0d72f0417d0c6a9f049a6affda65adab7fda3f4a)]
|
|
42
|
+
- Update 01-block-tabs.cy.js [dobri1408 - [`85a0fdb`](https://github.com/eea/volto-tabs-block/commit/85a0fdb1582df87f731ab33402e2a20d2f4a13b5)]
|
|
43
|
+
- test accordion template [Dobricean Ioan Dorian - [`58ba666`](https://github.com/eea/volto-tabs-block/commit/58ba666b50e6f5a549f105c772127380ab0b5b27)]
|
|
44
|
+
- add test [Dobricean Ioan Dorian - [`02b47d0`](https://github.com/eea/volto-tabs-block/commit/02b47d0ecabf4f8b84c7fc6b8ed8b2411b9e3965)]
|
|
45
|
+
- fix stylelint [Dobricean Ioan Dorian - [`a9c0c2d`](https://github.com/eea/volto-tabs-block/commit/a9c0c2d1937655734c6fbed4265da1cb9275da65)]
|
|
46
|
+
- remove resizedetector [Dobricean Ioan Dorian - [`37cf3c5`](https://github.com/eea/volto-tabs-block/commit/37cf3c5ab516c965aade05f57acf89eb71993017)]
|
|
47
|
+
- tabs [Dobricean Ioan Dorian - [`e6a1a45`](https://github.com/eea/volto-tabs-block/commit/e6a1a45640203b55eac96386529964b20ac11311)]
|
|
48
|
+
- remove RRT_accordion styles [Dobricean Ioan Dorian - [`d82887a`](https://github.com/eea/volto-tabs-block/commit/d82887a89c2e65360c8cb08c790e9a2c211222c4)]
|
|
49
|
+
- WIP using accordion classes instead of relying on styling menu as accordion [David Ichim - [`e50ef8b`](https://github.com/eea/volto-tabs-block/commit/e50ef8b7fed8a8aa96ee1a013efff51c856f3a93)]
|
|
50
|
+
- fix css inverted [Dobricean Ioan Dorian - [`fdf86b5`](https://github.com/eea/volto-tabs-block/commit/fdf86b5db107f506c5d914c0d91fbc190fc2f35e)]
|
|
51
|
+
## [6.0.0](https://github.com/eea/volto-tabs-block/compare/5.1.0...6.0.0) - 26 September 2023
|
|
52
|
+
|
|
53
|
+
#### :rocket: New Features
|
|
54
|
+
|
|
55
|
+
- feat: add contition to use linking feature if the field 'Allow linking' is selected [Cretu Mihaela - [`219aea5`](https://github.com/eea/volto-tabs-block/commit/219aea57a3789b56278d6c7acedf30df52e3465f)]
|
|
56
|
+
- feat: add selected tab id in query params [Cretu Mihaela - [`11aa9ab`](https://github.com/eea/volto-tabs-block/commit/11aa9abfcb65d60ff4614fb6cf903a324a570879)]
|
|
57
|
+
|
|
58
|
+
#### :house: Internal changes
|
|
59
|
+
|
|
60
|
+
- style: lint-staged reorder in package.json [Alin Voinea - [`2b42a62`](https://github.com/eea/volto-tabs-block/commit/2b42a623c51edad9fd80266ab1caed310467882f)]
|
|
61
|
+
|
|
62
|
+
#### :hammer_and_wrench: Others
|
|
63
|
+
|
|
64
|
+
- Release 6.0.0 [Alin Voinea - [`3d88327`](https://github.com/eea/volto-tabs-block/commit/3d883276924f50011b09d36646a1914b3164ccb1)]
|
|
65
|
+
- test: Add cypress tests to increase coverage [Crețu Mihaela - [`ae3ae66`](https://github.com/eea/volto-tabs-block/commit/ae3ae663b83fcdf9fe453f4fae169548475d13b5)]
|
|
66
|
+
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`df9b88d`](https://github.com/eea/volto-tabs-block/commit/df9b88d8cf31d6090ab20cc536558d7d734cc0ef)]
|
|
67
|
+
- i18n: Add en [Alin Voinea - [`352b810`](https://github.com/eea/volto-tabs-block/commit/352b810625978afb3a550caca58faeaea6832de4)]
|
|
68
|
+
- remove 'allow linking' checkbox [Cretu Mihaela - [`f414fdf`](https://github.com/eea/volto-tabs-block/commit/f414fdf754d1c63bf097b3eb018eb1d6504810cf)]
|
|
69
|
+
### [5.1.0](https://github.com/eea/volto-tabs-block/compare/5.0.8...5.1.0) - 28 August 2023
|
|
8
70
|
|
|
9
71
|
#### :rocket: New Features
|
|
10
72
|
|
|
@@ -66,6 +128,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
66
128
|
|
|
67
129
|
#### :house: Internal changes
|
|
68
130
|
|
|
131
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`820aaa9`](https://github.com/eea/volto-tabs-block/commit/820aaa963e978a893a23b77f694bb011f3d768c1)]
|
|
69
132
|
|
|
70
133
|
#### :hammer_and_wrench: Others
|
|
71
134
|
|
|
@@ -156,6 +219,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
156
219
|
|
|
157
220
|
#### :hammer_and_wrench: Others
|
|
158
221
|
|
|
222
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`52bc1b0`](https://github.com/eea/volto-tabs-block/commit/52bc1b0fbd4611173b8ca9dc2cf4033b31474420)]
|
|
159
223
|
## [4.0.0](https://github.com/eea/volto-tabs-block/compare/3.0.1...4.0.0) - 10 March 2023
|
|
160
224
|
|
|
161
225
|
#### :house: Internal changes
|
|
@@ -166,7 +230,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
166
230
|
#### :hammer_and_wrench: Others
|
|
167
231
|
|
|
168
232
|
- Release 4.0.0 [Alin Voinea - [`8fc4cc9`](https://github.com/eea/volto-tabs-block/commit/8fc4cc9d8dc71e623e6586b95871cb3b98dc385f)]
|
|
233
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`22d5bdc`](https://github.com/eea/volto-tabs-block/commit/22d5bdc1b3579cc46c73ce855041ca09154eb502)]
|
|
234
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`fde4324`](https://github.com/eea/volto-tabs-block/commit/fde4324f962cde8e8de0d76a44bee4b67d216bf8)]
|
|
235
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9175e47`](https://github.com/eea/volto-tabs-block/commit/9175e470d793edc63b62a99940aed25dd45f3713)]
|
|
169
236
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`3348950`](https://github.com/eea/volto-tabs-block/commit/334895036f8e367281abb35a20879c32dfbfc292)]
|
|
237
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`39bfb39`](https://github.com/eea/volto-tabs-block/commit/39bfb39fa6e8483e639491ff998293e758ac6384)]
|
|
238
|
+
- yarn 3 [Alin Voinea - [`7e98df5`](https://github.com/eea/volto-tabs-block/commit/7e98df59669d71945be461e86e282b913538b805)]
|
|
239
|
+
- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`079d7a4`](https://github.com/eea/volto-tabs-block/commit/079d7a43480e92fe280a9372399ff2d4d28537ae)]
|
|
170
240
|
### [3.0.1](https://github.com/eea/volto-tabs-block/compare/3.0.0...3.0.1) - 16 November 2022
|
|
171
241
|
|
|
172
242
|
#### :hammer_and_wrench: Others
|
|
@@ -190,7 +260,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
190
260
|
|
|
191
261
|
#### :hammer_and_wrench: Others
|
|
192
262
|
|
|
263
|
+
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`a00e419`](https://github.com/eea/volto-tabs-block/commit/a00e419aef4c82a25f277f5e25e3d512c7838264)]
|
|
193
264
|
- lint fix [David Ichim - [`c0a898c`](https://github.com/eea/volto-tabs-block/commit/c0a898c54461478baed2ac2f149ae580d4c89aeb)]
|
|
265
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`3b284e6`](https://github.com/eea/volto-tabs-block/commit/3b284e65e0eafa9b5ad8c92b4cb77628ffcc8103)]
|
|
194
266
|
### [2.2.0](https://github.com/eea/volto-tabs-block/compare/2.1.0...2.2.0) - 25 August 2022
|
|
195
267
|
|
|
196
268
|
#### :hammer_and_wrench: Others
|
|
@@ -206,6 +278,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
206
278
|
|
|
207
279
|
- Release 2.1.0 [Alin Voinea - [`3cdfa30`](https://github.com/eea/volto-tabs-block/commit/3cdfa30d4d03d864be8ad63f0648b4717298734a)]
|
|
208
280
|
- Squashed commit of the following: [Alin Voinea - [`ca241f5`](https://github.com/eea/volto-tabs-block/commit/ca241f56a96817679a1948154e2a8cc0e17b96fe)]
|
|
281
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`68ea5a6`](https://github.com/eea/volto-tabs-block/commit/68ea5a6b971fc36840cf5716a04f68316b229b2b)]
|
|
209
282
|
### [2.0.2](https://github.com/eea/volto-tabs-block/compare/2.0.1...2.0.2) - 16 June 2022
|
|
210
283
|
|
|
211
284
|
### [2.0.1](https://github.com/eea/volto-tabs-block/compare/2.0.0...2.0.1) - 10 June 2022
|
|
@@ -249,6 +322,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
249
322
|
- Let theme addon to set default values for default template schema [Miu Razvan - [`55f148d`](https://github.com/eea/volto-tabs-block/commit/55f148d1a95417f8a0b55681ce250acde8463c1c)]
|
|
250
323
|
- Render pane as container if tabs-block has full-width class [Miu Razvan - [`bbffb96`](https://github.com/eea/volto-tabs-block/commit/bbffb96b908476ddee447af3ce79bafb1a12f9a8)]
|
|
251
324
|
- Refactor default template [Miu Razvan - [`58eff52`](https://github.com/eea/volto-tabs-block/commit/58eff5281adb08a5f8fe6d21fd43330252012277)]
|
|
325
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`72a6735`](https://github.com/eea/volto-tabs-block/commit/72a6735cbbc0e7d57b4bb7ea83fea9becc317018)]
|
|
326
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`e928da1`](https://github.com/eea/volto-tabs-block/commit/e928da1df7e4680bd4be9b5d46406800d721b8c5)]
|
|
252
327
|
### [1.2.12](https://github.com/eea/volto-tabs-block/compare/1.2.11...1.2.12) - 21 January 2022
|
|
253
328
|
|
|
254
329
|
### [1.2.11](https://github.com/eea/volto-tabs-block/compare/1.2.10...1.2.11) - 4 January 2022
|
|
@@ -263,11 +338,17 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
263
338
|
|
|
264
339
|
#### :hammer_and_wrench: Others
|
|
265
340
|
|
|
341
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`cd2e2ac`](https://github.com/eea/volto-tabs-block/commit/cd2e2ac1d127bfc688ecf16e17734603ab727a34)]
|
|
266
342
|
### [1.2.8](https://github.com/eea/volto-tabs-block/compare/1.2.7...1.2.8) - 10 December 2021
|
|
267
343
|
|
|
268
344
|
#### :hammer_and_wrench: Others
|
|
269
345
|
|
|
270
346
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`d10c0b3`](https://github.com/eea/volto-tabs-block/commit/d10c0b3d35d25c530d19eebde38dfe5da8fda01b)]
|
|
347
|
+
- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`1a7187f`](https://github.com/eea/volto-tabs-block/commit/1a7187f10b2bd9e1307dabf51823f63ccd766864)]
|
|
348
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`72a7550`](https://github.com/eea/volto-tabs-block/commit/72a755025b38e1d8dd7fe206273a70585e4b9ac8)]
|
|
349
|
+
- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`022b277`](https://github.com/eea/volto-tabs-block/commit/022b2779a5d7fd7217c2d8a559eafab0bd86ce23)]
|
|
350
|
+
- Add Sonarqube tag using sustainability-frontend addons list [EEA Jenkins - [`84c9bea`](https://github.com/eea/volto-tabs-block/commit/84c9bea7a0aba2fe9ef9713e7131de6da6e0bcce)]
|
|
351
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`020aa97`](https://github.com/eea/volto-tabs-block/commit/020aa97bc70a643ea3857566c5a1dc3a5200c2be)]
|
|
271
352
|
### [1.2.7](https://github.com/eea/volto-tabs-block/compare/1.2.6...1.2.7) - 27 August 2021
|
|
272
353
|
|
|
273
354
|
#### :hammer_and_wrench: Others
|
|
@@ -284,6 +365,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
284
365
|
|
|
285
366
|
- Move less import in View instead of Edit [Tiberiu Ichim - [`84aeff0`](https://github.com/eea/volto-tabs-block/commit/84aeff04a980076f54687c546691d37b6e790478)]
|
|
286
367
|
- gitignore tweaks [Tiberiu Ichim - [`f4c993d`](https://github.com/eea/volto-tabs-block/commit/f4c993d004b126f08f16651ab9460546fa9e9cad)]
|
|
368
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`865906a`](https://github.com/eea/volto-tabs-block/commit/865906a0deb261d44cc23e26bfd2d1dd0e319640)]
|
|
369
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`5383861`](https://github.com/eea/volto-tabs-block/commit/538386100adbc868e693c1c2a5ba13461307ffee)]
|
|
287
370
|
- Style update [razvanMiu - [`323aaaf`](https://github.com/eea/volto-tabs-block/commit/323aaafcad01d8fdf0e713a1fc254ae9fe319f43)]
|
|
288
371
|
- Fix 'scroll to' feature on carousel [razvanMiu - [`16c6a08`](https://github.com/eea/volto-tabs-block/commit/16c6a08f6db687542ea38e07a92b265e592f6173)]
|
|
289
372
|
- Better accesibility [razvanMiu - [`3511611`](https://github.com/eea/volto-tabs-block/commit/351161197270a4807f01d85a7055cbaadae72f8e)]
|
package/DEVELOP.md
CHANGED
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
|
|
17
17
|
1. Go to http://localhost:3000
|
|
18
18
|
|
|
19
|
-
1.
|
|
19
|
+
1. Initialize git hooks
|
|
20
20
|
|
|
21
21
|
```Bash
|
|
22
|
-
|
|
22
|
+
yarn prepare
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
1. Happy hacking!
|
|
26
|
+
|
|
25
27
|
### Or add @eeacms/volto-tabs-block to your Volto project
|
|
26
28
|
|
|
27
29
|
Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
|
|
28
30
|
|
|
29
31
|
1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
$ npm install -g @plone/generator-volto
|
|
33
|
-
$ npm install -g mrs-developer
|
|
33
|
+
npm install -g yo @plone/generator-volto mrs-developer
|
|
34
34
|
|
|
35
35
|
1. Create new volto app
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
yo @plone/volto my-volto-project --addon @eeacms/volto-tabs-block --skip-install
|
|
38
|
+
cd my-volto-project
|
|
39
39
|
|
|
40
40
|
1. Add the following to `mrs.developer.json`:
|
|
41
41
|
|
|
@@ -50,29 +50,26 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
50
50
|
|
|
51
51
|
1. Install
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
make develop
|
|
54
|
+
yarn
|
|
55
55
|
|
|
56
56
|
1. Start backend
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
$ 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
|
|
60
59
|
|
|
61
60
|
...wait for backend to setup and start - `Ready to handle requests`:
|
|
62
61
|
|
|
63
|
-
$ docker logs -f plone
|
|
64
|
-
|
|
65
62
|
...you can also check http://localhost:8080/Plone
|
|
66
63
|
|
|
67
64
|
1. Start frontend
|
|
68
65
|
|
|
69
|
-
|
|
66
|
+
yarn start
|
|
70
67
|
|
|
71
68
|
1. Go to http://localhost:3000
|
|
72
69
|
|
|
73
70
|
1. Happy hacking!
|
|
74
71
|
|
|
75
|
-
|
|
72
|
+
cd src/addons/volto-tabs-block/
|
|
76
73
|
|
|
77
74
|
## Cypress
|
|
78
75
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,11 @@
|
|
|
18
18
|
|
|
19
19
|
## Features
|
|
20
20
|
|
|
21
|
-
!
|
|
21
|
+
#### IMPORTANT! Because this depends on @eeacms/volto-block-style, you should always load this addon as the last addon in Volto project configuration or after @eeacms/volto-block-style.
|
|
22
|
+
|
|
23
|
+
###
|
|
24
|
+
|
|
25
|
+

|
|
22
26
|
|
|
23
27
|
## Getting started
|
|
24
28
|
|
|
@@ -41,25 +45,25 @@ Go to http://localhost:3000
|
|
|
41
45
|
|
|
42
46
|
1. Start Volto frontend
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
* If you already have a volto project, just update `package.json`:
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
```JSON
|
|
51
|
+
"addons": [
|
|
52
|
+
"@eeacms/volto-tabs-block"
|
|
53
|
+
],
|
|
50
54
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@eeacms/volto-tabs-block": "*"
|
|
57
|
+
}
|
|
58
|
+
```
|
|
55
59
|
|
|
56
|
-
|
|
60
|
+
* If not, create one:
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
```
|
|
63
|
+
npm install -g yo @plone/generator-volto
|
|
64
|
+
yo @plone/volto my-volto-project --canary --addon @eeacms/volto-tabs-block
|
|
65
|
+
cd my-volto-project
|
|
66
|
+
```
|
|
63
67
|
|
|
64
68
|
1. Install new add-ons and restart Volto:
|
|
65
69
|
|
package/cypress.config.js
CHANGED
|
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
|
|
|
2
2
|
|
|
3
3
|
module.exports = defineConfig({
|
|
4
4
|
viewportWidth: 1280,
|
|
5
|
-
defaultCommandTimeout:
|
|
5
|
+
defaultCommandTimeout: 10000,
|
|
6
6
|
chromeWebSecurity: false,
|
|
7
7
|
reporter: 'junit',
|
|
8
8
|
video: true,
|
|
9
9
|
retries: {
|
|
10
|
-
runMode:
|
|
10
|
+
runMode: 1,
|
|
11
11
|
openMode: 0,
|
|
12
12
|
},
|
|
13
13
|
reporterOptions: {
|