@eeacms/volto-bise-policy 1.2.6 → 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 CHANGED
@@ -4,11 +4,17 @@ 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.6](https://github.com/eea/volto-bise-policy/compare/1.2.5...1.2.6) - 17 July 2023
7
+ ### [1.2.7](https://github.com/eea/volto-bise-policy/compare/1.2.6...1.2.7) - 9 August 2023
8
+
9
+ #### :house: Documentation changes
10
+
11
+ - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`6a0f42d`](https://github.com/eea/volto-bise-policy/commit/6a0f42ddd3156ce2ae39900bfb766fe6c1e69d81)]
8
12
 
9
13
  #### :hammer_and_wrench: Others
10
14
 
11
- - fix languages options for N2K section [Claudia Ifrim - [`e9b6090`](https://github.com/eea/volto-bise-policy/commit/e9b609098964755c98c4d2332410ff07bab05a8b)]
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
+
12
18
  ### [1.2.5](https://github.com/eea/volto-bise-policy/compare/1.2.4...1.2.5) - 5 July 2023
13
19
 
14
20
  ### [1.2.4](https://github.com/eea/volto-bise-policy/compare/1.2.3...1.2.4) - 4 July 2023
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-bise-policy",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "@eeacms/volto-bise-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/index.js CHANGED
@@ -38,7 +38,6 @@ const n2kLanguages = [
38
38
  { name: 'Latviešu', code: 'lv' },
39
39
  { name: 'lietuvių', code: 'lt' },
40
40
  { name: 'Malti', code: 'mt' },
41
- { name: 'Norsk', code: 'no' },
42
41
  { name: 'polski', code: 'pl' },
43
42
  { name: 'Português', code: 'pt' },
44
43
  { name: 'Română', code: 'ro' },
@@ -1 +0,0 @@
1
- module.exports = require('@plone/volto/babel');