mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
supported apps support
This commit is contained in:
@@ -26,8 +26,14 @@ class Item extends Model
|
||||
public static function supportedList()
|
||||
{
|
||||
return [
|
||||
'Duplicati' => \App\SupportedApps\Duplicati::class,
|
||||
'Emby' => \App\SupportedApps\Emby::class,
|
||||
'NZBGet' => \App\SupportedApps\Nzbget::class,
|
||||
'pFsense' => \App\SupportedApps\Pfsense::class,
|
||||
'Pihole' => \App\SupportedApps\Pihole::class,
|
||||
'Plex' => \App\SupportedApps\Plex::class,
|
||||
'UniFi' => \App\SupportedApps\Unifi::class,
|
||||
'Portainer' => \App\SupportedApps\Portainer::class,
|
||||
];
|
||||
}
|
||||
public static function supportedOptions()
|
||||
|
||||
@@ -207,7 +207,7 @@ class Setting extends Model
|
||||
$output .= Form::open(['url' => $url, 'method' => 'get']);
|
||||
$output .= '<div class="input-container">';
|
||||
$output .= Form::text($var, null, ['class' => 'homesearch', 'placeholder' => __($name).' '.__('app.settings.search').'...']);
|
||||
$output .= '<button type="submit">'.ucwords(__('app.settings.remove')).'</button>';
|
||||
$output .= '<button type="submit">'.ucwords(__('app.settings.search')).'</button>';
|
||||
$output .= '</div>';
|
||||
$output .= Form::close();
|
||||
$output .= '</div>';
|
||||
|
||||
16
app/SupportedApps/Duplicati.php
Normal file
16
app/SupportedApps/Duplicati.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Duplicati implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/duplicati.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
16
app/SupportedApps/Emby.php
Normal file
16
app/SupportedApps/Emby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Emby implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/emby.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,8 @@ class Nzbget implements Contracts\Applications {
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return 'nzbget';
|
||||
//return 'nzbget';
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
16
app/SupportedApps/Pfsense.php
Normal file
16
app/SupportedApps/Pfsense.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Pfsense implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/pfsense.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
16
app/SupportedApps/Pihole.php
Normal file
16
app/SupportedApps/Pihole.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Pihole implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/pihole.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
16
app/SupportedApps/Portainer.php
Normal file
16
app/SupportedApps/Portainer.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Portainer implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/portainer.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
16
app/SupportedApps/Unifi.php
Normal file
16
app/SupportedApps/Unifi.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace App\SupportedApps;
|
||||
|
||||
class Unifi implements Contracts\Applications {
|
||||
public function defaultColour()
|
||||
{
|
||||
return '#222';
|
||||
}
|
||||
public function icon()
|
||||
{
|
||||
return 'supportedapps/unifi.png';
|
||||
}
|
||||
public function configDetails()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user