design-comuni-plone-theme 8.0.0-alpha.43 → 8.0.0

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.
@@ -31,7 +31,7 @@ jobs:
31
31
  build-args: |
32
32
  ADDON_NAME=design-comuni-plone-theme
33
33
  ADDON_PATH=design-comuni-plone-theme
34
- VOLTO_VERSION=16.21.0
34
+ VOLTO_VERSION=17.0.0-alpha.17
35
35
 
36
36
  - name: Deploy to rancher
37
37
  uses: redturtle/rancher-deploy-action@v0.2.0
@@ -7,9 +7,6 @@ jobs:
7
7
  build_main:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
- # - name: pull request
11
- # if: github.event_name == 'release' && github.event.action == 'published' || github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
12
- # uses: actions/checkout@v3
13
10
  - uses: actions/checkout@v3
14
11
 
15
12
  - name: Set up Docker Buildx
@@ -23,27 +20,19 @@ jobs:
23
20
 
24
21
  - name: Get the version
25
22
  id: get_version
26
- run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
23
+ run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
27
24
 
28
25
  - name: Build and push Docker images
29
- uses: docker/build-push-action@v3
26
+ uses: docker/build-push-action@v4
30
27
  with:
31
28
  context: .
29
+ file: ./dockerfiles/Dockerfile
32
30
  tags: redturtletech/io-comune-base:${{ steps.get_version.outputs.VERSION }}
33
31
  pull: true
34
32
  push: true
35
33
  cache-from: type=registry,ref=redturtletech/io-comune-base:${{ steps.get_version.outputs.VERSION }}
36
34
  cache-to: type=inline
37
-
38
- - name: Deploy to rancher
39
- uses: redturtle/rancher-deploy-action@v0.1.0
40
- with:
41
- host: ${{ secrets.RANCHER_HOST }}
42
- api-username: ${{ secrets.RANCHER_API_USERNAME }}
43
- api-password: ${{ secrets.RANCHER_API_PASSWORD }}
44
- cluster-id: ${{ secrets.RANCHER_CLUSTER_ID }}
45
- project-id: ${{ secrets.RANCHER_PROJECT_ID }}
46
- namespace: ${{ secrets.RANCHER_NAMESPACE }}
47
- workload: ${{ secrets.RANCHER_WORKLOAD }}
48
- image: redturtletech/io-comune-base:${{ steps.get_version.outputs.VERSION }}
49
- slack-hook-url: ${{ secrets.RANCHER_SLACK_HOOK_URL }}
35
+ build-args: |
36
+ ADDON_NAME=design-comuni-plone-theme
37
+ ADDON_PATH=design-comuni-plone-theme
38
+ VOLTO_VERSION=17.0.0-alpha.17
@@ -34,4 +34,4 @@ jobs:
34
34
  build-args: |
35
35
  ADDON_NAME=design-comuni-plone-theme
36
36
  ADDON_PATH=design-comuni-plone-theme
37
- VOLTO_VERSION=16.21.0
37
+ VOLTO_VERSION=17.0.0-alpha.17
@@ -1,9 +1,8 @@
1
1
  name: Update related themes
2
2
 
3
3
  on:
4
- push:
5
- tags:
6
- - '*'
4
+ release:
5
+ types: [released]
7
6
 
8
7
  jobs:
9
8
  update:
@@ -12,7 +11,7 @@ jobs:
12
11
  steps:
13
12
  - name: Get the version
14
13
  id: get_version
15
- run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
14
+ run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
16
15
 
17
16
  - name: Trigger job
18
17
  run: |
@@ -2,11 +2,11 @@ name: Unit Tests
2
2
  on: [push]
3
3
  jobs:
4
4
  unit:
5
+ name: Unit Tests
5
6
  runs-on: ubuntu-latest
6
7
  strategy:
7
8
  matrix:
8
- node-version: [16.x]
9
- python-version: [3.8]
9
+ node-version: [18.x]
10
10
 
11
11
  steps:
12
12
  - name: Main checkout
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- lts/gallium
1
+ 18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
 
2
2
 
3
+ ## [8.0.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.0.0-alpha.43...v8.0.0) (2023-07-12)
4
+
5
+
6
+ ### Documentation
7
+
8
+ * fixed readme ([8b73766](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8b737663e24cd00bf6b7c22484b04b9455255646))
9
+ * update readme and publiccode ([db47619](https://github.com/RedTurtle/design-comuni-plone-theme/commit/db476193a40ec2e2521a6c7395e54bbf6a9180f4))
10
+
11
+
12
+ ### Maintenance
13
+
14
+ * cleanup unit test workflow ([36ece4d](https://github.com/RedTurtle/design-comuni-plone-theme/commit/36ece4d846632145d44be0b8171d505c258f0477))
15
+ * fix node memory issue on github ci ([427b6a9](https://github.com/RedTurtle/design-comuni-plone-theme/commit/427b6a938d18a3fda6f52752ee666b5ef218fb39))
16
+ * update versions ([a7fba75](https://github.com/RedTurtle/design-comuni-plone-theme/commit/a7fba75d861e479c08e521329566af3a35916f7d))
17
+ * update workflows ([eb49a34](https://github.com/RedTurtle/design-comuni-plone-theme/commit/eb49a34d7099dc81bc63acf37c6c57e2fc33f0bb))
18
+ * update yarn.lock ([f9332e6](https://github.com/RedTurtle/design-comuni-plone-theme/commit/f9332e691bf943463b1d883e0366b6568524b48e))
19
+ * updated nvmrc with node 18 ([5dee521](https://github.com/RedTurtle/design-comuni-plone-theme/commit/5dee521aa2801f47c90b7900150b5e0911f79beb))
20
+ * upgrade to latest volto17 alpha ([#222](https://github.com/RedTurtle/design-comuni-plone-theme/issues/222)) ([c13a6cb](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c13a6cb2ab1ebf3858db81f54e7e78b26ab579e2))
21
+
3
22
  ## [8.0.0-alpha.43](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.0.0-alpha.42...v8.0.0-alpha.43) (2023-07-11)
4
23
 
5
24
 
package/Makefile CHANGED
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
27
27
  # ADDON ?= "design-comuni-plone-theme"
28
28
 
29
29
  PLONE_VERSION=6
30
- VOLTO_VERSION=16.21.0
30
+ VOLTO_VERSION=17.0.0-alpha.17
31
31
 
32
32
  ADDON_NAME='design-comuni-plone-theme'
33
33
  ADDON_PATH='design-comuni-plone-theme'
package/README.md CHANGED
@@ -5,26 +5,29 @@ conforme alle nuove linee guida AgID, accessibile a tutti ed usabile da smartpho
5
5
 
6
6
  ![io-comune](/docs/01-io-comune.png)
7
7
 
8
- ### Pensato per i cittadini, costruito con i redattori
8
+ ### AgID 3.0
9
9
 
10
- io-Comune è la soluzione versatile e facile da usare per garantire ai cittadini un rapido accesso ai contenuti e ai servizi del tuo Comune, sia dal PC che da mobile.
10
+ io-Comune segue le linee guida ufficiali per il design dei siti web dei Comuni italiani: layout grafico, architettura informativa, struttura dei contenuti e flussi di navigazione rispecchiano gli standard definiti da AgID.
11
11
 
12
- ### AgID 2.0
12
+ ### Catalogo del riuso di AgID
13
+ io-Comune è [pubblicato](https://developers.italia.it/it/software/italia-design-comuni-plone-theme-62ea5c) nel catalogo del riuso del software open source a disposizione della Pubblica Amministrazione, nella sezione Software utile al Piano Nazionale di Ripresa e Resilienza (PNRR).
13
14
 
14
- io-Comune segue le linee guida ufficiali per il design dei siti web dei Comuni italiani: layout grafico, architettura informativa, struttura dei contenuti e flussi di navigazione rispecchiano gli standard definiti da AgID.
15
+ ### Pensato per i cittadini, costruito con i redattori
15
16
 
17
+ io-Comune è la soluzione versatile e facile da usare per garantire ai cittadini un rapido accesso ai contenuti e ai servizi del tuo Comune, sia dal PC che da mobile.
18
+
16
19
  ### Trovabilità dei contenuti
17
20
 
18
21
  io-Comune integra componenti e flussi di navigazione suggeriti da AgID, con l'esperienza ventennale di [RedTurtle](https://www.redturtle.it/) nella gestione di complesse basi informative per darti la migliore esperienza di fruizione e portarti velocemente al contenuto desiderato.
19
22
 
20
23
  ### La porta per i servizi online
21
-
24
+
22
25
  io-Comune supporta nativamente le piattaforme abilitanti, come la componente di autenticazione SPID e il sistema di pagamento pagoPA.\
23
26
  Inoltre, io-Comune permetterà l’integrazione con IO, l'app ufficiale dei servizi pubblici, per poter dialogare con i cittadini anche dal telefono.
24
-
27
+
25
28
  ### Certificato e sicuro, si affida ad un CMS open source
26
-
27
- Puoi utilizzare io-Comune in totale sicurezza perché ha seguito con successo il [percorso di qualificazione per i fornitori di Software as a Service](https://catalogocloud.agid.gov.it/service/1085) della PA (SaaS).
29
+
30
+ Puoi utilizzare io-Comune in totale sicurezza perché ha seguito con successo il [percorso di qualificazione per i fornitori di Software as a Service](https://catalogocloud.agid.gov.it/service/1085) della PA (SaaS).
28
31
 
29
32
  Questo ti garantisce un servizio di qualità e libertà di cambiare piattaforma senza vincoli di lock-in.
30
33
 
@@ -43,9 +46,11 @@ Usato da piccoli Enti e anche da grandi PA come la **Regione Emilia Romagna**, l
43
46
  Nel progetto è presente una configurazione docker compose per testare un sito Io-Comune semplicemente usando il comando::
44
47
 
45
48
  ```bash
46
- % make demo
49
+ % docker compose up
47
50
  ```
48
51
 
52
+ Al termine il sito io-Comune di prova sarà raggiungibile alla url http://localhost
53
+
49
54
  ## Sottositi
50
55
 
51
56
  Il sistema implementa anche un tipo di contenuto ad hoc per la gestione di sottositi, in linee con le indicazioni generali.
@@ -53,23 +58,13 @@ Il sistema implementa anche un tipo di contenuto ad hoc per la gestione di sotto
53
58
  Si veda ad esempio:
54
59
  [Comune di Modena: Informagiovani](https://www.comune.modena.it/informagiovani)
55
60
 
56
- ## Autenticazione SPID
57
-
58
- L'integrazione dell'autenticazione con SPID, viene fatta generalmente tramite addon plone come
59
- [pas.plugins.oidc](https://pypi.org/project/pas.plugins.oidc),
60
- [pas.plugins.headers](https://pypi.org/project/pas.plugins.headers), ...
61
- insieme a sistemi di integrazione SPID verificati con SPID o con federatori di autenticazione
62
- (Shibboleth, Keycloak, ...).
63
-
64
- Il tema prevede la possibilità di definire due environment `RAZZLE_SPID_LOGIN_URL` e `RAZZLE_SPID_LOGOUT_URL`
65
- su cui impostare rispettivamente la url di login e di logout, eventualmente esterne al sito, per l'integrazione.
66
-
67
61
  ## Esempi di siti che usano questo tema/sistema
68
62
 
69
63
  - [ASP Comuni Modenesi Area Nord](https://www.aspareanord.it/)
70
64
  - [Azienda Ospedaliero-Universitaria di Ferrara](https://www.ospfe.it/)
71
65
  - [Azienda USL di Ferrara](https://www.ausl.fe.it/)
72
66
  - [Azienda USL di Piacenza](https://www.ausl.pc.it/)
67
+ - [Biblioteca comunale di Imola](https://bim.comune.imola.bo.it/)
73
68
  - [Biblioteche Pianura Est](https://bibest.it)
74
69
  - [Camera di Commercio dell'Umbria](https://www.umbria.camcom.it/)
75
70
  - [Camera di Commercio di Reggio Emilia](https://www.re.camcom.gov.it/)
@@ -78,6 +73,7 @@ su cui impostare rispettivamente la url di login e di logout, eventualmente este
78
73
  - [Comune di Camposanto](https://www.comune.camposanto.mo.it/)
79
74
  - [Comune di Canossa](https://www.comune.canossa.re.it/)
80
75
  - [Comune di Cantagallo](https://www.comune.cantagallo.po.it/)
76
+ - [Comune di Cavriago](https://www.comune.cavriago.re.it/)
81
77
  - [Comune di Imola](https://www.comune.imola.bo.it)
82
78
  - [Comune di Medolla](https://www.comune.medolla.mo.it/)
83
79
  - [Comune di Mirandola](https://www.comune.mirandola.mo.it/)
@@ -104,7 +100,7 @@ su cui impostare rispettivamente la url di login e di logout, eventualmente este
104
100
 
105
101
  ## Riferimenti
106
102
 
107
- - [Documentazione tecnica per lo sviluppo del tema](DEVELOPMENT.md)
108
- - [Documentazione tecnica CMS Plone](https://6.docs.plone.org)
109
- - [Sito web progetto io-Comune](https://www.io-comune.it/)
110
- - [Modello di sito istituzionale dei Comuni Italiani](https://designers.italia.it/modello/comuni/)
103
+ * [Documentazione tecnica per lo sviluppo del tema](DEVELOPMENT.md)
104
+ * [Documentazione tecnica CMS Plone](https://6.docs.plone.org)
105
+ * [Sito web progetto io-Comune](https://www.io-comune.it/)
106
+ * [Modello di sito istituzionale dei Comuni Italiani](https://designers.italia.it/modello/comuni/)
@@ -5,6 +5,8 @@ FROM plone/frontend-builder:${VOLTO_VERSION} as builder
5
5
  ARG ADDON_NAME
6
6
  ARG ADDON_PATH
7
7
 
8
+ ENV NODE_OPTIONS "--max_old_space_size=4096"
9
+
8
10
  USER root
9
11
 
10
12
  RUN <<EOT
@@ -8,7 +8,7 @@ services:
8
8
  args:
9
9
  ADDON_NAME: '${ADDON_NAME}'
10
10
  ADDON_PATH: '${ADDON_PATH}'
11
- VOLTO_VERSION: ${VOLTO_VERSION:-16}
11
+ VOLTO_VERSION: ${VOLTO_VERSION:-17}
12
12
  volumes:
13
13
  - ${CURRENT_DIR}:/app/src/addons/${ADDON_PATH}/
14
14
  environment:
@@ -34,7 +34,7 @@ services:
34
34
  args:
35
35
  ADDON_NAME: '${ADDON_NAME}'
36
36
  ADDON_PATH: '${ADDON_PATH}'
37
- VOLTO_VERSION: ${VOLTO_VERSION:-16}
37
+ VOLTO_VERSION: ${VOLTO_VERSION:-17}
38
38
  environment:
39
39
  RAZZLE_INTERNAL_API_PATH: http://backend:8080/Plone
40
40
  RAZZLE_API_PATH: http://localhost:8080/Plone
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "8.0.0-alpha.43",
5
+ "version": "8.0.0",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
@@ -104,7 +104,7 @@
104
104
  ]
105
105
  },
106
106
  "engines": {
107
- "node": "^14 || ^16"
107
+ "node": "^16 || ^18"
108
108
  },
109
109
  "dependencies": {
110
110
  "@babel/plugin-proposal-export-default-from": "7.18.9",
@@ -163,7 +163,7 @@
163
163
  "stylelint-prettier": "^2.0.0"
164
164
  },
165
165
  "peerDependencies": {
166
- "@plone/volto": "16.21.0"
166
+ "@plone/volto": "17.0.0-alpha.17"
167
167
  },
168
168
  "packageManager": "yarn@3.2.3"
169
169
  }
package/publiccode.yml CHANGED
@@ -10,7 +10,7 @@ categories:
10
10
  dependsOn:
11
11
  open:
12
12
  - name: nodejs
13
- versionMin: '14'
13
+ versionMin: '16'
14
14
  - name: Python
15
15
  versionMin: '3.8'
16
16
  - name: Docker
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2023-01-11'
230
+ releaseDate: '2023-07-11'
231
231
  softwareType: standalone/web
232
- softwareVersion: 7.0.0
232
+ softwareVersion: 8.0.0
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -239,12 +239,14 @@ usedBy:
239
239
  - ASP Comuni Modenesi Area Nord
240
240
  - Azienda Ospedaliero-Universitaria di Ferrara
241
241
  - Azienda USL di Ferrara
242
+ - Biblioteca comunale di Imola
242
243
  - Biblioteche Pianura Est
243
244
  - Camera di Commercio dell'Umbria
244
245
  - Camera di Commercio di Reggio Emilia
245
246
  - Comune di Bibbiano
246
247
  - Comune di Camposanto
247
248
  - Comune di Cantagallo
249
+ - Comune di Cavriago
248
250
  - Comune di Imola
249
251
  - Comune di Medolla
250
252
  - Comune di Mirandola
package/razzle.extend.js CHANGED
@@ -56,10 +56,13 @@ const modify = (webpackConfig, { target, dev }, webpackObject) => {
56
56
  loader: 'svgo-loader',
57
57
  options: {
58
58
  plugins: [
59
- { removeTitle: true },
60
- { convertPathData: false },
61
- { removeUselessStrokeAndFill: true },
62
- { removeViewBox: false },
59
+ { name: 'removeTitle', params: { removeTitle: true } },
60
+ { name: 'convertPathData', params: { convertPathData: false } },
61
+ {
62
+ name: 'removeUselessStrokeAndFill',
63
+ params: { removeUselessStrokeAndFill: true },
64
+ },
65
+ { name: 'removeViewBox', params: { removeViewBox: false } },
63
66
  ],
64
67
  },
65
68
  },
@@ -5,6 +5,9 @@ CUSTOMIZATIONS:
5
5
  - added additional filters
6
6
  - added additional fields to pass to @querystring-search (config.settings.querystringAdditionalFields)
7
7
  - usedeepCompareEffect and integrate custom logic for searchBlock to make it work with our implementation
8
+
9
+ TODO:
10
+ - Needs updating, it's quite different in the latest volto version
8
11
  */
9
12
  import React, { createRef, useEffect } from 'react';
10
13
  import hoistNonReactStatics from 'hoist-non-react-statics';
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import { map, uniq, keys, intersection, isEmpty } from 'lodash';
9
9
  import { messages } from '@plone/volto/helpers/MessageLabels/MessageLabels';
10
- import config from '@plone/volto/registry';
11
10
  import { toast } from 'react-toastify';
12
11
  import Toast from '@plone/volto/components/manage/Toast/Toast';
13
12
  import {
@@ -15,6 +14,7 @@ import {
15
14
  eventFormValidationHelper,
16
15
  getRealEmptyField,
17
16
  } from 'design-comuni-plone-theme/helpers';
17
+ import config from '@plone/volto/registry';
18
18
 
19
19
  /**
20
20
  * Will return the intl message if invalid
@@ -1,78 +0,0 @@
1
- /**
2
- * Version Overview component.
3
- * @module components/manage/Controlpanels/VersionOverview
4
- * Customizations:
5
- * - added io-comune version
6
- */
7
-
8
- import React from 'react';
9
- import { FormattedMessage } from 'react-intl';
10
- import { isEmpty } from 'lodash';
11
-
12
- import packageJson from '../../../../../../package.json';
13
-
14
- import { defineMessages, useIntl } from 'react-intl';
15
- import config from '@plone/volto/registry';
16
-
17
- const messages = defineMessages({
18
- no_addons: {
19
- id: 'No addons found',
20
- defaultMessage: 'No addons found',
21
- },
22
- });
23
-
24
- const VersionOverview = ({
25
- cmf_version,
26
- debug_mode,
27
- pil_version,
28
- plone_version,
29
- plone_restapi_version,
30
- python_version,
31
- zope_version,
32
- }) => {
33
- const intl = useIntl();
34
- const { addonsInfo } = config.settings;
35
-
36
- return (
37
- <>
38
- <ul
39
- style={{
40
- fontSize: '16px',
41
- fontFamily: 'Monospace',
42
- paddingLeft: '1rem',
43
- }}
44
- >
45
- {packageJson.version && <li>io-Comune {packageJson.version}</li>}
46
- {packageJson.dependencies['@plone/volto'] && (
47
- <li>Volto {packageJson.dependencies['@plone/volto']}</li>
48
- )}
49
- <li>Plone {plone_version}</li>
50
- <li>plone.restapi {plone_restapi_version}</li>
51
- <li>CMF {cmf_version}</li>
52
- <li>Zope {zope_version}</li>
53
- <li>Python {python_version}</li>
54
- <li>PIL {pil_version}</li>
55
- </ul>
56
- <h3>Add-ons</h3>
57
- {isEmpty(addonsInfo) ? (
58
- <p>{intl.formatMessage(messages.no_addons)}</p>
59
- ) : (
60
- <ul style={{ fontSize: '16px', fontFamily: 'Monospace' }}>
61
- {addonsInfo.map((addon) => (
62
- <li key={addon.name}>{`${addon.name} ${addon.version || ''}`}</li>
63
- ))}
64
- </ul>
65
- )}
66
- {debug_mode !== 'No' && (
67
- <p>
68
- <FormattedMessage
69
- id="Warning Regarding debug mode"
70
- defaultMessage="You are running in 'debug mode'. This mode is intended for sites that are under development. This allows many configuration changes to be immediately visible, but will make your site run more slowly. To turn off debug mode, stop the server, set 'debug-mode=off' in your buildout.cfg, re-run bin/buildout and then restart the server process."
71
- />
72
- </p>
73
- )}
74
- </>
75
- );
76
- };
77
-
78
- export default VersionOverview;