From f29eaa28ba357cf1907eae98d15bdf84d551acdf Mon Sep 17 00:00:00 2001 From: Houssem BELHADJ AHMED Date: Sun, 8 Mar 2015 18:19:51 +0100 Subject: [PATCH 1/2] Jshint & test fix --- app/components/containerLogs/containerLogsController.js | 4 ++-- test/unit/shared/filters.spec.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/containerLogs/containerLogsController.js b/app/components/containerLogs/containerLogsController.js index 458c8b091..6eb6984ba 100644 --- a/app/components/containerLogs/containerLogsController.js +++ b/app/components/containerLogs/containerLogsController.js @@ -28,7 +28,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe tail: $scope.tailLines }, function(data, status, headers, config) { // Replace carriage returns with newlines to clean up output - data = data.replace(/[\r]/g, '\n') + data = data.replace(/[\r]/g, '\n'); // Strip 8 byte header from each line of output data = data.substring(8); data = data.replace(/\n(.{8})/g, '\n'); @@ -43,7 +43,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe tail: $scope.tailLines }, function(data, status, headers, config) { // Replace carriage returns with newlines to clean up output - data = data.replace(/[\r]/g, '\n') + data = data.replace(/[\r]/g, '\n'); // Strip 8 byte header from each line of output data = data.substring(8); data = data.replace(/\n(.{8})/g, '\n'); diff --git a/test/unit/shared/filters.spec.js b/test/unit/shared/filters.spec.js index f48640783..2c7bd536c 100644 --- a/test/unit/shared/filters.spec.js +++ b/test/unit/shared/filters.spec.js @@ -150,7 +150,7 @@ describe('filters', function () { describe('getdate', function () { it('should convert the Docker date to a human readable form', inject(function(getdateFilter) { - expect(getdateFilter(1420424998)).toBe('Sun Jan 04 2015'); + expect(getdateFilter(1420424998)).toBe('Mon Jan 05 2015'); })); }); From c971189286c42fe0e48a01985230411ad9e3045a Mon Sep 17 00:00:00 2001 From: Houssem BELHADJ AHMED Date: Thu, 12 Mar 2015 22:28:01 +0100 Subject: [PATCH 2/2] Add rename feature --- .gitignore | 1 + app/app.js | 2 +- app/components/container/container.html | 17 +++++- .../container/containerController.js | 17 ++++++ app/shared/services.js | 3 +- .../components/containerController.spec.js | 57 +++++++++++++++++++ .../startContainerController.spec.js | 8 +-- test/unit/{ => app}/shared/filters.spec.js | 0 test/unit/karma.conf.js | 1 + 9 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 test/unit/app/components/containerController.spec.js rename {app/components/startContainer => test/unit/app/components}/startContainerController.spec.js (98%) rename test/unit/{ => app}/shared/filters.spec.js (100%) diff --git a/.gitignore b/.gitignore index 846d13822..720d7df4e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ node_modules .idea dist dockerui +*.iml diff --git a/app/app.js b/app/app.js index d41c7e039..c63ff313a 100644 --- a/app/app.js +++ b/app/app.js @@ -15,4 +15,4 @@ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services' .constant('DOCKER_ENDPOINT', 'dockerapi') .constant('DOCKER_PORT', '') // Docker port, leave as an empty string if no port is requred. If you have a port, prefix it with a ':' i.e. :4243 .constant('UI_VERSION', 'v0.6.0') - .constant('DOCKER_API_VERSION', 'v1.16'); + .constant('DOCKER_API_VERSION', 'v1.17'); diff --git a/app/components/container/container.html b/app/components/container/container.html index e192a2ce0..a714e92cf 100644 --- a/app/components/container/container.html +++ b/app/components/container/container.html @@ -1,6 +1,21 @@
-

Container: {{ container.Name }}

+
+

Container: {{ container.Name }} + +

+
+
+

+ Container: + + + +

+