@eeacms/volto-bise-policy 1.2.5 → 1.2.7
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 +10 -3
- package/DEVELOP.md +56 -0
- package/README.md +13 -0
- package/docker-compose.yml +28 -0
- package/package.json +1 -1
- package/src/index.js +28 -0
- package/.i18n.babel.config.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,18 @@ 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
|
-
### [1.2.
|
|
7
|
+
### [1.2.7](https://github.com/eea/volto-bise-policy/compare/1.2.6...1.2.7) - 9 August 2023
|
|
8
8
|
|
|
9
|
-
#### :house:
|
|
9
|
+
#### :house: Documentation changes
|
|
10
10
|
|
|
11
|
-
-
|
|
11
|
+
- docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`6a0f42d`](https://github.com/eea/volto-bise-policy/commit/6a0f42ddd3156ce2ae39900bfb766fe6c1e69d81)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Remove Norway from language list of Natura 2000 section [Claudia Ifrim - [`2911fab`](https://github.com/eea/volto-bise-policy/commit/2911fab4b964c9bee255f6a70fd7ffc83623b453)]
|
|
16
|
+
### [1.2.6](https://github.com/eea/volto-bise-policy/compare/1.2.5...1.2.6) - 17 July 2023
|
|
17
|
+
|
|
18
|
+
### [1.2.5](https://github.com/eea/volto-bise-policy/compare/1.2.4...1.2.5) - 5 July 2023
|
|
12
19
|
|
|
13
20
|
### [1.2.4](https://github.com/eea/volto-bise-policy/compare/1.2.3...1.2.4) - 4 July 2023
|
|
14
21
|
|
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-bise-policy.git
|
|
9
|
+
cd volto-bise-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-bise-policy/
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Or add @eeacms/volto-bise-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`
|
|
@@ -51,3 +73,37 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
51
73
|
cd src/addons/volto-bise-policy/
|
|
52
74
|
|
|
53
75
|
s/volto-bise-policy/
|
|
76
|
+
|
|
77
|
+
## Cypress
|
|
78
|
+
|
|
79
|
+
To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
|
|
80
|
+
|
|
81
|
+
You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
|
|
82
|
+
project where you added `volto-bise-policy` to `mrs.developer.json`
|
|
83
|
+
|
|
84
|
+
Go to:
|
|
85
|
+
|
|
86
|
+
```BASH
|
|
87
|
+
cd src/addons/volto-bise-policy/
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Start:
|
|
91
|
+
|
|
92
|
+
```Bash
|
|
93
|
+
make
|
|
94
|
+
make start
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-bise-policy` block installed.
|
|
98
|
+
|
|
99
|
+
Open Cypress Interface:
|
|
100
|
+
|
|
101
|
+
```Bash
|
|
102
|
+
make cypress-open
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Or run it:
|
|
106
|
+
|
|
107
|
+
```Bash
|
|
108
|
+
make cypress-run
|
|
109
|
+
```
|
package/README.md
CHANGED
|
@@ -22,10 +22,23 @@ Demo GIF
|
|
|
22
22
|
|
|
23
23
|
## Getting started
|
|
24
24
|
|
|
25
|
+
### Try volto-bise-policy with Docker
|
|
26
|
+
|
|
27
|
+
git clone https://github.com/eea/volto-bise-policy.git
|
|
28
|
+
cd volto-bise-policy
|
|
29
|
+
make
|
|
30
|
+
make start
|
|
31
|
+
|
|
32
|
+
Go to http://localhost:3000
|
|
33
|
+
|
|
25
34
|
### Add volto-bise-policy to your Volto project
|
|
26
35
|
|
|
27
36
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
28
37
|
|
|
38
|
+
```Bash
|
|
39
|
+
docker compose up backend
|
|
40
|
+
```
|
|
41
|
+
|
|
29
42
|
1. Start Volto frontend
|
|
30
43
|
|
|
31
44
|
- 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"
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -20,6 +20,33 @@ const customBlocks = [
|
|
|
20
20
|
'navigationBlock',
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
+
const n2kLanguages = [
|
|
24
|
+
{ name: 'Български', code: 'bg' },
|
|
25
|
+
{ name: 'čeština', code: 'cs' },
|
|
26
|
+
{ name: 'Hrvatski', code: 'hr' },
|
|
27
|
+
{ name: 'dansk', code: 'da' },
|
|
28
|
+
{ name: 'Nederlands', code: 'nl' },
|
|
29
|
+
{ name: 'ελληνικά', code: 'el' },
|
|
30
|
+
{ name: 'English', code: 'en' },
|
|
31
|
+
{ name: 'eesti', code: 'et' },
|
|
32
|
+
{ name: 'Suomi', code: 'fi' },
|
|
33
|
+
{ name: 'Français', code: 'fr' },
|
|
34
|
+
{ name: 'Deutsch', code: 'de' },
|
|
35
|
+
{ name: 'magyar', code: 'hu' },
|
|
36
|
+
{ name: 'Irish', code: 'ga' },
|
|
37
|
+
{ name: 'italiano', code: 'it' },
|
|
38
|
+
{ name: 'Latviešu', code: 'lv' },
|
|
39
|
+
{ name: 'lietuvių', code: 'lt' },
|
|
40
|
+
{ name: 'Malti', code: 'mt' },
|
|
41
|
+
{ name: 'polski', code: 'pl' },
|
|
42
|
+
{ name: 'Português', code: 'pt' },
|
|
43
|
+
{ name: 'Română', code: 'ro' },
|
|
44
|
+
{ name: 'slovenčina', code: 'sk' },
|
|
45
|
+
{ name: 'Slovenščina', code: 'sl' },
|
|
46
|
+
{ name: 'Español', code: 'es' },
|
|
47
|
+
{ name: 'Svenska', code: 'sv' },
|
|
48
|
+
];
|
|
49
|
+
|
|
23
50
|
const applyConfig = (config) => {
|
|
24
51
|
// Volto specific settings
|
|
25
52
|
config.settings = {
|
|
@@ -35,6 +62,7 @@ const applyConfig = (config) => {
|
|
|
35
62
|
// EEA customizations
|
|
36
63
|
config.settings.eea = {
|
|
37
64
|
...(config.settings.eea || {}),
|
|
65
|
+
languages: n2kLanguages,
|
|
38
66
|
headerOpts: {
|
|
39
67
|
...(config.settings.eea?.headerOpts || {}),
|
|
40
68
|
logo: biseLogo,
|
package/.i18n.babel.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('@plone/volto/babel');
|