Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ node_modules
app/bower_components
ui/bower_components
npm-debug.log
iri/*
out/*
ccurl/*
iri
out
ccurl
31 changes: 31 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [{
"name": "Launch main.js",
"request": "launch",
"type": "node",
"program": "${workspaceRoot}/app/js/main.js",
"stopOnEntry": false,
"args": ["--enableDeveloperConsole"],
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"runtimeArgs": ["--nolazy"],
"env": {
"NODE_ENV": "development"
},
"console": "integratedTerminal",
"sourceMaps": false
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"sourceMaps": false,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
}]
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"command": "${workspaceRoot}/node_modules/electron/dist/electron",
"args": ["app/js/main.js"],
"tasks": [
{
"type": "npm",
"script": "compile:win64",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
4 changes: 4 additions & 0 deletions app/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,10 @@ electron.ipcRenderer.on("showRecovery", function() {
UI.sendToWebview("showRecovery");
})

electron.ipcRenderer.on("showSeedGenerator", function() {
UI.sendToWebview("showSeedGenerator");
})

electron.ipcRenderer.on("stopCcurl", function(event, data) {
UI.sendToWebview("stopCcurl", data);
});
Expand Down
31 changes: 23 additions & 8 deletions app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var App = (function(App, undefined) {
var settings = {};
var isDevelopment = String(process.env.NODE_ENV).trim() === "development";
var isDebug = process.argv.indexOf("--enableDeveloperConsole") !== -1;
var showDevTools = false;
var showDevTools = false
var didCheckForUpdates = false;
var appVersion = require("../../package.json").version;
var isLookingAtServerLog = false;
Expand Down Expand Up @@ -591,6 +591,12 @@ var App = (function(App, undefined) {
{
label: App.t("tools"),
submenu: [
{
label: App.t("generate_your_secret_seed"),
click(item) {
App.showSeedGenerator();
}
},
{
label: App.t("view_node_info"),
accelerator: "CmdOrCtrl+I",
Expand Down Expand Up @@ -679,25 +685,25 @@ var App = (function(App, undefined) {
});

if (settings.lightWallet == 1) {
template[2].submenu[14].label = App.t("switch_to_full_node");
template[2].submenu[15].label = App.t("switch_to_full_node");
// Remove "view neighbors and view server log" options.
template[2].submenu.splice(1, 3);
template[2].submenu.splice(2, 3);
// Remove "network spammer and open database folder" options.
template[2].submenu.splice(3, 3);
template[2].submenu.splice(4, 3);
// Remove "edit neighbors" option.
template[2].submenu.splice(4, 1);
template[2].submenu.splice(5, 1);
if (process.platform == "darwin") {
// Remove options from mac platforms
template[2].submenu.splice(5, 2);
template[2].submenu.splice(6, 2);
}
} else {
if (settings.lightWallet == -1) {
//remove the switch to light / full node link
template[2].submenu.splice(12, 2);
template[2].submenu.splice(13, 2);
}
if (process.platform == "darwin") {
// Remove options from mac platform
template[2].submenu.splice(10, 2);
template[2].submenu.splice(11, 2);
}
}
}
Expand Down Expand Up @@ -2020,6 +2026,14 @@ var App = (function(App, undefined) {
}
}

App.showSeedGenerator = function () {
if (App.windowIsReady()) {
App.showWindowIfNotVisible()
win.webContents.send("showSeedGenerator")
}
}


App.fetchProviders = function (urls) {
return Promise.all(urls.map(url => {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -2295,6 +2309,7 @@ var App = (function(App, undefined) {
}
}


App.showPreferences = function() {
if (App.windowIsReady()) {
App.showWindowIfNotVisible();
Expand Down
9 changes: 9 additions & 0 deletions app/js/server-ipc.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,15 @@ ipcRenderer.on('showRecovery', function(event, callback) {
}
})

ipcRenderer.on('showSeedGenerator', function(event, callback) {
console.log('enter seed generator tool')
if (typeof(UI) !== "undefined") {
UI.showSeedGenerator()
}
})



function _hoverAmountStart(amount) {
ipcRenderer.send("hoverAmountStart", amount);
}
Expand Down
8 changes: 7 additions & 1 deletion locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/el/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Άθροισμα ελέγχου seed",
"invalid_response":"Μή έγκυρη απόκριση",
"no_connection_to_host":"Δεν υπάρχει σύνδεση με το διακομιστή",
"request_error":"Σφάλμα αιτήματος"
"request_error":"Σφάλμα αιτήματος",
"generate_your_secret_seed": "Δημιουργήστε τον μυστικό σας σπόρο",
"generated_seed_instructions": "Γράψτε αυτές τις τιμές κάτω κάπου και κρατήστε τους ασφαλείς! Χωρίς αυτά, δεν θα έχετε πρόσβαση στα χρήματά σας.",
"show_previous_seed_chunk": "Προηγούμενος",
"show_next_seed_chunk": "Επόμεν",
"generated_seed_chunk_number": "Αριθμός τεμαχίων",
"generated_seed_confirm": "Επιβεβαιώνω"
}
8 changes: 7 additions & 1 deletion locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,5 +359,11 @@
"recovery_old_seed_hash_balance": "Old seed has balance. Please move the balance to a new seed and try again.",
"recovery_submitted_address": "Any reclaimed tokens will be sent to your address shown below. For security reasons, do not spend from this address until you receive all your funds.",
"recovery_unexpected_error": "An unxpected error occured. Please try again.",
"recovery_receive_address": "Address:"
"recovery_receive_address": "Address:",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/es-ES/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Checksum de Seed",
"invalid_response":"Respuesta inválida",
"no_connection_to_host":"No hay conexión al Host",
"request_error":"Error en la solicitud"
"request_error":"Error en la solicitud",
"generate_your_secret_seed": "Genera tu semilla secreta",
"generated_seed_instructions": "¡Escriba estos valores en algún lugar y manténgalos seguros! Sin estos, no podrá acceder a su dinero.",
"show_previous_seed_chunk": "Anterior",
"show_next_seed_chunk": "Siguiente",
"generated_seed_chunk_number": "Número de fragmento",
"generated_seed_confirm": "Confirmar"
}
8 changes: 7 additions & 1 deletion locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Vérification de l'adresse de la Seed",
"invalid_response":"Réponse non valide",
"no_connection_to_host":"Aucune connexion à l’hôte",
"request_error":"Erreur de requête"
"request_error":"Erreur de requête",
"generate_your_secret_seed": "Générez vos graines secrètes",
"generated_seed_instructions": "Écrivez ces valeurs quelque part et gardez-les en sécurité! Sans ceux-ci, vous ne serez pas en mesure d'accéder à votre argent.",
"show_previous_seed_chunk": "Précédent",
"show_next_seed_chunk": "Prochain",
"generated_seed_chunk_number": "Numéro de morceau",
"generated_seed_confirm": "Confirmer"
}
8 changes: 7 additions & 1 deletion locales/he/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/ko/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"씨드 체크섬",
"invalid_response":"잘못된 응답",
"no_connection_to_host":"호스트와의 연결이 끊겼습니다.",
"request_error":"요청 오류"
"request_error":"요청 오류",
"generate_your_secret_seed": "비밀 시드 생성",
"generated_seed_instructions": "이 값들을 어딘가에 기록하고 안전하게 유지하십시오! 이것들이 없으면 돈에 접근 할 수 없습니다.",
"show_previous_seed_chunk": "너무 이른",
"show_next_seed_chunk": "다음 것",
"generated_seed_chunk_number": "청크 번호",
"generated_seed_confirm": "확인"
}
8 changes: 7 additions & 1 deletion locales/nl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Ongeldig antwoord",
"no_connection_to_host":"Geen verbinding met host",
"request_error":"Verzoek fout"
"request_error":"Verzoek fout",
"generate_your_secret_seed": "Genereer je geheime zaad",
"generated_seed_instructions": "Schrijf deze waarden ergens op en bewaar ze! Zonder deze hebt u geen toegang tot uw geld.",
"show_previous_seed_chunk": "Voorgaand",
"show_next_seed_chunk": "Volgende",
"generated_seed_chunk_number": "Chunk nummer",
"generated_seed_confirm": "Bevestigen"
}
8 changes: 7 additions & 1 deletion locales/no/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/pl/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/pt-PT/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
8 changes: 7 additions & 1 deletion locales/ru/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Контрольная сумма Seed'a",
"invalid_response":"Неверный ответ",
"no_connection_to_host":"Нет соединения с хостом",
"request_error":"Ошибка запроса"
"request_error":"Ошибка запроса",
"generate_your_secret_seed": "Создайте свое секретное семя",
"generated_seed_instructions": "Запишите эти значения где-нибудь и сохраните их в безопасности! Без них вы не сможете получить доступ к своим деньгам.",
"show_previous_seed_chunk": "Предыдущий",
"show_next_seed_chunk": "Следующий ",
"generated_seed_chunk_number": "Номер канала",
"generated_seed_confirm": "Подтвердить"
}
8 changes: 7 additions & 1 deletion locales/sv-SE/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Kontrollnummer",
"invalid_response":"Ogiltigt svar",
"no_connection_to_host":"Ingen anslutning till Host",
"request_error":"Begäranfel"
"request_error":"Begäranfel",
"generate_your_secret_seed": "Generera ditt hemliga frö",
"generated_seed_instructions": "Skriv dessa värden ner någonstans och håll dem säkra! Utan dessa kan du inte få tillgång till dina pengar.",
"show_previous_seed_chunk": "Tidigare",
"show_next_seed_chunk": "Nästa",
"generated_seed_chunk_number": "Chunk nummer",
"generated_seed_confirm": "Bekräfta"
}
8 changes: 7 additions & 1 deletion locales/tr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,11 @@
"seed_checksum":"Seed Checksum",
"invalid_response":"Invalid Response",
"no_connection_to_host":"No Connection to Host",
"request_error":"Request Error"
"request_error":"Request Error",
"generate_your_secret_seed": "Generate your secret seed",
"generated_seed_instructions": "Write these values down somewhere and keep them safe! Without these you will not be able to access your money.",
"show_previous_seed_chunk": "Previous",
"show_next_seed_chunk": "Next",
"generated_seed_chunk_number": "Chunk number",
"generated_seed_confirm": "Confirm"
}
Loading