From 47a0a24a5e8ba15aa67fca46b7fedf9929541b17 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Sun, 19 Aug 2018 17:53:54 +0800 Subject: [PATCH] Remove datatables package --- app/Http/Controllers/AdminController.php | 1 - app/Http/Controllers/PluginController.php | 1 - composer.json | 1 - composer.lock | 123 +--------------------- config/app.php | 1 - config/datatables.php | 46 -------- 6 files changed, 1 insertion(+), 172 deletions(-) delete mode 100644 config/datatables.php diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 3d2f9c05..fbc19396 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers; use Option; -use Datatables; use App\Events; use Carbon\Carbon; use App\Models\User; diff --git a/app/Http/Controllers/PluginController.php b/app/Http/Controllers/PluginController.php index 3991775b..fbc69dce 100644 --- a/app/Http/Controllers/PluginController.php +++ b/app/Http/Controllers/PluginController.php @@ -3,7 +3,6 @@ namespace App\Http\Controllers; use View; -use Datatables; use App\Events; use App\Services\Plugin; use Illuminate\Http\Request; diff --git a/composer.json b/composer.json index 289200b0..f4f77a56 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,6 @@ "laravel/framework": "5.6.*", "nesbot/carbon": "^1.32.0", "devitek/yaml-translation": "^4.1.0", - "printempw/laravel-datatables-lite": "^1.0", "composer/semver": "^1.4", "mews/captcha": "^2.2", "guzzlehttp/guzzle": "^6.3" diff --git a/composer.lock b/composer.lock index a21382ad..18c74066 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "741082b92c141e3879643e43fc92aa2f", + "content-hash": "53454be5162a6b99698b81d230e430d9", "packages": [ { "name": "composer/semver", @@ -922,70 +922,6 @@ ], "time": "2018-05-07T08:44:23+00:00" }, - { - "name": "league/fractal", - "version": "0.17.0", - "source": { - "type": "git", - "url": "https://github.com/thephpleague/fractal.git", - "reference": "a0b350824f22fc2fdde2500ce9d6851a3f275b0e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/thephpleague/fractal/zipball/a0b350824f22fc2fdde2500ce9d6851a3f275b0e", - "reference": "a0b350824f22fc2fdde2500ce9d6851a3f275b0e", - "shasum": "" - }, - "require": { - "php": ">=5.4" - }, - "require-dev": { - "doctrine/orm": "^2.5", - "illuminate/contracts": "~5.0", - "mockery/mockery": "~0.9", - "pagerfanta/pagerfanta": "~1.0.0", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5", - "zendframework/zend-paginator": "~2.3" - }, - "suggest": { - "illuminate/pagination": "The Illuminate Pagination component.", - "pagerfanta/pagerfanta": "Pagerfanta Paginator", - "zendframework/zend-paginator": "Zend Framework Paginator" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.13-dev" - } - }, - "autoload": { - "psr-4": { - "League\\Fractal\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Phil Sturgeon", - "email": "me@philsturgeon.uk", - "homepage": "http://philsturgeon.uk/", - "role": "Developer" - } - ], - "description": "Handle the output of complex data structures ready for API output.", - "homepage": "http://fractal.thephpleague.com/", - "keywords": [ - "api", - "json", - "league", - "rest" - ], - "time": "2017-06-12T11:04:56+00:00" - }, { "name": "mews/captcha", "version": "2.2.0", @@ -1285,63 +1221,6 @@ ], "time": "2016-06-16T16:22:20+00:00" }, - { - "name": "printempw/laravel-datatables-lite", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/printempw/laravel-datatables-lite.git", - "reference": "1f27c392178e0f1f6943d7534af25badfc59fd4e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/printempw/laravel-datatables-lite/zipball/1f27c392178e0f1f6943d7534af25badfc59fd4e", - "reference": "1f27c392178e0f1f6943d7534af25badfc59fd4e", - "shasum": "" - }, - "require": { - "illuminate/database": "~5.0", - "illuminate/filesystem": "~5.0", - "illuminate/http": "~5.0", - "illuminate/support": "~5.0", - "illuminate/view": "~5.0", - "league/fractal": "~0.14", - "php": ">=5.5.9" - }, - "require-dev": { - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "barryvdh/laravel-snappy": "Allows exporting of dataTable to PDF using the print view." - }, - "type": "library", - "autoload": { - "psr-4": { - "Yajra\\Datatables\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Arjay Angeles", - "email": "aqangeles@gmail.com" - } - ], - "description": "A lite version of yajra/laravel-datatables, with HTML builders & exporting removed.", - "keywords": [ - "datatable", - "datatables", - "datatables jquery plugin", - "laravel", - "laravel4", - "laravel5" - ], - "time": "2018-02-08T18:19:07+00:00" - }, { "name": "psr/container", "version": "1.0.0", diff --git a/config/app.php b/config/app.php index 58a454fe..c9da9e41 100644 --- a/config/app.php +++ b/config/app.php @@ -173,7 +173,6 @@ return [ * Third-party Libraries... */ Swiggles\Memcache\MemcacheServiceProvider::class, - Yajra\Datatables\DatatablesServiceProvider::class, Mews\Captcha\CaptchaServiceProvider::class, /** diff --git a/config/datatables.php b/config/datatables.php deleted file mode 100644 index 05522831..00000000 --- a/config/datatables.php +++ /dev/null @@ -1,46 +0,0 @@ - [ - /** - * Smart search will enclose search keyword with wildcard string "%keyword%". - * SQL: column LIKE "%keyword%" - */ - 'smart' => true, - - /** - * Case insensitive will search the keyword in lower case format. - * SQL: LOWER(column) LIKE LOWER(keyword) - */ - 'case_insensitive' => true, - - /** - * Wild card will add "%" in between every characters of the keyword. - * SQL: column LIKE "%k%e%y%w%o%r%d%" - */ - 'use_wildcards' => false, - ], - - /** - * DataTables fractal configurations. - */ - 'fractal' => [ - /** - * Request key name to parse includes on fractal. - */ - 'includes' => 'include', - - /** - * Default fractal serializer. - */ - 'serializer' => 'League\Fractal\Serializer\DataArraySerializer', - ], - - /** - * DataTables internal index id response column name. - */ - 'index_column' => 'DT_Row_Index', -];