Browse Source

web ui update for gekko cloud

develop
mark-sch 2 years ago
parent
commit
ad3efce9b8
5 changed files with 52 additions and 19 deletions
  1. +0
    -1
      .gitignore
  2. +6
    -3
      web/state/gekkoManager.js
  3. +3
    -3
      web/vue/dist/UIconfig.js
  4. +1
    -1
      web/vue/dist/index.html
  5. +42
    -11
      web/vue/package-lock.json

+ 0
- 1
.gitignore View File

@ -46,7 +46,6 @@ TMP_*
.idea
volumes
config.js
config-*.js
Think5*.*
private
private-*.js

+ 6
- 3
web/state/gekkoManager.js View File

@ -19,16 +19,19 @@ GekkoManager.prototype.add = function({mode, config}) {
// set type
let type;
if(mode === 'realtime') {
if(config.market && config.market.type)
if(config.market && config.market.type) {
type = config.market.type;
else
} else if (config.cloudConnector && config.cloudConnector.useCloudMarket === true) {
type = 'cloud';
} else {
type = 'watcher';
}
} else {
type = '';
}
let logType = type;
if(logType === 'leech') {
if(logType === 'leech' || logType === 'cloud') {
if(config.trader && config.trader.enabled)
logType = 'tradebot';
else

+ 3
- 3
web/vue/dist/UIconfig.js View File

@ -5,11 +5,11 @@
// see https://gekko.wizb.it/docs/installation/installing_gekko_on_a_server.html#Configuring-Gekko
const CONFIG = {
headless: true,
headless: false,
api: {
host: '127.0.0.1',
port: 3000,
timeout: 240000 // 4 minutes
timeout: 120000 // 2 minutes
},
ui: {
ssl: false,
@ -17,7 +17,7 @@ const CONFIG = {
port: 3000,
path: '/'
},
adapter: 'postgresql'
adapter: 'sqlite'
}
if(typeof window === 'undefined')

+ 1
- 1
web/vue/dist/index.html View File

@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=vendor/furtive.min.css><title>Gekko</title><link as=script href=app.5e99ecf7.js rel=preload><link as=style href=app.730569ff.css rel=preload><link as=script href=chunk-vendors.b9a11975.js rel=preload><link href=app.730569ff.css rel=stylesheet></head><body><noscript><strong>We're sorry but gekko-vue-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=UIconfig.js></script><script src=vendor/reconnecting-websocket.min.js></script><script src=vendor/moment.js></script><script src=vendor/d3.js></script><script src=vendor/toml.js></script><script src=vendor/humanize-duration.js></script><script src=chunk-vendors.b9a11975.js></script><script src=app.5e99ecf7.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet href=vendor/furtive.min.css><title>Gekko</title><link as=script href=app.20125666.js rel=preload><link as=style href=app.d2308c37.css rel=preload><link as=script href=chunk-vendors.b9a11975.js rel=preload><link href=app.d2308c37.css rel=stylesheet></head><body><noscript><strong>We're sorry but gekko-vue-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=UIconfig.js></script><script src=vendor/reconnecting-websocket.min.js></script><script src=vendor/moment.js></script><script src=vendor/d3.js></script><script src=vendor/toml.js></script><script src=vendor/humanize-duration.js></script><script src=chunk-vendors.b9a11975.js></script><script src=app.20125666.js></script></body></html>

+ 42
- 11
web/vue/package-lock.json View File

@ -2977,6 +2977,11 @@
"resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
},
"component-ie": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/component-ie/-/component-ie-1.0.0.tgz",
"integrity": "sha1-D5WCzLB4podZLMKetGsxhub+Y38="
},
"compressible": {
"version": "2.0.14",
"resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.14.tgz",
@ -5026,7 +5031,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@ -5047,12 +5053,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@ -5067,17 +5075,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
@ -5194,7 +5205,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
@ -5206,6 +5218,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@ -5220,6 +5233,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@ -5227,12 +5241,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.2.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
@ -5251,6 +5267,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
@ -5331,7 +5348,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
@ -5343,6 +5361,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
@ -5428,7 +5447,8 @@
"safe-buffer": {
"version": "5.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
@ -5464,6 +5484,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@ -5483,6 +5504,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@ -5526,12 +5548,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},
@ -12048,6 +12072,13 @@
}
}
},
"superagent-no-cache": {
"version": "github:uditalias/superagent-no-cache#2b15f4366a4b45bbfb66b9a626265bf3a72d00e4",
"from": "github:uditalias/superagent-no-cache",
"requires": {
"component-ie": "^1.0.0"
}
},
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",

Loading…
Cancel
Save