design-comuni-plone-theme 11.12.3 → 11.12.4
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +17 -0
- package/RELEASE.md +6 -0
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/customizations/volto/components/theme/Error/Error.jsx +12 -4
- package/src/customizations/volto/components/theme/View/View.jsx +34 -4
- package/src/theme/ItaliaTheme/Views/_evento.scss +0 -4
- package/src/theme/_cms-ui.scss +16 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.12.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.3...v11.12.4) (2024-05-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* added styles for recurrence widget fields layout ([#686](https://github.com/RedTurtle/design-comuni-plone-theme/issues/686)) ([ec415d1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ec415d1615524b79755d3f562fcef909f1a126d1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Maintenance
|
|
12
|
+
|
|
13
|
+
* improve cors error logging ([6c483a7](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6c483a79fbe6d40d688c33a36bb61e96f37372fb))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Documentation
|
|
17
|
+
|
|
18
|
+
* updated publiccode and release log ([312af90](https://github.com/RedTurtle/design-comuni-plone-theme/commit/312af90e5c708e090df1ccd7eaa194a7f03360ec))
|
|
19
|
+
|
|
3
20
|
## [11.12.3](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.2...v11.12.3) (2024-05-28)
|
|
4
21
|
|
|
5
22
|
|
package/RELEASE.md
CHANGED
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -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: '2024-05-
|
|
230
|
+
releaseDate: '2024-05-30'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.12.
|
|
232
|
+
softwareVersion: 11.12.4
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -25,7 +25,7 @@ const Error = (props) => {
|
|
|
25
25
|
let FoundView;
|
|
26
26
|
|
|
27
27
|
// CUSTOMIZATION: added logging of errors
|
|
28
|
-
const notifySentry = (
|
|
28
|
+
const notifySentry = (message) => {
|
|
29
29
|
const loaders = Object.entries(sentryLibraries).map(
|
|
30
30
|
([name, Lib]) =>
|
|
31
31
|
new Promise((resolve) =>
|
|
@@ -37,7 +37,15 @@ const Error = (props) => {
|
|
|
37
37
|
{},
|
|
38
38
|
...libs.map(([name, lib]) => ({ [name]: lib })),
|
|
39
39
|
);
|
|
40
|
-
|
|
40
|
+
class MaybeCorsError extends Error {
|
|
41
|
+
constructor({ error, ...props }, ...args) {
|
|
42
|
+
super(...args);
|
|
43
|
+
this.name = 'MaybeCorsError';
|
|
44
|
+
this.error = error;
|
|
45
|
+
this.props = props;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
libraries.Sentry.captureException(new MaybeCorsError(props, message));
|
|
41
49
|
});
|
|
42
50
|
};
|
|
43
51
|
|
|
@@ -50,7 +58,7 @@ const Error = (props) => {
|
|
|
50
58
|
'DEV MODE CORS ERROR in Error component: ',
|
|
51
59
|
JSON.stringify(props, null, 2),
|
|
52
60
|
);
|
|
53
|
-
notifySentry(
|
|
61
|
+
notifySentry('DEV MODE CORS ERROR in Error component');
|
|
54
62
|
FoundView = views.errorViews.corsError;
|
|
55
63
|
} else {
|
|
56
64
|
if (error.status.toString() === 'corsError') {
|
|
@@ -59,7 +67,7 @@ const Error = (props) => {
|
|
|
59
67
|
'CORS ERROR in Error component: ',
|
|
60
68
|
JSON.stringify(props, null, 2),
|
|
61
69
|
);
|
|
62
|
-
notifySentry(
|
|
70
|
+
notifySentry('CORS ERROR in Error component');
|
|
63
71
|
}
|
|
64
72
|
FoundView = views.errorViews[error.status.toString()];
|
|
65
73
|
}
|
|
@@ -209,7 +209,7 @@ class View extends Component {
|
|
|
209
209
|
.toLowerCase();
|
|
210
210
|
|
|
211
211
|
// CUSTOMIZATION: added logging of errors
|
|
212
|
-
notifySentry = (
|
|
212
|
+
notifySentry = (message) => {
|
|
213
213
|
const loaders = Object.entries(sentryLibraries).map(
|
|
214
214
|
([name, Lib]) =>
|
|
215
215
|
new Promise((resolve) =>
|
|
@@ -221,7 +221,37 @@ class View extends Component {
|
|
|
221
221
|
{},
|
|
222
222
|
...libs.map(([name, lib]) => ({ [name]: lib })),
|
|
223
223
|
);
|
|
224
|
-
|
|
224
|
+
class MaybeCorsError extends Error {
|
|
225
|
+
constructor(
|
|
226
|
+
{
|
|
227
|
+
error,
|
|
228
|
+
apiError,
|
|
229
|
+
actions,
|
|
230
|
+
token,
|
|
231
|
+
content,
|
|
232
|
+
connectionRefused,
|
|
233
|
+
pathname,
|
|
234
|
+
versionId,
|
|
235
|
+
...props
|
|
236
|
+
},
|
|
237
|
+
...args
|
|
238
|
+
) {
|
|
239
|
+
super(...args);
|
|
240
|
+
this.name = 'MaybeCorsError';
|
|
241
|
+
this.error = error;
|
|
242
|
+
this.apiError = apiError;
|
|
243
|
+
this.actions = actions;
|
|
244
|
+
this.token = token;
|
|
245
|
+
this.content = content;
|
|
246
|
+
this.connectionRefused = connectionRefused;
|
|
247
|
+
this.pathname = pathname;
|
|
248
|
+
this.versionId = versionId;
|
|
249
|
+
this.props = props;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
libraries.Sentry.captureException(
|
|
253
|
+
new MaybeCorsError(this.props, message),
|
|
254
|
+
);
|
|
225
255
|
});
|
|
226
256
|
};
|
|
227
257
|
|
|
@@ -246,7 +276,7 @@ class View extends Component {
|
|
|
246
276
|
'DEV MODE CORS ERROR in View component: ',
|
|
247
277
|
JSON.stringify(this.props, null, 2),
|
|
248
278
|
);
|
|
249
|
-
this.notifySentry(
|
|
279
|
+
this.notifySentry('DEV MODE CORS ERROR in View component');
|
|
250
280
|
FoundView = views.errorViews.corsError;
|
|
251
281
|
} else {
|
|
252
282
|
if (this.props.error.status.toString() === 'corsError') {
|
|
@@ -255,7 +285,7 @@ class View extends Component {
|
|
|
255
285
|
'CORS ERROR in View component: ',
|
|
256
286
|
JSON.stringify(this.props, null, 2),
|
|
257
287
|
);
|
|
258
|
-
this.notifySentry(
|
|
288
|
+
this.notifySentry('CORS ERROR in View component');
|
|
259
289
|
}
|
|
260
290
|
FoundView = views.errorViews[this.props.error.status.toString()];
|
|
261
291
|
}
|
package/src/theme/_cms-ui.scss
CHANGED
|
@@ -745,6 +745,22 @@ body.cms-ui {
|
|
|
745
745
|
@import 'bootstrap-italia/src/scss/custom/card';
|
|
746
746
|
@import './bootstrap-override/bootstrap-italia/_card.scss';
|
|
747
747
|
}
|
|
748
|
+
|
|
749
|
+
.recurrence-form {
|
|
750
|
+
.byday-field {
|
|
751
|
+
.ui.button {
|
|
752
|
+
padding: 0px;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
.byyear-field {
|
|
757
|
+
.byyear-byday {
|
|
758
|
+
display: flex;
|
|
759
|
+
flex-wrap: wrap;
|
|
760
|
+
align-items: center;
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
}
|
|
748
764
|
}
|
|
749
765
|
|
|
750
766
|
body.has-toolbar {
|