Browse Source

fixes

pull/282/head
Kode 6 years ago
parent
commit
488fee7b4b
  1. 2
      app/Http/Controllers/ItemController.php
  2. 1
      public/css/app.css
  3. 2
      public/mix-manifest.json
  4. 1
      resources/assets/sass/_app.scss
  5. 3
      resources/views/items/enable.blade.php
  6. 2
      routes/web.php

2
app/Http/Controllers/ItemController.php

@ -311,7 +311,7 @@ class ItemController extends Controller
// live details
if($app instanceof \App\EnhancedApps) {
$output['config'] = $app_details->name.'.config';
$output['config'] = className($app_details->name).'.config';
} else {
$output['config'] = null;
}

1
public/css/app.css

@ -1290,6 +1290,7 @@ hr {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
text-align: left;
}
.livestats-container .livestats strong {

2
public/mix-manifest.json

@ -1,4 +1,4 @@
{
"/css/app.css": "/css/app.css?id=2d647cf8beb1a6515945",
"/css/app.css": "/css/app.css?id=458c92fc5ea880eda1b6",
"/js/app.js": "/js/app.js?id=8dc4a6ea723d0df7469d"
}

1
resources/assets/sass/_app.scss

@ -879,6 +879,7 @@ hr {
opacity: 0.5;
line-height: 1;
display: flex;
text-align: left;
}
strong {
display: block;

3
resources/views/items/enable.blade.php

@ -3,7 +3,8 @@
{!! Form::hidden('config[enabled]', '0') !!}
<label class="switch">
<?php
$checked = $item->enabled();
$checked = false;
if(isset($item) && !empty($item)) $checked = $item->enabled();
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
<input type="checkbox" name="config[enabled]" value="1"<?php echo $set_checked;?> />

2
routes/web.php

@ -42,7 +42,7 @@ Route::post('test_config', 'ItemController@testConfig')->name('test_config');
Route::get('/get_stats/{id}', 'ItemController@getStats')->name('get_stats');
Route::get('view/{name_view}', function ($name_view) {
return view('SupportedApps::'.$name_view);
return view('SupportedApps::'.$name_view)->render();
});
Route::get('titlecolour', function (Request $request) {

Loading…
Cancel
Save