Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
maxWidth: 500
});

const label = osparc.ui.window.TabbedView.createHelpLabel(this.tr("For Privacy reasons, you might want to hide your Full Name and/or the email to other users"));
const label = osparc.ui.window.TabbedView.createHelpLabel(this.tr("For Privacy reasons, you might want to hide your First and Last Names and/or the Email to other users"));
box.add(label);

const hideFullname = new qx.ui.form.CheckBox().set({
Expand All @@ -237,7 +237,7 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {

const form = new qx.ui.form.Form();
form.add(hideFullname, "Hide Full Name", null, "hideFullname");
form.add(hideEmail, "Hide email", null, "hideEmail");
form.add(hideEmail, "Hide Email", null, "hideEmail");
box.add(new qx.ui.form.renderer.Single(form));

// binding to a model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ qx.Class.define("osparc.desktop.preferences.pages.ConfirmationsPage", {
cbConfirmStopNode.addListener("changeValue", e => osparc.Preferences.patchPreferenceField("confirmStopNode", cbConfirmStopNode, e.getData()));
box.add(cbConfirmStopNode);

const cbSnapNodeToGrid = new qx.ui.form.CheckBox(this.tr("Snap Node to grid"));
const cbSnapNodeToGrid = new qx.ui.form.CheckBox(this.tr("Snap Node to Grid"));
preferencesSettings.bind("snapNodeToGrid", cbSnapNodeToGrid, "value");
cbSnapNodeToGrid.addListener("changeValue", e => osparc.Preferences.patchPreferenceField("snapNodeToGrid", cbSnapNodeToGrid, e.getData()));
box.add(cbSnapNodeToGrid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ qx.Class.define("osparc.desktop.preferences.pages.GeneralPage", {

__addLowDiskSpaceSetting: function() {
const box = osparc.ui.window.TabbedView.createSectionBox(this.tr("Low Disk Space Threshold"));
const label = osparc.ui.window.TabbedView.createHelpLabel(this.tr("Set the warning Threshold for low Disk Space availability."), "text-13-italic");
const label = osparc.ui.window.TabbedView.createHelpLabel(this.tr("Set the warning Threshold for Low Disk Space availability"), "text-13-italic");
box.add(label);
const form = new qx.ui.form.Form();
const diskUsageSpinner = new qx.ui.form.Spinner().set({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ qx.Class.define("osparc.product.AboutProduct", {
__buildLayout: function() {
switch (osparc.product.Utils.getProductName()) {
case "s4l":
this.__buildS4LLayout();
break;
case "s4lacad":
this.__buildS4LAcademicLayout();
this.__buildS4LLayout();
break;
case "s4llite":
this.__buildS4LLiteLayout();
Expand All @@ -73,11 +71,11 @@ qx.Class.define("osparc.product.AboutProduct", {
__buildS4LLayout: function() {
const licenseUrl = osparc.store.Support.getLicenseURL();
const text = this.tr(`
sim4life.io is a native implementation of the most advanced simulation platform, Sim4Life, in the cloud. \
Sim4Life.web is a native implementation of the most advanced simulation platform, Sim4Life, in the cloud. \
The platform empowers users to simulate, analyze, and predict complex, multifaceted, and dynamic biological interactions within the full anatomical complexity of the human body. \
It provides the ability to set up and run complex simulations directly within any browser, utilizing cloud technology.
<br><br>
sim4life.io makes use of technologies developed by our research partner for the o<sup>2</sup>S<sup>2</sup>PARC platform, the IT’IS Foundation, and co-funded by the U.S. National Institutes of Health’s SPARC initiative.\
Sim4Life.web makes use of technologies developed by our research partner for the o<sup>2</sup>S<sup>2</sup>PARC platform, the IT’IS Foundation, and co-funded by the U.S. National Institutes of Health’s SPARC initiative.\
<br><br>
For more information about Sim4Life, please visit ${osparc.utils.Utils.createHTMLLink("sim4life.swiss", "https://sim4life.swiss/")}.
<br><br>
Expand All @@ -90,26 +88,6 @@ qx.Class.define("osparc.product.AboutProduct", {
this.add(label);
},

__buildS4LAcademicLayout: function() {
const licenseUrl = osparc.store.Support.getLicenseURL();
const text = this.tr(`
sim4life.science is a native implementation of the most advanced simulation platform, Sim4Life, in the cloud. \
The platform empowers users to simulate, analyze, and predict complex, multifaceted, and dynamic biological interactions within the full anatomical complexity of the human body. \
It provides the ability to set up and run complex simulations directly within any browser, utilizing cloud technology.
<br><br>
sim4life.science makes use of technologies developed by our research partner for the o<sup>2</sup>S<sup>2</sup>PARC platform, the IT’IS Foundation, and co-funded by the U.S. National Institutes of Health’s SPARC initiative.\
<br><br>
For more information about Sim4Life, please visit ${osparc.utils.Utils.createHTMLLink("sim4life.swiss", "href='https://sim4life.swiss/")}.
<br><br>
To review license agreements, click ${osparc.utils.Utils.createHTMLLink("here", licenseUrl)}.
<br><br>
Send us an email ${this.__getMailTo()}
`);

const label = osparc.product.quickStart.Utils.createLabel(text);
this.add(label);
},

__buildS4LLiteLayout: function() {
// https://zurichmedtech.github.io/s4l-lite-manual/#/docs/what_is_s4l_lite
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.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ qx.Class.define("osparc.vipMarket.Market", {
licensedItemsStore.getLicensedItems(),
licensedItemsStore.getPurchasedLicensedItems(walletId),
])
.then(values => {
.then(async values => {
const licensedItems = values[0];
const purchasedItems = values[1];
osparc.data.model.LicensedItem.addSeatsFromPurchases(licensedItems, purchasedItems);
Expand Down Expand Up @@ -104,21 +104,21 @@ qx.Class.define("osparc.vipMarket.Market", {
}
});

await this.__addFreeItems();

categories.forEach(category => {
this.__buildViPMarketPage(category, category["items"]);
});

if (openCategory) {
this.__openCategory(openCategory);
}

this.__addFreeItems();
});
},

__addFreeItems: function() {
const licensedItemsStore = osparc.store.LicensedItems.getInstance();
licensedItemsStore.getLicensedItems()
return licensedItemsStore.getLicensedItems()
.then(async licensedItems => {
this.__freeItems = [];
const licensedItemsArr = Object.values(licensedItems);
Expand Down
Loading