WIP: frontend optimierungen & sprachkorrekturen

This commit is contained in:
soeren
2025-11-13 19:55:50 +01:00
parent cf41055cbd
commit 3f52f124ef
11 changed files with 136 additions and 107 deletions

View File

@@ -5,7 +5,6 @@ namespace App\Http\Controllers;
use App\Models\Image;
use App\Settings\GeneralSettings;
use Carbon\Carbon;
use Illuminate\Support\Facades\Lang;
use Inertia\Inertia;
class HomeController extends Controller
@@ -14,11 +13,6 @@ class HomeController extends Controller
public function index()
{
$locale = app()->getLocale();
$translations = array_merge(
Lang::get('api', [], $locale),
Lang::get('settings', [], $locale)
);
$galleryHeading = $this->settings->gallery_heading;
$newImageTimespanMinutes = $this->settings->new_image_timespan_minutes;
@@ -30,7 +24,6 @@ class HomeController extends Controller
});
return Inertia::render('Home', [
'translations' => $translations,
'galleryHeading' => $galleryHeading,
'images' => $images,
]);