You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/extensions/registry-management/_module.js

56 lines
1.6 KiB

angular.module('portainer.extensions.registrymanagement', []).config([
'$stateRegistryProvider',
function ($stateRegistryProvider) {
'use strict';
var registryConfiguration = {
name: 'portainer.registries.registry.configure',
url: '/configure',
views: {
'content@': {
templateUrl: './views/configure/configureregistry.html',
controller: 'ConfigureRegistryController',
},
},
};
var registryRepositories = {
name: 'portainer.registries.registry.repositories',
url: '/repositories',
views: {
'content@': {
templateUrl: './views/repositories/registryRepositories.html',
controller: 'RegistryRepositoriesController',
},
},
};
var registryRepositoryTags = {
name: 'portainer.registries.registry.repository',
url: '/:repository',
views: {
'content@': {
templateUrl: './views/repositories/edit/registryRepository.html',
controller: 'RegistryRepositoryController',
},
},
};
var registryRepositoryTag = {
name: 'portainer.registries.registry.repository.tag',
url: '/:tag',
views: {
'content@': {
templateUrl: './views/repositories/tag/registryRepositoryTag.html',
controller: 'RegistryRepositoryTagController',
controllerAs: 'ctrl',
},
},
};
$stateRegistryProvider.register(registryConfiguration);
$stateRegistryProvider.register(registryRepositories);
$stateRegistryProvider.register(registryRepositoryTags);
$stateRegistryProvider.register(registryRepositoryTag);
},
]);