Cleaned whitespace project wide

This commit is contained in:
Birger J. Nordølum 2018-06-13 11:35:09 +02:00
parent c8a6c89036
commit 39b6a1fdff
No known key found for this signature in database
GPG key ID: 1E2DC712B50089CC
41 changed files with 182 additions and 183 deletions

View file

@ -25,7 +25,7 @@
### Changed
- Updated composer dependencies
- Added live stats to Nzbget supported application
- Added live stats to Nzbget supported application
- Changed Pihole to an enhanced application
- Changed NZBGet to an enhanced application

View file

@ -37,7 +37,7 @@ class ItemController extends Controller
$item->save();
}
}
/**
* Pin item on the dashboard.
@ -88,7 +88,7 @@ class ItemController extends Controller
}
}
/**
* Display a listing of the resource.
*
@ -149,7 +149,7 @@ class ItemController extends Controller
]);
//die(print_r($request->input('config')));
$item = Item::create($request->all());
$item->parents()->sync($request->tags);
@ -184,7 +184,7 @@ class ItemController extends Controller
$data['current_tags'] = $data['item']->parents;
// show the edit form and pass the nerd
return view('items.edit', $data);
return view('items.edit', $data);
}
/**
@ -207,7 +207,7 @@ class ItemController extends Controller
'icon' => $path
]);
}
$config = Item::checkConfig($request->input('config'));
$request->merge([
'description' => $config
@ -242,7 +242,7 @@ class ItemController extends Controller
}
$route = route('items.index', [], false);
return redirect($route)
return redirect($route)
->with('success',__('app.alert.success.item_deleted'));
}
@ -257,8 +257,8 @@ class ItemController extends Controller
//
Item::withTrashed()
->where('id', $id)
->restore();
->restore();
$route = route('items.inded', [], false);
return redirect($route)
->with('success',__('app.alert.success.item_restored'));
@ -296,7 +296,7 @@ class ItemController extends Controller
$output['config'] = null;
}
}
return json_encode($output);
}
@ -304,7 +304,7 @@ class ItemController extends Controller
{
$data = $request->input('data');
//$url = $data[array_search('url', array_column($data, 'name'))]['value'];
$app = $data['type'];
$app_details = new $app();
@ -326,8 +326,8 @@ class ItemController extends Controller
$app_details->config = $config;
echo $app_details->executeConfig();
}
}
}

View file

@ -40,7 +40,7 @@ class SettingsController extends Controller
]);
} else {
$route = route('settings.list', [], false);
return redirect($route)
return redirect($route)
->with([
'error' => __('app.alert.error.not_exist'),
]);
@ -66,7 +66,7 @@ class SettingsController extends Controller
$path = $request->file('value')->store('backgrounds');
$setting->value = $path;
}
} else {
@ -76,13 +76,13 @@ class SettingsController extends Controller
$setting->save();
$route = route('settings.index', [], false);
return redirect($route)
return redirect($route)
->with([
'success' => __('app.alert.success.setting_updated'),
]);
} else {
$route = route('settings.index', [], false);
return redirect($route)
return redirect($route)
->with([
'error' => __('app.alert.error.not_exist'),
]);
@ -101,10 +101,10 @@ class SettingsController extends Controller
$setting->save();
}
$route = route('settings.index', [], false);
return redirect($route)
return redirect($route)
->with([
'success' => __('app.alert.success.setting_updated'),
]);
}
}

View file

@ -99,7 +99,7 @@ class TagController extends Controller
// show the edit form and pass the nerd
return view('tags.edit')
->with('item', $item);
->with('item', $item);
}
/**
@ -152,7 +152,7 @@ class TagController extends Controller
} else {
Item::find($id)->delete();
}
$route = route('tags.index', [], false);
return redirect($route)
->with('success',__('app.alert.success.item_deleted'));
@ -169,7 +169,7 @@ class TagController extends Controller
//
Item::withTrashed()
->where('id', $id)
->restore();
->restore();
$route = route('tags.index', [], false);
return redirect($route)
->with('success',__('app.alert.success.item_restored'));

View file

@ -40,10 +40,10 @@ class AppServiceProvider extends ServiceProvider
$db_version = Setting::fetch('version');
$app_version = config('app.version');
if(version_compare($app_version, $db_version) == 1) { // app is higher than db, so need to run migrations etc
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
}
} else {
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
}
$lang = Setting::fetch('language');
\App::setLocale($lang);

View file

@ -52,14 +52,14 @@ class Setting extends Model
$value = '<a href="'.asset('storage/'.$this->value).'" title="'.__('app.settings.view').'" target="_blank">'.__('app.settings.view').'</a>';
} else {
$value = __('app.options.none');
}
}
break;
case 'boolean':
if((bool)$this->value === true) {
$value = __('app.options.yes');
} else {
$value = __('app.options.no');
}
}
break;
case 'select':
if(!empty($this->value) && $this->value !== 'none') {
@ -67,7 +67,7 @@ class Setting extends Model
$value = __($options[$this->value]);
} else {
$value = __('app.options.none');
}
}
break;
default:
$value = __($this->value);
@ -90,7 +90,7 @@ class Setting extends Model
if(isset($this->value) && !empty($this->value)) {
$value .= '<a class="settinglink" href="'.route('settings.clear', $this->id).'" title="'.__('app.settings.remove').'">'.__('app.settings.reset').'</a>';
}
break;
case 'boolean':
$checked = false;
@ -175,7 +175,7 @@ class Setting extends Model
$output = '';
$homepage_search = self::fetch('homepage_search');
$search_provider = self::where('key', '=', 'search_provider')->first();
//die(var_dump($search_provider->value));
// return early if search isn't applicable
if((bool)$homepage_search !== true) return $output;

View file

@ -5,5 +5,5 @@ interface Applications {
public function defaultColour();
public function icon();
}

View file

@ -7,5 +7,5 @@ interface Livestats {
public function testConfig();
public function executeConfig();
}

View file

@ -1,7 +1,7 @@
<?php namespace App\SupportedApps;
class Glances implements Contracts\Applications {
public function defaultColour()
{
return '#2c363f';
@ -10,5 +10,5 @@ class Glances implements Contracts\Applications {
{
return 'supportedapps/glances.png';
}
}

View file

@ -1,12 +1,12 @@
<?php namespace App\SupportedApps;
class Grafana implements Contracts\Applications {
public function defaultColour()
{
return '#a56e4d';
}
public function icon()
{
return 'supportedapps/grafana.png';
}
}
<?php namespace App\SupportedApps;
class Grafana implements Contracts\Applications {
public function defaultColour()
{
return '#a56e4d';
}
public function icon()
{
return 'supportedapps/grafana.png';
}
}

View file

@ -80,5 +80,5 @@ class Nzbget implements Contracts\Applications, Contracts\Livestats {
return $res;
}
}

View file

@ -73,5 +73,5 @@ class Plexpy implements Contracts\Applications, Contracts\Livestats {
return $res;
}
}

View file

@ -85,5 +85,4 @@ class Sabnzbd implements Contracts\Applications, Contracts\Livestats {
return $res;
}
}

View file

@ -73,5 +73,5 @@ class Tautulli implements Contracts\Applications, Contracts\Livestats {
return $res;
}
}

View file

@ -13,7 +13,7 @@ return [
|
*/
'name' => env('APP_NAME', 'Heimdall'),
'name' => env('APP_NAME', 'Heimdall'),
'version' => '1.4.14',
/*

View file

@ -95,7 +95,7 @@ class SettingsSeeder extends Seeder
]);
if(!$setting = Setting::find(4)) {
$setting = new Setting;
$setting->id = 4;
$setting->group_id = 3;
@ -117,8 +117,8 @@ class SettingsSeeder extends Seeder
'fi' => 'Suomi (Finnish)',
'fr' => 'Français (French)',
'it' => 'Italiano (Italian)',
'no' => 'Norsk (Norwegian)',
'pl' => 'Polski (Polish)',
'no' => 'Norsk (Norwegian)',
'pl' => 'Polski (Polish)',
'sv' => 'Svenska (Swedish)',
'es' => 'Español (Spanish)',
'tr' => 'Türkçe (Turkish)',
@ -145,7 +145,7 @@ class SettingsSeeder extends Seeder
]);
if(!$setting = Setting::find(7)) {
$setting = new Setting;
$setting->id = 7;
$setting->group_id = 3;

View file

@ -106,7 +106,7 @@ body {
.item-container {
//width: 340px;
//transition: width .35s ease-in-out;
//transition: width .35s ease-in-out;
position: relative;
.item-edit {
color: white;
@ -214,7 +214,7 @@ body {
box-shadow: 0 0 20px 2px rgba(0,0,0,0.3);
color: white;
overflow: hidden;
position: relative;
position: relative;
display: none;
outline: 1px solid transparent;
&.active {
@ -317,7 +317,7 @@ body {
width: 100%;
margin:0;
background:#fff;
thead {
th {
background: #f2f3f6;
@ -344,7 +344,7 @@ body {
width: 5px;
background: $app-green;
}
}
}
}
@ -355,7 +355,7 @@ body {
&.form-error {
background: #e69191;
color: white;
text-align: center;
text-align: center;
}
}
a {
@ -375,9 +375,9 @@ body {
.button {
font-size: 18px;
color: lighten($app-text, 15%);
padding: 0 10px;
padding: 0 10px;
border: none;
border-left: 1px solid $table-line;
border-left: 1px solid $table-line;
display: flex;
line-height: 1;
position:relative;
@ -482,10 +482,10 @@ div.create {
width: 36px;
height: 20px;
}
/* Hide default HTML checkbox */
.switch input {display:none;}
/* The slider */
.slider {
position: absolute;
@ -498,7 +498,7 @@ div.create {
-webkit-transition: .4s;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
@ -510,30 +510,30 @@ div.create {
-webkit-transition: .4s;
transition: .4s;
}
input:checked + .slider {
background-color: #2196F3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
-webkit-transform: translateX(16px);
-ms-transform: translateX(16px);
transform: translateX(16px);
}
/* Rounded sliders */
.slider.round {
border-radius: 20px;
}
.slider.round:before {
border-radius: 50%;
}
@-webkit-keyframes autofill {
to {
background:#f5f5f5;
@ -593,15 +593,15 @@ div.create {
position: relative;
width: 100%;
max-width: 500px;
form {
form {
width: 100%;
}
.input-container {
background: white;
border-radius: 5px;
box-shadow: 0px 0px 5px 0 rgba(0,0,0,0.4);
overflow: hidden;
position: relative;
overflow: hidden;
position: relative;
}
input {
padding: 17px 15px;
@ -634,7 +634,7 @@ div.create {
z-index: 1000;
float: left;
display: none;
min-width: 160px;
min-width: 160px;
padding: 4px 0;
margin: 0 0 10px 25px;
list-style: none;
@ -670,7 +670,7 @@ div.create {
.ui-state-hover, .ui-state-active {
font-weight: 700;
}
#appimage {
@ -705,7 +705,7 @@ hr {
border-width: 0;
border-top: 1px solid #eaeaea;
border-bottom: 1px solid #fff;
}
.upload-btn-wrapper {
@ -713,7 +713,7 @@ hr {
overflow: hidden;
display: inline-block;
}
.btn {
border: none;
color: white;
@ -721,7 +721,7 @@ hr {
padding: 8px 12px;
border-radius: 8px;
font-size: 16px;
&.test {
font-size: 16px;
font-weight: 500;
@ -733,7 +733,7 @@ hr {
background: #207774;
}
}
.upload-btn-wrapper input[type=file] {
font-size: 100px;
position: absolute;
@ -785,9 +785,9 @@ hr {
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
input:-webkit-autofill,
input:-webkit-autofill,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover
textarea:-webkit-autofill:focus,

View file

@ -8,17 +8,17 @@ http://huebee.buzz
transform: translateY(0px);
transition: opacity 0.15s, transform 0.15s;
}
.huebee.is-hidden {
opacity: 0;
transform: translateY(10px);
}
.huebee.is-static-open {
position: relative;
z-index: auto;
}
.huebee__container {
position: absolute;
left: 0;
@ -28,7 +28,7 @@ http://huebee.buzz
border-radius: 5px;
box-shadow: 0 5px 10px hsla(0, 0%, 0%, 0.3);
}
.huebee.is-static-open .huebee__container {
position: relative;
display: inline-block;
@ -36,12 +36,12 @@ http://huebee.buzz
top: auto;
box-shadow: none;
}
.huebee__canvas {
display: block;
cursor: pointer;
}
.huebee__cursor {
width: 15px;
height: 15px;
@ -53,9 +53,9 @@ http://huebee.buzz
border-radius: 5px;
pointer-events: none;
}
.huebee__cursor.is-hidden { opacity: 0; }
.huebee__close-button {
display: block;
position: absolute;
@ -66,18 +66,18 @@ http://huebee.buzz
border-radius: 12px;
background: #222;
}
.huebee__close-button__x {
stroke: white;
stroke-width: 3;
stroke-linecap: round;
}
.huebee__close-button:hover {
background: white;
cursor: pointer;
}
.huebee__close-button:hover .huebee__close-button__x {
stroke: #222;
}

View file

@ -22,12 +22,12 @@ return [
'settings.remove' => 'Rimuovi',
'settings.search' => 'Cerca',
'settings.no_items' => 'Nessun elemento trovato',
'settings.label' => 'Etichetta',
'settings.value' => 'Valore',
'settings.edit' => 'Modifica',
'settings.view' => 'Vista',
'settings.label' => 'Etichetta',
'settings.value' => 'Valore',
'settings.edit' => 'Modifica',
'settings.view' => 'Vista',
'options.none' => '- non impostato -',
'options.google' => 'Google',
@ -64,9 +64,9 @@ return [
'url' => 'Url',
'title' => 'Titolo',
'delete' => 'Elimina',
'optional' => 'Opzionale',
'restore' => 'Ripristina',
'delete' => 'Elimina',
'optional' => 'Opzionale',
'restore' => 'Ripristina',
'alert.success.item_created' => 'Elemento creato con successo',
'alert.success.item_updated' => 'Elemento aggiornato con successo',

View file

@ -22,12 +22,12 @@ return [
'settings.remove' => 'Verwijderen',
'settings.search' => 'zoeken',
'settings.no_items' => 'Geen items gevonden',
'settings.label' => 'Label',
'settings.value' => 'Waarde',
'settings.edit' => 'Bewerken',
'settings.view' => 'Weergeven',
'settings.label' => 'Label',
'settings.value' => 'Waarde',
'settings.edit' => 'Bewerken',
'settings.view' => 'Weergeven',
'options.none' => '- niet ingesteld -',
'options.google' => 'Google',
@ -68,9 +68,9 @@ return [
'url' => 'URL',
'title' => 'Titel',
'delete' => 'Verwijderen',
'optional' => 'Optioneel',
'restore' => 'Herstellen',
'delete' => 'Verwijderen',
'optional' => 'Optioneel',
'restore' => 'Herstellen',
'alert.success.item_created' => 'Item met succes aangemaakt',
'alert.success.item_updated' => 'Item met succes bewerkt',

View file

@ -22,12 +22,12 @@ return [
'settings.remove' => 'Fjern',
'settings.search' => 'søk',
'settings.no_items' => 'Ingen funn',
'settings.label' => 'Merkelapp',
'settings.value' => 'Verdi',
'settings.edit' => 'Endre',
'settings.view' => 'Se',
'settings.label' => 'Merkelapp',
'settings.value' => 'Verdi',
'settings.edit' => 'Endre',
'settings.view' => 'Se',
'options.none' => '- ikke valgt -',
'options.google' => 'Google',
@ -64,9 +64,9 @@ return [
'url' => 'Url',
'title' => 'Tittel',
'delete' => 'Slett',
'optional' => 'Valgfritt',
'restore' => 'Tilbakestill',
'delete' => 'Slett',
'optional' => 'Valgfritt',
'restore' => 'Tilbakestill',
'alert.success.item_created' => 'Objektet ble opprettet',
'alert.success.item_updated' => 'Objektet ble oppdatert',

View file

@ -22,12 +22,12 @@ return [
'settings.remove' => 'Usuń',
'settings.search' => 'szukaj',
'settings.no_items' => 'Nic nie znaleziono',
'settings.label' => 'Etykieta',
'settings.value' => 'Wartość',
'settings.edit' => 'Edytuj',
'settings.view' => 'Widok',
'settings.label' => 'Etykieta',
'settings.value' => 'Wartość',
'settings.edit' => 'Edytuj',
'settings.view' => 'Widok',
'options.none' => '- not set -',
'options.google' => 'Google',
@ -64,9 +64,9 @@ return [
'url' => 'URL',
'title' => 'Tytuł',
'delete' => 'Usuń',
'optional' => 'Opcjonalny',
'restore' => 'Przywróć',
'delete' => 'Usuń',
'optional' => 'Opcjonalny',
'restore' => 'Przywróć',
'alert.success.item_created' => 'Element utworzony',
'alert.success.item_updated' => 'Element zaktualizowany',

View file

@ -1,18 +1,18 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| App Language Lines
|--------------------------------------------------------------------------
|
*/
'settings.system' => 'Sistem',
'settings.appearance' => 'Görünüm',
'settings.miscellaneous' => 'Çeşitli',
'settings.version' => 'Versiyon',
'settings.background_image' => 'Arkaplan Resmi',
'settings.homepage_search' => 'Anasayfa Arama',
@ -22,31 +22,31 @@ return [
'settings.remove' => 'Sil',
'settings.search' => 'ara',
'settings.no_items' => 'Öğe bulunamadı',
'settings.label' => 'Etiket',
'settings.value' => 'Değer',
'settings.edit' => 'Düzenle',
'settings.view' => 'Görüntüle',
'settings.label' => 'Etiket',
'settings.value' => 'Değer',
'settings.edit' => 'Düzenle',
'settings.view' => 'Görüntüle',
'options.none' => '- ayarlanmadı -',
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.yes' => 'Evet',
'options.no' => 'Hayır',
'buttons.save' => 'Kaydet',
'buttons.cancel' => 'İptal',
'buttons.add' => 'Ekle',
'buttons.upload' => 'Dosya yükle',
'dash.pin_item' => 'Ana panele iğnele',
'dash.no_apps' => 'Ana panele iğneli öğeler, :link1 or :link2',
'dash.link1' => 'Yeni uygulama ekle',
'dash.link2' => 'Ana panele iğnele',
'dash.pinned_items' => 'İğnelenen öğeler',
'apps.app_list' => 'Uygulama listesi',
'apps.view_trash' => 'Çöpü görüntüle',
'apps.add_application' => 'Uygulama ekle',
@ -59,20 +59,20 @@ return [
'apps.username' => 'Kullanıcı adı',
'apps.password' => 'Şifre',
'apps.config' => 'Yapılandırma',
'url' => 'Adres',
'title' => 'Başlık',
'delete' => 'Sil',
'optional' => 'İsteğe bağlı',
'restore' => 'Eski haline getir',
'delete' => 'Sil',
'optional' => 'İsteğe bağlı',
'restore' => 'Eski haline getir',
'alert.success.item_created' => 'Öğe yaratıldı',
'alert.success.item_updated' => 'Öğe güncellendi',
'alert.success.item_deleted' => 'Öğe silindi',
'alert.success.item_restored' => 'Öğe eski haline getirildi',
'alert.success.setting_updated' => 'Ayarlama kaydedildi',
'alert.error.not_exist' => 'Böyle bir seçenek yok.',
];

View file

@ -12,8 +12,8 @@ return [
| these language lines according to your application's requirements.
|
*/
'failed' => 'Kimlik bilgileri doğru değil.',
'throttle' => 'Çok fazla girişim. :seconds saniye sonra tekrar deneyin.',
];

View file

@ -1,7 +1,7 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
@ -12,8 +12,8 @@ return [
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Önceki',
'next' => 'Sonraki &raquo;',
];

View file

@ -1,7 +1,7 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
@ -12,11 +12,11 @@ return [
| has failed, such as for an invalid token or invalid new password.
|
*/
'password' => 'Şifre en az altı karakter olmalı ve onaylamasına uymalıdır.',
'reset' => 'Şifreniz sıfırlandı!',
'sent' => 'Şifre sıfırlama bağlantısı eposta adresinize yollandı!',
'token' => 'Şifre sıfırlama simgesi geçerli değil.',
'user' => "Adresle ilişkili kullanıcı adı bulunamadı.",
];

View file

@ -12,7 +12,7 @@ return [
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':attribute kabul edilmelidir.',
'active_url' => ':attribute geçerli bir adres değil.',
'after' => ':attribute :date tarihinden sonra olmalıdır.',
@ -87,7 +87,7 @@ return [
'unique' => ':attribute zaten kullanımda.',
'uploaded' => ':attribute yüklenemedi.',
'url' => ':attribute düzeni geçersiz.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
@ -98,13 +98,13 @@ return [
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
@ -115,7 +115,7 @@ return [
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];

View file

@ -40,7 +40,7 @@
$active = ((bool)$app->pinned === true) ? 'active' : '';
?>
<li>{{ $app->title }}<a class="{{ $active }}" data-id="{{ $app->id }}" href="{{ route('items.pintoggle', [$app->id], false) }}"><i class="fas fa-thumbtack"></i></a></li>
@endforeach
</ul>
@endif
@ -71,13 +71,13 @@
</div>
</div>
@endif
@yield('content')
<div id="config-buttons">
@if(Route::is('dash') || Route::is('tags.show'))
<a id="config-button" class="config" href=""><i class="fas fa-exchange"></i></a>
@endif
<a id="dash" class="config" href="{{ route('dash', [], false) }}"><i class="fas fa-th"></i></a>
<a id="items" class="config" href="{{ route('items.index', [], false) }}"><i class="fas fa-list"></i></a>
<a id="folder" class="config" href="{{ route('tags.index', [], false) }}"><i class="fas fa-tag"></i></a>
@ -92,6 +92,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="/js/app.js?v=2"></script>
@yield('scripts')
</body>
</html>

View file

@ -14,5 +14,5 @@
<a class="link{{ title_color($app->colour) }}"{!! $app->link_target !!} href="{{ $app->link }}"><i class="fas {{ $app->link_icon }}"></i></a>
</div>
<a class="item-edit" href="{{ route($app->link_type.'.edit', [ $app->id ], false) }}"><i class="fas fa-pencil"></i></a>
</section>

View file

@ -23,7 +23,7 @@
$checked = false;
if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
?>
<input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>
@ -57,7 +57,7 @@
</div>
</div>
</div>
@if(isset($item) && isset($item->config->view))
<div id="sapconfig" style="display: block;">
@if(isset($item))
@ -67,7 +67,7 @@
@else
<div id="sapconfig"></div>
@endif
</div>
<footer>
<div class="section-title">&nbsp;</div>

View file

@ -17,7 +17,7 @@
{!! $setting->edit_value !!}
</div>
</div>
<footer>
<div class="section-title">&nbsp;</div>

View file

@ -5,7 +5,7 @@
<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')) !!}

View file

@ -6,7 +6,7 @@
<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.enable') }}</label>
{!! Form::hidden('config[enabled]', '0') !!}

View file

@ -5,7 +5,7 @@
<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')) !!}

View file

@ -6,7 +6,7 @@
<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.enable') }}</label>
{!! Form::hidden('config[enabled]', '0') !!}

View file

@ -1,7 +1,7 @@
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }})</h2>
<div class="items">
<input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\Sabnzbd" />
<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')) !!}

View file

@ -20,7 +20,7 @@
$checked = false;
if(isset($item->pinned) && (bool)$item->pinned === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
?>
<input type="checkbox" name="pinned" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>
@ -51,7 +51,7 @@
</div>
</div>
</div>
@if(isset($item) && isset($item->config->view))
<div id="sapconfig" style="display: block;">
@if(isset($item))
@ -61,7 +61,7 @@
@else
<div id="sapconfig"></div>
@endif
</div>
<footer>
<div class="section-title">&nbsp;</div>

View file

@ -47,7 +47,7 @@
</tr>
@endif
</tbody>
</table>
</section>

View file

@ -4,7 +4,7 @@
var elem = $('.color-picker')[0];
var hueb = new Huebee( elem, {
// options
});
});
});
</script>

View file

@ -43,7 +43,7 @@
</tr>
@endif
</tbody>
</table>
</section>

View file

@ -4,17 +4,17 @@
@include('partials.search')
@if($apps->first())
@include('sortable')
@include('sortable')
@else
<div class="message-container2">
<div class="alert alert-danger">
<p>{!! __('app.dash.no_apps',
<p>{!! __('app.dash.no_apps',
[
'link1' => '<a href="'.route('items.create', [], false).'">'.__('app.dash.link1').'</a>',
'link1' => '<a href="'.route('items.create', [], false).'">'.__('app.dash.link1').'</a>',
'link2' => '<a id="pin-item" href="">'.__('app.dash.link2').'</a>'
]) !!}</p>
</div>
</div>
<div id="sortable">
@include('add')