Formatting fixes and cleanup.
This commit is contained in:
parent
a1e14a3e60
commit
51fb71e469
41 changed files with 394 additions and 392 deletions
|
|
@ -5,8 +5,6 @@ namespace App\Http\Livewire;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
use Livewire\WithPagination;
|
use Livewire\WithPagination;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
use Illuminate\Support\Str;
|
|
||||||
|
|
||||||
class Datatable extends Component
|
class Datatable extends Component
|
||||||
{
|
{
|
||||||
|
|
@ -72,12 +70,19 @@ class Datatable extends Component
|
||||||
*/
|
*/
|
||||||
public int $itemsPerPage = 30;
|
public int $itemsPerPage = 30;
|
||||||
|
|
||||||
public function mount(string $model, array $columns,
|
public function mount(
|
||||||
array $sort_columns = [], $default_sort = '',
|
string $model,
|
||||||
$route_create = null, $route_edit = null, $delete_enabled = false, $restore_enabled = false)
|
array $columns,
|
||||||
{
|
array $sort_columns = [],
|
||||||
|
$default_sort = '',
|
||||||
|
$route_create = null,
|
||||||
|
$route_edit = null,
|
||||||
|
$delete_enabled = false,
|
||||||
|
$restore_enabled = false
|
||||||
|
) {
|
||||||
$this->model = app()->make($model);
|
$this->model = app()->make($model);
|
||||||
$this->default_sort = $default_sort;
|
$this->default_sort = $default_sort;
|
||||||
|
$this->columns = $columns;
|
||||||
$this->sort = $this->default_sort;
|
$this->sort = $this->default_sort;
|
||||||
$this->sort_columns = $sort_columns;
|
$this->sort_columns = $sort_columns;
|
||||||
$this->route_create = $route_create;
|
$this->route_create = $route_create;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace App\Providers;
|
namespace App\Providers;
|
||||||
|
|
||||||
use App\Game\GameBuilder;
|
|
||||||
use App\Game\GameBoardState;
|
use App\Game\GameBoardState;
|
||||||
use App\Game\GameService;
|
use App\Game\GameService;
|
||||||
use App\Game\GameSession;
|
use App\Game\GameSession;
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,7 @@ namespace App\Providers;
|
||||||
|
|
||||||
use App\Models\Setting;
|
use App\Models\Setting;
|
||||||
|
|
||||||
use Illuminate\Cache\RateLimiting\Limit;
|
|
||||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use Illuminate\Support\Facades\RateLimiter;
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
class RouteServiceProvider extends ServiceProvider
|
class RouteServiceProvider extends ServiceProvider
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@ class CardText extends Component
|
||||||
$text = preg_replace(
|
$text = preg_replace(
|
||||||
['/(?<!\\\\)\?/u', '/\\\\\\?/u'],
|
['/(?<!\\\\)\?/u', '/\\\\\\?/u'],
|
||||||
["<strong>$subject</strong>", '?'],
|
["<strong>$subject</strong>", '?'],
|
||||||
$this->card->body);
|
$this->card->body
|
||||||
|
);
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue