From 211da7cb090b208a4eb10df5acf129cecd043b4d Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 7 Feb 2018 15:43:29 +0000 Subject: [PATCH] supported apps support --- app/Item.php | 6 ++++++ app/Setting.php | 2 +- app/SupportedApps/Duplicati.php | 16 ++++++++++++++++ app/SupportedApps/Emby.php | 16 ++++++++++++++++ app/SupportedApps/Nzbget.php | 3 ++- app/SupportedApps/Pfsense.php | 16 ++++++++++++++++ app/SupportedApps/Pihole.php | 16 ++++++++++++++++ app/SupportedApps/Portainer.php | 16 ++++++++++++++++ app/SupportedApps/Unifi.php | 16 ++++++++++++++++ 9 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 app/SupportedApps/Duplicati.php create mode 100644 app/SupportedApps/Emby.php create mode 100644 app/SupportedApps/Pfsense.php create mode 100644 app/SupportedApps/Pihole.php create mode 100644 app/SupportedApps/Portainer.php create mode 100644 app/SupportedApps/Unifi.php diff --git a/app/Item.php b/app/Item.php index 01033269..3c306363 100644 --- a/app/Item.php +++ b/app/Item.php @@ -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() diff --git a/app/Setting.php b/app/Setting.php index 9c16ce56..8eae80dd 100644 --- a/app/Setting.php +++ b/app/Setting.php @@ -207,7 +207,7 @@ class Setting extends Model $output .= Form::open(['url' => $url, 'method' => 'get']); $output .= '
'; $output .= Form::text($var, null, ['class' => 'homesearch', 'placeholder' => __($name).' '.__('app.settings.search').'...']); - $output .= ''; + $output .= ''; $output .= '
'; $output .= Form::close(); $output .= ''; diff --git a/app/SupportedApps/Duplicati.php b/app/SupportedApps/Duplicati.php new file mode 100644 index 00000000..34de49e1 --- /dev/null +++ b/app/SupportedApps/Duplicati.php @@ -0,0 +1,16 @@ +