Skip to content

Commit

Permalink
Merge branch 'main' into js_splitting_2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli authored Sep 27, 2024
2 parents 9e65030 + d81a0d3 commit 3affdc2
Show file tree
Hide file tree
Showing 25 changed files with 365 additions and 75 deletions.
30 changes: 29 additions & 1 deletion docs/source/configuration/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ then access any of its internal configuration to retrieve the configuration you
like:

```js
const absoluteUrl = `${config.settings.apiPath}/${content.url}`
const absoluteUrl = `${config.settings.apiPath}/${content.url}`;
```

Both the main project and individual add-ons can extend Volto's configuration registry.
Expand Down Expand Up @@ -150,3 +150,31 @@ export default function applyConfig(config) {

return config;
}
```

## `nonContentRoutes` and `nonContentRoutesPublic`

`nonContentRoutes` is a list of routes reserved in Volto for its functionality as a content management system.
These functions include user authentication and registration, changing settings through control panels, generating a site map, and other functions.
Examples of these routes include `/login`, `/register`, and `/\/controlpanel\/.*$/`.
Editors can't use them for content.
The HTML attribute class value `cms-ui` is applied to members of `nonContentRoutes`.
You can configure `nonContentRoutes` with either a regular expression or a string representing the end of the URI.

`nonContentRoutesPublic` is a subset of `nonContentRoutes`.
These routes are used for public sections of a Volto site that do not require authentication.
This subset includes `/login`, `/search`, and `/sitemap`.

The following example shows how to configure settings for `nonContentRoutes` and `nonContentRoutesPublic`.

```js
export default function applyConfig(config) {
config.settings = {
...config.settings,
nonContentRoutes:[....],
nonContentRoutesPublic: [....]
};

return config;
}
```
205 changes: 205 additions & 0 deletions packages/volto-slate/locales/pt_BR/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2022-07-20T12:45:09.681Z\n"
"PO-Revision-Date: \n"
"Last-Translator: Érico Andrei <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"
"X-Generator: Poedit 3.5\n"

# defaultMessage: Add link
#: editor/plugins/Link/index
msgid "Add link"
msgstr "Adicionar link"

# defaultMessage: An error has occurred while editing "{name}" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator.
#: widgets/HtmlSlateWidget
#, fuzzy
msgid "An error has occurred while editing \"{name}\" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator."
msgstr "Ocorreu um erro ao editar o campo \"{name}\". Fomos notificados e estamos analisando o problema. Salve seu trabalho e tente novamente. Se o problema persistir, entre em contato com o administrador do site."

# defaultMessage: An error has occurred while rendering "{name}" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator.
#: widgets/RichTextWidgetView
#, fuzzy
msgid "An error has occurred while rendering \"{name}\" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator."
msgstr "Ocorreu um erro ao renderizar o campo \"{name}\". Fomos notificados e estamos analisando o problema. Se o problema persistir, entre em contato com o administrador do site."

# defaultMessage: Bottom
#: blocks/Table/TableBlockEdit
msgid "Bottom"
msgstr "Base"

# defaultMessage: Center
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Center"
msgstr "Centro"

# defaultMessage: Delete col
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Delete col"
msgstr "Excluir coluna"

# defaultMessage: Delete row
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Delete row"
msgstr "Excluir linha"

# defaultMessage: Delete table
#: editor/plugins/Table/index
#, fuzzy
msgid "Delete table"
msgstr "Excluir tabela"

# defaultMessage: Divide each row into separate cells
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Divide each row into separate cells"
msgstr "Dividir cada linha em células separadas"

# defaultMessage: Edit element
#: elementEditor/messages
#, fuzzy
msgid "Edit element"
msgstr "Editar elemento"

# defaultMessage: Edit link
#: editor/plugins/AdvancedLink/index editor/plugins/Link/index
#, fuzzy
msgid "Edit link"
msgstr "Editar link"

# defaultMessage: Fixed width table cells
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Fixed width table cells"
msgstr "Células de tabela de largura fixa"

# defaultMessage: Hide headers
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Hide headers"
msgstr "Ocultar cabeçalhos"

# defaultMessage: Insert col after
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Insert col after"
msgstr "Inserir coluna após"

# defaultMessage: Insert col before
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Insert col before"
msgstr "Inserir coluna antes"

# defaultMessage: Insert row after
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Insert row after"
msgstr "Inserir linha após"

# defaultMessage: Insert row before
#: blocks/Table/TableBlockEdit editor/plugins/Table/index
#, fuzzy
msgid "Insert row before"
msgstr "Inserir linha antes"

# defaultMessage: Left
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Left"
msgstr "Esquerda"

# defaultMessage: Make the table compact
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Make the table compact"
msgstr "Compactar a tabela"

# defaultMessage: Make the table sortable
#: blocks/Table/TableBlockEdit
msgid "Make the table sortable"
msgstr "Tornar a tabela ordenável"

# defaultMessage: Middle
#: blocks/Table/TableBlockEdit
msgid "Middle"
msgstr "Meio"

# defaultMessage: No matching blocks
#: blocks/Text/SlashMenu
#, fuzzy
msgid "No matching blocks"
msgstr "Não há blocos correspondentes"

# defaultMessage: Reduce complexity
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Reduce complexity"
msgstr "Reduzir complexidade"

# defaultMessage: Remove element
#: elementEditor/messages
#, fuzzy
msgid "Remove element"
msgstr "Remover elemento"

# defaultMessage: Remove link
#: editor/plugins/AdvancedLink/index
#, fuzzy
msgid "Remove link"
msgstr "Remover link"

# defaultMessage: Right
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Right"
msgstr "Direita"

# defaultMessage: Stripe alternate rows with color
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Stripe alternate rows with color"
msgstr "Alternar cores das linhas"

# defaultMessage: Table
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Table"
msgstr "Tabela"

# defaultMessage: Table color inverted
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Table color inverted"
msgstr "Cor da tabela invertida"

# defaultMessage: Top
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Top"
msgstr "Topo"

# defaultMessage: Type text…
#: blocks/Text/DefaultTextBlockEditor blocks/Text/DetachedTextBlockEditor
#, fuzzy
msgid "Type text…"
msgstr "Digite texto…"

# defaultMessage: Visible only in view mode
#: blocks/Table/TableBlockEdit
#, fuzzy
msgid "Visible only in view mode"
msgstr "Visível apenas no modo de visualização"
1 change: 1 addition & 0 deletions packages/volto-slate/news/+update_pt_br.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update Brazilian Portuguese translations. @ericof
4 changes: 4 additions & 0 deletions packages/volto/cypress/tests/core/basic/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ describe('Accessibility Tests', () => {

it('Contact form has not a11y violations', () => {
cy.navigate('/contact-form');
cy.get('#field-name').click().type('input');
cy.get('#field-from').click().type('[email protected]');
cy.get('#field-subject').click().type('input');
cy.get('#field-message').click().type('input');
cy.checkA11y();
});

Expand Down
Loading

0 comments on commit 3affdc2

Please sign in to comment.