ajout heimdall

This commit is contained in:
2025-01-01 11:24:01 +01:00
parent f8be42e486
commit c52f60fca9
1477 changed files with 15692 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php namespace App\SupportedApps\Overseerr;
class Overseerr 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()
{
$this->attrs['headers'] = ['accept' => 'application/json','X-Api-Key' => $this->config->apikey];
$test = parent::appTest($this->url('api/v1/auth/me'), $this->attrs);
echo $test->status;
}
public function livestats()
{
$status = 'inactive';
$this->attrs['headers'] = ['accept' => 'application/json','X-Api-Key' => $this->config->apikey];
$res = parent::execute($this->url('api/v1/request/count'), $this->attrs);
$details = json_decode($res->getBody(), True);
return parent::getLiveStats($status, $details);
}
public function url($endpoint)
{
$api_url = parent::normaliseurl($this->config->url).$endpoint;
return $api_url;
}
}

View File

@@ -0,0 +1,10 @@
{
"appid": "989fb18945a331b430fc284edfe6451aa760f8e6",
"name": "Overseerr",
"website": "https://github.com/sct/overseerr",
"license": "MIT License",
"description": "Overseerr is a free and open source software application for managing requests for your media library. It integrates with your existing services such as Sonarr, Radarr and Plex!",
"enhanced": true,
"tile_background": "dark",
"icon": "overseerr.png"
}

View File

@@ -0,0 +1,14 @@
<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]', (isset($item) ? $item->getconfig()->override_url : null), array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
</div>
<div class="input">
<label>{{ __('app.apps.apikey') }}</label>
{!! Form::text('config[apikey]', (isset($item) ? $item->getconfig()->apikey : null), array('placeholder' => __('app.apps.apikey'), 'data-config' => 'apikey', 'class' => 'form-control config-item')) !!}
</div>
<div class="input">
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
</div>
</div>

View File

@@ -0,0 +1,10 @@
<ul class="livestats">
<li>
<span class="title">Pending</span>
<strong>{!! $pending !!}</strong>
</li>
<li>
<span class="title">Processing</span>
<strong>{!! $processing !!}</strong>
</li>
</ul>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB