Dashboard widget update (#9515)

Implemented in Laravel
Doesn't use legacy PHP session
Several widgets have new features and settings, for example:

- Multiple ports in one graph
- Maps settings are configurable and override system settings but default to system settings
- Graylog stream and/or device selection
- Much improved graph widget selection
- Many more

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
After you are done testing, you can remove the changes with `./scripts/github-remove`.  If there are schema changes, you can ask on discord how to revert.
This commit is contained in:
Tony Murray
2018-12-16 15:18:17 -06:00
committed by Neil Lathwood
parent dd695dde53
commit 74882e3950
113 changed files with 5103 additions and 1902 deletions

View File

@@ -46,7 +46,7 @@ abstract class PaginatedAjaxController extends Controller
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder
*/
abstract public function baseQuery($request);
abstract protected function baseQuery($request);
/**
* @param Paginator $paginator
@@ -59,7 +59,7 @@ abstract class PaginatedAjaxController extends Controller
*
* @return array
*/
public function rules()
protected function rules()
{
return [];
}
@@ -71,7 +71,7 @@ abstract class PaginatedAjaxController extends Controller
* @return array
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function searchFields($request)
protected function searchFields($request)
{
return [];
}
@@ -82,7 +82,7 @@ abstract class PaginatedAjaxController extends Controller
* @param Model $model
* @return array|Collection|Model
*/
public function formatItem($model)
protected function formatItem($model)
{
return $model;
}