npm update
add grid to keybind list add new invisible blade component for custom theme classes
This commit is contained in:
parent
ca82305bff
commit
f8605673ff
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "website",
|
"name": "fleetCatalogue",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2862
public/js/app.js
2862
public/js/app.js
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1 @@
|
||||||
|
<div class="bg-red-400 text-red-400 border-red-400 scrollbar-thumb-red-400 hidden"></div>
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="flex justify-center gap-1 my-1 w-full">
|
<div class="flex justify-center gap-1 my-1 w-full">
|
||||||
@foreach($row as $dbString => $key)
|
@foreach($row as $dbString => $key)
|
||||||
<kbd
|
<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
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
|
@ -39,6 +39,7 @@
|
||||||
</head>
|
</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"
|
<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;">
|
style="font-family: 'PT Sans',sans-serif;">
|
||||||
|
<x-env-tailwind-class-generator />
|
||||||
<div class="min-h-screen">
|
<div class="min-h-screen">
|
||||||
<x-layout.sidebar/>
|
<x-layout.sidebar/>
|
||||||
<div class="mr-[.5rem] min-h-screen -mb-[6.5rem] ml-[4rem]"
|
<div class="mr-[.5rem] min-h-screen -mb-[6.5rem] ml-[4rem]"
|
||||||
|
|
|
@ -13,14 +13,16 @@ foreach ($keybinds as $keybind) {
|
||||||
<h1 class="text-lg text-center font-bold">{{ __('Keybinds') }}</h1>
|
<h1 class="text-lg text-center font-bold">{{ __('Keybinds') }}</h1>
|
||||||
<x-keyboard :keys="$allKeys"/>
|
<x-keyboard :keys="$allKeys"/>
|
||||||
</x-slot>
|
</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 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>
|
<div class="grid grid-cols-2 py-6">
|
||||||
@foreach(explode(env('KEYBIND_SEPERATOR'), $keybind->getKeybindKeys()) as $index => $key)
|
<div>
|
||||||
@if($index > 0) + @endif<kbd class="kbd bg-zinc-800 border-{{ env('ACCENT_COLOR') }}">{{ $key }}</kbd>
|
@foreach(explode(env('KEYBIND_SEPERATOR'), $keybind->getKeybindKeys()) as $index => $key)
|
||||||
@endforeach
|
@if($index > 0) + @endif<kbd class="kbd bg-zinc-800 border-{{ env('ACCENT_COLOR') }}">{{ $key }}</kbd>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
{{ $keybind->getKeybindDescription() }}
|
||||||
</div>
|
</div>
|
||||||
{{ $keybind->getKeybindDescription() }}
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
|
||||||
</x-layout>
|
</x-layout>
|
Loading…
Reference in New Issue