wip
This commit is contained in:
1 parent
3c47c8c922
commit
6662b0a823
11 files changed
+41
-39
No files matched your search
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
1) Find double
|
|
||||||
2) Download all data
|
|
||||||
3) fix grapper make only in tournament on/off, in Task only Dates
|
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
namespace App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\Pages;
|
namespace App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\Pages;
|
||||||
|
|
||||||
use App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\SofaScoreTaskResource;
|
use App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\SofaScoreTaskResource;
|
||||||
use Filament\Actions\DeleteAction;
|
|
||||||
use Filament\Resources\Pages\EditRecord;
|
use Filament\Resources\Pages\EditRecord;
|
||||||
|
|
||||||
class EditSofaScoreTask extends EditRecord
|
class EditSofaScoreTask extends EditRecord
|
||||||
@@ -17,12 +16,4 @@ class EditSofaScoreTask extends EditRecord
|
|||||||
$this->getCancelFormAction()->label('Close Task Manager'), // Renames the button
|
$this->getCancelFormAction()->label('Close Task Manager'), // Renames the button
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected function getHeaderActions(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
DeleteAction::make(),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
-11
@@ -3,20 +3,9 @@
|
|||||||
namespace App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\Pages;
|
namespace App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\Pages;
|
||||||
|
|
||||||
use App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\SofaScoreTaskResource;
|
use App\Filament\Clusters\StaticData\Resources\SofaScoreTasks\SofaScoreTaskResource;
|
||||||
use Filament\Actions\CreateAction;
|
|
||||||
use Filament\Resources\Pages\ListRecords;
|
use Filament\Resources\Pages\ListRecords;
|
||||||
|
|
||||||
class ListSofaScoreTasks extends ListRecords
|
class ListSofaScoreTasks extends ListRecords
|
||||||
{
|
{
|
||||||
protected static string $resource = SofaScoreTaskResource::class;
|
protected static string $resource = SofaScoreTaskResource::class;
|
||||||
|
|
||||||
protected function getHeaderActions(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
CreateAction::make()
|
|
||||||
->label('New Task')
|
|
||||||
->icon('phosphor-plus')
|
|
||||||
->createAnother(false),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
+19
-16
@@ -13,28 +13,31 @@ class SofaScoreTasksTable
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('id')->badge()->alignCenter()->width('1rem')
|
IconColumn::make('id')->alignCenter()->width('1rem')
|
||||||
->sortable(),
|
->sortable()->color(fn (string $state): string => match ($state) {
|
||||||
TextColumn::make('name')
|
'1' => 'info',
|
||||||
->sortable(),
|
'3' => 'success',
|
||||||
|
})->icon(fn (string $state): string => match ($state) {
|
||||||
|
'1' => 'phosphor-calendar',
|
||||||
|
'3' => 'phosphor-calendar-dots',
|
||||||
|
}),
|
||||||
|
TextColumn::make('mode')
|
||||||
|
->badge()
|
||||||
|
->color(fn ($record): string => match ($record->id) {
|
||||||
|
1 => 'info',
|
||||||
|
3 => 'success',
|
||||||
|
}),
|
||||||
|
TextColumn::make('name'),
|
||||||
IconColumn::make('sport.icon')
|
IconColumn::make('sport.icon')
|
||||||
->label('')
|
->label('')
|
||||||
->grow(false)
|
->grow(false)
|
||||||
->width(30)
|
->width(30)
|
||||||
->icon(fn($record) => $record->sport->icon),
|
->icon(fn ($record) => $record->sport->icon),
|
||||||
TextColumn::make('sport.name'),
|
TextColumn::make('sport.name'),
|
||||||
TextColumn::make('mode')
|
TextColumn::make('day_from'),
|
||||||
->label('Grapping Task')
|
TextColumn::make('day_to'),
|
||||||
->formatStateUsing(fn(string $state, $record): string => match ($state) {
|
|
||||||
'daily' => 'Daily run',
|
|
||||||
'excel' => 'Import to Excel',
|
|
||||||
'last3days' => $record->day_from,
|
|
||||||
'range' => $record->day_from . ' <=> ' . $record->day_to,
|
|
||||||
}),
|
|
||||||
])
|
|
||||||
->filters([
|
|
||||||
//
|
|
||||||
])
|
])
|
||||||
|
->paginated(false)
|
||||||
->recordActions([
|
->recordActions([
|
||||||
EditAction::make()->iconButton()
|
EditAction::make()->iconButton()
|
||||||
->icon('phosphor-pen-fill'),
|
->icon('phosphor-pen-fill'),
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,22 @@
|
|||||||
|
1) use telescope to ffind slow query ind url/telescope
|
||||||
|
|
||||||
|
|
||||||
|
2) DOCKER flarsolver to bypass cloudeflare
|
||||||
|
<!-- .env -->
|
||||||
|
# Da Laravel lokal (via Brew) läuft, greift es über localhost auf Docker zu
|
||||||
|
FLARESOLVERR_URL=http://192.168.178
|
||||||
|
|
||||||
|
|
||||||
|
<!-- CloudflareSolverService.php -->
|
||||||
|
|
||||||
|
protected string $solverUrl = 'http://192.168.178.145:8191/v1';
|
||||||
|
|
||||||
|
<!-- config/services.php -->
|
||||||
|
|
||||||
|
'flaresolverr' => [
|
||||||
|
'url' => env('FLARESOLVERR_URL', '192.168.178'),
|
||||||
|
],
|
||||||
|
|
||||||
|
<!-- docker bash comands -->
|
||||||
|
docker compose down
|
||||||
|
docker compose up -d --pull always
|
||||||
Binary file not shown.
Reference in new issue
Block a user