Skip to content

Commit

Permalink
chore: updated readme and locales
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraBianchi committed Nov 11, 2024
1 parent a5a20cf commit 5d44cd3
Show file tree
Hide file tree
Showing 8 changed files with 8,555 additions and 5 deletions.
783 changes: 783 additions & 0 deletions .yarn/releases/yarn-3.2.3.cjs

Large diffs are not rendered by default.

34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
# volto-form-counter

## Introduction
## Description

Extra addon for [volto-form-block](https://github.com/collective/volto-form-block),
It adds a widget to show a progressive number of requests made by users on forms and there is a reset button to clear the number of counter.

It's required [collective.formsupport.counter](https://github.com/collective/collective.formsupport.counter)

Install with

```bash
yarn add volto-form-counter
```

## Features

Widget in the sidebar

<img alt="Form counter" src="./docs/counter_widget.png" width="400" />

Error if reset fails

<img alt="Form counter error" src="./docs/counter_widget_error.png" width="400" />

Csv export if counter is active

<img alt="Form counter csv" src="./docs/counter_widget_csv.png" width="400" />


## Attention!!

For now the widget works correctly only if there is only one form on the page.
Issue open [here](https://github.com/collective/volto-form-block/issues/121) on the form block.


## Development

Expand Down
Binary file added docs/counter_widget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/counter_widget_csv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/counter_widget_error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 27 additions & 2 deletions locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,14 +1,39 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2021-01-29T12:34:47.097Z\n"
"POT-Creation-Date: 2024-11-11T16:21:10.674Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8\n"
"Domain: volto\n"

#. Default: "Attiva un contatore su questa form"
#: index
msgid "counter_widget_check"
msgstr ""

#. Default: "Se attivo verrà assegnato un numero identificativo per ogni richiesta effettuata dal form."
#: index
msgid "counter_widget_check_description"
msgstr ""

#. Default: "Siamo spiacenti, il contatore non è stato correttamente azzerato! Riprovare più tardi."
#: components/Widgets/CounterWidget/CounterWidget
msgid "counter_widget_counter_error"
msgstr ""

#. Default: "Numero di richieste"
#: components/Widgets/CounterWidget/CounterWidget
msgid "counter_widget_counter_title"
msgstr ""

#. Default: "Azzera il contatore"
#: components/Widgets/CounterWidget/CounterWidget
msgid "counter_widget_reset_label"
msgstr ""
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"release-rc": "release-it --preRelease=rc"
},
"devDependencies": {
"@plone/scripts": "^3.5.0",
"@babel/eslint-parser": "7.23.10",
"@plone/scripts": "^3.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -43,6 +43,6 @@
"stylelint-prettier": "5.0.0"
},
"peerDependencies": {
"@plone/volto": "^18.0.0"
"@plone/volto": "^17.0.0"
}
}
Loading

0 comments on commit 5d44cd3

Please sign in to comment.