ajout heimdall
This commit is contained in:
35
heimdall/config/www/SupportedApps/VMwareESXi/VMwareESXi.php
Executable file
35
heimdall/config/www/SupportedApps/VMwareESXi/VMwareESXi.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php namespace App\SupportedApps\VMwareESXi;
|
||||
|
||||
class VMwareESXi extends \App\SupportedApps implements \App\EnhancedApps {
|
||||
|
||||
public $config;
|
||||
|
||||
//protected $login_first = true; // Uncomment if api requests need to be authed first
|
||||
//protected $method = 'POST'; // Uncomment if requests to the API should be set by POST
|
||||
|
||||
function __construct() {
|
||||
//$this->jar = new \GuzzleHttp\Cookie\CookieJar; // Uncomment if cookies need to be set
|
||||
}
|
||||
|
||||
public function test()
|
||||
{
|
||||
$test = parent::appTest($this->url('status'));
|
||||
echo $test->status;
|
||||
}
|
||||
|
||||
public function livestats()
|
||||
{
|
||||
$status = 'inactive';
|
||||
$res = parent::execute($this->url('status'));
|
||||
$details = json_decode($res->getBody());
|
||||
|
||||
$data = [];
|
||||
return parent::getLiveStats($status, $data);
|
||||
|
||||
}
|
||||
public function url($endpoint)
|
||||
{
|
||||
$api_url = parent::normaliseurl($this->config->url).$endpoint;
|
||||
return $api_url;
|
||||
}
|
||||
}
|
||||
10
heimdall/config/www/SupportedApps/VMwareESXi/app.json
Executable file
10
heimdall/config/www/SupportedApps/VMwareESXi/app.json
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"appid": "39d2762d5690a6ebeb6ac1615d3ee5d58b07ab7e",
|
||||
"name": "VMware ESXi",
|
||||
"website": "https://www.vmware.com/products/esxi-and-esx.html",
|
||||
"license": "Commercial",
|
||||
"description": "VMware ESXi is an enterprise-class, type-1 hypervisor developed by VMware for deploying and serving virtual computers. As a type-1 hypervisor, ESXi is not a software application that is installed on an operating system; instead, it includes and integrates vital OS components, such as a kernel.",
|
||||
"enhanced": false,
|
||||
"tile_background": "dark",
|
||||
"icon": "vmwareesxi.png"
|
||||
}
|
||||
19
heimdall/config/www/SupportedApps/VMwareESXi/config.blade.php
Executable file
19
heimdall/config/www/SupportedApps/VMwareESXi/config.blade.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }}) @include('items.enable')</h2>
|
||||
<div class="items">
|
||||
<div class="input">
|
||||
<label>{{ strtoupper(__('app.url')) }}</label>
|
||||
{!! Form::text('config[override_url]', null, array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
|
||||
</div>
|
||||
<div class="input">
|
||||
<label>{{ __('app.apps.username') }}</label>
|
||||
{!! Form::text('config[username]', null, array('placeholder' => __('app.apps.username'), 'data-config' => 'username', 'class' => 'form-control config-item')) !!}
|
||||
</div>
|
||||
<div class="input">
|
||||
<label>{{ __('app.apps.password') }}</label>
|
||||
{!! Form::text('config[password]', null, array('placeholder' => __('app.apps.password'), 'data-config' => 'password', 'class' => 'form-control config-item')) !!}
|
||||
</div>
|
||||
<div class="input">
|
||||
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
10
heimdall/config/www/SupportedApps/VMwareESXi/livestats.blade.php
Executable file
10
heimdall/config/www/SupportedApps/VMwareESXi/livestats.blade.php
Executable file
@@ -0,0 +1,10 @@
|
||||
<ul class="livestats">
|
||||
<li>
|
||||
<span class="title">Queue</span>
|
||||
<strong>{!! $queue_size !!}</strong>
|
||||
</li>
|
||||
<li>
|
||||
<span class="title">Speed</span>
|
||||
<strong>{!! $current_speed !!}</strong>
|
||||
</li>
|
||||
</ul>
|
||||
BIN
heimdall/config/www/SupportedApps/VMwareESXi/vmwareesxi.png
Executable file
BIN
heimdall/config/www/SupportedApps/VMwareESXi/vmwareesxi.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 8.3 KiB |
Reference in New Issue
Block a user