calc copy wip
This commit is contained in:
1 parent
84e591ba06
commit
0d6181b393
2 files changed
+26
-10
No files matched your search
@@ -190,8 +190,6 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
$this->beschriftung[$i] = '';
|
$this->beschriftung[$i] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log::debug('beschriftung', $this->beschriftung);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function updateXvalue()
|
public function updateXvalue()
|
||||||
@@ -423,13 +421,31 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
|
|
||||||
public function copyResult()
|
public function copyResult()
|
||||||
{
|
{
|
||||||
$copystring = '';
|
// "id" => 787607
|
||||||
foreach ($this->results as $row) {
|
// "name" => "Keno"
|
||||||
dd($row);
|
// "preferred_foot" => "Right"
|
||||||
unset($row['origin']);
|
// "player_position" => "LW"
|
||||||
unset($row['pcolor']);
|
// "position_area" => "attack"
|
||||||
unset($row['ecolor']);
|
// "player_color" => "warning"
|
||||||
unset($row['info']);
|
// "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";
|
$copystring .= implode("\t", $row) . "\n";
|
||||||
}
|
}
|
||||||
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@
|
|||||||
"laravel/framework": "*",
|
"laravel/framework": "*",
|
||||||
"laravel/tinker": "*",
|
"laravel/tinker": "*",
|
||||||
"mongodb/laravel-mongodb": "^5.1",
|
"mongodb/laravel-mongodb": "^5.1",
|
||||||
"mongodb/mongodb": "^2.2",
|
"mongodb/mongodb": "^2.4",
|
||||||
"neitanod/forceutf8": "^2.0",
|
"neitanod/forceutf8": "^2.0",
|
||||||
"outhebox/blade-flags": "*",
|
"outhebox/blade-flags": "*",
|
||||||
"phpoffice/phpspreadsheet": "^5.9",
|
"phpoffice/phpspreadsheet": "^5.9",
|
||||||
|
|||||||
Reference in new issue
Block a user