Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
3385c38
AGP-299, Link to explorer
Miikat Sep 25, 2017
05e1016
AGP-299, Add coin name to explorer link
Miikat Sep 26, 2017
2fdc565
AGP-299, button placement change
Miikat Sep 28, 2017
c619d8b
spv wallet ui
pbca26 Oct 3, 2017
862f6d8
AGP-299, Hook to gettransaction & getrawtransaction & print return va…
Miikat Oct 3, 2017
d8c82d4
AGP-299, Combine functions
Miikat Oct 3, 2017
51f4a23
settings spv server selection
pbca26 Oct 7, 2017
ce61fbb
create wallet fix
pbca26 Oct 7, 2017
0b74e83
missing spv ui; spv bug fixes
pbca26 Oct 7, 2017
fe22bbc
display kmd interest in tx history
pbca26 Oct 8, 2017
0b33b49
single spv server warning icon
pbca26 Oct 8, 2017
343c262
send coin amount validation fix
pbca26 Oct 9, 2017
a2b6390
spv coin mode hide by default
pbca26 Oct 10, 2017
1241ce6
proper errors handling
pbca26 Oct 10, 2017
6c4a14a
'AGT-99'
pbca26 Oct 10, 2017
d3c1e88
AGT-103
pbca26 Oct 11, 2017
cbbabc3
jumblr deposit address toaster fix
pbca26 Oct 11, 2017
0c7363e
mnz ac native
pbca26 Oct 11, 2017
3d21e71
spv trigger dashboard update if server was changed
pbca26 Oct 11, 2017
dd896ef
jumblr placeholder render fix
pbca26 Oct 11, 2017
8e510ba
AGT-66 user friendly debug.log enoent message
pbca26 Oct 12, 2017
d07eaba
prevent same toasters displaying twice
pbca26 Oct 12, 2017
273d717
datadir settings fix
pbca26 Oct 12, 2017
2ab746d
missing sockets func in settings app update
pbca26 Oct 13, 2017
3a0af8a
zcash params fetch modal
pbca26 Oct 13, 2017
6537cbd
AGT-109
pbca26 Oct 13, 2017
783f7ae
AGT-67 updated slack invite links
pbca26 Oct 13, 2017
fbd9894
revert back slack invite link
pbca26 Oct 13, 2017
d974f38
about section href new window
pbca26 Oct 13, 2017
91a156a
dashboard claim interest ui
pbca26 Oct 14, 2017
317840d
kmd main win maxconnections workaround
pbca26 Oct 14, 2017
e51ad13
Merge branch 'electrum' into feature/tx-info-modal
pbca26 Oct 16, 2017
ea658b2
Merge pull request #181 from SuperNETorg/feature/tx-info-modal
pbca26 Oct 16, 2017
6346ab5
reindex blocks handling fix
pbca26 Oct 16, 2017
5963a91
Merge branch 'electrum' of https://github.com/SuperNETorg/EasyDEX-GUI…
pbca26 Oct 16, 2017
bb36419
native send not fully synced warning
pbca26 Oct 16, 2017
9f088bb
native tx history failed tx icon
pbca26 Oct 16, 2017
b6afb62
txinfo modal update
pbca26 Oct 16, 2017
4de7782
disable addr dropdown in spv send
pbca26 Oct 17, 2017
b2884e4
code cleanup
pbca26 Oct 18, 2017
338ba92
AGT-112, AGT-111
pbca26 Oct 19, 2017
977bda4
placeholder text fix
pbca26 Oct 19, 2017
8c24d45
hide app update under experimental option
pbca26 Oct 19, 2017
94757ea
enable claim interest ui for balances > 10 kmd
pbca26 Oct 19, 2017
82aed04
possible win sync workaround fix
pbca26 Oct 19, 2017
f93ca21
AGT-115, tab resize interval
pbca26 Oct 20, 2017
e45a78c
AGT-114
pbca26 Oct 20, 2017
2716f20
custom seed better requirements desc
pbca26 Oct 20, 2017
4ceb255
datadir toaster extra details
pbca26 Oct 20, 2017
1537412
select kmd spv/native coin by default
pbca26 Oct 20, 2017
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
30 changes: 26 additions & 4 deletions assets/mainWindow/css/loading.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ body.agama-default-window-height {
}

body.closing-window-height {
height: 300px;
height: 320px;
}

body.agama-app-settings-window {
height: 570px;
height: 610px;
}

.agama-logo {
Expand Down Expand Up @@ -149,6 +149,9 @@ body.agama-app-settings-window {
.margin-right-20 {
margin-right: 20px;
}
.margin-left-20 {
margin-left: 20px;
}
.margin-top-15 {
margin-top: 15px;
}
Expand Down Expand Up @@ -208,7 +211,7 @@ body.agama-app-settings-window {
}

.settings-buttons-block {
margin-top: 50px;
margin-top: 40px;
margin-right: 50px;
text-align: right;
}
Expand Down Expand Up @@ -437,11 +440,30 @@ button.toast-close-button {
display: inherit;
top: inherit;
left: inherit;
right: 33.1%;
padding: 2px 0;
}

.dropdown-menu.native {
right: 256px;
}

.dropdown-menu.lite {
right: 74px;
}

.dropdown-menu li {
cursor: pointer;
margin: 5px 0;
}

small {
display: block;
font-size: 14px;
width: 80%;
text-align: center;
margin: 0 auto;
}

.padding-top-40 {
padding-top: 40px;
}
Binary file added assets/mainWindow/img/fa-flash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 59 additions & 9 deletions assets/mainWindow/js/loading.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// TODO: merge into react app
let _configCopy;

function toggleDropdown() {
const _dropdown = $('.dropdown-menu');
function toggleDropdown(type) {
const _dropdown = $('.dropdown-menu.' + (type === 'lite' ? 'lite' : 'native'));

if (_dropdown.hasClass('hide')) {
_dropdown.removeClass('hide');
} else {
_dropdown.addClass('hide');
}

$('.dropdown-menu.' + (type === 'lite' ? 'native' : 'lite')).addClass('hide');;
}

function initSettingsForm() {
Expand All @@ -23,7 +25,7 @@ function initSettingsForm() {
appConfSchema[key].initDisplay) {
_htmlOut = `
${_htmlOut}
<tr id="${key}">
<tr>
<td class="left">
${appConfSchema[key].displayName}`;

Expand Down Expand Up @@ -129,9 +131,9 @@ function handleSaveSettings() {
remote.getCurrentWindow().testLocation(_configCopy.dataDir)
.then(function(res) {
if (res === -1) {
showToast('error', 'Komodo datadir path is invalid');
showToast('error', 'Komodo datadir path is invalid.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.');
} else if (res === false) {
showToast('error', 'Komodo datadir path is not a directory');
showToast('error', 'Komodo datadir path is not a directory.<br>It must be an absolute path to an existing folder that doesn\'t contain spaces and/or any special characters.');
} else {
// save settings
remote.getCurrentWindow().updateAppSettings(_configCopy);
Expand Down Expand Up @@ -178,15 +180,31 @@ function openSettingsWindow() {
const remote = require('electron').remote;
const window = remote.getCurrentWindow();

$('.dropdown-menu').addClass('hide');
$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
window.createAppSettingsWindow();
}

function startKMDPassive() {
const remote = require('electron').remote;
const window = remote.getCurrentWindow();

$('.dropdown-menu').addClass('hide');
$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
disableModeButtons();

window.startKMDNative('KMD', true);

window.createWindow('open');
window.hide();
}

function startKMDPassive() {
const remote = require('electron').remote;
const window = remote.getCurrentWindow();

$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
disableModeButtons();

window.startKMDNative('KMD', true);
Expand All @@ -195,11 +213,26 @@ function startKMDPassive() {
window.hide();
}

function startSPV(coin) {
const remote = require('electron').remote;
const window = remote.getCurrentWindow();

$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
disableModeButtons();

window.startSPV(coin);

window.createWindow('open');
window.hide();
}

function closeMainWindow(isKmdOnly, isCustom) {
const remote = require('electron').remote;
const window = remote.getCurrentWindow();

$('.dropdown-menu').addClass('hide');
$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
disableModeButtons();

if (!isCustom) {
Expand Down Expand Up @@ -227,13 +260,30 @@ function disableModeButtons() {
$('#normalStartBtn').attr('disabled', true);
$('#settingsBtn').attr('disabled', true);
$('#nativeOnlyBtnCarret').attr('disabled', true);
$('#spvBtn').attr('disabled', true);
$('#spvBtnCarret').attr('disabled', true);
}

function normalStart() {
const remote = require('electron').remote;
let appConf = remote.getCurrentWindow().appConfig;
appConf.iguanaLessMode = false;

$('.dropdown-menu').addClass('hide');
$('.dropdown-menu.lite').addClass('hide');
$('.dropdown-menu.native').addClass('hide');
disableModeButtons();
}

function init() {
const remote = require('electron').remote;
var window = remote.getCurrentWindow();
var appConf = remote.getCurrentWindow().appConfig;

if (!appConf.experimentalFeatures) {
$('#spvBtn').hide();
$('#spvBtnCarret').hide();
$('.dropdown-menu.native').css('right', '165px');
$('#nativeOnlyBtnCarret').css('margin-right', '0');
$('#settingsBtn').css('margin', '0');
}
}
28 changes: 19 additions & 9 deletions react/src/actions/actionCreators.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,17 @@ import {
GET_PIN_LIST,
DASHBOARD_SYNC_ONLY_UPDATE,
DISPLAY_IMPORT_KEY_MODAL,
ELECTRUM_SERVER_CHANGED,
DISPLAY_ZCASH_PARAMS_FETCH,
} from './storeType';

export * from './actions/nativeSyncInfo';
export * from './actions/nativeSend';
export * from './actions/coinList';
// export * from './actions/createWallet';
//export * from './actions/nativeTxHistory';
//export * from './actions/nativeBalance';
export * from './actions/nativeNewAddress';
// export * from './actions/logout';
//export * from './actions/edexGetTx';
export * from './actions/settings';
// export * from './actions/edexBalance';
export * from './actions/addCoin';
//export * from './actions/addressBalance';
//export * from './actions/syncInfo';
//export * from './actions/getAddrByAccount';
// export * from './actions/walletAuth';
export * from './actions/copyAddress';
export * from './actions/sysInfo';
Expand All @@ -54,6 +48,8 @@ export * from './actions/update';
export * from './actions/jumblr';
export * from './actions/interest';
export * from './actions/nativeDashboardUpdate';
export * from './actions/getTxDetails';
export * from './actions/electrum';

export function changeActiveAddress(address) {
return {
Expand Down Expand Up @@ -137,7 +133,7 @@ export function dashboardCoinsState(json) {
return {
type: GET_ACTIVE_COINS,
coins: json,
activeCoins: Object.keys(json.native).length ? true : false,
total: json.total,
}
}

Expand Down Expand Up @@ -278,4 +274,18 @@ export function displayImportKeyModal(display) {
type: DISPLAY_IMPORT_KEY_MODAL,
displayImportKeyModal: display,
}
}

export function electrumServerChanged(isChanged) {
return {
type: ELECTRUM_SERVER_CHANGED,
eletrumServerChanged: isChanged,
}
}

export function toggleZcparamsFetchModal(display) {
return {
type: DISPLAY_ZCASH_PARAMS_FETCH,
displayZcparamsModal: display,
}
}
Loading