Skip to content

Commit

Permalink
Merge branch 'master' into deps-simple-git
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Mar 23, 2023
2 parents b4d39e4 + fbd4fe5 commit a7b6b1f
Show file tree
Hide file tree
Showing 40 changed files with 181 additions and 35 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@ jobs:

- name: Build HTML documentation
run: make docs-html

- uses: errata-ai/vale-action@reviewdog
with:
# debug: true
files: all
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ selenium-screenshot-*.png
/selenium/
cypress/videos/
cypress/screenshots
/styles/Microsoft

# Local environment setup
.env
Expand Down
10 changes: 10 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
StylesPath = styles

MinAlertLevel = suggestion

Vocab = Base,Plone

Packages = Microsoft

[*.md]
BasedOnStyles = Vale, Microsoft
42 changes: 40 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@

<!-- towncrier release notes start -->

## 17.0.0-alpha.3 (2023-03-22)

### Feature

- Add Vale to CI for spell and style checks. @MAX-786 [#4423](https://github.com/plone/volto/issues/4423)

### Bugfix

- Fix Search is case sensitive in Block chooser @iRohitSingh [#4526](https://github.com/plone/volto/issues/4526)
- InternalURl helper method should incorporate externalRoutes settings into consideration. @iFlameing [#4559](https://github.com/plone/volto/issues/4559)
- Update message add-on control panel: remove 'buildout', update reference. @ksuess [#4574](https://github.com/plone/volto/issues/4574)

### Documentation

- Deleted duplicate import and fixed training URLs. @yahya-cloud [#4523](https://github.com/plone/volto/issues/4523)
- Fix grammar in PR #4542. @stevepiercy [#4555](https://github.com/plone/volto/issues/4555)
- Fix broken links at ReactJS.org. @stevepiercy [#4569](https://github.com/plone/volto/issues/4569)
- Fix video warnings and link errors. @stevepiercy [#4578](https://github.com/plone/volto/issues/4578)


## 17.0.0-alpha.2 (2023-03-15)

### Breaking
Expand Down Expand Up @@ -92,6 +112,24 @@
- Use a universal static path for both documentation and volto repos. @stevepiercy [#4376](https://github.com/plone/volto/issues/4376)


## 16.18.0 (2023-03-22)

### Feature

- Add Vale to CI for spell and style checks. @MAX-786 [#4423](https://github.com/plone/volto/issues/4423)

### Bugfix

- Patch updates for some dependencies. @davisagli [#4520](https://github.com/plone/volto/issues/4520)
- InternalURl helper method should incorporate externalRoutes settings into consideration. @iFlameing [#4559](https://github.com/plone/volto/issues/4559)
- Update message add-on control panel: remove 'buildout', update reference. @ksuess [#4574](https://github.com/plone/volto/issues/4574)

### Documentation

- Fix broken links at ReactJS.org. @stevepiercy [#4569](https://github.com/plone/volto/issues/4569)
- Fix video warnings and link errors. @stevepiercy [#4578](https://github.com/plone/volto/issues/4578)


## 16.17.1 (2023-03-16)

### Bugfix
Expand Down Expand Up @@ -2447,7 +2485,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information
- Use Plone logo @ericof
- Update favicon and related tags with best practices @sneridagh
- Enable to be able to use the internal proxy in production as well @sneridagh
- Add runtime configuration for `@babel/plugin-transform-react-jsx` set to `automatic`. This enables the new JSX runtime: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html So no longer `import React from 'react'` is needed anymore. @sneridagh
- Add runtime configuration for `@babel/plugin-transform-react-jsx` set to `automatic`. This enables the new JSX runtime: https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html So no longer `import React from 'react'` is needed anymore. @sneridagh
- Add `autocomplete` Widget component - It holds off the vocabulary endpoint pull until you search (more than 2 chars). Useful when dealing with huge vocabularies @sneridagh @reebalazs
- Add new listing block option "fullobjects" per variation @ksuess
- `FormFieldWrapper` accepts now strings and elements for description @nzambello
Expand Down Expand Up @@ -2577,7 +2615,7 @@ See https://6.docs.plone.org/volto/upgrade-guide/index.html for more information

### Feature

- Add runtime configuration for `@babel/plugin-transform-react-jsx` set to `automatic`. This enables the new JSX runtime: https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html So no longer `import React from 'react'` is needed anymore.
- Add runtime configuration for `@babel/plugin-transform-react-jsx` set to `automatic`. This enables the new JSX runtime: https://legacy.reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html So no longer `import React from 'react'` is needed anymore.
- Update favicon and related tags with best practices @sneridagh

### Bugfix
Expand Down
4 changes: 4 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,7 @@ span.guilabel, span.menuselection {
font-style: italic;
white-space: nowrap;
}

video {
width: 100%;
}
2 changes: 1 addition & 1 deletion docs/source/getting-started/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This chapter contains some legacy information that may be useful to Plone 5.2 de

Volto can be installed in any operating system assuming that the following pre-requisites are met:

- [Node.js LTS (18.x)](https://nodejs.org/en/)
- [Node.js LTS (18.x)](https://nodejs.org/en)
- [Python](https://www.python.org/) - See below for specific versions.
- [Docker](https://www.docker.com/get-started) (if using the Plone docker images)

Expand Down
2 changes: 1 addition & 1 deletion docs/source/getting-started/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ As is the case with similar modern Javascript-based applications, you should kno
- Modern Javascript development. Volto uses next-generation Javascript. Follow
the [ES6 guide](https://flaviocopes.com/es6/) to get up to speed.
- React knowledge - [basic level is
fine](https://reactjs.org/tutorial/tutorial.html) for the beginning, you'll progress
fine](https://react.dev/learn/tutorial-tic-tac-toe) for the beginning, you'll progress
along the way. React itself is a simple and well documented framework.
- A basic understanding of Javascript
[CommonJS](https://flaviocopes.com/commonjs/),
Expand Down
2 changes: 0 additions & 2 deletions docs/source/user-manual/copy-paste-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ This feature can be used by selecting a start block and an end block while holdi
This will select all the blocks between the start and end blocks, allowing you to copy, cut, or delete multiple blocks at once.

```{video} /_static/user-manual/blocks/block-copy-cut.mp4
:width: 100%
```


Expand All @@ -42,5 +41,4 @@ You can click the paste option <img alt="Paste icon" src="../_static/paste.svg"
Also if you hold the {kbd}`ctrl` key while clicking the paste button, it keeps the clipboard buffer, allowing you to repeatedly paste it.

```{video} /_static/user-manual/blocks/block-paste.mp4
:width: 100%
```
2 changes: 1 addition & 1 deletion locales/ca/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ msgid "Add (object list)"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Afegeix complements"

Expand Down
2 changes: 1 addition & 1 deletion locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ msgid "Add (object list)"
msgstr "Hinzufügen"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Add-on hinzufügen"

Expand Down
2 changes: 1 addition & 1 deletion locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ msgid "Add (object list)"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ msgid "Add (object list)"
msgstr "Añadir"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Añadir complementos"

Expand Down
2 changes: 1 addition & 1 deletion locales/eu/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ msgid "Add (object list)"
msgstr "Gehitu"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Gehitu gehigarriak"

Expand Down
2 changes: 1 addition & 1 deletion locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ msgid "Add (object list)"
msgstr "Ajouter (liste d'objets)"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Ajouter des modules"

Expand Down
2 changes: 1 addition & 1 deletion locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ msgid "Add (object list)"
msgstr "Aggiungi"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Aggiungi Add-ons"

Expand Down
2 changes: 1 addition & 1 deletion locales/ja/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ msgid "Add (object list)"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "以下のリストに新しいアドオンが表示されるようにするには、それをビルドアウト設定(buildout.cfg)に追加し、ビルドアウトコマンド(bin/buildout)を実行した後に、サーバプロセスを再起動します。"

Expand Down
2 changes: 1 addition & 1 deletion locales/nl/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ msgid "Add (object list)"
msgstr "Toevoegen (object lijst)"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Voeg modules toe"

Expand Down
2 changes: 1 addition & 1 deletion locales/pt/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ msgid "Add (object list)"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ msgid "Add (object list)"
msgstr "Adicionar"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Adicionar complementos"

Expand Down
2 changes: 1 addition & 1 deletion locales/ro/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ msgid "Add (object list)"
msgstr "Adăugare (listă de obiecte)"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "Adăugare add-on-uri"

Expand Down
2 changes: 1 addition & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ msgid "Add (object list)"
msgstr ""

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion locales/zh_CN/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ msgid "Add (object list)"
msgstr "添加(对象列表)"

#: components/manage/Controlpanels/AddonsControlpanel
# defaultMessage: To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
# defaultMessage: To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
msgid "Add Addons"
msgstr "添加附件"

Expand Down
1 change: 0 additions & 1 deletion news/4523.documentation

This file was deleted.

1 change: 0 additions & 1 deletion news/4526.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion news/4555.documentation

This file was deleted.

1 change: 1 addition & 0 deletions news/4598.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DefaultView (view of fields for content types with blocks disabled): Show field name as tip on hover of label. @ksuess
1 change: 1 addition & 0 deletions news/4601.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regexp that checks valid URLs and improve tests [cekk]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"license": "MIT",
"version": "17.0.0-alpha.2",
"version": "17.0.0-alpha.3",
"repository": {
"type": "git",
"url": "git@github.com:plone/volto.git"
Expand Down
2 changes: 1 addition & 1 deletion packages/volto-slate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plone/volto-slate",
"version": "17.0.0-alpha.2",
"version": "17.0.0-alpha.3",
"description": "Slate.js integration with Volto",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
6 changes: 3 additions & 3 deletions src/components/manage/Controlpanels/AddonsControlpanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const messages = defineMessages({
addAddons: {
id: 'Add Addons',
defaultMessage:
'To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see',
'To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see',
},
addonsSettings: {
id: 'Add-ons Settings',
Expand Down Expand Up @@ -380,11 +380,11 @@ class AddonsControlpanel extends Component {
</Header>
<FormattedMessage
id="Add Addons"
defaultMessage="To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see"
defaultMessage="To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see"
/>
&nbsp;
<a
href="http://docs.plone.org/manage/installing/installing_addons.html"
href="https://6.docs.plone.org/install/"
target="_blank"
rel="noopener noreferrer"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ exports[`AddonsControlpanel renders an addon control component 1`] = `
>
Activate and deactivate add-ons in the lists below.
</h3>
To make new add-ons show up here, add them to your buildout configuration, run buildout, and restart the server process. For detailed instructions see
To make new add-ons show up here, add them to your configuration, build, and restart the server process. For detailed instructions see
 
<a
href="http://docs.plone.org/manage/installing/installing_addons.html"
href="https://6.docs.plone.org/install/"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/theme/View/DefaultView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const DefaultView = (props) => {
return f !== 'title' ? (
<Grid celled="internally" key={key}>
<Grid.Row>
<Label>{field.title}:</Label>
<Label title={field.id}>{field.title}:</Label>
</Grid.Row>
<Grid.Row>
<Segment basic>
Expand Down
11 changes: 10 additions & 1 deletion src/helpers/FormValidation/FormValidation.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ const widgetValidation = {
},
url: {
isValidURL: (urlValue, urlObj, intlFunc) => {
const urlRegex = /^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([-.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([_.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?|^((http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/gm;
var urlRegex = new RegExp(
'^(https?:\\/\\/)?' + // validate protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // validate domain name
'((\\d{1,3}\\.){3}\\d{1,3}))|' + // validate OR ip (v4) address
'(localhost)' + // validate OR localhost address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // validate port and path
'(\\?[;&a-z\\d%_.~+=-]*)?' + // validate query string
'(\\#[-a-z\\d_]*)?$', // validate fragment locator
'i',
);
const isValid = urlRegex.test(urlValue);
return !isValid ? intlFunc(messages.isValidURL) : null;
},
Expand Down
Loading

0 comments on commit a7b6b1f

Please sign in to comment.