From 138049626bdb9ff760f0057e318eaa0e42f68d25 Mon Sep 17 00:00:00 2001 From: Ryan Loomba Date: Wed, 26 Dec 2018 12:13:20 -0800 Subject: [PATCH] add example config file --- package-lock.json | 41 ++++++++++---------------------------- src/components/Config.vue | 1 + static/example.config.json | 7 +++++++ 3 files changed, 19 insertions(+), 30 deletions(-) create mode 100644 static/example.config.json diff --git a/package-lock.json b/package-lock.json index 19f9070..fec50ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5127,8 +5127,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -5149,14 +5148,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5171,20 +5168,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -5301,8 +5295,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -5314,7 +5307,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -5329,7 +5321,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -5337,14 +5328,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -5363,7 +5352,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -5444,8 +5432,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -5457,7 +5444,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -5543,8 +5529,7 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -5580,7 +5565,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -5600,7 +5584,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -5644,14 +5627,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, diff --git a/src/components/Config.vue b/src/components/Config.vue index 32e7f3d..a3db829 100644 --- a/src/components/Config.vue +++ b/src/components/Config.vue @@ -53,6 +53,7 @@ export default { loadConfig () { fetch('/static/config.json') .then((resp) => { + console.log(resp) if (resp.ok) resp.json().then((j) => { this.form = j }) else this.loadDefaultConfig() }) diff --git a/static/example.config.json b/static/example.config.json new file mode 100644 index 0000000..cd7975d --- /dev/null +++ b/static/example.config.json @@ -0,0 +1,7 @@ +{ + "name": "Zednode", + "fee_percent": "10", + "minimum_contribution": 0, + "tezos_rpc_address": "https://rpc.tezrpc.me", + "baker_tz_address": "tz1L3vFD8mFzBaS8yLHFsd7qDJY1t276Dh8i" +}