portainer/app/app.js

19 lines
1.8 KiB
JavaScript
Raw Normal View History

angular.module('dockerui', ['dockerui.templates', 'ngRoute', 'dockerui.services', 'dockerui.filters', 'masthead', 'footer', 'dashboard', 'container', 'containers', 'images', 'image', 'startContainer', 'sidebar', 'settings', 'builder', 'containerLogs'])
2013-06-09 01:20:29 +00:00
.config(['$routeProvider', function ($routeProvider) {
2015-01-04 00:39:40 +00:00
'use strict';
2014-11-12 17:31:27 +00:00
$routeProvider.when('/', {templateUrl: 'app/components/dashboard/dashboard.html', controller: 'DashboardController'});
2014-11-12 17:54:49 +00:00
$routeProvider.when('/containers/', {templateUrl: 'app/components/containers/containers.html', controller: 'ContainersController'});
2014-11-12 17:48:13 +00:00
$routeProvider.when('/containers/:id/', {templateUrl: 'app/components/container/container.html', controller: 'ContainerController'});
2014-12-15 22:26:10 +00:00
$routeProvider.when('/containers/:id/logs/', {templateUrl: 'app/components/containerLogs/containerlogs.html', controller: 'ContainerLogsController'});
2014-11-12 17:59:55 +00:00
$routeProvider.when('/images/', {templateUrl: 'app/components/images/images.html', controller: 'ImagesController'});
2014-11-12 18:11:36 +00:00
$routeProvider.when('/images/:id/', {templateUrl: 'app/components/image/image.html', controller: 'ImageController'});
2014-11-29 04:19:24 +00:00
$routeProvider.when('/settings', {templateUrl: 'app/components/settings/settings.html', controller: 'SettingsController'});
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
// 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 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
.constant('UI_VERSION', 'v0.6.0')
.constant('DOCKER_API_VERSION', 'v1.16');