Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' into luclu-nsis-wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonfraga committed Mar 28, 2017
2 parents b3a495f + d4eb221 commit 19ba55d
Show file tree
Hide file tree
Showing 27 changed files with 261 additions and 161 deletions.
5 changes: 3 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ const gulp = require('gulp');
const minimist = require('minimist');
const runSeq = require('run-sequence');


// parse commandline arguments
const args = process.argv.slice(2);
const platforms = (process.platform === 'darwin') ? ['mac', 'linux', 'win'] : ['linux', 'win'];
const options = minimist(args, {
string: ['walletSource'],
string: ['platform', 'walletSource', 'test'],
boolean: _.flatten(['wallet', platforms]),
default: {
wallet: false,
walletSource: 'master',
test: 'basic',
},
});

Expand Down Expand Up @@ -81,3 +81,4 @@ gulp.task('uploadQueue', (cb) => {

runSeq.apply(null, _.flatten([tasks, cb]));
});

3 changes: 2 additions & 1 deletion interface/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ frozeman:template-var
frozeman:reactive-timer
frozeman:storage
frozeman:global-notifications
numeral:numeral
reactive-var@1.0.11
sacha:spin
chuangbo:cookie
Expand Down Expand Up @@ -43,3 +42,5 @@ standard-minifier-js@1.2.1
tap:i18n-bundler
shell-server
ecmascript
numeral:numeral
numeral:languages
1 change: 1 addition & 0 deletions interface/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ mongo@1.1.14
mongo-id@1.0.6
mrt:jquery-ui-sortable@1.10.3
npm-mongo@2.2.11_2
numeral:languages@1.5.3
numeral:numeral@1.5.3_1
observe-sequence@1.0.14
ordered-dict@1.0.9
Expand Down
55 changes: 31 additions & 24 deletions interface/client/appStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ The init function of Mist
@method mistInit
*/
mistInit = function(){
mistInit = function () {
console.info('Initialise Mist Interface');

EthBlocks.init();

Tabs.onceSynced.then(function() {
if (0 <= location.search.indexOf('reset-tabs')) {
Tabs.onceSynced.then(function () {
if (location.search.indexOf('reset-tabs') >= 0) {
console.info('Resetting UI tabs');

Tabs.remove({});
}

if(!Tabs.findOne('browser')) {
if (!Tabs.findOne('browser')) {
console.debug('Insert tabs');

Tabs.insert({
Expand All @@ -27,58 +27,65 @@ mistInit = function(){
}

// overwrite wallet on start again, but use $set to dont remove titles
Tabs.upsert({_id: 'wallet'}, {$set: {
url: 'https://wallet.ethereum.org',
redirect: 'https://wallet.ethereum.org',
position: 1,
permissions: {
admin: true
Tabs.upsert(
{ _id: 'wallet' },
{
$set: {
url: 'https://wallet.ethereum.org',
redirect: 'https://wallet.ethereum.org',
position: 1,
permissions: {
admin: true
}
}
}
});
});

// Sets browser as default tab if:
// 1) there's no record of selected tab
// 2) data is corrupted (no saved tab matches localstore)
if(!LocalStore.get('selectedTab') || !Tabs.findOne(LocalStore.get('selectedTab'))){
if (!LocalStore.get('selectedTab') || !Tabs.findOne(LocalStore.get('selectedTab'))) {
LocalStore.set('selectedTab', 'wallet');
}
});
};


Meteor.startup(function(){
Meteor.startup(function () {
console.info('Meteor starting up...');

if (!location.hash) {
if (!location.hash) { // Main window
EthAccounts.init();
mistInit();
}

console.debug('Setting language');

// SET default language
if(Cookie.get('TAPi18next')) {
if (Cookie.get('TAPi18next')) {
TAPi18n.setLanguage(Cookie.get('TAPi18next'));
} else {
var userLang = navigator.language || navigator.userLanguage,
availLang = TAPi18n.getLanguages();
const userLang = navigator.language || navigator.userLanguage;
const availLang = TAPi18n.getLanguages();

// set default language
if (_.isObject(availLang) && availLang[userLang]) {
TAPi18n.setLanguage(userLang);
} else if (_.isObject(availLang) && availLang[userLang.substr(0,2)]) {
TAPi18n.setLanguage(userLang.substr(0,2));
} else if (_.isObject(availLang) && availLang[userLang.substr(0, 2)]) {
TAPi18n.setLanguage(userLang.substr(0, 2));
} else {
TAPi18n.setLanguage('en');
}
}
// change moment and numeral language, when language changes
Tracker.autorun(function(){
if(_.isString(TAPi18n.getLanguage())) {
var lang = TAPi18n.getLanguage().substr(0,2);
Tracker.autorun(function () {
if (_.isString(TAPi18n.getLanguage())) {
const lang = TAPi18n.getLanguage().substr(0, 2);
moment.locale(lang);
numeral.language(lang);
try {
numeral.language(lang);
} catch (err) {
console.error(`numeral.js couldn't set number formating: ${err.message}`);
}
EthTools.setLocale(lang);
}
});
Expand Down
2 changes: 2 additions & 0 deletions interface/client/templates/popupWindows/onboardingScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,14 @@ Template['popupWindows_onboardingScreen_importAccount'].events({
ipc.on('uiAction_checkedWalletFile', function (e, error, type) {
switch (type) {
case 'presale':
console.log(`Imported ${type} account`);
TemplateVar.set(template, 'filePath', files[0].path);
Tracker.afterFlush(function () {
template.$('.password').focus();
});
break;
case 'web3':
console.log(`Imported ${type} account`);
TemplateVar.set(template, 'filePath', files[0].path);
TemplateVar.set(template, 'importing', true);
setTimeout(function () {
Expand Down
77 changes: 38 additions & 39 deletions interface/i18n/mist.de.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"label": "__app__",
"about": "Über __app__",
"checkForUpdates": "Nach Aktualisierungen suchen...",
"checkForNodeUpdates": "Check for Ethereum node updates...",
"checkForNodeUpdates": "Nach Ethereum Softwareknoten Aktualisierungen suchen...",
"services": "Dienste",
"hide": "__app__ ausblenden",
"hideOthers": "Andere ausblenden",
Expand All @@ -24,7 +24,7 @@
"view": {
"label": "Ansicht",
"fullscreen": "Vollbildmodus",
"default": "Default"
"default": "Standard"
},
"accounts": {
"label": "Konten",
Expand All @@ -43,12 +43,12 @@
"runTests": "Tests durchführen",
"logFiles": "Logdatei anzeigen",
"openRemix": "Remix IDE öffnen",
"ethereumNode": "Ethereum Node",
"ethereumNode": "Ethereum Softwareknoten",
"network": "Netzwerk",
"mainNetwork": "Hauptnetzwerk",
"startMining": "⛏ Mining starten (nur auf Testnetz)",
"stopMining": "⛏ Mining stoppen",
"externalNode": "using external node",
"externalNode": "externer Softwareknoten aktiv",
"nodeMode": "Chain download",
"fullNode": "Store full blockchain",
"lightNode": "Use light Node (experimental!)"
Expand All @@ -61,12 +61,12 @@
},
"help": {
"label": "Hilfe",
"reportBug": "Report an issue on Github"
"reportBug": "Ein Problem melden"
}
},
"errors": {
"nodeConnect": "Es konnte keine Verbindung mit dem Node hergestellt werden. Weitere Informatinen finden sich in den Logdateien.",
"nodeStartup": "Anscheinend konnte der Node nicht gestartet werden, läuft evtl. schon eine andere Instanz? Oder läuft eventuell gerade ein Datenbank-Update?",
"nodeConnect": "Es konnte keine Verbindung mit dem Softwareknoten hergestellt werden. Weitere Informatinen finden sich in den Logdateien.",
"nodeStartup": "Anscheinend konnte der Softwareknoten nicht gestartet werden, läuft evtl. schon eine andere Instanz? Oder läuft eventuell gerade ein Datenbank-Update?",
"timeSync": {
"title": "Deine Computer Uhr ist nicht synchronisiert!",
"description": "Um mit dem Ethereum netzwerk zu synchronisieren muss deine Computer Uhr mit einem Zeit-Server synchronisiert werden.",
Expand All @@ -75,8 +75,8 @@
"darwin": "Um Zeit Synchronisation einzuschalten, öffne die System Einstellungen und checke \"Zeit Datum automatisch\"."
},
"nodeChecksumMismatch": {
"title": "Checksum mismatch in downloaded node!",
"description": "__algorithm__: __hash__\n\nPlease install the __type__ node version __version__ manually."
"title": "Prüfsumme des heruntergeladenen Softwareknotens stimmt nicht überein!",
"description": "__algorithm__: __hash__\n\nBitte installiere den Softwareknoten __type__ in Version __version__ manuell."
},
"legacyChain": {
"title": "Legacy chain detected",
Expand Down Expand Up @@ -115,34 +115,33 @@
}
},
"startScreen": {
"runningNodeFound": "Laufender Ethereum Node gefunden!",
"startingNode": "Starte Ethereum Node...",
"runningNodeFound": "Laufender Ethereum Softwareknoten gefunden!",
"startingNode": "Starte Ethereum Softwareknoten...",
"startedNode": "Starte Anwendung...",
"nodeConnectionTimeout": "Ethereum Node konnte nicht gestartet werden!<br><small>Wenn Sie <a href='https://www.ethereum.org/cli#geth' class='button' target='_blank'>Geth installiert haben,</a>, verwenden Sie bitte diesen Befehl, um Geth zu starten: <br> <code>geth --ipcpath __path__</code></small><br> <small><a href='https://github.com/ethereum/mist/issues' class='button' target='_blank'>oder senden Sie einen Fehlerreport</a></small>",
"nodeBinaryNotFound": "Keine Programmdatei für den Ethereum Node gefunden!<br><small> <a href='https://www.ethereum.org/cli#geth' class='button' target='_blank'> Bitte starten Sie den Ethereum Node manuell. </a> </small>",
"nodeSyncing": "Ethereum Node muss synchronisiert werden, bitte warten...",
"nodeConnectionTimeout": "Ethereum Softwareknoten konnte nicht gestartet werden!<br><small>Wenn Sie <a href='https://www.ethereum.org/cli#geth' class='button' target='_blank'>Geth installiert haben,</a>, verwenden Sie bitte diesen Befehl, um Geth zu starten: <br> <code>geth --ipcpath __path__</code></small><br> <small><a href='https://github.com/ethereum/mist/issues' class='button' target='_blank'>oder senden Sie einen Fehlerreport</a></small>",
"nodeBinaryNotFound": "Keine Programmdatei für den Ethereum Softwareknoten gefunden!<br><small> <a href='https://www.ethereum.org/cli#geth' class='button' target='_blank'> Bitte starten Sie den Ethereum Softwareknoten manuell. </a> </small>",
"nodeSyncing": "Ethereum Softwareknoten muss synchronisieren, bitte warten...",
"nodeSyncInfo": "Block __displayBlock__ von __highestBlock__ wird heruntergeladen.",
"nodeSyncConnecting": "Suche nach Peers...",
"peerSearchTimeout": "Peer-Suche überspringen",
"stoppingNode": "Stopping Ethereum node...",
"nodeStarting": "Ethereum node starting up...",
"nodeStarted": "Ethereum node started",
"nodeConnected": "Ethereum node connected",
"nodeStopping": "Ethereum node stopping...",
"nodeStopped": "Ethereum node stopped",
"nodeError": "Ethereum node connection error :'(",
"unableToBindPort": "Ethereum node cannot run. Is another instance already running?",
"nodeSyncInfoStates": "Downloading block __displayBlock__ of __highestBlock__, <br> Downloading chain structure __displayState__ of __displayKnownStates__",
"nodeSyncFoundPeers": "Connecting to __peers__ peers...",
"nodeSyncingStopped": "Ethereum node sync stopped",
"launchApp": "Launch Application",
"stoppingNode": "Stoppe Ethereum Softwareknoten...",
"nodeStarting": "Ethereum Softwareknoten startet...",
"nodeStarted": "Ethereum Softwareknoten gestartet",
"nodeConnected": "Ethereum Softwareknoten verbunden",
"nodeStopping": "Ethereum Softwareknoten stoppt...",
"nodeStopped": "Ethereum Softwareknoten gestoppt",
"nodeError": "Verbindungsproblem zum Ethereum Softwareknoten :'(",
"unableToBindPort": "Ethereum Softwareknoten kann nicht gestartet werden. Läuft bereits eine andere Instanz?",
"nodeSyncInfoStates": "Lade Block __displayBlock__ von __highestBlock__, <br> Lade chain structure __displayState__ von __displayKnownStates__",
"nodeSyncFoundPeers": "Verbinde mit __peers__ Peers...",
"launchApp": "Starte die Anwendung",
"clientBinaries": {
"scanning": "Checking for node update...",
"downloading": "Downloading new node...",
"loadConfig": "Loading client config...",
"scanning": "Suche nach Softwareknoten Aktualisierung...",
"downloading": "Lade neue Softwareknoten-Version herunter...",
"loadConfig": "Lade Softwareknoten Konfiguration...",
"filtering": "Filtering client binaries...",
"done": "Ethereum node up-to-date...",
"error": "Error running downloaded binary."
"done": "Ethereum Softwareknoten aktuell...",
"error": "Ethereum Softwareknoten konnte nicht gestartet werden."
}
},
"popupWindows": {
Expand All @@ -153,7 +152,7 @@
"creating": "Konto wird angelegt...",
"errors": {
"passwordMismatch": "Die Passwörter stimmen nicht überein.",
"passwordTooShort": "Make a longer password"
"passwordTooShort": "Wähle ein längeres Passwort..."
}
},
"unlockMasterPassword": {
Expand Down Expand Up @@ -184,14 +183,14 @@
"sendTransaction": "Transaktion absenden"
},
"errors": {
"connectionTimeout": "Eine Verbindung mit dem Node war nicht möglich, eventuell ist der Node im Hintergrund abgestürzt?",
"connectionTimeout": "Eine Verbindung mit dem Softwareknoten war nicht möglich, eventuell ist der Softwareknoten im Hintergrund abgestürzt?",
"wrongPassword": "Falsches Passwort",
"multipleKeysMatchAddress": "Multiple keys match address, please remove duplicates from keystore (menu -> accounts -> backup -> accounts)",
"insufficientFundsForGas": "Insufficient funds in main account (etherbase) to pay for gas",
"sameAccount": "Can't send to itself"
"sameAccount": "Kann nicht zum gleichen Konto schicken."
},
"transactionThrow": "The contract won't allow this transaction to be executed",
"noEstimate": "We couldn't estimate the gas.",
"transactionThrow": "Der Vertrag wird diese Transaktion nicht ausführen können",
"noEstimate": "Transaktionsgebühr konnte nicht geschätzt werden.",
"gasLimit": "Provide maximum fee",
"parameters": "Parameters",
"showRawBytecode": "show raw data",
Expand All @@ -207,7 +206,7 @@
"gotoMainnetDescription": " Sie werden etwas Ether benötigen, um Verträge anzulegen und auszuführen. Wir werden Ihnen helfen, etwas zu bekommen ...",
"doYouHaveAWalletFile": "Haben Sie eine Wallet-Datei?",
"walletFileDescription": "<p>Wallet-Datei zum importieren in dieses Fenster ziehen.<br>Wenn Sie 2014 am Ethereum-Pre-sale teilgenommen haben, sollten Sie über eine Datei mit dem Dateinamen <code>ethereum_wallet_backup.json</code> verfügen. Sie wurde nach dem Kauf heruntergeladen und Ihnen auch per E-Mail geschickt.</p>",
"dropFilesHere": "Pre-sale Datei hochladen",
"dropFilesHere": "Pre-sale Datei laden",
"creating": "Erstellen...",
"importing": "Importieren...",
"skip": "Diesen Schritt überspringen",
Expand All @@ -234,7 +233,7 @@
"learnReceipt": "Lernen Sie dieses Rezept kennen"
},
"errors": {
"nodeNotStartedYet": "Warten Sie noch einige Sekunden, bis der Node gestartet ist, und versuchen Sie es dann noch einmal",
"nodeNotStartedYet": "Warten Sie noch einige Sekunden, bis der Softwareknoten gestartet ist, und versuchen Sie es dann noch einmal",
"unknownFile": "Datei nicht erkannt.",
"wrongPassword": "Falsches Passwort.",
"importFailed": "Beim Import der Datei ist folgender Fehler aufgetreten: __error__"
Expand Down Expand Up @@ -276,4 +275,4 @@
"bytes": "Bytes"
}
}
}
}
1 change: 0 additions & 1 deletion interface/i18n/mist.en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
"nodeSyncInfoStates": "Downloading block __displayBlock__ of __highestBlock__, <br> Downloading chain structure __displayState__ of __displayKnownStates__",
"nodeSyncConnecting": "Looking for peers...",
"nodeSyncFoundPeers": "Connecting to __peers__ peers...",
"nodeSyncingStopped": "Ethereum node sync stopped",
"peerSearchTimeout": "Skip peer search",
"launchApp": "Launch Application",
"clientBinaries": {
Expand Down
5 changes: 3 additions & 2 deletions interface/i18n/mist.es.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@
"unableToBindPort": "Ethereum node cannot run. Is another instance already running?",
"nodeSyncInfoStates": "Downloading block __displayBlock__ of __highestBlock__, <br> Downloading chain structure __displayState__ of __displayKnownStates__",
"nodeSyncFoundPeers": "Connecting to __peers__ peers...",
"nodeSyncingStopped": "Ethereum node sync stopped",
"launchApp": "Launch Application",
"clientBinaries": {
"scanning": "Checking for node update...",
Expand Down Expand Up @@ -197,7 +196,9 @@
"showRawBytecode": "show raw data",
"showDecodedParameters": "show decoded parameters",
"lookupData": "Try to decode data",
"lookupDataExplainer": "Look this up on the internet"
"lookupDataExplainer": "Look this up on the internet",
"overBlockGasLimit": "The gas required for this execution could exceed the block gas limit.",
"notEnoughGas": "Gas might not be enough to successfully finish this transaction.<br>Click here to increase the gas amount."
},
"onboarding": {
"description": "Ethereum es una plataforma descentralizada para la construcción de aplicaciones en una blockchain: segura y a prueba de manipulaciones que puede transferir valor, propiedad y vive para siempre",
Expand Down
Loading

0 comments on commit 19ba55d

Please sign in to comment.