mirror of https://github.com/portainer/portainer
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
|
angular.module('portainer.azure', ['portainer.app']).config([
|
||
|
'$stateRegistryProvider',
|
||
|
function ($stateRegistryProvider) {
|
||
|
'use strict';
|
||
|
|
||
|
var azure = {
|
||
|
name: 'azure',
|
||
|
url: '/azure',
|
||
|
parent: 'root',
|
||
|
abstract: true,
|
||
|
};
|
||
|
|
||
|
var containerInstances = {
|
||
|
name: 'azure.containerinstances',
|
||
|
url: '/containerinstances',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/containerinstances/containerinstances.html',
|
||
|
controller: 'AzureContainerInstancesController',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
var containerInstanceCreation = {
|
||
|
name: 'azure.containerinstances.new',
|
||
|
url: '/new/',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/containerinstances/create/createcontainerinstance.html',
|
||
|
controller: 'AzureCreateContainerInstanceController',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
var dashboard = {
|
||
|
name: 'azure.dashboard',
|
||
|
url: '/dashboard',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/dashboard/dashboard.html',
|
||
|
controller: 'AzureDashboardController',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
$stateRegistryProvider.register(azure);
|
||
|
$stateRegistryProvider.register(containerInstances);
|
||
|
$stateRegistryProvider.register(containerInstanceCreation);
|
||
|
$stateRegistryProvider.register(dashboard);
|
||
|
},
|
||
|
]);
|