Use esbuild

This commit is contained in:
Jonny Barnes 2025-04-10 17:08:19 +01:00
parent 540bd17792
commit 97f3848b66
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
13 changed files with 494 additions and 17 deletions

15
resources/js/app.js Normal file
View file

@ -0,0 +1,15 @@
import { Auth } from './auth.js';
let auth = new Auth();
document.querySelectorAll('.add-passkey').forEach((el) => {
el.addEventListener('click', () => {
auth.register();
});
});
document.querySelectorAll('.login-passkey').forEach((el) => {
el.addEventListener('click', () => {
auth.login();
});
});