calc copy wip

This commit is contained in:
salam committed 2026-09-10 09:18:58 +02:00
1 parent 84e591ba06
commit 0d6181b393
2 files changed
+26 -10

No files matched your search

+25 -9
View File
@@ -190,8 +190,6 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
$this->beschriftung[$i] = '';
}
}
// Log::debug('beschriftung', $this->beschriftung);
}
public function updateXvalue()
@@ -423,13 +421,31 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
public function copyResult()
{
$copystring = '';
foreach ($this->results as $row) {
dd($row);
unset($row['origin']);
unset($row['pcolor']);
unset($row['ecolor']);
unset($row['info']);
// "id" => 787607
// "name" => "Keno"
// "preferred_foot" => "Right"
// "player_position" => "LW"
// "position_area" => "attack"
// "player_color" => "warning"
// "timed_color" => "danger"
// "events_played" => 7
// "everage_minutes" => 11
// "position" => "DC"
// "active" => 1
// "gls" => 0
// "fls" => 0
// "ofs" => 0
// "snt" => 0
// "tsh" => 0
// "crd" => 0
$header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];
$copystring = implode("\t", $header) . "\n";;
foreach ($this->sourceRecords as $row) {
unset($row['id']);
unset($row['player_position']);
unset($row['position_area']);
unset($row['player_color']);
unset($row['timed_color']);
$copystring .= implode("\t", $row) . "\n";
}
$this->js("navigator.clipboard.writeText(`$copystring`)");
+1 -1
View File
@@ -20,7 +20,7 @@
"laravel/framework": "*",
"laravel/tinker": "*",
"mongodb/laravel-mongodb": "^5.1",
"mongodb/mongodb": "^2.2",
"mongodb/mongodb": "^2.4",
"neitanod/forceutf8": "^2.0",
"outhebox/blade-flags": "*",
"phpoffice/phpspreadsheet": "^5.9",