Skip to content
Snippets Groups Projects
Select Git revision
  • 58bd6faa47e831b47306ee91282dee640e2ac5ff
  • master default
  • refactor/EE-3619/EE-3634/dashboard-item
  • feat/EE-3491/new-docker-create-ui
  • refactor/EE-2160/EE-2782/azure
  • feat/EE-3096/wizard-edge-device
  • refactor/EE-3243/EE-3606/tooltip
  • fix/EE-3210/EE-edge-groups-jobs-untrusted-envs
  • fix/EE-3485/docker-templates-ui
  • feat/EE-3633/button-group-wrap-inline-flex
  • develop
  • fix/auto-testing
  • fix/EE-3381/EE-3447/sidebar-issues
  • feat(ui)/EE-3540/portainer-account
  • feature/EE-3463/ui-improvements-kube-app-detail
  • feat/EE-3619/EE-3626/add-column-sorting-icons
  • feat/EE-3619/EE-3625/add-switch-text
  • fix/EE-3512/swarm-secrets-list-ui
  • fix/EE-3488/swarm-config-list-ui
  • fix/ee-3509/update-network-list-ui
  • fix/ee-3516/update-vol-list-ui
  • feature/EE-3462/ui-improvements-kube-app-create
  • 2.14.0
  • 2.13.1
  • 2.13.0
  • 1.25.0
  • 2.11.1
  • 2.11.0
  • 2.9.3
  • 2.9.2
  • 2.9.1
  • 2.9.0
  • 2.6.3
  • 2.6.2
  • 2.6.1
  • 2.6.0
  • 2.5.1
  • 2.5.0
  • 1.24.2
  • 2.1.1
  • 2.1.0
  • 2.0.1
42 results

app.js

Blame
  • app.js 1.62 KiB
    'use strict';
    
    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'])
        .config(['$routeProvider', function ($routeProvider) {
            $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('/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.otherwise({redirectTo: '/'});
        }])
        // 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')
        .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', 'v<%= pkg.version %>')
        .constant('DOCKER_API_VERSION', 'v1.15');