diff --git a/app/app.js b/app/app.js index 6b1b0152a..d41c7e039 100644 --- a/app/app.js +++ b/app/app.js @@ -1,4 +1,4 @@ -angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs']) +angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'info', 'builder', 'containerLogs']) .config(['$routeProvider', function ($routeProvider) { 'use strict'; $routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'}); @@ -7,7 +7,7 @@ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services' $routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'}); $routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'}); $routeProvider.when('/images/:id*/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'}); - $routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'}); + $routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'}); $routeProvider.otherwise({redirectTo: '/'}); }]) // This is your docker url that the api will use to make requests diff --git a/app/components/containers/containers.html b/app/components/containers/containers.html index 1ae9b1ef7..c2811581b 100644 --- a/app/components/containers/containers.html +++ b/app/components/containers/containers.html @@ -18,8 +18,7 @@
- Display All +
diff --git a/app/components/image/image.html b/app/components/image/image.html index 108c6f21d..9a76eeb5d 100644 --- a/app/components/image/image.html +++ b/app/components/image/image.html @@ -23,40 +23,40 @@ - + - + - - + + - + - + - + - + - + - - + + diff --git a/app/components/info/info.html b/app/components/info/info.html new file mode 100644 index 000000000..9a4b23841 --- /dev/null +++ b/app/components/info/info.html @@ -0,0 +1,101 @@ +
+

Docker Information

+
+

+ Endpoint: {{ endpoint }}
+ Api Version: {{ apiVersion }}
+ Version: {{ docker.Version }}
+ Git Commit: {{ docker.GitCommit }}
+ Go Version: {{ docker.GoVersion }}
+

+
+ +
Created:{{ image.created }}{{ image.Created }}
Parent:{{ image.parent }}{{ image.Parent }}
Size:{{ image.Size|humansize }}Size (Virtual Size):{{ image.Size|humansize }} ({{ image.VirtualSize|humansize }})
Hostname:{{ image.container_config.Hostname }}{{ image.ContainerConfig.Hostname }}
User:{{ image.container_config.User }}{{ image.ContainerConfig.User }}
Cmd:{{ image.container_config.Cmd }}{{ image.ContainerConfig.Cmd }}
Volumes:{{ image.container_config.Volumes }}{{ image.ContainerConfig.Volumes }}
Volumes from:{{ image.container_config.VolumesFrom }}{{ image.ContainerConfig.VolumesFrom }}
Comment:{{ image.comment }}Built with:Docker {{ image.DockerVersion }} on {{ image.Os}}, {{ image.Architecture }}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Containers:{{ info.Containers }}
Images:{{ info.Images }}
Debug:{{ info.Debug }}
CPUs:{{ info.NCPU }}
Total Memory:{{ info.MemTotal|humansize }}
Operating System:{{ info.OperatingSystem }}
Kernel Version:{{ info.KernelVersion }}
ID:{{ info.ID }}
Labels:{{ info.Labels }}
File Descriptors:{{ info.NFd }}
Goroutines:{{ info.NGoroutines }}
Storage Driver:{{ info.Driver }}
Storage Driver Status:{{ info.DriverStatus }}
Execution Driver:{{ info.ExecutionDriver }}
IPv4 Forwarding:{{ info.IPv4Forwarding }}
Index Server Address:{{ info.IndexServerAddress }}
Init Path:{{ info.InitPath }}
Docker Root Directory:{{ info.DockerRootDir }}
Init SHA1{{ info.InitSha1 }}
Memory Limit:{{ info.MemoryLimit }}
Swap Limit:{{ info.SwapLimit }}
+ diff --git a/app/components/settings/settingsController.js b/app/components/info/infoController.js similarity index 71% rename from app/components/settings/settingsController.js rename to app/components/info/infoController.js index 44f077c8e..1df5ca979 100644 --- a/app/components/settings/settingsController.js +++ b/app/components/info/infoController.js @@ -1,5 +1,5 @@ -angular.module('settings', []) -.controller('SettingsController', ['$scope', 'System', 'Docker', 'Settings', 'Messages', +angular.module('info', []) +.controller('InfoController', ['$scope', 'System', 'Docker', 'Settings', 'Messages', function($scope, System, Docker, Settings, Messages) { $scope.info = {}; $scope.docker = {}; diff --git a/app/components/masthead/masthead.html b/app/components/masthead/masthead.html index 13029eded..d3a70783b 100644 --- a/app/components/masthead/masthead.html +++ b/app/components/masthead/masthead.html @@ -4,6 +4,6 @@
  • Dashboard
  • Containers
  • Images
  • -
  • Settings
  • +
  • Info
  • diff --git a/app/components/settings/settings.html b/app/components/settings/settings.html deleted file mode 100644 index 83caa539f..000000000 --- a/app/components/settings/settings.html +++ /dev/null @@ -1,49 +0,0 @@ -
    -

    Docker Information

    -
    -

    - Endpoint: {{ endpoint }}
    - Api Version: {{ apiVersion }}
    - Version: {{ docker.Version }}
    - Git Commit: {{ docker.GitCommit }}
    - Go Version: {{ docker.GoVersion }}
    -

    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Containers:{{ info.Containers }}
    Images:{{ info.Images }}
    Debug:{{ info.Debug }}
    NFd:{{ info.NFd }}
    NGoroutines:{{ info.NGoroutines }}
    MemoryLimit:{{ info.MemoryLimit }}
    SwapLimit:{{ info.SwapLimit }}
    NFd:{{ info.NFd }}
    -
    diff --git a/assets/css/app.css b/assets/css/app.css index b7b7bd8f0..b2abc414c 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -113,3 +113,8 @@ body { .inline-four .form-control { max-width: 25%; } + +.dropdown { + cursor: pointer; +} + diff --git a/dist/assets/css/app.css b/dist/assets/css/app.css index b7b7bd8f0..b2abc414c 100644 --- a/dist/assets/css/app.css +++ b/dist/assets/css/app.css @@ -113,3 +113,8 @@ body { .inline-four .form-control { max-width: 25%; } + +.dropdown { + cursor: pointer; +} + diff --git a/dist/dockerui.css b/dist/dockerui.css index a12442daa..3a67a75df 100644 --- a/dist/dockerui.css +++ b/dist/dockerui.css @@ -113,4 +113,8 @@ body { .inline-four .form-control { max-width: 25%; +} + +.dropdown { + cursor: pointer; } \ No newline at end of file diff --git a/dist/dockerui.js b/dist/dockerui.js index dec3b4062..d2b2d10ef 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -1,9 +1,9 @@ -/*! dockerui - v0.6.0 - 2015-02-13 +/*! dockerui - v0.6.0 - 2015-02-14 * https://github.com/crosbymichael/dockerui * Copyright (c) 2015 Michael Crosby & Kevan Ahlquist; * Licensed MIT */ -angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs']) +angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'info', 'builder', 'containerLogs']) .config(['$routeProvider', function ($routeProvider) { 'use strict'; $routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'}); @@ -12,7 +12,7 @@ angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services' $routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'}); $routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'}); $routeProvider.when('/images/:id*/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'}); - $routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'}); + $routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'}); $routeProvider.otherwise({redirectTo: '/'}); }]) // This is your docker url that the api will use to make requests @@ -502,13 +502,8 @@ function($scope, Image, ViewSpinner, Messages) { }); }]); -angular.module('masthead', []) -.controller('MastheadController', ['$scope', function($scope) { - $scope.template = 'app/components/masthead/masthead.html'; -}]); - -angular.module('settings', []) -.controller('SettingsController', ['$scope', 'System', 'Docker', 'Settings', 'Messages', +angular.module('info', []) +.controller('InfoController', ['$scope', 'System', 'Docker', 'Settings', 'Messages', function($scope, System, Docker, Settings, Messages) { $scope.info = {}; $scope.docker = {}; @@ -519,6 +514,11 @@ function($scope, System, Docker, Settings, Messages) { System.get({}, function(d) { $scope.info = d; }); }]); +angular.module('masthead', []) +.controller('MastheadController', ['$scope', function($scope) { + $scope.template = 'app/components/masthead/masthead.html'; +}]); + angular.module('sidebar', []) .controller('SideBarController', ['$scope', 'Container', 'Settings', function($scope, Container, Settings) { @@ -1009,7 +1009,7 @@ function ContainerViewModel(data) { this.Names = data.Names; } -angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/masthead/masthead.html', 'app/components/settings/settings.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']); +angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/info/info.html', 'app/components/masthead/masthead.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']); angular.module("app/components/builder/builder.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/builder/builder.html", @@ -1230,8 +1230,7 @@ angular.module("app/components/containers/containers.html", []).run(["$templateC " \n" + "\n" + "
    \n" + - " Display All\n" + + " \n" + "
    \n" + "\n" + "\n" + @@ -1348,40 +1347,40 @@ angular.module("app/components/image/image.html", []).run(["$templateCache", fun " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + + " \n" + + " \n" + " \n" + "\n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + + " \n" + + " \n" + " \n" + "\n" + " \n" + @@ -1471,22 +1470,8 @@ angular.module("app/components/images/images.html", []).run(["$templateCache", f ""); }]); -angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) { - $templateCache.put("app/components/masthead/masthead.html", - "
    \n" + - "

    DockerUI

    \n" + - " \n" + - "
    \n" + - ""); -}]); - -angular.module("app/components/settings/settings.html", []).run(["$templateCache", function($templateCache) { - $templateCache.put("app/components/settings/settings.html", +angular.module("app/components/info/info.html", []).run(["$templateCache", function($templateCache) { + $templateCache.put("app/components/info/info.html", "
    \n" + "

    Docker Information

    \n" + "
    \n" + @@ -1514,31 +1499,97 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache "
    \n" + " \n" + " \n" + - " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + - " \n" + - " \n" + " \n" + "
    Created:{{ image.created }}{{ image.Created }}
    Parent:{{ image.parent }}{{ image.Parent }}
    Size:{{ image.Size|humansize }}Size (Virtual Size):{{ image.Size|humansize }} ({{ image.VirtualSize|humansize }})
    Hostname:{{ image.container_config.Hostname }}{{ image.ContainerConfig.Hostname }}
    User:{{ image.container_config.User }}{{ image.ContainerConfig.User }}
    Cmd:{{ image.container_config.Cmd }}{{ image.ContainerConfig.Cmd }}
    Volumes:{{ image.container_config.Volumes }}{{ image.ContainerConfig.Volumes }}
    Volumes from:{{ image.container_config.VolumesFrom }}{{ image.ContainerConfig.VolumesFrom }}
    Comment:{{ image.comment }}Built with:Docker {{ image.DockerVersion }} on {{ image.Os}}, {{ image.Architecture }}
    {{ info.Debug }}
    NFd:CPUs:{{ info.NCPU }}
    Total Memory:{{ info.MemTotal|humansize }}
    Operating System:{{ info.OperatingSystem }}
    Kernel Version:{{ info.KernelVersion }}
    ID:{{ info.ID }}
    Labels:{{ info.Labels }}
    File Descriptors:{{ info.NFd }}
    NGoroutines:Goroutines:{{ info.NGoroutines }}
    MemoryLimit:Storage Driver:{{ info.Driver }}
    Storage Driver Status:{{ info.DriverStatus }}
    Execution Driver:{{ info.ExecutionDriver }}
    IPv4 Forwarding:{{ info.IPv4Forwarding }}
    Index Server Address:{{ info.IndexServerAddress }}
    Init Path:{{ info.InitPath }}
    Docker Root Directory:{{ info.DockerRootDir }}
    Init SHA1{{ info.InitSha1 }}
    Memory Limit:{{ info.MemoryLimit }}
    SwapLimit:Swap Limit:{{ info.SwapLimit }}
    NFd:{{ info.NFd }}
    \n" + "\n" + ""); }]); +angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) { + $templateCache.put("app/components/masthead/masthead.html", + "
    \n" + + "

    DockerUI

    \n" + + " \n" + + "
    \n" + + ""); +}]); + angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/sidebar/sidebar.html", "
    \n" + diff --git a/dist/templates/app.js b/dist/templates/app.js index 2ca118ea2..0b37aad0d 100644 --- a/dist/templates/app.js +++ b/dist/templates/app.js @@ -1,4 +1,4 @@ -angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/masthead/masthead.html', 'app/components/settings/settings.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']); +angular.module('dockerui.templates', ['app/components/builder/builder.html', 'app/components/container/container.html', 'app/components/containerLogs/containerlogs.html', 'app/components/containers/containers.html', 'app/components/dashboard/dashboard.html', 'app/components/footer/statusbar.html', 'app/components/image/image.html', 'app/components/images/images.html', 'app/components/info/info.html', 'app/components/masthead/masthead.html', 'app/components/sidebar/sidebar.html', 'app/components/startContainer/startcontainer.html']); angular.module("app/components/builder/builder.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/builder/builder.html", @@ -219,8 +219,7 @@ angular.module("app/components/containers/containers.html", []).run(["$templateC " \n" + "\n" + "
    \n" + - " Display All\n" + + " \n" + "
    \n" + "
    \n" + "\n" + @@ -337,40 +336,40 @@ angular.module("app/components/image/image.html", []).run(["$templateCache", fun " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + + " \n" + + " \n" + " \n" + "\n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + + " \n" + + " \n" + " \n" + "\n" + " \n" + @@ -460,22 +459,8 @@ angular.module("app/components/images/images.html", []).run(["$templateCache", f ""); }]); -angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) { - $templateCache.put("app/components/masthead/masthead.html", - "
    \n" + - "

    DockerUI

    \n" + - " \n" + - "
    \n" + - ""); -}]); - -angular.module("app/components/settings/settings.html", []).run(["$templateCache", function($templateCache) { - $templateCache.put("app/components/settings/settings.html", +angular.module("app/components/info/info.html", []).run(["$templateCache", function($templateCache) { + $templateCache.put("app/components/info/info.html", "
    \n" + "

    Docker Information

    \n" + "
    \n" + @@ -503,31 +488,97 @@ angular.module("app/components/settings/settings.html", []).run(["$templateCache "
    \n" + " \n" + " \n" + - " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + + " \n" + " \n" + " \n" + " \n" + - " \n" + + " \n" + " \n" + " \n" + - " \n" + - " \n" + - " \n" + - " \n" + " \n" + "
    Created:{{ image.created }}{{ image.Created }}
    Parent:{{ image.parent }}{{ image.Parent }}
    Size:{{ image.Size|humansize }}Size (Virtual Size):{{ image.Size|humansize }} ({{ image.VirtualSize|humansize }})
    Hostname:{{ image.container_config.Hostname }}{{ image.ContainerConfig.Hostname }}
    User:{{ image.container_config.User }}{{ image.ContainerConfig.User }}
    Cmd:{{ image.container_config.Cmd }}{{ image.ContainerConfig.Cmd }}
    Volumes:{{ image.container_config.Volumes }}{{ image.ContainerConfig.Volumes }}
    Volumes from:{{ image.container_config.VolumesFrom }}{{ image.ContainerConfig.VolumesFrom }}
    Comment:{{ image.comment }}Built with:Docker {{ image.DockerVersion }} on {{ image.Os}}, {{ image.Architecture }}
    {{ info.Debug }}
    NFd:CPUs:{{ info.NCPU }}
    Total Memory:{{ info.MemTotal|humansize }}
    Operating System:{{ info.OperatingSystem }}
    Kernel Version:{{ info.KernelVersion }}
    ID:{{ info.ID }}
    Labels:{{ info.Labels }}
    File Descriptors:{{ info.NFd }}
    NGoroutines:Goroutines:{{ info.NGoroutines }}
    MemoryLimit:Storage Driver:{{ info.Driver }}
    Storage Driver Status:{{ info.DriverStatus }}
    Execution Driver:{{ info.ExecutionDriver }}
    IPv4 Forwarding:{{ info.IPv4Forwarding }}
    Index Server Address:{{ info.IndexServerAddress }}
    Init Path:{{ info.InitPath }}
    Docker Root Directory:{{ info.DockerRootDir }}
    Init SHA1{{ info.InitSha1 }}
    Memory Limit:{{ info.MemoryLimit }}
    SwapLimit:Swap Limit:{{ info.SwapLimit }}
    NFd:{{ info.NFd }}
    \n" + "\n" + ""); }]); +angular.module("app/components/masthead/masthead.html", []).run(["$templateCache", function($templateCache) { + $templateCache.put("app/components/masthead/masthead.html", + "
    \n" + + "

    DockerUI

    \n" + + " \n" + + "
    \n" + + ""); +}]); + angular.module("app/components/sidebar/sidebar.html", []).run(["$templateCache", function($templateCache) { $templateCache.put("app/components/sidebar/sidebar.html", "
    \n" +