mirror of https://github.com/portainer/portainer
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.
127 lines
2.8 KiB
127 lines
2.8 KiB
6 years ago
|
// TODO: legacy extension management
|
||
6 years ago
|
|
||
|
angular.module('portainer.integrations.storidge', [])
|
||
7 years ago
|
.config(['$stateRegistryProvider', function ($stateRegistryProvider) {
|
||
|
'use strict';
|
||
|
|
||
|
var storidge = {
|
||
|
name: 'storidge',
|
||
7 years ago
|
parent: 'root',
|
||
7 years ago
|
abstract: true,
|
||
7 years ago
|
url: '/storidge'
|
||
7 years ago
|
};
|
||
|
|
||
|
var profiles = {
|
||
|
name: 'storidge.profiles',
|
||
|
url: '/profiles',
|
||
|
views: {
|
||
|
'content@': {
|
||
6 years ago
|
templateUrl: './views/profiles/profiles.html',
|
||
7 years ago
|
controller: 'StoridgeProfilesController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
7 years ago
|
var profile = {
|
||
|
name: 'storidge.profiles.profile',
|
||
|
url: '/:id',
|
||
7 years ago
|
views: {
|
||
|
'content@': {
|
||
6 years ago
|
templateUrl: './views/profiles/edit/profile.html',
|
||
7 years ago
|
controller: 'StoridgeProfileController'
|
||
7 years ago
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
6 years ago
|
var drives = {
|
||
|
name: 'storidge.drives',
|
||
|
url: '/drives',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/drives/drives.html',
|
||
|
controller: 'StoridgeDrivesController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var drive = {
|
||
|
name: 'storidge.drives.drive',
|
||
|
url: '/:id',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/drives/inspect/drive.html',
|
||
|
controller: 'StoridgeDriveController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var snapshot = {
|
||
|
name: 'docker.volumes.volume.snapshot',
|
||
|
url: '/:snapshotId',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/snapshots/inspect/snapshot.html',
|
||
|
controller: 'StoridgeSnapshotController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
7 years ago
|
var profileCreation = {
|
||
|
name: 'storidge.profiles.new',
|
||
|
url: '/new',
|
||
|
params: {
|
||
|
profileName: ''
|
||
|
},
|
||
7 years ago
|
views: {
|
||
|
'content@': {
|
||
6 years ago
|
templateUrl: './views/profiles/create/createprofile.html',
|
||
7 years ago
|
controller: 'StoridgeCreateProfileController'
|
||
7 years ago
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
var cluster = {
|
||
|
name: 'storidge.cluster',
|
||
|
url: '/cluster',
|
||
|
views: {
|
||
|
'content@': {
|
||
6 years ago
|
templateUrl: './views/cluster/cluster.html',
|
||
7 years ago
|
controller: 'StoridgeClusterController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
6 years ago
|
var node = {
|
||
|
name: 'storidge.cluster.node',
|
||
|
url: '/:name',
|
||
|
views: {
|
||
|
'content@': {
|
||
|
templateUrl: './views/nodes/inspect/node.html',
|
||
|
controller: 'StoridgeNodeController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
7 years ago
|
var monitor = {
|
||
|
name: 'storidge.monitor',
|
||
|
url: '/events',
|
||
|
views: {
|
||
|
'content@': {
|
||
6 years ago
|
templateUrl: './views/monitor/monitor.html',
|
||
7 years ago
|
controller: 'StoridgeMonitorController'
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
$stateRegistryProvider.register(storidge);
|
||
6 years ago
|
$stateRegistryProvider.register(drives);
|
||
|
$stateRegistryProvider.register(drive);
|
||
|
$stateRegistryProvider.register(snapshot);
|
||
7 years ago
|
$stateRegistryProvider.register(profiles);
|
||
7 years ago
|
$stateRegistryProvider.register(profile);
|
||
7 years ago
|
$stateRegistryProvider.register(profileCreation);
|
||
|
$stateRegistryProvider.register(cluster);
|
||
6 years ago
|
$stateRegistryProvider.register(node);
|
||
7 years ago
|
$stateRegistryProvider.register(monitor);
|
||
|
}]);
|