mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
esc key
This commit is contained in:
parent
1d3ab71c50
commit
dd3c8276e2
4 changed files with 13 additions and 7 deletions
10
public/js/app.js
vendored
10
public/js/app.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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"
|
"/css/app.css": "/css/app.css?id=c60a02d22bf509a5d74d"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
resources/js/app.js
vendored
3
resources/js/app.js
vendored
|
|
@ -1,3 +1,6 @@
|
||||||
import * as Turbo from "@hotwired/turbo"
|
import * as Turbo from "@hotwired/turbo"
|
||||||
|
|
||||||
|
window.Turbo = Turbo;
|
||||||
|
|
||||||
import 'alpine-turbo-drive-adapter'
|
import 'alpine-turbo-drive-adapter'
|
||||||
import 'alpinejs'
|
import 'alpinejs'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
<x:layout>
|
<x:layout>
|
||||||
<div
|
<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 --}}
|
{{-- Left button = newer --}}
|
||||||
@if($link = $tip->newQuery()->orderBy('created_at', 'asc')->firstWhere('created_at', '>', $tip->created_at))
|
@if($link = $tip->newQuery()->orderBy('created_at', 'asc')->firstWhere('created_at', '>', $tip->created_at))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue