@eeacms/volto-cca-policy 0.1.32 → 0.1.34

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.md CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ ### [0.1.34](https://github.com/eea/volto-cca-policy/compare/0.1.33...0.1.34) - 4 August 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Refs #255577 - Move image cards block to site group, move searchlib back to common. [GhitaB - [`e7d7e56`](https://github.com/eea/volto-cca-policy/commit/e7d7e561cc3eec0f31b2476aa05ec5ac61b816e7)]
12
+ ### [0.1.33](https://github.com/eea/volto-cca-policy/compare/0.1.32...0.1.33) - 1 August 2023
13
+
14
+ #### :house: Documentation changes
15
+
16
+ - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`c7b3e13`](https://github.com/eea/volto-cca-policy/commit/c7b3e137ec24dc625aef20a898857bca1e1fed9c)]
17
+
18
+ #### :hammer_and_wrench: Others
19
+
20
+ - Refs #255577 - Move more blocks to Site group. [GhitaB - [`ee35f9e`](https://github.com/eea/volto-cca-policy/commit/ee35f9e0bc930ff52a3dd1f578cc6565d2a64d34)]
21
+ - Refs #255577 - Move Video block to Site group. [GhitaB - [`97fc63b`](https://github.com/eea/volto-cca-policy/commit/97fc63b4fb2db938332e2af786fe3e1d20ad4d65)]
7
22
  ### [0.1.32](https://github.com/eea/volto-cca-policy/compare/0.1.31...0.1.32) - 28 July 2023
8
23
 
9
24
  #### :hammer_and_wrench: Others
package/DEVELOP.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Develop
4
4
 
5
+ 1. Make sure you have `docker` and `docker compose` installed and running on your machine:
6
+
7
+ ```Bash
8
+ git clone https://github.com/eea/volto-cca-policy.git
9
+ cd volto-cca-policy
10
+ git checkout -b bugfix-123456 develop
11
+ make
12
+ make start
13
+ ```
14
+
15
+ 1. Wait for `Volto started at 0.0.0.0:3000` meesage
16
+
17
+ 1. Go to http://localhost:3000
18
+
19
+ 1. Happy hacking!
20
+
21
+ ```Bash
22
+ cd src/addons/volto-cca-policy/
23
+ ```
24
+
25
+ ### Or add @eeacms/volto-cca-policy to your Volto project
26
+
5
27
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
6
28
 
7
29
  1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
@@ -50,3 +72,37 @@ Before starting make sure your development environment is properly set. See [Vol
50
72
 
51
73
  cd src/addons/volto-cca-policy/
52
74
  s/volto-addon-template/
75
+
76
+ ## Cypress
77
+
78
+ To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
79
+
80
+ You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
81
+ project where you added `volto-cca-policy` to `mrs.developer.json`
82
+
83
+ Go to:
84
+
85
+ ```BASH
86
+ cd src/addons/volto-cca-policy/
87
+ ```
88
+
89
+ Start:
90
+
91
+ ```Bash
92
+ make
93
+ make start
94
+ ```
95
+
96
+ This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-cca-policy` block installed.
97
+
98
+ Open Cypress Interface:
99
+
100
+ ```Bash
101
+ make cypress-open
102
+ ```
103
+
104
+ Or run it:
105
+
106
+ ```Bash
107
+ make cypress-run
108
+ ```
package/README.md CHANGED
@@ -23,10 +23,23 @@ Demo GIF
23
23
 
24
24
  ## Getting started
25
25
 
26
+ ### Try volto-cca-policy with Docker
27
+
28
+ git clone https://github.com/eea/volto-cca-policy.git
29
+ cd volto-cca-policy
30
+ make
31
+ make start
32
+
33
+ Go to http://localhost:3000
34
+
26
35
  ### Add volto-cca-policy to your Volto project
27
36
 
28
37
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
29
38
 
39
+ ```Bash
40
+ docker compose up backend
41
+ ```
42
+
30
43
  1. Start Volto frontend
31
44
 
32
45
  * If you already have a volto project, just update `package.json`:
@@ -0,0 +1,28 @@
1
+ version: "3"
2
+ services:
3
+ backend:
4
+ image: plone/plone-backend:${PLONE_VERSION:-6}
5
+ ports:
6
+ - "8080:8080"
7
+ environment:
8
+ SITE: "Plone"
9
+
10
+ frontend:
11
+ build:
12
+ context: ./
13
+ dockerfile: ./Dockerfile
14
+ args:
15
+ ADDON_NAME: "${ADDON_NAME}"
16
+ ADDON_PATH: "${ADDON_PATH}"
17
+ VOLTO_VERSION: ${VOLTO_VERSION:-16}
18
+ ports:
19
+ - "3000:3000"
20
+ - "3001:3001"
21
+ depends_on:
22
+ - backend
23
+ volumes:
24
+ - ./:/app/src/addons/${ADDON_PATH}
25
+ environment:
26
+ RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
27
+ RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
28
+ HOST: "0.0.0.0"
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
package/locales/volto.pot CHANGED
@@ -0,0 +1,16 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Plone\n"
4
+ "POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
5
+ "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
+ "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "Language-Code: en\n"
12
+ "Language-Name: English\n"
13
+ "Preferred-Encodings: utf-8\n"
14
+ "Domain: volto\n"
15
+
16
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -164,6 +164,21 @@ const applyConfig = (config) => {
164
164
  config.blocks.blocksConfig.video.restricted = false;
165
165
  }
166
166
 
167
+ // Move blocks to Site group
168
+ const move_to_site = [
169
+ 'countryFlag',
170
+ 'imagecards',
171
+ 'layoutSettings',
172
+ 'maps',
173
+ 'video',
174
+ ];
175
+
176
+ for (let block_id of move_to_site) {
177
+ if (config.blocks.blocksConfig[block_id]) {
178
+ config.blocks.blocksConfig[block_id].group = 'site';
179
+ }
180
+ }
181
+
167
182
  config.blocks.blocksConfig.__grid = {
168
183
  ...config.blocks.blocksConfig.__grid,
169
184
  maxNumberOfColumns: 5,
@@ -1 +0,0 @@
1
- module.exports = require('@plone/volto/babel');