mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
Refringe
787f796ad7
Worked on: - Mod component templating - Added dark mode styles for homepage - Added benchmarking to the wolt import command - Added MySQL natural sort function Short todo: - Add updated time to mod component - Implement naturalsort function into homepage queries and measure performance difference - Migrate top navigation from old-build
29 lines
583 B
PHP
29 lines
583 B
PHP
<?php
|
|
|
|
namespace App\View\Components;
|
|
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\View\Component;
|
|
|
|
class ModList extends Component
|
|
{
|
|
public Collection $mods;
|
|
|
|
public string $versionScope;
|
|
|
|
public function __construct($mods, $versionScope)
|
|
{
|
|
$this->mods = $mods;
|
|
$this->versionScope = $versionScope;
|
|
}
|
|
|
|
public function render(): View
|
|
{
|
|
return view('components.mod-list', [
|
|
'mods' => $this->mods,
|
|
'versionScope' => $this->versionScope,
|
|
]);
|
|
}
|
|
}
|