Comparing version 0.1.0 to 0.1.1
@@ -111,5 +111,4 @@ 'use strict'; | ||
return until(promise | ||
// update the master URL based on federation information | ||
// TODO: select the server whose client CIDR matches the client IP | ||
.then(response => client.url = `${client.master_api.protocol}//${JSON.parse(response.body.toString('utf8')).serverAddressByClientCIDRs[0].serverAddress}`) | ||
// We may want to update the master URL based on federation information | ||
// by selecting the server whose client CIDR matches the client IP (serverAddressByClientCIDRs) | ||
.then(() => login ? log(`{green-fg}Connected to {bold}${client.url}{/bold}{/green-fg}`) : '') | ||
@@ -116,0 +115,0 @@ .then(() => get(client.get_apis())) |
var blessed = require('blessed') | ||
, contrib = require('blessed-contrib') | ||
, Node = blessed.Node | ||
, Canvas = contrib.canvas | ||
, Canvas = require('./canvas') | ||
, { arrayMax, getColorCode } = require('./utils') | ||
@@ -6,0 +5,0 @@ , InnerCanvas = require('drawille-canvas-blessed-contrib').Canvas |
@@ -5,3 +5,3 @@ { | ||
"author": "Antonin Stefanutti", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -15,5 +15,5 @@ "homepage": "https://github.com/astefanutti/kubebox", | ||
"start": "node index.js", | ||
"browserify": "browserify -r ./lib/kubebox.js:kubebox -r ./lib/http-then.js:http-then -r blessed -i pty.js -i map-canvas -i marked-terminal -i picture-tube -o docs/kubebox.js", | ||
"browserify-debug": "browserify --debug -r ./lib/kubebox.js:kubebox -r ./lib/http-then.js:http-then -r blessed -i pty.js -i map-canvas -i marked-terminal -i picture-tube | exorcist docs/kubebox.js.map > docs/kubebox.js", | ||
"bundle": "browserify index.js -o bundle.js -i pty.js -i map-canvas -i marked-terminal -i picture-tube --bare", | ||
"browserify": "browserify -r ./lib/kubebox.js:kubebox -r ./lib/http-then.js:http-then -r blessed -i pty.js -o docs/kubebox.js", | ||
"browserify-debug": "browserify --debug -r ./lib/kubebox.js:kubebox -r ./lib/http-then.js:http-then -r blessed -i pty.js | exorcist docs/kubebox.js.map > docs/kubebox.js", | ||
"bundle": "browserify index.js -o bundle.js -i pty.js --bare", | ||
"executable": "nexe package.json", | ||
@@ -37,3 +37,2 @@ "server": "node ./docs/server.js" | ||
"blessed": "~0.1.81", | ||
"blessed-contrib": "~4.8.5", | ||
"drawille-canvas-blessed-contrib": "^0.1.3", | ||
@@ -58,6 +57,3 @@ "js-yaml": "~3.7.0", | ||
"excludes": [ | ||
"pty.js", | ||
"map-canvas", | ||
"marked-terminal", | ||
"picture-tube" | ||
"pty.js" | ||
], | ||
@@ -64,0 +60,0 @@ "paths": [] |
Sorry, the diff of this file is not supported yet
127014
9
36
3582
231
- Removedblessed-contrib@~4.8.5
- Removed@colors/colors@1.5.0(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedansi-escapes@4.3.2(transitive)
- Removedansi-regex@2.1.15.0.1(transitive)
- Removedansi-styles@2.2.14.3.0(transitive)
- Removedansicolors@0.3.2(transitive)
- Removedblessed-contrib@4.8.21(transitive)
- Removedbuffers@0.1.1(transitive)
- Removedcardinal@2.1.1(transitive)
- Removedchalk@1.1.34.1.2(transitive)
- Removedcharm@0.1.2(transitive)
- Removedcli-table3@0.6.5(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesprima@4.0.1(transitive)
- Removedevent-stream@0.9.8(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedhere@0.0.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmap-canvas@0.1.5(transitive)
- Removedmarked@0.7.02.1.3(transitive)
- Removedmarked-terminal@4.2.0(transitive)
- Removedmemory-streams@0.1.3(transitive)
- Removedmemorystream@0.3.1(transitive)
- Removednode-emoji@1.11.0(transitive)
- Removednopt@2.1.2(transitive)
- Removedoptimist@0.2.80.3.7(transitive)
- Removedpicture-tuber@1.0.2(transitive)
- Removedpng-js@0.1.1(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedredeyed@2.1.1(transitive)
- Removedsax@1.4.1(transitive)
- Removedsparkline@0.1.2(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedstrip-ansi@3.0.16.0.1(transitive)
- Removedsupports-color@2.0.07.2.0(transitive)
- Removedsupports-hyperlinks@2.3.0(transitive)
- Removedterm-canvas@0.0.5(transitive)
- Removedtype-fest@0.21.3(transitive)
- Removedwordwrap@0.0.3(transitive)
- Removedxml2js@0.4.23(transitive)
- Removedxmlbuilder@11.0.1(transitive)