mirror of https://github.com/portainer/portainer
feat(agent): add new host page
parent
46da95ecfb
commit
25c5d1ab07
|
@ -416,6 +416,17 @@ angular.module('portainer.docker', ['portainer.app'])
|
|||
}
|
||||
};
|
||||
|
||||
var host = {
|
||||
name: 'docker.host',
|
||||
url: '/host',
|
||||
views: {
|
||||
'content@': {
|
||||
templateUrl: 'app/docker/views/host/host.html',
|
||||
controller: 'HostController'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$stateRegistryProvider.register(configs);
|
||||
$stateRegistryProvider.register(config);
|
||||
$stateRegistryProvider.register(configCreation);
|
||||
|
@ -455,4 +466,5 @@ angular.module('portainer.docker', ['portainer.app'])
|
|||
$stateRegistryProvider.register(volume);
|
||||
$stateRegistryProvider.register(volumeBrowse);
|
||||
$stateRegistryProvider.register(volumeCreation);
|
||||
$stateRegistryProvider.register(host);
|
||||
}]);
|
||||
|
|
|
@ -4,6 +4,7 @@ angular.module('portainer.docker').component('dockerSidebarContent', {
|
|||
'endpointApiVersion': '<',
|
||||
'swarmManagement': '<',
|
||||
'standaloneManagement': '<',
|
||||
'adminAccess': '<'
|
||||
'adminAccess': '<',
|
||||
'isAgent': '<'
|
||||
}
|
||||
});
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
<li class="sidebar-list" ng-if="$ctrl.swarmManagement">
|
||||
<a ui-sref="docker.swarm" ui-sref-active="active">Swarm <span class="menu-icon fa fa-object-group fa-fw"></span></a>
|
||||
</li>
|
||||
<li class="sidebar-list" ng-if="$ctrl.isAgent">
|
||||
<a ui-sref="docker.host" ui-sref-active="active">Host <span class="menu-icon fa fa-object-group fa-fw"></span></a>
|
||||
</li>
|
||||
<li class="sidebar-list" ng-if="$ctrl.standaloneManagement">
|
||||
<a ui-sref="docker.engine" ui-sref-active="active">Engine <span class="menu-icon fa fa-th fa-fw"></span></a>
|
||||
</li>
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<rd-header>
|
||||
<rd-header-title title-text="Host"></rd-header-title>
|
||||
<rd-header-content>
|
||||
Host
|
||||
</rd-header-content>
|
||||
</rd-header>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<file-uploader></file-uploader>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<host-browser
|
||||
volume-id="volumeId"
|
||||
node-name="nodeName"
|
||||
></host-browser>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,10 @@
|
|||
angular.module('portainer.docker').controller('HostController', [
|
||||
'$transition$',
|
||||
function HostController() {
|
||||
initView();
|
||||
|
||||
function initView() {
|
||||
}
|
||||
|
||||
}
|
||||
]);
|
|
@ -19,6 +19,7 @@
|
|||
</azure-sidebar-content>
|
||||
<docker-sidebar-content ng-if="applicationState.endpoint.mode && applicationState.endpoint.mode.provider !== 'AZURE'"
|
||||
endpoint-api-version="applicationState.endpoint.apiVersion"
|
||||
is-agent="applicationState.endpoint.mode.agentProxy"
|
||||
swarm-management="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE' && applicationState.endpoint.mode.role === 'MANAGER'"
|
||||
standalone-management="applicationState.endpoint.mode.provider === 'DOCKER_STANDALONE' || applicationState.endpoint.mode.provider === 'VMWARE_VIC'"
|
||||
admin-access="!applicationState.application.authentication || isAdmin"
|
||||
|
|
Loading…
Reference in New Issue