Some Styling updates, Removed rebuild, Added About page + Semantic UI.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// In renderer process (web page).
|
||||
const {ipcRenderer} = require("electron");
|
||||
const {
|
||||
ipcRenderer
|
||||
} = require("electron");
|
||||
|
||||
class MainGUI {
|
||||
constructor() {
|
||||
@@ -32,6 +34,9 @@ class MainGUI {
|
||||
case "settings":
|
||||
$("#mainNavBtnSettingsWrapper").addClass("iconSelected");
|
||||
break;
|
||||
case "about":
|
||||
$("#mainNavBtnAboutWrapper").addClass("iconSelected");
|
||||
break;
|
||||
default: // do nothing for now
|
||||
}
|
||||
}
|
||||
@@ -47,7 +52,7 @@ class MainGUI {
|
||||
$("#dlgGeneralError").iziModal();
|
||||
$("#dlgGeneralError").iziModal("open");
|
||||
|
||||
$("#btnGeneralErrorOK").click(function () {
|
||||
$("#btnGeneralErrorOK").click(function() {
|
||||
$("#dlgGeneralError").iziModal("close");
|
||||
});
|
||||
}
|
||||
@@ -59,12 +64,12 @@ class MainGUI {
|
||||
$("#dlgGeneralConfirm").iziModal();
|
||||
$("#dlgGeneralConfirm").iziModal("open");
|
||||
|
||||
$("#btnGeneralConfirmYes").click(function () {
|
||||
$("#btnGeneralConfirmYes").click(function() {
|
||||
$("#dlgGeneralConfirm").iziModal("close");
|
||||
callback(true);
|
||||
});
|
||||
|
||||
$("#btnGeneralConfirmNo").click(function () {
|
||||
$("#btnGeneralConfirmNo").click(function() {
|
||||
$("#dlgGeneralConfirm").iziModal("close");
|
||||
callback(false);
|
||||
});
|
||||
@@ -77,12 +82,12 @@ class MainGUI {
|
||||
$("#dlgAboutInfo").iziModal();
|
||||
$("#dlgAboutInfo").iziModal("open");
|
||||
|
||||
$("#urlOpenLicence, #urlOpenGitHub").off("click").on("click", function (even) {
|
||||
$("#urlOpenLicence, #urlOpenGitHub").off("click").on("click", function(even) {
|
||||
event.preventDefault();
|
||||
ipcRenderer.send("openURL", $(this).attr("href"));
|
||||
});
|
||||
|
||||
$("#btnAboutInfoClose").off("click").on("click", function (even) {
|
||||
$("#btnAboutInfoClose").off("click").on("click", function(even) {
|
||||
$("#dlgAboutInfo").iziModal("close");
|
||||
});
|
||||
}
|
||||
@@ -107,44 +112,49 @@ class MainGUI {
|
||||
}
|
||||
}
|
||||
|
||||
ipcRenderer.on("showAboutDialog", function (event, message) {
|
||||
ipcRenderer.on("showAboutDialog", function(event, message) {
|
||||
EthoMainGUI.showAboutDialog(message);
|
||||
});
|
||||
|
||||
$("#mainNavBtnTransactions").click(function () {
|
||||
$("#mainNavBtnTransactions").click(function() {
|
||||
EthoTransactions.clearFilter();
|
||||
EthoMainGUI.changeAppState("transactions");
|
||||
EthoTransactions.renderTransactions();
|
||||
});
|
||||
|
||||
$("#mainNavBtnAddressBoook").click(function () {
|
||||
$("#mainNavBtnAddressBoook").click(function() {
|
||||
EthoMainGUI.changeAppState("addressBook");
|
||||
EthoAddressBook.renderAddressBook();
|
||||
});
|
||||
|
||||
$("#mainNavBtnSend").click(function () {
|
||||
$("#mainNavBtnSend").click(function() {
|
||||
EthoMainGUI.changeAppState("send");
|
||||
EthoSend.renderSendState();
|
||||
});
|
||||
|
||||
$("#mainNavBtnWallets").click(function () {
|
||||
$("#mainNavBtnWallets").click(function() {
|
||||
EthoMainGUI.changeAppState("account");
|
||||
EthoWallets.renderWalletsState();
|
||||
});
|
||||
|
||||
$("#mainNavBtnMarkets").click(function () {
|
||||
$("#mainNavBtnMarkets").click(function() {
|
||||
EthoMainGUI.changeAppState("markets");
|
||||
EthoMarkets.renderMarkets();
|
||||
});
|
||||
|
||||
$("#mainNavBtnUploads").click(function () {
|
||||
$("#mainNavBtnUploads").click(function() {
|
||||
EthoMainGUI.changeAppState("uploads");
|
||||
EthoUploads.renderUploads();
|
||||
});
|
||||
|
||||
$("#mainNavBtnSettings").click(function () {
|
||||
$("#mainNavBtnSettings").click(function() {
|
||||
EthoMainGUI.changeAppState("settings");
|
||||
EthoSettings.renderSettingsState();
|
||||
});
|
||||
|
||||
EthoMainGUI = new MainGUI();
|
||||
$("#mainNavBtnAbout").click(function() {
|
||||
EthoMainGUI.changeAppState("about");
|
||||
EthoAbout.renderAbout();
|
||||
});
|
||||
|
||||
EthoMainGUI = new MainGUI();
|
||||
|
||||
Reference in New Issue
Block a user