@plone/volto 16.2.0 → 16.4.0
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.draft +28 -0
- package/.storybook/static/previewImage.svg +48 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +76 -2
- package/README.md +0 -31
- package/RELEASING.md +73 -0
- package/addon-registry.js +18 -4
- package/cypress/support/commands.js +9 -8
- package/docker-compose.yml +2 -2
- package/locales/ca/LC_MESSAGES/volto.po +2 -2
- package/locales/de/LC_MESSAGES/volto.po +169 -169
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +2 -2
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +30 -30
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +112 -112
- package/locales/eu.json +1 -1
- package/locales/fi/LC_MESSAGES/volto.po +4575 -0
- package/locales/fi.json +1 -0
- package/locales/fr/LC_MESSAGES/volto.po +454 -454
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +2 -2
- package/locales/ja/LC_MESSAGES/volto.po +2 -2
- package/locales/nl/LC_MESSAGES/volto.po +2 -2
- package/locales/pt/LC_MESSAGES/volto.po +2 -2
- package/locales/pt_BR/LC_MESSAGES/volto.po +2 -2
- package/locales/ro/LC_MESSAGES/volto.po +2 -2
- package/locales/volto.pot +3 -3
- package/locales/zh_CN/LC_MESSAGES/volto.po +4570 -0
- package/locales/zh_CN.json +1 -0
- package/news/.gitkeep +0 -0
- package/news/4051.bug +1 -0
- package/package.json +20 -9
- package/packages/volto-slate/package.json +2 -2
- package/packages/volto-slate/src/editor/config.jsx +3 -0
- package/packages/volto-slate/src/editor/deserialize.js +37 -24
- package/packages/volto-slate/src/utils/blocks.js +31 -0
- package/packages/volto-slate/src/widgets/HtmlSlateWidget.jsx +1 -1
- package/src/components/manage/Blocks/Block/DefaultView.jsx +1 -1
- package/src/components/manage/Contents/Contents.jsx +1 -1
- package/src/components/manage/Controlpanels/Groups/GroupsControlpanel.jsx +5 -2
- package/src/components/manage/Controlpanels/Users/UsersControlpanel.jsx +8 -3
- package/src/components/manage/Form/Form.jsx +10 -1
- package/src/components/manage/Widgets/ArrayWidget.jsx +3 -0
- package/src/components/manage/Widgets/RecurrenceWidget/Occurences.jsx +1 -1
- package/src/components/theme/Logo/Logo.stories.jsx +27 -0
- package/src/components/theme/SearchWidget/SearchWidget.jsx +4 -0
- package/src/components/theme/View/DefaultView.jsx +11 -3
- package/src/config/index.js +0 -1
- package/src/registry.js +0 -8
- package/theme/theme.config +3 -3
- package/towncrier.toml +33 -0
- package/.storybook/static/previewImage.png +0 -0
package/.changelog.draft
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## 16.4.0 (2022-12-12)
|
|
2
|
+
|
|
3
|
+
### Feature
|
|
4
|
+
|
|
5
|
+
- Update Traefik version and make volume mount (docker-compose) read-only [#4067](https://github.com/plone/volto/issues/4067)
|
|
6
|
+
- Allow addons to provide an `eslint.extend.js` file that customizez eslint configuration @tiberiuichim [#4072](https://github.com/plone/volto/issues/4072)
|
|
7
|
+
|
|
8
|
+
### Bugfix
|
|
9
|
+
|
|
10
|
+
- Update Chinese translation @adam139 [#4009](https://github.com/plone/volto/issues/4009)
|
|
11
|
+
- Reset value of search field after submit. [@MAX-786] [#4028](https://github.com/plone/volto/issues/4028)
|
|
12
|
+
- Don't crash the view page when dealing with unknown blocks @tiberiuichim [#4070](https://github.com/plone/volto/issues/4070)
|
|
13
|
+
- Bump version for plone-backend version used in Makefile @tiberiuichim [#4071](https://github.com/plone/volto/issues/4071)
|
|
14
|
+
- Properly handle whitespace in HTML (richtext) slate-based widget @tiberiuichim [#4082](https://github.com/plone/volto/issues/4082)
|
|
15
|
+
- Add Finnish translation (contributed by @rioksane)
|
|
16
|
+
[erral] [#4084](https://github.com/plone/volto/issues/4084)
|
|
17
|
+
- Fix typo in english translation and add missing french translation
|
|
18
|
+
[mpeeters, jchandelle] [#4085](https://github.com/plone/volto/issues/4085)
|
|
19
|
+
|
|
20
|
+
### Internal
|
|
21
|
+
|
|
22
|
+
- Make Volto compatible with pnpm as package manager [#4023](https://github.com/plone/volto/issues/4023)
|
|
23
|
+
|
|
24
|
+
### Documentation
|
|
25
|
+
|
|
26
|
+
- Add content for user-manual of Volto, Plone 6 frontend. [@MAX-786] [#3827](https://github.com/plone/volto/issues/3827)
|
|
27
|
+
- Remove duplicate `H1`-level page title, and inherit from Volto's `CHANGELOG.md`. @stevepiercy [#4048](https://github.com/plone/volto/issues/4048)
|
|
28
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 13.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
|
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
+
width="158.253px" height="40.686px" viewBox="0 0 158.253 40.686" enable-background="new 0 0 158.253 40.686"
|
|
6
|
+
xml:space="preserve">
|
|
7
|
+
<g>
|
|
8
|
+
<path fill="#0095D3" d="M65.327,23.208h-6.589v11.388h-4.393V5.638h10.981c5.653,0,9.271,3.742,9.271,8.785
|
|
9
|
+
S70.979,23.208,65.327,23.208z M65.082,9.583h-6.345v9.639h6.345c3.05,0,5.124-1.749,5.124-4.799
|
|
10
|
+
C70.206,11.372,68.132,9.583,65.082,9.583z"/>
|
|
11
|
+
<path fill="#0095D3" d="M83.969,34.596c-3.904,0-5.652-2.644-5.652-5.693V5.638h4.148v23.021c0,1.587,0.567,2.399,2.235,2.399h1.83
|
|
12
|
+
v3.538H83.969z"/>
|
|
13
|
+
<path fill="#0095D3" d="M104.762,32.399c-1.344,1.384-3.377,2.44-6.184,2.44c-2.805,0-4.799-1.058-6.141-2.44
|
|
14
|
+
c-1.951-2.032-2.439-4.637-2.439-8.134c0-3.457,0.488-6.061,2.439-8.094c1.342-1.383,3.336-2.44,6.141-2.44
|
|
15
|
+
c2.807,0,4.84,1.059,6.184,2.44c1.951,2.033,2.439,4.637,2.439,8.094C107.203,27.763,106.713,30.366,104.762,32.399z
|
|
16
|
+
M101.629,18.613c-0.773-0.773-1.83-1.181-3.051-1.181c-1.219,0-2.236,0.406-3.01,1.181c-1.26,1.261-1.422,3.416-1.422,5.652
|
|
17
|
+
s0.162,4.393,1.422,5.653c0.773,0.771,1.791,1.22,3.01,1.22c1.221,0,2.277-0.447,3.051-1.22c1.262-1.262,1.424-3.417,1.424-5.653
|
|
18
|
+
S102.891,19.873,101.629,18.613z"/>
|
|
19
|
+
<path fill="#0095D3" d="M123.643,34.596V22.029c0-3.214-1.83-4.597-4.147-4.597s-4.271,1.423-4.271,4.597v12.566h-4.147v-20.62
|
|
20
|
+
h4.065v2.074c1.425-1.546,3.416-2.318,5.49-2.318c2.115,0,3.865,0.691,5.084,1.871c1.586,1.545,2.074,3.497,2.074,5.815v13.178
|
|
21
|
+
L123.643,34.596L123.643,34.596z"/>
|
|
22
|
+
<path fill="#0095D3" d="M135.772,25.486c0,3.537,1.871,5.774,5.246,5.774c2.317,0,3.539-0.649,5.004-2.115l2.643,2.481
|
|
23
|
+
c-2.115,2.114-4.107,3.213-7.727,3.213c-5.166,0-9.273-2.725-9.273-10.574c0-6.671,3.457-10.534,8.744-10.534
|
|
24
|
+
c5.531,0,8.744,4.067,8.744,9.925v1.83H135.772z M144.475,19.791c-0.65-1.545-2.113-2.604-4.066-2.604
|
|
25
|
+
c-1.951,0-3.457,1.059-4.107,2.604c-0.406,0.936-0.488,1.546-0.529,2.807h9.273C145.003,21.337,144.883,20.726,144.475,19.791z"/>
|
|
26
|
+
<circle fill="#0095D3" cx="17.815" cy="11.516" r="4.402"/>
|
|
27
|
+
<path fill="#0095D3" d="M31.167,20.311c0,2.433-1.969,4.401-4.403,4.401c-2.427,0-4.401-1.97-4.401-4.401
|
|
28
|
+
c0-2.433,1.975-4.401,4.401-4.401C29.2,15.909,31.167,17.879,31.167,20.311z"/>
|
|
29
|
+
<circle fill="#0095D3" cx="17.801" cy="29.131" r="4.402"/>
|
|
30
|
+
<g>
|
|
31
|
+
<path fill="#0095D3" d="M20.441-0.045C9.207-0.044,0.1,9.063,0.099,20.298C0.1,31.532,9.207,40.639,20.441,40.641
|
|
32
|
+
c11.235-0.002,20.341-9.107,20.343-20.343C40.783,9.063,31.677-0.044,20.441-0.045z M31.891,31.747
|
|
33
|
+
c-2.937,2.934-6.972,4.742-11.45,4.743c-4.478-0.001-8.513-1.811-11.45-4.743C6.058,28.81,4.25,24.775,4.249,20.298
|
|
34
|
+
c0.001-4.478,1.809-8.513,4.743-11.45c2.937-2.934,6.972-4.742,11.45-4.743c4.478,0.001,8.513,1.81,11.45,4.743
|
|
35
|
+
c2.934,2.938,4.742,6.973,4.743,11.45C36.633,24.775,34.825,28.81,31.891,31.747z"/>
|
|
36
|
+
</g>
|
|
37
|
+
<g>
|
|
38
|
+
<path fill="#0095D3" d="M153.985,9.95c-1.195,0-2.164,0.971-2.164,2.168c0.002,1.197,0.969,2.168,2.164,2.168
|
|
39
|
+
c1.199,0,2.172-0.971,2.172-2.168S155.184,9.95,153.985,9.95z M153.985,13.968c-1.021-0.002-1.846-0.827-1.846-1.85
|
|
40
|
+
c0.002-1.021,0.825-1.849,1.846-1.851c1.023,0.002,1.852,0.828,1.854,1.851C155.836,13.141,155.008,13.966,153.985,13.968z"/>
|
|
41
|
+
</g>
|
|
42
|
+
<g>
|
|
43
|
+
<path fill="#0095D3" d="M154.507,13.409l-0.54-1.08h-0.486v1.08h-0.389v-2.564h0.994c0.484,0,0.796,0.313,0.796,0.75
|
|
44
|
+
c0,0.367-0.224,0.602-0.513,0.68l0.592,1.136L154.507,13.409L154.507,13.409z M154.056,11.195h-0.575v0.803h0.575
|
|
45
|
+
c0.261,0,0.437-0.147,0.437-0.399S154.317,11.195,154.056,11.195z"/>
|
|
46
|
+
</g>
|
|
47
|
+
</g>
|
|
48
|
+
</svg>
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Volto Release Notes
|
|
2
|
+
|
|
3
|
+
<!-- You should *NOT* be adding new change log entries to this file.
|
|
4
|
+
You should create a file in the news directory instead.
|
|
5
|
+
For helpful instructions, please see:
|
|
6
|
+
https://6.dev-docs.plone.org/volto/developer-guidelines/contributing.html#create-a-pull-request
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<!-- towncrier release notes start -->
|
|
10
|
+
|
|
11
|
+
## 16.4.0 (2022-12-12)
|
|
12
|
+
|
|
13
|
+
### Feature
|
|
14
|
+
|
|
15
|
+
- Update Traefik version and make volume mount (docker-compose) read-only [#4067](https://github.com/plone/volto/issues/4067)
|
|
16
|
+
- Allow addons to provide an `eslint.extend.js` file that customizez eslint configuration @tiberiuichim [#4072](https://github.com/plone/volto/issues/4072)
|
|
17
|
+
|
|
18
|
+
### Bugfix
|
|
19
|
+
|
|
20
|
+
- Update Chinese translation @adam139 [#4009](https://github.com/plone/volto/issues/4009)
|
|
21
|
+
- Reset value of search field after submit. [@MAX-786] [#4028](https://github.com/plone/volto/issues/4028)
|
|
22
|
+
- Don't crash the view page when dealing with unknown blocks @tiberiuichim [#4070](https://github.com/plone/volto/issues/4070)
|
|
23
|
+
- Bump version for plone-backend version used in Makefile @tiberiuichim [#4071](https://github.com/plone/volto/issues/4071)
|
|
24
|
+
- Properly handle whitespace in HTML (richtext) slate-based widget @tiberiuichim [#4082](https://github.com/plone/volto/issues/4082)
|
|
25
|
+
- Add Finnish translation (contributed by @rioksane)
|
|
26
|
+
[erral] [#4084](https://github.com/plone/volto/issues/4084)
|
|
27
|
+
- Fix typo in english translation and add missing french translation
|
|
28
|
+
[mpeeters, jchandelle] [#4085](https://github.com/plone/volto/issues/4085)
|
|
29
|
+
|
|
30
|
+
### Internal
|
|
31
|
+
|
|
32
|
+
- Make Volto compatible with pnpm as package manager [#4023](https://github.com/plone/volto/issues/4023)
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
- Add content for user-manual of Volto, Plone 6 frontend. [@MAX-786] [#3827](https://github.com/plone/volto/issues/3827)
|
|
37
|
+
- Remove duplicate `H1`-level page title, and inherit from Volto's `CHANGELOG.md`. @stevepiercy [#4048](https://github.com/plone/volto/issues/4048)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
## 16.3.0 (2022-12-05)
|
|
41
|
+
|
|
42
|
+
### Feature
|
|
43
|
+
|
|
44
|
+
- Add towncrier support. Create RELEASING.md and move and update Releasing section from README.md into it. @sneridagh @stevepiercy [#3985](https://github.com/plone/volto/issues/3985)
|
|
45
|
+
- Translation of roles in user and group control panel. Fix https://github.com/plone/volto/issues/4002 @wesleybl [#4002](https://github.com/plone/volto/issues/4002)
|
|
46
|
+
- Use the component registry for `Container` component in DefaultView @sneridagh [#4032](https://github.com/plone/volto/issues/4032)
|
|
47
|
+
- Update missing german translations @steffenri
|
|
48
|
+
|
|
49
|
+
### Bugfix
|
|
50
|
+
|
|
51
|
+
- Fix GitHub release notes in new Towncrier release config @sneridagh [#3989](https://github.com/plone/volto/issues/3989)
|
|
52
|
+
- Clear error message when canceling user add. Fix https://github.com/plone/volto/issues/4006 @wesleybl [#4006](https://github.com/plone/volto/issues/4006)
|
|
53
|
+
- Fix subscript and supscript active at same time. @iFlameing [#4011](https://github.com/plone/volto/issues/4011)
|
|
54
|
+
- Complete eu translation
|
|
55
|
+
[erral] [#4015](https://github.com/plone/volto/issues/4015)
|
|
56
|
+
- Complete es translation
|
|
57
|
+
[erral] [#4016](https://github.com/plone/volto/issues/4016)
|
|
58
|
+
- Add `cypress.config.js` to generator templates @sneridagh [#4021](https://github.com/plone/volto/issues/4021)
|
|
59
|
+
- Bump Volto core packages with the current Volto version on Volto release @sneridagh [#4025](https://github.com/plone/volto/issues/4025)
|
|
60
|
+
|
|
61
|
+
### Internal
|
|
62
|
+
|
|
63
|
+
- Remove unused dangling root appExtras from configuration registry @sneridagh [#4024](https://github.com/plone/volto/issues/4024)
|
|
64
|
+
|
|
65
|
+
### Documentation
|
|
66
|
+
|
|
67
|
+
- Rewrite "Upgraded core to use Cypress 11" section. @stevepiercy [#3979](https://github.com/plone/volto/issues/3979)
|
|
68
|
+
- Include `CHANGELOG.md` at the correct path, depending on context of entire Plone 6 documentation or only Volto documentation. @stevepiercy [#3992](https://github.com/plone/volto/issues/3992)
|
|
69
|
+
- Close the open Glossary list. @stevepiercy [#3995](https://github.com/plone/volto/issues/3995)
|
|
70
|
+
- Added docs for proper usage of draftjs for richtext widgets. @pnicolli [#4001](https://github.com/plone/volto/issues/4001)
|
|
71
|
+
- Document how to change the base font and the font for headings. Describe how to host the font. @ksuess [#4013](https://github.com/plone/volto/issues/4013)
|
|
72
|
+
|
|
2
73
|
|
|
3
74
|
## 16.2.0 (2022-11-25)
|
|
4
75
|
|
|
@@ -13,6 +84,7 @@
|
|
|
13
84
|
- Improve collapsing of whitespace when pasting to slate text block @tiberiuichim
|
|
14
85
|
- Avoid warning for missing value in NumberWidget @tiberiuichim
|
|
15
86
|
- Fix crash in Slate link editing in a dexterity field @tiberiuichim
|
|
87
|
+
- Fix select widget loosing focus when the value has changed @reebalazs
|
|
16
88
|
|
|
17
89
|
## 16.1.0 (2022-11-23)
|
|
18
90
|
|
|
@@ -414,6 +486,8 @@ See https://6.dev-docs.plone.org/volto/upgrade-guide/index.html for more informa
|
|
|
414
486
|
- Remove `sentryOptions` from settings reference. Clean up `deploying/sentry.md`. @stevepiercy
|
|
415
487
|
- Tidy up `upgrade-guide/index.md`. @stevepiercy
|
|
416
488
|
- Fix some MyST syntax and English grammar. @stevepiercy
|
|
489
|
+
- Add contributing branch policy information @sneridagh @stevepiercy
|
|
490
|
+
- Add component to storybook @danalvrz
|
|
417
491
|
|
|
418
492
|
## 16.0.0-rc.1 (2022-11-18)
|
|
419
493
|
|
|
@@ -4488,7 +4562,7 @@ https://docs.voltocms.com/upgrade-guide/
|
|
|
4488
4562
|
- Added item type as a tooltip in contents @nzambello
|
|
4489
4563
|
- Added Italian translations and translated array, token and select widget. @giuliaghisini
|
|
4490
4564
|
- Added uploading image preview in FileWidget @iFlameing
|
|
4491
|
-
- Allow custom express middleware declared with `settings.expressMiddleware`. See [
|
|
4565
|
+
- Allow custom express middleware declared with `settings.expressMiddleware`. See [Custom Express middleware](https://6.dev-docs.plone.org/volto/recipes/express.html) @tiberiuichim
|
|
4492
4566
|
|
|
4493
4567
|
### Bugfix
|
|
4494
4568
|
|
package/README.md
CHANGED
|
@@ -314,37 +314,6 @@ Browse to [http://localhost:3000](http://localhost:3000) in your browser.
|
|
|
314
314
|
yarn test
|
|
315
315
|
```
|
|
316
316
|
|
|
317
|
-
### Releasing
|
|
318
|
-
|
|
319
|
-
For ease the release process, we use `release-it` utility that helps with the process.
|
|
320
|
-
|
|
321
|
-
https://www.npmjs.com/package/release-it
|
|
322
|
-
|
|
323
|
-
For using it and start a release you need to fulfill the requirements:
|
|
324
|
-
|
|
325
|
-
- Have permissions to push on master branch
|
|
326
|
-
- Have permissions on the @plone org on npmjs.com
|
|
327
|
-
- Have a environment variable (`GITHUB_TOKEN`) with a GitHub personal token with permissions to
|
|
328
|
-
write the Volto Release page on GitHub (https://www.npmjs.com/package/release-it#github-releases)
|
|
329
|
-
|
|
330
|
-
Then the command for release:
|
|
331
|
-
|
|
332
|
-
```shell
|
|
333
|
-
yarn release
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
a dry-release command for testing the output is also available:
|
|
337
|
-
|
|
338
|
-
```shell
|
|
339
|
-
yarn dry-release
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
and alpha release can also be cut using:
|
|
343
|
-
|
|
344
|
-
```shell
|
|
345
|
-
yarn release-alpha
|
|
346
|
-
```
|
|
347
|
-
|
|
348
317
|
## Acceptance testing
|
|
349
318
|
|
|
350
319
|
Here you can find a guide on how acceptance testing is done in Volto:
|
package/RELEASING.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Releasing
|
|
2
|
+
|
|
3
|
+
To ease the release process, we use the utility [`release-it`](https://www.npmjs.com/package/release-it) which helps with the process, and [`towncrier`](https://towncrier.readthedocs.io) for creating and maintaining change logs.
|
|
4
|
+
|
|
5
|
+
## Release requirements
|
|
6
|
+
|
|
7
|
+
To start a release, you must fulfill the following requirements:
|
|
8
|
+
|
|
9
|
+
- Have permission to push to `master` branch
|
|
10
|
+
- Have permission on the [`@plone` organization on npm](https://www.npmjs.com/org/plone).
|
|
11
|
+
- Have an environment variable `GITHUB_TOKEN` with a GitHub personal token with permissions to write to the [Volto Release page on GitHub](https://github.com/plone/volto/releases).
|
|
12
|
+
- Install [`pipx`](https://pypa.github.io/pipx/) in your system.
|
|
13
|
+
|
|
14
|
+
To request these permissions, on GitHub tag `@plone/release-team`, or in Discord post to the [`release-team` channel](https://discord.com/channels/786421998426521600/897549410521714760).
|
|
15
|
+
|
|
16
|
+
### Permission to push to `master` branch
|
|
17
|
+
|
|
18
|
+
The release process involves pushing directly to the `master` branch.
|
|
19
|
+
Volto's `master` branch is protected, so the releaser needs to have permission for pushing to it.
|
|
20
|
+
At the moment of this writing, members of the GitHub group `@plone/volto-team` have permission to push to `master`.
|
|
21
|
+
|
|
22
|
+
### Permission to release Volto to npm registry
|
|
23
|
+
|
|
24
|
+
We push Volto's releases to the npm registry.
|
|
25
|
+
The releaser has to have permissions for pushing a release in the [`@plone` organization on npm](https://www.npmjs.com/org/plone).
|
|
26
|
+
Only the current Owners of this organization can grant permissions to the releaser.
|
|
27
|
+
|
|
28
|
+
### Have a GitHub personal token with permissions to write the Volto's Releases
|
|
29
|
+
|
|
30
|
+
The `release-it` library takes care of creating and pushing a GitHub Release for each release.
|
|
31
|
+
It requires you to get a GitHub personal token with permission to write to the Volto's Releases.
|
|
32
|
+
This can be acquired in your GitHub profile page.
|
|
33
|
+
When making a release, export the environment variable `GITHUB_TOKEN` in your shell session.
|
|
34
|
+
|
|
35
|
+
```shell
|
|
36
|
+
export GITHUB_TOKEN="my_looooong_github_token"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
See `release-it` documentation of [GitHub releases](https://www.npmjs.com/package/release-it#github-releases) and GitHub documentation [About releases](https://docs.github.com/en/repositories/releasing-projects-on-github/about-releases).
|
|
40
|
+
|
|
41
|
+
### Install `pipx` in your system
|
|
42
|
+
|
|
43
|
+
The release process calls `towncrier`.
|
|
44
|
+
It is a Python library that uses the Python utility `pipx`.
|
|
45
|
+
This utility allows you to call and execute Python modules without installing them as a prerequisite in your system.
|
|
46
|
+
It works similar to the NodeJS `npx` utility.
|
|
47
|
+
On macOS, you can install `pipx` into your system:
|
|
48
|
+
|
|
49
|
+
```shell
|
|
50
|
+
brew install pipx
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or follow detailed instructions in the `pipx` documentation for [Installation](https://pypa.github.io/pipx/installation/).
|
|
54
|
+
|
|
55
|
+
## Running the release process
|
|
56
|
+
|
|
57
|
+
These are the commands to make a Volto release:
|
|
58
|
+
|
|
59
|
+
```shell
|
|
60
|
+
yarn release
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
A dry-release command for testing the output is also available:
|
|
64
|
+
|
|
65
|
+
```shell
|
|
66
|
+
yarn dry-release
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
An alpha release can be cut using:
|
|
70
|
+
|
|
71
|
+
```shell
|
|
72
|
+
yarn release-alpha
|
|
73
|
+
```
|
package/addon-registry.js
CHANGED
|
@@ -148,7 +148,7 @@ class AddonConfigurationRegistry {
|
|
|
148
148
|
},
|
|
149
149
|
);
|
|
150
150
|
|
|
151
|
-
this.
|
|
151
|
+
this.initAddonExtenders();
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
/**
|
|
@@ -310,18 +310,26 @@ class AddonConfigurationRegistry {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
|
-
* Allow addons to provide
|
|
314
|
-
*
|
|
313
|
+
* Allow addons to provide various extenders.
|
|
314
|
+
*
|
|
315
|
+
* The razzle.extend.js modules (named razzle.extend.js) needs to provide
|
|
316
|
+
* two functions:
|
|
315
317
|
* `plugins(defaultPlugins) => plugins` and
|
|
316
318
|
* `modify(...) => config`
|
|
319
|
+
*
|
|
320
|
+
* The eslint.extend.js
|
|
317
321
|
*/
|
|
318
|
-
|
|
322
|
+
initAddonExtenders() {
|
|
319
323
|
this.getAddons().forEach((addon) => {
|
|
320
324
|
const base = path.dirname(addon.packageJson);
|
|
321
325
|
const razzlePath = path.resolve(`${base}/razzle.extend.js`);
|
|
322
326
|
if (fs.existsSync(razzlePath)) {
|
|
323
327
|
addon.razzleExtender = razzlePath;
|
|
324
328
|
}
|
|
329
|
+
const eslintPath = path.resolve(`${base}/eslint.extend.js`);
|
|
330
|
+
if (fs.existsSync(eslintPath)) {
|
|
331
|
+
addon.eslintExtender = eslintPath;
|
|
332
|
+
}
|
|
325
333
|
});
|
|
326
334
|
}
|
|
327
335
|
|
|
@@ -340,6 +348,12 @@ class AddonConfigurationRegistry {
|
|
|
340
348
|
.filter((e) => e);
|
|
341
349
|
}
|
|
342
350
|
|
|
351
|
+
getEslintExtenders() {
|
|
352
|
+
return this.getAddons()
|
|
353
|
+
.map((o) => o.eslintExtender)
|
|
354
|
+
.filter((e) => e);
|
|
355
|
+
}
|
|
356
|
+
|
|
343
357
|
/**
|
|
344
358
|
* Returns a mapping name:diskpath to be uses in webpack's resolve aliases
|
|
345
359
|
*/
|
|
@@ -49,6 +49,7 @@ Cypress.Commands.add(
|
|
|
49
49
|
path = '',
|
|
50
50
|
allow_discussion = false,
|
|
51
51
|
transition = '',
|
|
52
|
+
bodyModifier = (body) => body,
|
|
52
53
|
}) => {
|
|
53
54
|
let api_url, auth;
|
|
54
55
|
if (Cypress.env('API') === 'guillotina') {
|
|
@@ -69,7 +70,7 @@ Cypress.Commands.add(
|
|
|
69
70
|
Accept: 'application/json',
|
|
70
71
|
},
|
|
71
72
|
auth: auth,
|
|
72
|
-
body: {
|
|
73
|
+
body: bodyModifier({
|
|
73
74
|
'@type': contentType,
|
|
74
75
|
id: contentId,
|
|
75
76
|
title: contentTitle,
|
|
@@ -80,7 +81,7 @@ Cypress.Commands.add(
|
|
|
80
81
|
'content-type': 'text/plain',
|
|
81
82
|
},
|
|
82
83
|
allow_discussion: allow_discussion,
|
|
83
|
-
},
|
|
84
|
+
}),
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
if (contentType === 'Image') {
|
|
@@ -91,7 +92,7 @@ Cypress.Commands.add(
|
|
|
91
92
|
Accept: 'application/json',
|
|
92
93
|
},
|
|
93
94
|
auth: auth,
|
|
94
|
-
body: {
|
|
95
|
+
body: bodyModifier({
|
|
95
96
|
'@type': contentType,
|
|
96
97
|
id: contentId,
|
|
97
98
|
title: contentTitle,
|
|
@@ -102,7 +103,7 @@ Cypress.Commands.add(
|
|
|
102
103
|
filename: 'image.png',
|
|
103
104
|
'content-type': 'image/png',
|
|
104
105
|
},
|
|
105
|
-
},
|
|
106
|
+
}),
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
if (
|
|
@@ -116,7 +117,7 @@ Cypress.Commands.add(
|
|
|
116
117
|
Accept: 'application/json',
|
|
117
118
|
},
|
|
118
119
|
auth: auth,
|
|
119
|
-
body: {
|
|
120
|
+
body: bodyModifier({
|
|
120
121
|
'@type': contentType,
|
|
121
122
|
id: contentId,
|
|
122
123
|
title: contentTitle,
|
|
@@ -131,7 +132,7 @@ Cypress.Commands.add(
|
|
|
131
132
|
],
|
|
132
133
|
},
|
|
133
134
|
allow_discussion: allow_discussion,
|
|
134
|
-
},
|
|
135
|
+
}),
|
|
135
136
|
})
|
|
136
137
|
.then(() => {
|
|
137
138
|
if (transition) {
|
|
@@ -151,12 +152,12 @@ Cypress.Commands.add(
|
|
|
151
152
|
Accept: 'application/json',
|
|
152
153
|
},
|
|
153
154
|
auth: auth,
|
|
154
|
-
body: {
|
|
155
|
+
body: bodyModifier({
|
|
155
156
|
'@type': contentType,
|
|
156
157
|
id: contentId,
|
|
157
158
|
title: contentTitle,
|
|
158
159
|
allow_discussion: allow_discussion,
|
|
159
|
-
},
|
|
160
|
+
}),
|
|
160
161
|
})
|
|
161
162
|
.then(() => {
|
|
162
163
|
if (transition) {
|
package/docker-compose.yml
CHANGED
|
@@ -47,7 +47,7 @@ services:
|
|
|
47
47
|
|
|
48
48
|
reverse-proxy:
|
|
49
49
|
# The official v2 Traefik docker image
|
|
50
|
-
image: traefik:v2.
|
|
50
|
+
image: traefik:v2.9
|
|
51
51
|
# Enables the web UI and tells Traefik to listen to docker
|
|
52
52
|
command: --api.insecure=true --providers.docker
|
|
53
53
|
ports:
|
|
@@ -57,7 +57,7 @@ services:
|
|
|
57
57
|
- "8888:8080"
|
|
58
58
|
volumes:
|
|
59
59
|
# So that Traefik can listen to the Docker events
|
|
60
|
-
- /var/run/docker.sock:/var/run/docker.sock
|
|
60
|
+
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
61
61
|
labels:
|
|
62
62
|
- traefik.http.middlewares.gzip.compress=true
|
|
63
63
|
- traefik.http.middlewares.gzip.compress.excludedcontenttypes=image/png, image/jpeg, font/woff2
|
|
@@ -1639,7 +1639,7 @@ msgid "Image view"
|
|
|
1639
1639
|
msgstr "Imatge"
|
|
1640
1640
|
|
|
1641
1641
|
#: components/manage/Widgets/RecurrenceWidget/Occurences
|
|
1642
|
-
# defaultMessage: Include this
|
|
1642
|
+
# defaultMessage: Include this occurrence
|
|
1643
1643
|
msgid "Include this occurence"
|
|
1644
1644
|
msgstr "Incloeu aquesta ocurrència"
|
|
1645
1645
|
|
|
@@ -1738,7 +1738,7 @@ msgid "Item batch size"
|
|
|
1738
1738
|
msgstr "Mida del lot d'articles"
|
|
1739
1739
|
|
|
1740
1740
|
#: components/manage/Contents/Contents
|
|
1741
|
-
# defaultMessage: Item
|
|
1741
|
+
# defaultMessage: Item successfully moved.
|
|
1742
1742
|
msgid "Item succesfully moved."
|
|
1743
1743
|
msgstr "L'element s'ha mogut correctament."
|
|
1744
1744
|
|