Skip to content

Commit 870c8b7

Browse files
Revert "🎨 [Frontend] Second app on Sim4Life.lite (ITISFoundation#7807)"
This reverts commit c6d1b64.
1 parent ddd9ee9 commit 870c8b7

File tree

6 files changed

+14
-19
lines changed

6 files changed

+14
-19
lines changed

services/static-webserver/client/source/class/osparc/editor/HtmlEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ qx.Class.define("osparc.editor.HtmlEditor", {
2626

2727
this.getChildControl("preview-html");
2828
this.getChildControl("subtitle").set({
29-
value: this.tr("Supports HTML"),
30-
url: "https://en.wikipedia.org/wiki/HTML",
29+
value: this.tr("Supports HTML")
3130
});
3231
},
3332

services/static-webserver/client/source/class/osparc/editor/MarkdownEditor.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ qx.Class.define("osparc.editor.MarkdownEditor", {
3131

3232
this.getChildControl("preview-markdown");
3333
this.getChildControl("subtitle").set({
34-
value: this.tr("Markdown supported"),
35-
url: "https://en.wikipedia.org/wiki/Markdown",
34+
value: this.tr("Markdown supported")
3635
});
3736
},
3837

services/static-webserver/client/source/class/osparc/editor/TextEditor.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ qx.Class.define("osparc.editor.TextEditor", {
8181
writePage.add(control, {
8282
flex: 1
8383
});
84-
const subtitle = this.getChildControl("subtitle");
84+
const subtitle = this.getChildControl("subtitle").set({
85+
value: this.tr("Supports HTML")
86+
});
8587
writePage.add(subtitle);
8688
tabs.add(writePage);
8789
break;
8890
}
8991
case "subtitle":
90-
control = new osparc.ui.basic.LinkLabel().set({
92+
control = new qx.ui.basic.Label().set({
9193
font: "text-12"
9294
});
9395
this._add(control);

services/static-webserver/client/source/class/osparc/info/CommentUI.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ qx.Class.define("osparc.info.CommentUI", {
113113

114114
__buildLayout: function() {
115115
const thumbnail = this.getChildControl("thumbnail");
116+
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail("", "", 32));
116117

117118
const userName = this.getChildControl("user-name");
119+
userName.setValue("Unknown");
118120

119121
const date = new Date(this.__comment["modified"]);
120122
const date2 = osparc.utils.Utils.formatDateAndTime(date);
@@ -129,14 +131,7 @@ qx.Class.define("osparc.info.CommentUI", {
129131
if (user) {
130132
thumbnail.setSource(user.getThumbnail());
131133
userName.setValue(user.getLabel());
132-
} else {
133-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
134-
userName.setValue("Unknown user");
135134
}
136-
})
137-
.catch(() => {
138-
thumbnail.setSource(osparc.utils.Avatar.emailToThumbnail());
139-
userName.setValue("Unknown user");
140135
});
141136

142137
this.getChildControl("spacer");

services/static-webserver/client/source/class/osparc/utils/Avatar.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ qx.Class.define("osparc.utils.Avatar", {
3434
type: "static",
3535

3636
statics: {
37-
emailToThumbnail: function(email = "", username = "??", size = 32) {
37+
emailToThumbnail: function(email, username) {
38+
return this.__getUrl(email, username, 32);
39+
},
40+
41+
__getUrl: function(email, username, size = 100) {
42+
email = email || "";
3843
// MD5 (Message-Digest Algorithm) by WebToolkit
3944
const MD5 = function(s) {
4045
function L(k, d) {

services/static-webserver/client/source/resource/osparc/ui_config.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,6 @@
156156
"title": "${replace_me_product_name}",
157157
"newStudyLabel": "New Project",
158158
"idToWidget": "startS4LButton"
159-
}, {
160-
"resourceType": "service",
161-
"expectedKey": "simcore/services/dynamic/s4l-ui-framework",
162-
"title": "Sim4Life.framework",
163-
"newStudyLabel": "Sim4Life.framework"
164159
}]
165160
}
166161
},

0 commit comments

Comments
 (0)