2018-05-28 14:40:33 +00:00
|
|
|
angular.module('portainer.azure', ['portainer.app'])
|
|
|
|
.config(['$stateRegistryProvider', function ($stateRegistryProvider) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var azure = {
|
|
|
|
name: 'azure',
|
2018-06-01 07:09:36 +00:00
|
|
|
url: '/azure',
|
2018-05-28 14:40:33 +00:00
|
|
|
parent: 'root',
|
|
|
|
abstract: true
|
|
|
|
};
|
|
|
|
|
|
|
|
var containerInstances = {
|
|
|
|
name: 'azure.containerinstances',
|
|
|
|
url: '/containerinstances',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/azure/views/containerinstances/containerinstances.html',
|
|
|
|
controller: 'AzureContainerInstancesController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var containerInstanceCreation = {
|
|
|
|
name: 'azure.containerinstances.new',
|
|
|
|
url: '/new/',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/azure/views/containerinstances/create/createcontainerinstance.html',
|
|
|
|
controller: 'AzureCreateContainerInstanceController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var dashboard = {
|
|
|
|
name: 'azure.dashboard',
|
|
|
|
url: '/dashboard',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/azure/views/dashboard/dashboard.html',
|
|
|
|
controller: 'AzureDashboardController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
$stateRegistryProvider.register(azure);
|
|
|
|
$stateRegistryProvider.register(containerInstances);
|
|
|
|
$stateRegistryProvider.register(containerInstanceCreation);
|
|
|
|
$stateRegistryProvider.register(dashboard);
|
|
|
|
}]);
|