Skip to content

Commit ad0a35d

Browse files
authored
🎨 [Frontend] Rebranding: S4L lite -> Sim4Life.lite (#6524)
1 parent ee3ac42 commit ad0a35d

File tree

10 files changed

+38
-27
lines changed

10 files changed

+38
-27
lines changed

services/static-webserver/client/compile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"class": "osparc.Application",
5757
"theme": "osparc.theme.products.s4l.ThemeDark",
5858
"name": "s4llite",
59-
"title": "Sim4Life Lite",
59+
"title": "Sim4Life.lite",
6060
"include": [
6161
"iconfont.material.Load",
6262
"iconfont.fontawesome5.Load",

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ qx.Class.define("osparc.dashboard.GridButtonNew", {
3737
});
3838

3939
if (title) {
40+
title = osparc.utils.Utils.replaceTokens(
41+
title,
42+
"replace_me_product_name",
43+
osparc.store.StaticInfo.getInstance().getDisplayName()
44+
);
45+
4046
const titleLabel = this.getChildControl("title");
4147
titleLabel.set({
4248
value: title,
@@ -45,6 +51,12 @@ qx.Class.define("osparc.dashboard.GridButtonNew", {
4551
}
4652

4753
if (description) {
54+
description = osparc.utils.Utils.replaceTokens(
55+
description,
56+
"replace_me_product_name",
57+
osparc.store.StaticInfo.getInstance().getDisplayName()
58+
);
59+
4860
const descLabel = this.getChildControl("subtitle-text");
4961
descLabel.setValue(description.toString());
5062
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ qx.Class.define("osparc.dashboard.ListButtonNew", {
3434
});
3535

3636
if (title) {
37+
title = osparc.utils.Utils.replaceTokens(
38+
title,
39+
"replace_me_product_name",
40+
osparc.store.StaticInfo.getInstance().getDisplayName()
41+
);
42+
3743
const titleLabel = this.getChildControl("title");
3844
titleLabel.set({
3945
value: title,

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,7 @@ qx.Class.define("osparc.dashboard.NewStudies", {
167167
const newStudyClicked = () => this.fireDataEvent("newStudyClicked", templateInfo);
168168

169169
const title = templateInfo.title;
170-
let desc = templateInfo.description;
171-
if (desc) {
172-
desc = osparc.utils.Utils.replaceTokens(
173-
desc,
174-
"replace_me_product_name",
175-
osparc.store.StaticInfo.getInstance().getDisplayName()
176-
);
177-
}
170+
const desc = templateInfo.description;
178171
const newPlanButton = new osparc.dashboard.GridButtonNew(title, desc);
179172
newPlanButton.setCardKey(templateInfo.idToWidget);
180173
osparc.utils.Utils.setIdToWidget(newPlanButton, templateInfo.idToWidget);

services/static-webserver/client/source/class/osparc/product/AboutProduct.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ qx.Class.define("osparc.product.AboutProduct", {
108108

109109
__buildS4LLiteLayout: function() {
110110
// https://zurichmedtech.github.io/s4l-lite-manual/#/docs/what_is_s4l_lite
111-
const introText = "<i>S4L<sup>lite</sup></i> is a powerful web-based simulation platform that allows you to model and analyze real-world phenomena and to design complex technical devices in a validated environment. With its intuitive interface and advanced tools, <i>S4L<sup>lite</sup></i> makes it easy to develop your simulation project, wherever you are.";
111+
const introText = "Sim4Life.lite is a powerful web-based simulation platform that allows you to model and analyze real-world phenomena and to design complex technical devices in a validated environment. With its intuitive interface and advanced tools, Sim4Life.lite makes it easy to develop your simulation project, wherever you are.";
112112

113113
const licenseUrl = "https://zurichmedtech.github.io/s4l-lite-manual/#/docs/licensing/copyright_Sim4Life";
114114
const licenseText = `Click ${osparc.utils.Utils.createHTMLLink("here", licenseUrl)} to read the license agreements.`;
115115

116116
// more info ZMT website
117117
const moreInfoUrl = "https://zmt.swiss/";
118-
const moreInfoText = `For more information about <i>S4L<sup>lite</sup></i>, visit ${osparc.utils.Utils.createHTMLLink("our website", moreInfoUrl)}.`;
118+
const moreInfoText = `For more information about Sim4Life.lite, visit ${osparc.utils.Utils.createHTMLLink("our website", moreInfoUrl)}.`;
119119

120120
[
121121
introText,

services/static-webserver/client/source/class/osparc/product/quickStart/s4llite/Dashboard.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ qx.Class.define("osparc.product.quickStart.s4llite.Dashboard", {
4040
this._add(dashboardProjects);
4141

4242
const newProjectText = this.tr("\
43-
1) Start <i>S4L<sup>lite</sup></i>: Click the <b>+ Start <i>S4L<sup>lite</sup></i></b> button to create a new project. This will start the user interface of <i>S4L<sup>lite</sup></i>.\
43+
1) Start Sim4Life.lite: Click the <b>+ Start Sim4Life.lite</b> button to create a new project. This will start the user interface of Sim4Life.lite.\
4444
");
4545
const newProject = osparc.product.quickStart.Utils.createLabel(newProjectText);
4646
this._add(newProject);
@@ -53,7 +53,7 @@ qx.Class.define("osparc.product.quickStart.s4llite.Dashboard", {
5353
this._add(otherProjects);
5454

5555
const otherProjects2Text = this.tr("\
56-
3) TUTORIALS: A set of pre-built read-only tutorial projects with results is available to all <i>S4L<sup>lite</sup></i> users. When a tutorial is selected, a \
56+
3) TUTORIALS: A set of pre-built read-only tutorial projects with results is available to all Sim4Life.lite users. When a tutorial is selected, a \
5757
copy is automatically created and added to the user’s Projects tab. This new copy is editable and can be shared.\
5858
");
5959
const otherProjects2 = osparc.product.quickStart.Utils.createLabel(otherProjects2Text);
@@ -68,8 +68,8 @@ qx.Class.define("osparc.product.quickStart.s4llite.Dashboard", {
6868
this._add(dashboardTutorials);
6969

7070
const importProjectsText = this.tr("\
71-
4) To open an existing desktop project in <i>S4L<sup>lite</sup></i>: \
72-
- Click the + Start <i>S4L<sup>lite</sup></i> button to create a new project.<br>\
71+
4) To open an existing desktop project in Sim4Life.lite: \
72+
- Click the + Start Sim4Life.lite button to create a new project.<br>\
7373
- Click the menu and select “File Browser…”.<br>\
7474
- Click “Upload File” for the .smash project and select the file from your desktop. Repeat the same step, but this \
7575
time select “Upload Folder” and then select the result folder from your desktop. Close the window<br>\

services/static-webserver/client/source/class/osparc/product/quickStart/s4llite/S4LLiteSpecs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ qx.Class.define("osparc.product.quickStart.s4llite.S4LLiteSpecs", {
1919
extend: osparc.product.quickStart.SlideBase,
2020

2121
construct: function() {
22-
const title = this.tr("<i>S4L<sup>lite</sup></i>: Features and Limitations");
22+
const title = this.tr("Sim4Life.lite: Features and Limitations");
2323
this.base(arguments, title);
2424
},
2525

2626
members: {
2727
_populateCard: function() {
2828
const introText = this.tr("\
29-
<i>S4L<sup>lite</sup></i> is a powerful web-based simulation platform that allows you to model and analyze real-world phenomena and to \
30-
design complex technical devices in a validated environment. <i>S4L<sup>lite</sup></i> has been created specifically for students to \
29+
Sim4Life.lite is a powerful web-based simulation platform that allows you to model and analyze real-world phenomena and to \
30+
design complex technical devices in a validated environment. Sim4Life.lite has been created specifically for students to \
3131
facilitate their understanding of computational modeling and simulations for various topics, ranging from wireless communication \
32-
to medical applications. The access to <i>S4L<sup>lite</sup></i> is available free of charge to students enrolled at registered universities.\
32+
to medical applications. The access to Sim4Life.lite is available free of charge to students enrolled at registered universities.\
3333
");
3434
const intro = osparc.product.quickStart.Utils.createLabel(introText);
3535
this._add(intro);
3636

3737
const featuresText = this.tr("\
38-
<b><i>S4L<sup>lite</sup></i> offers</b><br>\
38+
<b>Sim4Life.lite offers</b><br>\
3939
- Framework (GUI, Modeling, Postprocessing)<br>\
4040
- 3D modeling environment (based on the ACIS toolkit) and CAD translators<br>\
4141
- Postprocessing and visualization of the simulation results (2D and 3D viewers, 2D planar slice, volume rendering, streamlines, surface fields on arbitrary 3D structures, radiation and far-field data)<br>\

services/static-webserver/client/source/class/osparc/product/quickStart/s4llite/S4LLiteUI.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ qx.Class.define("osparc.product.quickStart.s4llite.S4LLiteUI", {
1919
extend: osparc.product.quickStart.SlideBase,
2020

2121
construct: function() {
22-
const title = this.tr("<i>S4L<sup>lite</sup></i>");
22+
const title = this.tr("Sim4Life.lite");
2323
this.base(arguments, title);
2424
},
2525

2626
members: {
2727
_populateCard: function() {
2828
const introText = this.tr("\
29-
To check the <i>S4L<sup>lite</sup></i> manual, please open a project and access the documentation via Help in the menu as shown below. Enjoy!\
29+
To check the Sim4Life.lite manual, please open a project and access the documentation via Help in the menu as shown below. Enjoy!\
3030
");
3131
const intro = osparc.product.quickStart.Utils.createLabel(introText);
3232
this._add(intro);

services/static-webserver/client/source/class/osparc/product/quickStart/s4llite/Welcome.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ qx.Class.define("osparc.product.quickStart.s4llite.Welcome", {
3030
this._add(welcome);
3131

3232
const introText = this.tr("\
33-
This quick user’s guide gives a short introduction to <i>S4L<sup>lite</sup></i>. We will show:<br>\
33+
This quick user’s guide gives a short introduction to Sim4Life.lite. We will show:<br>\
3434
- how to get started with a new project,<br>\
3535
- how to get started from an existing tutorial project<br>\
36-
- how to open Sim4Life lite desktop simulation projects in <i>S4L<sup>lite</sup></i>,<br>\
37-
- <i>S4L<sup>lite</sup></i> features, limitations and user interface<br>\
36+
- how to open Sim4Life desktop simulation projects in Sim4Life.lite,<br>\
37+
- Sim4Life.lite features, limitations and user interface<br>\
3838
<br>\
39-
For more specific technical information, please refer to the Dashboard Manual and the <i>S4L<sup>lite</sup></i> Manual.\
39+
For more specific technical information, please refer to the Dashboard Manual and the Sim4Life.lite Manual.\
4040
");
4141
const intro = osparc.product.quickStart.Utils.createLabel(introText);
4242
this._add(intro);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"linkedResource": "services",
141141
"resources": [{
142142
"expectedKey": "simcore/services/dynamic/sim4life-lite",
143-
"title": "Start <i>S4L<sup>lite</sup></i>",
143+
"title": "Start ${replace_me_product_name}",
144144
"description": "New project",
145145
"newStudyLabel": "New project",
146146
"idToWidget": "startS4LButton"

0 commit comments

Comments
 (0)