1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
This commit is contained in:
Samuel Štancl 2021-04-07 20:43:48 +02:00
parent 1d3ab71c50
commit dd3c8276e2
4 changed files with 13 additions and 7 deletions

10
public/js/app.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
{
"/js/app.js": "/js/app.js?id=1c9c0a8a53dbb967504e",
"/js/app.js": "/js/app.js?id=67ee2aea12150f13c1ae",
"/css/app.css": "/css/app.css?id=c60a02d22bf509a5d74d"
}

3
resources/js/app.js vendored
View file

@ -1,3 +1,6 @@
import * as Turbo from "@hotwired/turbo"
window.Turbo = Turbo;
import 'alpine-turbo-drive-adapter'
import 'alpinejs'

View file

@ -1,6 +1,9 @@
<x:layout>
<div
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex">
x-data
@keydown.escape.window="Turbo.visit('{{ route('tip.index') }}')"
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex"
>
{{-- Left button = newer --}}
@if($link = $tip->newQuery()->orderBy('created_at', 'asc')->firstWhere('created_at', '>', $tip->created_at))