From 3d3118d9c50a8c304d293a1caddab9ef76106aed Mon Sep 17 00:00:00 2001 From: Boris Kubiak Date: Sun, 18 Feb 2018 13:09:55 +0100 Subject: [PATCH] Add 'Save Keystore' feature --- package-lock.json | 18 ++++++++++ package.json | 2 ++ src/App.vue | 39 +++++++++++++++++++-- src/assets/fonts/icomoon.woff | Bin 1292 -> 1428 bytes src/js/keythereum.min.js | 21 +++++++++++ src/vue/Input.vue | 46 ++++++------------------ src/vue/Result.vue | 22 ++++++++++-- src/vue/Save.vue | 64 ++++++++++++++++++++++++++++++++++ 8 files changed, 171 insertions(+), 41 deletions(-) create mode 100644 src/js/keythereum.min.js create mode 100644 src/vue/Save.vue diff --git a/package-lock.json b/package-lock.json index a047695..a0674ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2507,6 +2507,11 @@ "is-obj": "1.0.1" } }, + "downloadjs": { + "version": "1.4.7", + "resolved": "https://registry.npmjs.org/downloadjs/-/downloadjs-1.4.7.tgz", + "integrity": "sha1-9p+W+UDg0FU9rCkROYZaPNAQHjw=" + }, "drbg.js": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", @@ -5361,6 +5366,11 @@ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, + "jquery": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz", + "integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==" + }, "js-base64": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.0.tgz", @@ -8259,6 +8269,14 @@ "jsesc": "0.5.0" } }, + "remodal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/remodal/-/remodal-1.1.1.tgz", + "integrity": "sha1-APWAsJQXsrfnpCWxcyfsEPPVlsM=", + "requires": { + "jquery": "3.3.1" + } + }, "remove-trailing-separator": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", diff --git a/package.json b/package.json index 24badc5..4e76f8d 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,13 @@ "bootstrap": "^4.0.0", "cross-env": "^5.0.5", "css-loader": "^0.28.7", + "downloadjs": "^1.4.7", "ethereumjs-util": "^5.1.2", "extract-text-webpack-plugin": "^3.0.2", "file-loader": "^1.1.6", "node-sass": "^4.5.3", "randombytes": "^2.0.6", + "remodal": "^1.1.1", "sass-loader": "^6.0.6", "url-loader": "^0.6.2", "uuid": "^3.2.1", diff --git a/src/App.vue b/src/App.vue index b8727c0..f21e849 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@