Comparing version 0.4.0 to 0.5.0
0.5.0 / 2015-01-04 | ||
================== | ||
* host ping action | ||
0.4.0 / 2015-01-03 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "bluewhale", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Dockerboard Web Client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.html", |
@@ -6,2 +6,4 @@ | ||
[![NPM version][npm-image]][npm-url] | ||
[![badge](http://dockeri.co/image/dockerboard/bluewhale)](https://registry.hub.docker.com/u/dockerboard/bluewhale/) | ||
@@ -18,3 +20,3 @@ | ||
Dockerboard Restful API Prefix: `http://localhost/api/` | ||
Dockerboard RESTful API Prefix: `http://localhost:8001/api`. | ||
@@ -74,1 +76,4 @@ ### Prerequisites | ||
[Angular Material]: https://material.angularjs.org/ | ||
[npm-image]: https://img.shields.io/npm/v/bluewhale.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/bluewhale |
@@ -19,4 +19,4 @@ (function () { | ||
HostsController.$inject = ['$scope', '$rootScope', '$mdDialog', 'Hosts']; | ||
function HostsController($scope, $rootScope, $mdDialog, Hosts) { | ||
HostsController.$inject = ['$scope', '$rootScope', '$mdDialog', '$mdToast', 'Hosts', 'HostActions']; | ||
function HostsController($scope, $rootScope, $mdDialog, $mdToast, Hosts, HostActions) { | ||
Hosts.query(function (data) { | ||
@@ -53,2 +53,28 @@ $scope.hosts = data; | ||
$scope.ping = function (index) { | ||
HostActions.ping({ | ||
Id: encodeURIComponent(Hosts.getCurrentHostUrl($scope.hosts[index])) | ||
}, | ||
function (data) { | ||
if (data.text === 'OK') { | ||
$mdToast.show( | ||
$mdToast.simple() | ||
.content('Ping OK!') | ||
.position('top right') | ||
.action('Close') | ||
.hideDelay(1500) | ||
); | ||
} | ||
}, | ||
function () { | ||
$mdToast.show( | ||
$mdToast.simple() | ||
.content('Ping Faild!') | ||
.position('top right') | ||
.action('Close') | ||
.hideDelay(1500) | ||
); | ||
}) | ||
}; | ||
function updateHost(host) { | ||
@@ -55,0 +81,0 @@ var exists = false; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5587651
98
3539
77
5