2013-06-08 15:12:14 -09:00
|
|
|
'use strict';
|
2013-06-08 16:20:29 -09:00
|
|
|
|
2015-01-03 17:01:02 -06:00
|
|
|
angular.module('<%= pkg.name %>', ['<%= pkg.name %>.templates', 'ngRoute', '<%= pkg.name %>.services', '<%= pkg.name %>.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs'])
|
2013-06-08 16:20:29 -09:00
|
|
|
.config(['$routeProvider', function ($routeProvider) {
|
2014-11-12 11:31:27 -06:00
|
|
|
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
|
2014-11-12 11:54:49 -06:00
|
|
|
$routeProvider.when('/containers/', {templateUrl: 'app/components/containers/containers.html', controller: 'ContainersController'});
|
2014-11-12 11:48:13 -06:00
|
|
|
$routeProvider.when('/containers/:id/', {templateUrl: 'app/components/container/container.html', controller: 'ContainerController'});
|
2014-12-15 16:26:10 -06:00
|
|
|
$routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'});
|
2014-11-12 11:59:55 -06:00
|
|
|
$routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'});
|
2014-11-12 12:11:36 -06:00
|
|
|
$routeProvider.when('/images/:id/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'});
|
2014-11-28 22:19:24 -06:00
|
|
|
$routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'});
|
2013-06-08 16:20:29 -09:00
|
|
|
$routeProvider.otherwise({redirectTo: '/'});
|
|
|
|
}])
|
2013-06-10 03:59:57 -09:00
|
|
|
// This is your docker url that the api will use to make requests
|
2013-06-22 10:10:22 -09:00
|
|
|
// You need to set this to the api endpoint without the port i.e. http://192.168.1.9
|
|
|
|
.constant('DOCKER_ENDPOINT', '/dockerapi')
|
2013-06-23 09:44:46 -09: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-01-03 16:49:28 -06:00
|
|
|
.constant('UI_VERSION', 'v<%= pkg.version %>')
|
2014-12-01 00:13:53 -06:00
|
|
|
.constant('DOCKER_API_VERSION', 'v1.15');
|