2018-01-21 16:26:24 +00:00
|
|
|
angular.module('extension.storidge', [])
|
|
|
|
.config(['$stateRegistryProvider', function ($stateRegistryProvider) {
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var storidge = {
|
|
|
|
name: 'storidge',
|
2018-02-01 12:27:52 +00:00
|
|
|
parent: 'root',
|
2018-01-21 16:26:24 +00:00
|
|
|
abstract: true,
|
2018-02-01 12:27:52 +00:00
|
|
|
url: '/storidge'
|
2018-01-21 16:26:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var profiles = {
|
|
|
|
name: 'storidge.profiles',
|
|
|
|
url: '/profiles',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/extensions/storidge/views/profiles/profiles.html',
|
|
|
|
controller: 'StoridgeProfilesController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-02-01 12:27:52 +00:00
|
|
|
var profile = {
|
|
|
|
name: 'storidge.profiles.profile',
|
|
|
|
url: '/:id',
|
2018-01-21 16:26:24 +00:00
|
|
|
views: {
|
|
|
|
'content@': {
|
2018-02-01 12:27:52 +00:00
|
|
|
templateUrl: 'app/extensions/storidge/views/profiles/edit/profile.html',
|
|
|
|
controller: 'StoridgeProfileController'
|
2018-01-21 16:26:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2018-02-01 12:27:52 +00:00
|
|
|
var profileCreation = {
|
|
|
|
name: 'storidge.profiles.new',
|
|
|
|
url: '/new',
|
|
|
|
params: {
|
|
|
|
profileName: ''
|
|
|
|
},
|
2018-01-21 16:26:24 +00:00
|
|
|
views: {
|
|
|
|
'content@': {
|
2018-02-01 12:27:52 +00:00
|
|
|
templateUrl: 'app/extensions/storidge/views/profiles/create/createprofile.html',
|
|
|
|
controller: 'StoridgeCreateProfileController'
|
2018-01-21 16:26:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var cluster = {
|
|
|
|
name: 'storidge.cluster',
|
|
|
|
url: '/cluster',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/extensions/storidge/views/cluster/cluster.html',
|
|
|
|
controller: 'StoridgeClusterController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
var monitor = {
|
|
|
|
name: 'storidge.monitor',
|
|
|
|
url: '/events',
|
|
|
|
views: {
|
|
|
|
'content@': {
|
|
|
|
templateUrl: 'app/extensions/storidge/views/monitor/monitor.html',
|
|
|
|
controller: 'StoridgeMonitorController'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
$stateRegistryProvider.register(storidge);
|
|
|
|
$stateRegistryProvider.register(profiles);
|
2018-02-01 12:27:52 +00:00
|
|
|
$stateRegistryProvider.register(profile);
|
2018-01-21 16:26:24 +00:00
|
|
|
$stateRegistryProvider.register(profileCreation);
|
|
|
|
$stateRegistryProvider.register(cluster);
|
|
|
|
$stateRegistryProvider.register(monitor);
|
|
|
|
}]);
|