Skip to content

Commit 5dcda9c

Browse files
Merge remote-tracking branch 'upstream/master' into is8496/use-prefork-pool-for-cpu-bound-celery-tasks
2 parents f8a575b + 2f48e5d commit 5dcda9c

File tree

33 files changed

+112
-187
lines changed

33 files changed

+112
-187
lines changed

services/static-webserver/client/Manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"jsondiffpatch/jsondiffpatch-0.7.3.min.js",
3131
"jsontreeviewer/jsonTree.js",
3232
"marked/marked.min.js",
33-
"DOMPurify/purify.min.js"
33+
"DOMPurify/purify-3.2.7.min.js"
3434
],
3535
"css": [
3636
"jsontreeviewer/jsonTree.css",

services/static-webserver/client/source/class/osparc/dashboard/FolderButtonNew.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ qx.Class.define("osparc.dashboard.FolderButtonNew", {
6161
control = new qx.ui.basic.Label(this.tr("New folder")).set({
6262
anonymous: true,
6363
font: "text-14",
64-
rich: true,
6564
});
6665
this._add(control, {
6766
...osparc.dashboard.FolderButtonBase.POS.TITLE,

services/static-webserver/client/source/class/osparc/dashboard/GridButtonBase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,10 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
188188
break;
189189
}
190190
case "title":
191-
control = new qx.ui.basic.Label().set({
191+
control = new osparc.ui.basic.SafeLabel().set({
192192
textColor: "contrasted-text-light",
193193
font: "text-14",
194+
rich: false, // do not allow multi-line titles
194195
});
195196
layout = this.getChildControl("header");
196197
layout.add(control, this.self().HPOS.TITLE);
@@ -205,12 +206,11 @@ qx.Class.define("osparc.dashboard.GridButtonBase", {
205206
break;
206207
}
207208
case "subtitle-text": {
208-
control = new qx.ui.basic.Label().set({
209+
control = new osparc.ui.basic.SafeLabel().set({
209210
textColor: "contrasted-text-dark",
210211
alignY: "middle",
211212
allowGrowX: true,
212213
allowShrinkX: true,
213-
rich: true,
214214
anonymous: true,
215215
font: "text-12",
216216
allowGrowY: false

services/static-webserver/client/source/class/osparc/dashboard/GridButtonTaskPlaceholder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ qx.Class.define("osparc.dashboard.GridButtonTaskPlaceholder", {
6262
let layout;
6363
switch (id) {
6464
case "state-label": {
65-
control = new qx.ui.basic.Label().set({
65+
control = new osparc.ui.basic.SafeLabel().set({
6666
textColor: "contrasted-text-dark",
6767
allowGrowX: true,
6868
allowShrinkX: true,
69-
rich: true,
7069
anonymous: true,
7170
font: "text-12",
7271
allowGrowY: true,

services/static-webserver/client/source/class/osparc/dashboard/GroupedCardContainer.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ qx.Class.define("osparc.dashboard.GroupedCardContainer", {
101101
allowGrowX: false
102102
});
103103
control.getChildControl("icon").set(osparc.utils.Utils.getThumbnailProps(32));
104-
control.getChildControl("label").set({
104+
const atomLabel = control.getChildControl("label");
105+
atomLabel.set({
105106
rich: true,
106107
wrap: true
107-
})
108+
});
109+
osparc.wrapper.DOMPurify.sanitizeLabel(atomLabel);
108110
control.getContentElement().setStyles({
109111
"border-top-left-radius": "4px",
110112
"border-top-right-radius": "4px"

services/static-webserver/client/source/class/osparc/dashboard/ListButtonBase.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ qx.Class.define("osparc.dashboard.ListButtonBase", {
7575
break;
7676
}
7777
case "title":
78-
control = new qx.ui.basic.Label().set({
78+
control = new osparc.ui.basic.SafeLabel().set({
7979
textColor: "contrasted-text-light",
8080
font: "text-14",
8181
alignY: "middle",
8282
maxWidth: 300,
83-
rich: true,
8483
});
8584
this._add(control, {
8685
row: 0,

services/static-webserver/client/source/class/osparc/desktop/credits/CreditsServiceListItem.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,11 @@ qx.Class.define("osparc.desktop.credits.CreditsServiceListItem", {
9393
break;
9494
}
9595
case "title":
96-
control = new qx.ui.basic.Label().set({
96+
control = new osparc.ui.basic.SafeLabel().set({
9797
font: "text-12",
9898
alignY: "middle",
9999
maxWidth: 200,
100100
allowGrowX: true,
101-
rich: true,
102101
});
103102
this._add(control, this.self().GRID.NAME);
104103
break;

services/static-webserver/client/source/class/osparc/desktop/organizations/ServicesList.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ qx.Class.define("osparc.desktop.organizations.ServicesList", {
4747
const intro = new qx.ui.basic.Label().set({
4848
value: msg,
4949
alignX: "left",
50-
rich: true,
5150
font: "text-13"
5251
});
5352
return intro;

services/static-webserver/client/source/class/osparc/desktop/organizations/TutorialsList.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ qx.Class.define("osparc.desktop.organizations.TutorialsList", {
4747
const intro = new qx.ui.basic.Label().set({
4848
value: msg,
4949
alignX: "left",
50-
rich: true,
5150
font: "text-13"
5251
});
5352
return intro;

services/static-webserver/client/source/class/osparc/desktop/preferences/pages/TagsPage.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ qx.Class.define("osparc.desktop.preferences.pages.TagsPage", {
2323
Once the tags are created, they can be assigned to the ") + studyLabel + this.tr(" via 'More options...' on the ") + studyLabel + this.tr(" cards.");
2424
const intro = new qx.ui.basic.Label(msg).set({
2525
font: "text-13",
26+
rich: true,
27+
wrap: true
2628
});
2729
this._add(intro);
2830

0 commit comments

Comments
 (0)