mirror of https://github.com/portainer/portainer
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
angular.module('portainer.extensions.registrymanagement', [])
|
|
.config(['$stateRegistryProvider', function ($stateRegistryProvider) {
|
|
'use strict';
|
|
|
|
var registryConfiguration = {
|
|
name: 'portainer.registries.registry.configure',
|
|
url: '/configure',
|
|
views: {
|
|
'content@': {
|
|
templateUrl: 'app/extensions/registry-management/views/configure/configureregistry.html',
|
|
controller: 'ConfigureRegistryController'
|
|
}
|
|
}
|
|
};
|
|
|
|
var registryRepositories = {
|
|
name: 'portainer.registries.registry.repositories',
|
|
url: '/repositories',
|
|
views: {
|
|
'content@': {
|
|
templateUrl: 'app/extensions/registry-management/views/repositories/registryRepositories.html',
|
|
controller: 'RegistryRepositoriesController'
|
|
}
|
|
}
|
|
};
|
|
|
|
var registryRepositoryTags = {
|
|
name: 'portainer.registries.registry.repository',
|
|
url: '/:repository',
|
|
views: {
|
|
'content@': {
|
|
templateUrl: 'app/extensions/registry-management/views/repositories/edit/registryRepository.html',
|
|
controller: 'RegistryRepositoryController'
|
|
}
|
|
}
|
|
};
|
|
|
|
$stateRegistryProvider.register(registryConfiguration);
|
|
$stateRegistryProvider.register(registryRepositories);
|
|
$stateRegistryProvider.register(registryRepositoryTags);
|
|
}]);
|