2016-08-03 03:11:09 +00:00
|
|
|
<rd-header>
|
|
|
|
<rd-header-title title="Container console">
|
|
|
|
<i id="loadingViewSpinner" class="fa fa-cog fa-spin"></i>
|
|
|
|
</rd-header-title>
|
2016-10-26 03:29:29 +00:00
|
|
|
<rd-header-content ng-if="state.loaded">
|
2016-08-03 03:11:09 +00:00
|
|
|
Containers > <a ui-sref="container({id: container.Id})">{{ container.Name|trimcontainername }}</a> > Console
|
|
|
|
</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
2016-10-26 03:29:29 +00:00
|
|
|
<div class="row" ng-if="state.loaded">
|
2016-08-03 03:11:09 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-terminal" title="Console">
|
|
|
|
<div class="pull-right">
|
|
|
|
<i id="loadConsoleSpinner" class="fa fa-cog fa-2x fa-spin" style="margin-top: 5px; display: none;"></i>
|
|
|
|
</div>
|
|
|
|
</rd-widget-header>
|
|
|
|
<rd-widget-body>
|
2016-10-26 03:29:29 +00:00
|
|
|
<form>
|
|
|
|
<div class="row">
|
|
|
|
<!-- command-list -->
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">
|
|
|
|
<i class="fa fa-linux" aria-hidden="true" ng-if="imageOS == 'linux'"></i>
|
|
|
|
<i class="fa fa-windows" aria-hidden="true" ng-if="imageOS == 'windows'"></i>
|
|
|
|
</span>
|
|
|
|
<select class="form-control" ng-model="state.command" id="command">
|
|
|
|
<option value="bash" ng-if="imageOS == 'linux'">/bin/bash</option>
|
|
|
|
<option value="sh" ng-if="imageOS == 'linux'">/bin/sh</option>
|
|
|
|
<option value="powershell" ng-if="imageOS == 'windows'">powershell</option>
|
|
|
|
<option value="cmd.exe" ng-if="imageOS == 'windows'">cmd.exe</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2016-08-03 03:11:09 +00:00
|
|
|
</div>
|
2016-10-26 03:29:29 +00:00
|
|
|
<!-- !command-list -->
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<button type="button" class="btn btn-primary" ng-click="connect()" ng-disabled="state.connected">Connect</button>
|
|
|
|
<button type="button" class="btn btn-default" ng-click="disconnect()" ng-disabled="!state.connected">Disconnect</button>
|
2016-08-03 03:11:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-xs-12">
|
|
|
|
<div id="terminal-container" class="terminal-container"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|