npm update

add grid to keybind list
add new invisible blade component for custom theme classes
This commit is contained in:
ShuriZma 2023-10-17 07:46:53 +02:00
parent ca82305bff
commit f8605673ff
14 changed files with 1196 additions and 2281 deletions

View File

@ -86,4 +86,20 @@ class VehicleController extends Controller
{
//
}
public function autocomplete(Request $request): JsonResponse
{
$games = '';
if ($request->has('q')) {
$search = $request->q;
$games = Vehicle::select(['vehicle_name'])
->where(function ($query) use ($search) {
$query->where('name', 'LIKE', "%$search%")
->orWhere('appID', 'LIKE', "%$search%");
})
->get();
}
return response()->json($games);
}
}

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "website",
"name": "fleetCatalogue",
"lockfileVersion": 3,
"requires": true,
"packages": {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
<div class="bg-red-400 text-red-400 border-red-400 scrollbar-thumb-red-400 hidden"></div>

View File

@ -13,7 +13,7 @@
<div class="flex justify-center gap-1 my-1 w-full">
@foreach($row as $dbString => $key)
<kbd
class="kbd border-{{ env('ACCENT_COLOR') }} {{ in_array($key[0], $keys, true) ? ' bg-zinc-700' : ' bg-zinc-800' }} {{ $key[1] ?? 'w-[2.5rem]' }}">{{ $key[0] }}</kbd>
class="kbd border-{{ env('ACCENT_COLOR') }} {{ in_array($dbString, $keys, true) ? ' bg-zinc-700' : ' bg-zinc-800' }} {{ $key[1] ?? 'w-[2.5rem]' }}">{{ $key[0] }}</kbd>
@endforeach
</div>
@endforeach

View File

@ -39,6 +39,7 @@
</head>
<body x-data="{ sidebarOpen: false }" class="antialiased bg-zinc-700 text-gray-400 scrollbar-thin scrollbar-thumb-{{ env('ACCENT_COLOR') }} scrollbar-track-zinc-700 scrollbar-corner-zinc-800 scrollbar-thumb-rounded"
style="font-family: 'PT Sans',sans-serif;">
<x-env-tailwind-class-generator />
<div class="min-h-screen">
<x-layout.sidebar/>
<div class="mr-[.5rem] min-h-screen -mb-[6.5rem] ml-[4rem]"

View File

@ -13,14 +13,16 @@ foreach ($keybinds as $keybind) {
<h1 class="text-lg text-center font-bold">{{ __('Keybinds') }}</h1>
<x-keyboard :keys="$allKeys"/>
</x-slot>
@foreach($keybinds as $keybind)
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8 bg-zinc-800 rounded-[1rem] my-[1rem] text-center grid grid-cols-2">
<div>
@foreach(explode(env('KEYBIND_SEPERATOR'), $keybind->getKeybindKeys()) as $index => $key)
@if($index > 0) + @endif<kbd class="kbd bg-zinc-800 border-{{ env('ACCENT_COLOR') }}">{{ $key }}</kbd>
@endforeach
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8 bg-zinc-800 rounded-[1rem] my-[1rem] text-center grid grid-cols-2">
@foreach($keybinds as $keybind)
<div class="grid grid-cols-2 py-6">
<div>
@foreach(explode(env('KEYBIND_SEPERATOR'), $keybind->getKeybindKeys()) as $index => $key)
@if($index > 0) + @endif<kbd class="kbd bg-zinc-800 border-{{ env('ACCENT_COLOR') }}">{{ $key }}</kbd>
@endforeach
</div>
{{ $keybind->getKeybindDescription() }}
</div>
{{ $keybind->getKeybindDescription() }}
</div>
@endforeach
@endforeach
</div>
</x-layout>