2015-12-18 05:35:04 +00:00
|
|
|
angular.module('dockerui', [
|
|
|
|
'dockerui.templates',
|
|
|
|
'ngRoute',
|
|
|
|
'dockerui.services',
|
|
|
|
'dockerui.filters',
|
|
|
|
'masthead',
|
|
|
|
'footer',
|
|
|
|
'dashboard',
|
|
|
|
'container',
|
|
|
|
'containers',
|
|
|
|
'containersNetwork',
|
|
|
|
'images',
|
|
|
|
'image',
|
|
|
|
'pullImage',
|
|
|
|
'startContainer',
|
|
|
|
'sidebar',
|
|
|
|
'info',
|
|
|
|
'builder',
|
|
|
|
'containerLogs',
|
|
|
|
'containerTop',
|
|
|
|
'events',
|
|
|
|
'stats',
|
2015-12-21 01:13:53 +00:00
|
|
|
'network',
|
2015-12-21 03:17:01 +00:00
|
|
|
'networks',
|
|
|
|
'volumes'])
|
2013-06-09 01:20:29 +00:00
|
|
|
.config(['$routeProvider', function ($routeProvider) {
|
2015-01-04 00:39:40 +00:00
|
|
|
'use strict';
|
2015-03-31 21:37:03 +00:00
|
|
|
$routeProvider.when('/', {
|
|
|
|
templateUrl: 'app/components/dashboard/dashboard.html',
|
|
|
|
controller: 'DashboardController'
|
|
|
|
});
|
|
|
|
$routeProvider.when('/containers/', {
|
|
|
|
templateUrl: 'app/components/containers/containers.html',
|
|
|
|
controller: 'ContainersController'
|
|
|
|
});
|
|
|
|
$routeProvider.when('/containers/:id/', {
|
|
|
|
templateUrl: 'app/components/container/container.html',
|
|
|
|
controller: 'ContainerController'
|
|
|
|
});
|
|
|
|
$routeProvider.when('/containers/:id/logs/', {
|
|
|
|
templateUrl: 'app/components/containerLogs/containerlogs.html',
|
|
|
|
controller: 'ContainerLogsController'
|
|
|
|
});
|
|
|
|
$routeProvider.when('/containers/:id/top', {
|
|
|
|
templateUrl: 'app/components/containerTop/containerTop.html',
|
|
|
|
controller: 'ContainerTopController'
|
|
|
|
});
|
2015-08-25 05:55:54 +00:00
|
|
|
$routeProvider.when('/containers/:id/stats', {
|
|
|
|
templateUrl: 'app/components/stats/stats.html',
|
|
|
|
controller: 'StatsController'
|
|
|
|
});
|
2015-04-25 17:02:24 +00:00
|
|
|
$routeProvider.when('/containers_network', {
|
|
|
|
templateUrl: 'app/components/containersNetwork/containersNetwork.html',
|
|
|
|
controller: 'ContainersNetworkController'
|
|
|
|
});
|
2015-03-31 21:37:03 +00:00
|
|
|
$routeProvider.when('/images/', {
|
|
|
|
templateUrl: 'app/components/images/images.html',
|
|
|
|
controller: 'ImagesController'
|
|
|
|
});
|
|
|
|
$routeProvider.when('/images/:id*/', {
|
|
|
|
templateUrl: 'app/components/image/image.html',
|
|
|
|
controller: 'ImageController'
|
|
|
|
});
|
2015-02-13 12:57:23 +00:00
|
|
|
$routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'});
|
2015-08-25 05:59:54 +00:00
|
|
|
$routeProvider.when('/events', {
|
|
|
|
templateUrl: 'app/components/events/events.html',
|
|
|
|
controller: 'EventsController'
|
|
|
|
});
|
2013-06-09 01:20:29 +00:00
|
|
|
$routeProvider.otherwise({redirectTo: '/'});
|
|
|
|
}])
|
2013-06-10 12:59:57 +00:00
|
|
|
// This is your docker url that the api will use to make requests
|
2013-06-22 19:10:22 +00:00
|
|
|
// You need to set this to the api endpoint without the port i.e. http://192.168.1.9
|
2015-01-25 21:52:40 +00:00
|
|
|
.constant('DOCKER_ENDPOINT', 'dockerapi')
|
2013-06-23 18:44:46 +00:00
|
|
|
.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
|
2015-12-21 02:23:17 +00:00
|
|
|
.constant('UI_VERSION', 'v0.9.0-beta');
|