diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fda819..4925012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). -### [1.0.0](https://github.com/eea/volto-slate-label/compare/0.6.0...1.0.0) - 22 April 2024 +### [1.0.1](https://github.com/eea/volto-slate-label/compare/1.0.0...1.0.1) - 4 February 2025 + +#### :hammer_and_wrench: Others + +- i18n: make schema work with intl [Valentin Dumitru - [`f5ae54f`](https://github.com/eea/volto-slate-label/commit/f5ae54fc95bb218db12da5466abb0f846318923c)] +## [1.0.0](https://github.com/eea/volto-slate-label/compare/0.6.0...1.0.0) - 22 April 2024 #### :rocket: New Features @@ -13,6 +18,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others +- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`69cdcf2`](https://github.com/eea/volto-slate-label/commit/69cdcf273c2e7ffbc6f0f5d917f88686de735ae5)] ### [0.6.0](https://github.com/eea/volto-slate-label/compare/0.5.9...0.6.0) - 19 February 2024 #### :rocket: New Features @@ -32,17 +38,26 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others - Update version in package.json [David Ichim - [`3f9a38b`](https://github.com/eea/volto-slate-label/commit/3f9a38b4941defa517b856ac0823978aeac8539e)] +- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`fe38ec9`](https://github.com/eea/volto-slate-label/commit/fe38ec94e7856a96c1cf1ee10fdd41f52f3bf6a1)] ### [0.5.9](https://github.com/eea/volto-slate-label/compare/0.5.8...0.5.9) - 18 January 2024 #### :house: Internal changes +- chore: [JENKINS] Refactor automated testing [valentinab25 - [`428cb54`](https://github.com/eea/volto-slate-label/commit/428cb54b660c8e5a974cda7752cbfbb27cd6613e)] #### :hammer_and_wrench: Others +- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`1af52c6`](https://github.com/eea/volto-slate-label/commit/1af52c65d7a4cc0bad42af4aa90684b30ecfe7f2)] +- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`104ad23`](https://github.com/eea/volto-slate-label/commit/104ad23fe3e822e5f5b8a21ffdadf60c241aad59)] +- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`e1c542c`](https://github.com/eea/volto-slate-label/commit/e1c542c0261c2af5423875ad9227600f5c49dc38)] +- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`15c7f19`](https://github.com/eea/volto-slate-label/commit/15c7f198e8ed52e23e9bbd553a871723c022d816)] +- test: [JENKINS] Improve cypress time [valentinab25 - [`58c0846`](https://github.com/eea/volto-slate-label/commit/58c0846d9760317fc031ad5910dcef57d8cf85d7)] +- test: [JENKINS] improve cypress time [valentinab25 - [`5c1dc4d`](https://github.com/eea/volto-slate-label/commit/5c1dc4d6b8bf2d2577458c0005e2fc41961a82a3)] - test: increase timeout [valentinab25 - [`2ca8d7a`](https://github.com/eea/volto-slate-label/commit/2ca8d7a2cb4b37992b16f6e1e1076a7ae48c965d)] - test: generate cypress code coverage [valentinab25 - [`8784584`](https://github.com/eea/volto-slate-label/commit/8784584b8933f310533288f36bf9a292b2433a73)] - test: remove videos [valentinab25 - [`647977c`](https://github.com/eea/volto-slate-label/commit/647977c1f9b35ee511a653470cdb204c33063f92)] - test: improve cypress testing time [valentinab25 - [`9237c03`](https://github.com/eea/volto-slate-label/commit/9237c034f2ae1bc10d43e320b2d9cdcb39347ae9)] +- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`c079112`](https://github.com/eea/volto-slate-label/commit/c0791125167e7bf01e521bf2558d49d039212b33)] ### [0.5.8](https://github.com/eea/volto-slate-label/compare/0.5.7...0.5.8) - 22 October 2023 #### :house: Internal changes @@ -93,27 +108,43 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - test: Fix package.json scripts to use makefile [Alin Voinea - [`872eaf9`](https://github.com/eea/volto-slate-label/commit/872eaf9e16be65890e1ba942935c0a7a47ac2aca)] - i18n: Add en [Alin Voinea - [`12ef506`](https://github.com/eea/volto-slate-label/commit/12ef506c27d8810836968f137d9e6a1711fdf64e)] - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`e9b984b`](https://github.com/eea/volto-slate-label/commit/e9b984b42d3428ab737c02ffd480d2f6de393652)] +- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`c85d929`](https://github.com/eea/volto-slate-label/commit/c85d929a5637eb15bca13b4761b5ac08d8d29d79)] ### [0.5.2](https://github.com/eea/volto-slate-label/compare/0.5.1...0.5.2) - 14 June 2023 ### [0.5.1](https://github.com/eea/volto-slate-label/compare/0.5.0...0.5.1) - 12 June 2023 #### :house: Internal changes +- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`0d122e6`](https://github.com/eea/volto-slate-label/commit/0d122e663e43c46c3fced18727be0acd5a87c404)] #### :hammer_and_wrench: Others - test: jest should look for addons in node_modules Refs #253277 [valentinab25 - [`667fb86`](https://github.com/eea/volto-slate-label/commit/667fb860e064902b6db4efaffd3508217faec5cc)] - test: Fix test config, coverage Refs #253277 [valentinab25 - [`25b23db`](https://github.com/eea/volto-slate-label/commit/25b23dbe1574ef332340593accee6c91157adcaf)] +- Add Sonarqube tag using industry-frontend addons list [EEA Jenkins - [`3f6b74d`](https://github.com/eea/volto-slate-label/commit/3f6b74d04eafec3cf0b46b781623f8b4d136c611)] ### [0.5.0](https://github.com/eea/volto-slate-label/compare/0.4.4...0.5.0) - 27 March 2023 #### :hammer_and_wrench: Others +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`fbf669a`](https://github.com/eea/volto-slate-label/commit/fbf669ab11aab1ae0a5cb056a9f1dcbfef2459e2)] +- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`b8a123b`](https://github.com/eea/volto-slate-label/commit/b8a123bf98267d493ee5be52134719cde00eddee)] +- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`3d7b7d4`](https://github.com/eea/volto-slate-label/commit/3d7b7d4ec275b8572fab5f45fc82dc00854ccede)] +- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`283e9db`](https://github.com/eea/volto-slate-label/commit/283e9dbae39d3113066c3a5da7f3555c344f4a65)] +- Add Sonarqube tag using climate-energy-frontend addons list [EEA Jenkins - [`a47f640`](https://github.com/eea/volto-slate-label/commit/a47f6404717b2162fbb69c3bf2f1be5046397950)] - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`7287269`](https://github.com/eea/volto-slate-label/commit/7287269bc4e718a6b66025e37bea024565bb7306)] +- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`847e792`](https://github.com/eea/volto-slate-label/commit/847e7928331e803e1c7b80aa662cfb21c3b2debb)] +- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`886d07a`](https://github.com/eea/volto-slate-label/commit/886d07a8b396e6b9810c378fbfd2dc8b7e3c9472)] +- yarn 3 [Alin Voinea - [`dad28ed`](https://github.com/eea/volto-slate-label/commit/dad28ed3f8225cda12ea1d8f059fe6b256fe6b5f)] +- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`f7dafe5`](https://github.com/eea/volto-slate-label/commit/f7dafe55c237813269e15a64f5c65bf4d3ea7519)] +- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`d30afde`](https://github.com/eea/volto-slate-label/commit/d30afde1b55457cabdcb51f016223d740ffb5518)] +- Add Sonarqube tag using demo-kitkat-frontend addons list [EEA Jenkins - [`d0a0724`](https://github.com/eea/volto-slate-label/commit/d0a0724848cd9c90f15747dba4ddffbe923b71b8)] +- Add Sonarqube tag using forests-frontend addons list [EEA Jenkins - [`5101f76`](https://github.com/eea/volto-slate-label/commit/5101f762987396651fb56504714a07754a8f76d0)] ### [0.4.4](https://github.com/eea/volto-slate-label/compare/0.4.3...0.4.4) - 16 November 2022 #### :hammer_and_wrench: Others - test(estlint): Fix .project.eslintrc.js [Alin Voinea - [`2744fc0`](https://github.com/eea/volto-slate-label/commit/2744fc024024a9daae33607564e61141b2777c03)] +- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`97bcd60`](https://github.com/eea/volto-slate-label/commit/97bcd60866db1c9f956871e183b98f6d79fbcdc6)] ### [0.4.3](https://github.com/eea/volto-slate-label/compare/0.4.2...0.4.3) - 25 October 2022 ### [0.4.2](https://github.com/eea/volto-slate-label/compare/0.4.1...0.4.2) - 24 October 2022 @@ -142,6 +173,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - test(cypress): Fix volto version [Alin Voinea - [`511487e`](https://github.com/eea/volto-slate-label/commit/511487e39fdf88f2d32cff941c1c4bba19b2a6d6)] - Revert "refactor(volto-slate): use @plone/volto-slate, latest volto compatibility refs #153447 (#6)" [Alin Voinea - [`88d2ee6`](https://github.com/eea/volto-slate-label/commit/88d2ee6390143c89a22fdebc8289dcd135f0e42f)] - Release 0.3.0 [Alin Voinea - [`4f669e5`](https://github.com/eea/volto-slate-label/commit/4f669e538b962ea87a4b3a62a40b6e98c3a9adf2)] +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`438c326`](https://github.com/eea/volto-slate-label/commit/438c3265df1676a63ecdb378592bb2a1d48bf223)] ### [0.2.3](https://github.com/eea/volto-slate-label/compare/0.2.2...0.2.3) - 30 June 2022 ### [0.2.2](https://github.com/eea/volto-slate-label/compare/0.2.1...0.2.2) - 13 April 2022 @@ -152,6 +184,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`1cf44a6`](https://github.com/eea/volto-slate-label/commit/1cf44a6b9c62fadc06d73ea6f787c4720fdd5a7c)] ### [0.2.1](https://github.com/eea/volto-slate-label/compare/0.2.0...0.2.1) - 5 April 2022 #### :house: Documentation changes @@ -185,4 +218,5 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### :hammer_and_wrench: Others +- yarn bootstrap [Alin Voinea - [`a1a0443`](https://github.com/eea/volto-slate-label/commit/a1a0443a38c213fa5a7b980e4ac1237d2d31192e)] - Initial commit [Alin Voinea - [`190dd4a`](https://github.com/eea/volto-slate-label/commit/190dd4ab6ef74a24cfb19af4d6eb6f76c32aca47)] diff --git a/locales/de/LC_MESSAGES/volto.po b/locales/de/LC_MESSAGES/volto.po index 1d653e9..a93e117 100644 --- a/locales/de/LC_MESSAGES/volto.po +++ b/locales/de/LC_MESSAGES/volto.po @@ -11,12 +11,177 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. Default: "Add label" +#: editor/schema +msgid "addLabel" +msgstr "" + +#. Default: "Always show the content label tooltip." +#: editor/schema +msgid "alwaysShowDescription" +msgstr "" + +#. Default: "Always show tooltip" +#: editor/schema +msgid "alwaysShowTitle" +msgstr "" + +#. Default: "Down" +#: editor/schema +msgid "down" +msgstr "" + +#. Default: "Edit label" #: editor/index -# defaultMessage: Edit label -msgid "Edit label" +msgid "editLabel" +msgstr "Label bearbeiten" + +#. Default: "Extra wide" +#: editor/schema +msgid "extraWide" +msgstr "" + +#. Default: "High importance" +#: editor/schema +msgid "highImportance" +msgstr "" + +#. Default: "Highlight" +#: editor/schema +msgid "highlight" +msgstr "" + +#. Default: "Label pointing" +#: editor/schema +msgid "labelPointing" msgstr "" +#. Default: "Choose an orientation or leave the default value (No value)." +#: editor/schema +msgid "labelPointingDescription" +msgstr "" + +#. Default: "Type of label" +#: editor/schema +msgid "labelType" +msgstr "" + +#. Default: "Choose a type or leave the default value (Simple)." +#: editor/schema +msgid "labelTypeDescription" +msgstr "" + +#. Default: "Left" +#: editor/schema +msgid "left" +msgstr "" + +#. Default: "Medium importance" +#: editor/schema +msgid "mediumImportance" +msgstr "" + +#. Default: "Remove label" #: editor/index -# defaultMessage: Remove label -msgid "Remove label" +msgid "removeLabel" +msgstr "Label entfernen" + +#. Default: "Right" +#: editor/schema +msgid "right" +msgstr "" + +#. Default: "Show the content label tooltip on hover." +#: editor/schema +msgid "showOnHoverDescription" +msgstr "" + +#. Default: "Show tooltip on hover" +#: editor/schema +msgid "showOnHoverTitle" +msgstr "" + +#. Default: "Simple" +#: editor/schema +msgid "simple" +msgstr "" + +#. Default: "Tooltip" +#: editor/schema +msgid "tooltip" +msgstr "" + +#. Default: "Tooltip content" +#: editor/schema +msgid "tooltipContent" +msgstr "Tooltip-Inhalt" + +#. Default: "Enter the text you want to display in the tooltip." +#: editor/schema +msgid "tooltipContentDescription" +msgstr "Geben Sie den Text ein der im Tooltip angezeigt werden soll." + +#. Default: "Bottom center" +#: editor/schema +msgid "tooltipPointingBottomCenter" +msgstr "" + +#. Default: "Bottom left" +#: editor/schema +msgid "tooltipPointingBottomLeft" +msgstr "" + +#. Default: "Bottom right" +#: editor/schema +msgid "tooltipPointingBottomRight" +msgstr "" + +#. Default: "Left center" +#: editor/schema +msgid "tooltipPointingLeftCenter" +msgstr "" + +#. Default: "Right center" +#: editor/schema +msgid "tooltipPointingRightCenter" +msgstr "" + +#. Default: "Tooltip position" +#: editor/schema +msgid "tooltipPointingTitle" +msgstr "" + +#. Default: "Top center" +#: editor/schema +msgid "tooltipPointingTopCenter" +msgstr "" + +#. Default: "Top left" +#: editor/schema +msgid "tooltipPointingTopLeft" +msgstr "" + +#. Default: "Top right" +#: editor/schema +msgid "tooltipPointingTopRight" +msgstr "" + +#. Default: "Tooltip size" +#: editor/schema +msgid "tooltipSizeTitle" +msgstr "" + +#. Default: "Tooltip type" +#: editor/schema +msgid "tooltipTypeTitle" +msgstr "" + +#. Default: "Up" +#: editor/schema +msgid "up" +msgstr "" + +#. Default: "Wide" +#: editor/schema +msgid "wide" msgstr "" diff --git a/locales/en/LC_MESSAGES/volto.po b/locales/en/LC_MESSAGES/volto.po index 1d653e9..eda1c59 100644 --- a/locales/en/LC_MESSAGES/volto.po +++ b/locales/en/LC_MESSAGES/volto.po @@ -11,12 +11,177 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. Default: "Add label" +#: editor/schema +msgid "addLabel" +msgstr "" + +#. Default: "Always show the content label tooltip." +#: editor/schema +msgid "alwaysShowDescription" +msgstr "" + +#. Default: "Always show tooltip" +#: editor/schema +msgid "alwaysShowTitle" +msgstr "" + +#. Default: "Down" +#: editor/schema +msgid "down" +msgstr "" + +#. Default: "Edit label" #: editor/index -# defaultMessage: Edit label -msgid "Edit label" +msgid "editLabel" msgstr "" +#. Default: "Extra wide" +#: editor/schema +msgid "extraWide" +msgstr "" + +#. Default: "High importance" +#: editor/schema +msgid "highImportance" +msgstr "" + +#. Default: "Highlight" +#: editor/schema +msgid "highlight" +msgstr "" + +#. Default: "Label pointing" +#: editor/schema +msgid "labelPointing" +msgstr "" + +#. Default: "Choose an orientation or leave the default value (No value)." +#: editor/schema +msgid "labelPointingDescription" +msgstr "" + +#. Default: "Type of label" +#: editor/schema +msgid "labelType" +msgstr "" + +#. Default: "Choose a type or leave the default value (Simple)." +#: editor/schema +msgid "labelTypeDescription" +msgstr "" + +#. Default: "Left" +#: editor/schema +msgid "left" +msgstr "" + +#. Default: "Medium importance" +#: editor/schema +msgid "mediumImportance" +msgstr "" + +#. Default: "Remove label" #: editor/index -# defaultMessage: Remove label -msgid "Remove label" +msgid "removeLabel" +msgstr "" + +#. Default: "Right" +#: editor/schema +msgid "right" +msgstr "" + +#. Default: "Show the content label tooltip on hover." +#: editor/schema +msgid "showOnHoverDescription" +msgstr "" + +#. Default: "Show tooltip on hover" +#: editor/schema +msgid "showOnHoverTitle" +msgstr "" + +#. Default: "Simple" +#: editor/schema +msgid "simple" +msgstr "" + +#. Default: "Tooltip" +#: editor/schema +msgid "tooltip" +msgstr "" + +#. Default: "Tooltip content" +#: editor/schema +msgid "tooltipContent" +msgstr "" + +#. Default: "Enter the text you want to display in the tooltip." +#: editor/schema +msgid "tooltipContentDescription" +msgstr "" + +#. Default: "Bottom center" +#: editor/schema +msgid "tooltipPointingBottomCenter" +msgstr "" + +#. Default: "Bottom left" +#: editor/schema +msgid "tooltipPointingBottomLeft" +msgstr "" + +#. Default: "Bottom right" +#: editor/schema +msgid "tooltipPointingBottomRight" +msgstr "" + +#. Default: "Left center" +#: editor/schema +msgid "tooltipPointingLeftCenter" +msgstr "" + +#. Default: "Right center" +#: editor/schema +msgid "tooltipPointingRightCenter" +msgstr "" + +#. Default: "Tooltip position" +#: editor/schema +msgid "tooltipPointingTitle" +msgstr "" + +#. Default: "Top center" +#: editor/schema +msgid "tooltipPointingTopCenter" +msgstr "" + +#. Default: "Top left" +#: editor/schema +msgid "tooltipPointingTopLeft" +msgstr "" + +#. Default: "Top right" +#: editor/schema +msgid "tooltipPointingTopRight" +msgstr "" + +#. Default: "Tooltip size" +#: editor/schema +msgid "tooltipSizeTitle" +msgstr "" + +#. Default: "Tooltip type" +#: editor/schema +msgid "tooltipTypeTitle" +msgstr "" + +#. Default: "Up" +#: editor/schema +msgid "up" +msgstr "" + +#. Default: "Wide" +#: editor/schema +msgid "wide" msgstr "" diff --git a/locales/it/LC_MESSAGES/volto.po b/locales/it/LC_MESSAGES/volto.po index 1d653e9..eda1c59 100644 --- a/locales/it/LC_MESSAGES/volto.po +++ b/locales/it/LC_MESSAGES/volto.po @@ -11,12 +11,177 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. Default: "Add label" +#: editor/schema +msgid "addLabel" +msgstr "" + +#. Default: "Always show the content label tooltip." +#: editor/schema +msgid "alwaysShowDescription" +msgstr "" + +#. Default: "Always show tooltip" +#: editor/schema +msgid "alwaysShowTitle" +msgstr "" + +#. Default: "Down" +#: editor/schema +msgid "down" +msgstr "" + +#. Default: "Edit label" #: editor/index -# defaultMessage: Edit label -msgid "Edit label" +msgid "editLabel" msgstr "" +#. Default: "Extra wide" +#: editor/schema +msgid "extraWide" +msgstr "" + +#. Default: "High importance" +#: editor/schema +msgid "highImportance" +msgstr "" + +#. Default: "Highlight" +#: editor/schema +msgid "highlight" +msgstr "" + +#. Default: "Label pointing" +#: editor/schema +msgid "labelPointing" +msgstr "" + +#. Default: "Choose an orientation or leave the default value (No value)." +#: editor/schema +msgid "labelPointingDescription" +msgstr "" + +#. Default: "Type of label" +#: editor/schema +msgid "labelType" +msgstr "" + +#. Default: "Choose a type or leave the default value (Simple)." +#: editor/schema +msgid "labelTypeDescription" +msgstr "" + +#. Default: "Left" +#: editor/schema +msgid "left" +msgstr "" + +#. Default: "Medium importance" +#: editor/schema +msgid "mediumImportance" +msgstr "" + +#. Default: "Remove label" #: editor/index -# defaultMessage: Remove label -msgid "Remove label" +msgid "removeLabel" +msgstr "" + +#. Default: "Right" +#: editor/schema +msgid "right" +msgstr "" + +#. Default: "Show the content label tooltip on hover." +#: editor/schema +msgid "showOnHoverDescription" +msgstr "" + +#. Default: "Show tooltip on hover" +#: editor/schema +msgid "showOnHoverTitle" +msgstr "" + +#. Default: "Simple" +#: editor/schema +msgid "simple" +msgstr "" + +#. Default: "Tooltip" +#: editor/schema +msgid "tooltip" +msgstr "" + +#. Default: "Tooltip content" +#: editor/schema +msgid "tooltipContent" +msgstr "" + +#. Default: "Enter the text you want to display in the tooltip." +#: editor/schema +msgid "tooltipContentDescription" +msgstr "" + +#. Default: "Bottom center" +#: editor/schema +msgid "tooltipPointingBottomCenter" +msgstr "" + +#. Default: "Bottom left" +#: editor/schema +msgid "tooltipPointingBottomLeft" +msgstr "" + +#. Default: "Bottom right" +#: editor/schema +msgid "tooltipPointingBottomRight" +msgstr "" + +#. Default: "Left center" +#: editor/schema +msgid "tooltipPointingLeftCenter" +msgstr "" + +#. Default: "Right center" +#: editor/schema +msgid "tooltipPointingRightCenter" +msgstr "" + +#. Default: "Tooltip position" +#: editor/schema +msgid "tooltipPointingTitle" +msgstr "" + +#. Default: "Top center" +#: editor/schema +msgid "tooltipPointingTopCenter" +msgstr "" + +#. Default: "Top left" +#: editor/schema +msgid "tooltipPointingTopLeft" +msgstr "" + +#. Default: "Top right" +#: editor/schema +msgid "tooltipPointingTopRight" +msgstr "" + +#. Default: "Tooltip size" +#: editor/schema +msgid "tooltipSizeTitle" +msgstr "" + +#. Default: "Tooltip type" +#: editor/schema +msgid "tooltipTypeTitle" +msgstr "" + +#. Default: "Up" +#: editor/schema +msgid "up" +msgstr "" + +#. Default: "Wide" +#: editor/schema +msgid "wide" msgstr "" diff --git a/locales/ro/LC_MESSAGES/volto.po b/locales/ro/LC_MESSAGES/volto.po index 1d653e9..eda1c59 100644 --- a/locales/ro/LC_MESSAGES/volto.po +++ b/locales/ro/LC_MESSAGES/volto.po @@ -11,12 +11,177 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. Default: "Add label" +#: editor/schema +msgid "addLabel" +msgstr "" + +#. Default: "Always show the content label tooltip." +#: editor/schema +msgid "alwaysShowDescription" +msgstr "" + +#. Default: "Always show tooltip" +#: editor/schema +msgid "alwaysShowTitle" +msgstr "" + +#. Default: "Down" +#: editor/schema +msgid "down" +msgstr "" + +#. Default: "Edit label" #: editor/index -# defaultMessage: Edit label -msgid "Edit label" +msgid "editLabel" msgstr "" +#. Default: "Extra wide" +#: editor/schema +msgid "extraWide" +msgstr "" + +#. Default: "High importance" +#: editor/schema +msgid "highImportance" +msgstr "" + +#. Default: "Highlight" +#: editor/schema +msgid "highlight" +msgstr "" + +#. Default: "Label pointing" +#: editor/schema +msgid "labelPointing" +msgstr "" + +#. Default: "Choose an orientation or leave the default value (No value)." +#: editor/schema +msgid "labelPointingDescription" +msgstr "" + +#. Default: "Type of label" +#: editor/schema +msgid "labelType" +msgstr "" + +#. Default: "Choose a type or leave the default value (Simple)." +#: editor/schema +msgid "labelTypeDescription" +msgstr "" + +#. Default: "Left" +#: editor/schema +msgid "left" +msgstr "" + +#. Default: "Medium importance" +#: editor/schema +msgid "mediumImportance" +msgstr "" + +#. Default: "Remove label" #: editor/index -# defaultMessage: Remove label -msgid "Remove label" +msgid "removeLabel" +msgstr "" + +#. Default: "Right" +#: editor/schema +msgid "right" +msgstr "" + +#. Default: "Show the content label tooltip on hover." +#: editor/schema +msgid "showOnHoverDescription" +msgstr "" + +#. Default: "Show tooltip on hover" +#: editor/schema +msgid "showOnHoverTitle" +msgstr "" + +#. Default: "Simple" +#: editor/schema +msgid "simple" +msgstr "" + +#. Default: "Tooltip" +#: editor/schema +msgid "tooltip" +msgstr "" + +#. Default: "Tooltip content" +#: editor/schema +msgid "tooltipContent" +msgstr "" + +#. Default: "Enter the text you want to display in the tooltip." +#: editor/schema +msgid "tooltipContentDescription" +msgstr "" + +#. Default: "Bottom center" +#: editor/schema +msgid "tooltipPointingBottomCenter" +msgstr "" + +#. Default: "Bottom left" +#: editor/schema +msgid "tooltipPointingBottomLeft" +msgstr "" + +#. Default: "Bottom right" +#: editor/schema +msgid "tooltipPointingBottomRight" +msgstr "" + +#. Default: "Left center" +#: editor/schema +msgid "tooltipPointingLeftCenter" +msgstr "" + +#. Default: "Right center" +#: editor/schema +msgid "tooltipPointingRightCenter" +msgstr "" + +#. Default: "Tooltip position" +#: editor/schema +msgid "tooltipPointingTitle" +msgstr "" + +#. Default: "Top center" +#: editor/schema +msgid "tooltipPointingTopCenter" +msgstr "" + +#. Default: "Top left" +#: editor/schema +msgid "tooltipPointingTopLeft" +msgstr "" + +#. Default: "Top right" +#: editor/schema +msgid "tooltipPointingTopRight" +msgstr "" + +#. Default: "Tooltip size" +#: editor/schema +msgid "tooltipSizeTitle" +msgstr "" + +#. Default: "Tooltip type" +#: editor/schema +msgid "tooltipTypeTitle" +msgstr "" + +#. Default: "Up" +#: editor/schema +msgid "up" +msgstr "" + +#. Default: "Wide" +#: editor/schema +msgid "wide" msgstr "" diff --git a/locales/volto.pot b/locales/volto.pot index de5fe22..40412ef 100644 --- a/locales/volto.pot +++ b/locales/volto.pot @@ -1,24 +1,189 @@ msgid "" msgstr "" "Project-Id-Version: Plone\n" -"POT-Creation-Date: 2023-08-29T17:14:51.219Z\n" +"POT-Creation-Date: 2025-01-31T16:15:13.353Z\n" "Last-Translator: Plone i18n \n" "Language-Team: Plone i18n \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: "Add label" +#: editor/schema +msgid "addLabel" +msgstr "" + +#. Default: "Always show the content label tooltip." +#: editor/schema +msgid "alwaysShowDescription" +msgstr "" + +#. Default: "Always show tooltip" +#: editor/schema +msgid "alwaysShowTitle" +msgstr "" + +#. Default: "Down" +#: editor/schema +msgid "down" +msgstr "" + +#. Default: "Edit label" #: editor/index -# defaultMessage: Edit label -msgid "Edit label" +msgid "editLabel" +msgstr "" + +#. Default: "Extra wide" +#: editor/schema +msgid "extraWide" +msgstr "" + +#. Default: "High importance" +#: editor/schema +msgid "highImportance" +msgstr "" + +#. Default: "Highlight" +#: editor/schema +msgid "highlight" +msgstr "" + +#. Default: "Label pointing" +#: editor/schema +msgid "labelPointing" +msgstr "" + +#. Default: "Choose an orientation or leave the default value (No value)." +#: editor/schema +msgid "labelPointingDescription" +msgstr "" + +#. Default: "Type of label" +#: editor/schema +msgid "labelType" +msgstr "" + +#. Default: "Choose a type or leave the default value (Simple)." +#: editor/schema +msgid "labelTypeDescription" +msgstr "" + +#. Default: "Left" +#: editor/schema +msgid "left" msgstr "" +#. Default: "Medium importance" +#: editor/schema +msgid "mediumImportance" +msgstr "" + +#. Default: "Remove label" #: editor/index -# defaultMessage: Remove label -msgid "Remove label" +msgid "removeLabel" +msgstr "" + +#. Default: "Right" +#: editor/schema +msgid "right" +msgstr "" + +#. Default: "Show the content label tooltip on hover." +#: editor/schema +msgid "showOnHoverDescription" +msgstr "" + +#. Default: "Show tooltip on hover" +#: editor/schema +msgid "showOnHoverTitle" +msgstr "" + +#. Default: "Simple" +#: editor/schema +msgid "simple" +msgstr "" + +#. Default: "Tooltip" +#: editor/schema +msgid "tooltip" +msgstr "" + +#. Default: "Tooltip content" +#: editor/schema +msgid "tooltipContent" +msgstr "" + +#. Default: "Enter the text you want to display in the tooltip." +#: editor/schema +msgid "tooltipContentDescription" +msgstr "" + +#. Default: "Bottom center" +#: editor/schema +msgid "tooltipPointingBottomCenter" +msgstr "" + +#. Default: "Bottom left" +#: editor/schema +msgid "tooltipPointingBottomLeft" +msgstr "" + +#. Default: "Bottom right" +#: editor/schema +msgid "tooltipPointingBottomRight" +msgstr "" + +#. Default: "Left center" +#: editor/schema +msgid "tooltipPointingLeftCenter" +msgstr "" + +#. Default: "Right center" +#: editor/schema +msgid "tooltipPointingRightCenter" +msgstr "" + +#. Default: "Tooltip position" +#: editor/schema +msgid "tooltipPointingTitle" +msgstr "" + +#. Default: "Top center" +#: editor/schema +msgid "tooltipPointingTopCenter" +msgstr "" + +#. Default: "Top left" +#: editor/schema +msgid "tooltipPointingTopLeft" +msgstr "" + +#. Default: "Top right" +#: editor/schema +msgid "tooltipPointingTopRight" +msgstr "" + +#. Default: "Tooltip size" +#: editor/schema +msgid "tooltipSizeTitle" +msgstr "" + +#. Default: "Tooltip type" +#: editor/schema +msgid "tooltipTypeTitle" +msgstr "" + +#. Default: "Up" +#: editor/schema +msgid "up" +msgstr "" + +#. Default: "Wide" +#: editor/schema +msgid "wide" msgstr "" diff --git a/package.json b/package.json index 9f86d61..433f218 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-slate-label", - "version": "1.0.0", + "version": "1.0.1", "description": "@eeacms/volto-slate-label: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/editor/index.js b/src/editor/index.js index 79bb4af..123ab06 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -1,5 +1,5 @@ import commentSVG from '@plone/volto/icons/comment.svg'; -import { defineMessages } from 'react-intl'; // , defineMessages +import { defineMessages, useIntl } from 'react-intl'; import { makeInlineElementPlugin } from '@plone/volto-slate/elementEditor'; @@ -12,15 +12,20 @@ import './styles.less'; const messages = defineMessages({ edit: { - id: 'Edit label', + id: 'editLabel', defaultMessage: 'Edit label', }, delete: { - id: 'Remove label', + id: 'removeLabel', defaultMessage: 'Remove label', }, }); +const SchemaProvider = ({ editSchema, children }) => { + const intl = useIntl(); + return children(editSchema({ intl })); +}; + export default function install(config) { const opts = { title: 'Label', @@ -28,6 +33,7 @@ export default function install(config) { elementType: LABEL, element: LabelElement, isInlineElement: true, + schemaProvider: SchemaProvider, editSchema: LabelEditorSchema, extensions: [withLabel, withBeforeInsertFragment], hasValue: (formData) => !!formData, diff --git a/src/editor/schema.js b/src/editor/schema.js index 471adae..e3df0d8 100644 --- a/src/editor/schema.js +++ b/src/editor/schema.js @@ -1,104 +1,258 @@ -export const LabelEditorSchema = { - title: 'Add label', - fieldsets: [ - { - id: 'default', - title: 'Default', - fields: ['label_type', 'label_pointing'], - }, - { - id: 'tooltip', - title: 'Tooltip', - fields: [ - 'tooltip_content', - 'tooltip_pointing', - 'tooltip_type', - 'tooltip_size', - 'always_show', - 'show_on_hover', - ], - }, - ], - properties: { - label_type: { - title: 'Type of label', - type: 'string', - factory: 'Choice', - choices: [ - ['simple', 'Simple'], - ['medium', 'Medium importance'], - ['high', 'High importance'], - ['highlight', 'Highlight'], - ], - default: 'simple', - description: 'Choose a type or leave the default value (Simple).', - required: true, - noValueOption: false, - }, - label_pointing: { - title: 'Label pointing', - type: 'string', - factory: 'Choice', - choices: [ - ['pointing', 'Up'], - ['right pointing', 'Right'], - ['left pointing', 'Left'], - ['pointing below', 'Down'], - ], - description: - 'Choose an orientation or leave the default value (No value).', - }, - tooltip_content: { - title: 'Tooltip content', - widget: 'slate', - description: 'Enter the text you want to display in the tooltip.', - }, - tooltip_pointing: { - title: 'Tooltip position', - type: 'string', - factory: 'Choice', - choices: [ - ['top center', 'top center'], - ['top left', 'top left'], - ['top right', 'top right'], - ['bottom center', 'bottom center'], - ['bottom left', 'bottom left'], - ['bottom right', 'bottom right'], - ['right center', 'right center'], - ['left center', 'left center'], - ], - }, - tooltip_type: { - title: 'Tooltip type', - type: 'string', - factory: 'Choice', - choices: [ - ['medium', 'Medium importance'], - ['high', 'High importance'], - ['highlight', 'Highlight'], - ], - default: '', - }, - tooltip_size: { - title: 'Tooltip size', - type: 'string', - factory: 'Choice', - choices: [ - ['wide', 'Wide'], - ['extra', 'Extra wide'], - ], - default: '', - }, - always_show: { - title: 'Always show tooltip', - description: 'Always show the content label tooltip.', - type: 'boolean', - }, - show_on_hover: { - title: 'Show tooltip on hover', - description: 'Show the content label tooltip on hover.', - type: 'boolean', - }, +import { defineMessages } from 'react-intl'; + +const messages = defineMessages({ + addLabel: { + id: 'addLabel', + defaultMessage: 'Add label', + }, + labelType: { + id: 'labelType', + defaultMessage: 'Type of label', + }, + tooltip: { + id: 'tooltip', + defaultMessage: 'Tooltip', + }, + tooltipContent: { + id: 'tooltipContent', + defaultMessage: 'Tooltip content', + }, + tooltipContentDescription: { + id: 'tooltipContentDescription', + defaultMessage: 'Enter the text you want to display in the tooltip.', + }, + simple: { + id: 'simple', + defaultMessage: 'Simple', + }, + mediumImportance: { + id: 'mediumImportance', + defaultMessage: 'Medium importance', + }, + highImportance: { + id: 'highImportance', + defaultMessage: 'High importance', + }, + highlight: { + id: 'highlight', + defaultMessage: 'Highlight', + }, + labelTypeDescription: { + id: 'labelTypeDescription', + defaultMessage: 'Choose a type or leave the default value (Simple).', + }, + labelPointing: { + id: 'labelPointing', + defaultMessage: 'Label pointing', + }, + labelPointingDescription: { + id: 'labelPointingDescription', + defaultMessage: + 'Choose an orientation or leave the default value (No value).', + }, + up: { + id: 'up', + defaultMessage: 'Up', }, - required: [], + right: { + id: 'right', + defaultMessage: 'Right', + }, + left: { + id: 'left', + defaultMessage: 'Left', + }, + down: { + id: 'down', + defaultMessage: 'Down', + }, + tooltipPointingTitle: { + id: 'tooltipPointingTitle', + defaultMessage: 'Tooltip position', + }, + tooltipPointingTopCenter: { + id: 'tooltipPointingTopCenter', + defaultMessage: 'Top center', + }, + tooltipPointingTopLeft: { + id: 'tooltipPointingTopLeft', + defaultMessage: 'Top left', + }, + tooltipPointingTopRight: { + id: 'tooltipPointingTopRight', + defaultMessage: 'Top right', + }, + tooltipPointingBottomCenter: { + id: 'tooltipPointingBottomCenter', + defaultMessage: 'Bottom center', + }, + tooltipPointingBottomLeft: { + id: 'tooltipPointingBottomLeft', + defaultMessage: 'Bottom left', + }, + tooltipPointingBottomRight: { + id: 'tooltipPointingBottomRight', + defaultMessage: 'Bottom right', + }, + tooltipPointingRightCenter: { + id: 'tooltipPointingRightCenter', + defaultMessage: 'Right center', + }, + tooltipPointingLeftCenter: { + id: 'tooltipPointingLeftCenter', + defaultMessage: 'Left center', + }, + tooltipTypeTitle: { + id: 'tooltipTypeTitle', + defaultMessage: 'Tooltip type', + }, + tooltipSizeTitle: { + id: 'tooltipSizeTitle', + defaultMessage: 'Tooltip size', + }, + wide: { + id: 'wide', + defaultMessage: 'Wide', + }, + extraWide: { + id: 'extraWide', + defaultMessage: 'Extra wide', + }, + alwaysShowTitle: { + id: 'alwaysShowTitle', + defaultMessage: 'Always show tooltip', + }, + alwaysShowDescription: { + id: 'alwaysShowDescription', + defaultMessage: 'Always show the content label tooltip.', + }, + showOnHoverTitle: { + id: 'showOnHoverTitle', + defaultMessage: 'Show tooltip on hover', + }, + showOnHoverDescription: { + id: 'showOnHoverDescription', + defaultMessage: 'Show the content label tooltip on hover.', + }, +}); + +export const LabelEditorSchema = ({ intl }) => { + return { + title: intl.formatMessage(messages.addLabel), + fieldsets: [ + { + id: 'default', + title: 'Default', + fields: ['label_type', 'label_pointing'], + }, + { + id: 'tooltip', + title: intl.formatMessage(messages.tooltip), + fields: [ + 'tooltip_content', + 'tooltip_pointing', + 'tooltip_type', + 'tooltip_size', + 'always_show', + 'show_on_hover', + ], + }, + ], + properties: { + label_type: { + title: intl.formatMessage(messages.labelType), + type: 'string', + factory: 'Choice', + choices: [ + ['simple', intl.formatMessage(messages.simple)], + ['medium', intl.formatMessage(messages.mediumImportance)], + ['high', intl.formatMessage(messages.highImportance)], + ['highlight', intl.formatMessage(messages.highlight)], + ], + default: 'simple', + description: intl.formatMessage(messages.labelTypeDescription), + required: true, + noValueOption: false, + }, + label_pointing: { + title: intl.formatMessage(messages.labelPointing), + type: 'string', + factory: 'Choice', + choices: [ + ['pointing', intl.formatMessage(messages.up)], + ['right pointing', intl.formatMessage(messages.right)], + ['left pointing', intl.formatMessage(messages.left)], + ['pointing below', intl.formatMessage(messages.down)], + ], + description: intl.formatMessage(messages.labelPointingDescription), + }, + tooltip_content: { + title: intl.formatMessage(messages.tooltipContent), + widget: 'slate', + description: intl.formatMessage(messages.tooltipContentDescription), + }, + tooltip_pointing: { + title: intl.formatMessage(messages.tooltipPointingTitle), + type: 'string', + factory: 'Choice', + choices: [ + ['top center', intl.formatMessage(messages.tooltipPointingTopCenter)], + ['top left', intl.formatMessage(messages.tooltipPointingTopLeft)], + ['top right', intl.formatMessage(messages.tooltipPointingTopRight)], + [ + 'bottom center', + intl.formatMessage(messages.tooltipPointingBottomCenter), + ], + [ + 'bottom left', + intl.formatMessage(messages.tooltipPointingBottomLeft), + ], + [ + 'bottom right', + intl.formatMessage(messages.tooltipPointingBottomRight), + ], + [ + 'right center', + intl.formatMessage(messages.tooltipPointingRightCenter), + ], + [ + 'left center', + intl.formatMessage(messages.tooltipPointingLeftCenter), + ], + ], + }, + tooltip_type: { + title: intl.formatMessage(messages.tooltipTypeTitle), + type: 'string', + factory: 'Choice', + choices: [ + ['medium', intl.formatMessage(messages.mediumImportance)], + ['high', intl.formatMessage(messages.highImportance)], + ['highlight', intl.formatMessage(messages.highlight)], + ], + default: '', + }, + tooltip_size: { + title: intl.formatMessage(messages.tooltipSizeTitle), + type: 'string', + factory: 'Choice', + choices: [ + ['wide', intl.formatMessage(messages.wide)], + ['extra', intl.formatMessage(messages.extraWide)], + ], + default: '', + }, + always_show: { + title: intl.formatMessage(messages.alwaysShowTitle), + description: intl.formatMessage(messages.alwaysShowDescription), + type: 'boolean', + }, + show_on_hover: { + title: intl.formatMessage(messages.showOnHoverTitle), + description: intl.formatMessage(messages.showOnHoverDescription), + type: 'boolean', + }, + }, + required: [], + }; };