frontend added and socket io

This commit is contained in:
2026-03-16 18:07:23 -05:00
parent 81dc575b4f
commit 5db2a7fe75
45 changed files with 11947 additions and 5546 deletions

View File

@@ -0,0 +1,6 @@
import { createAuthClient } from "better-auth/react"
export const authClient = createAuthClient({
baseURL: "http://localhost:3000/lst/api/auth" // The base URL of your auth server
})
export const { useSession, signUp, signIn, signOut } = authClient

View File

@@ -0,0 +1,12 @@
import { io } from "socket.io-client";
// Connect to your Socket.io server
const socket = io(`${window.location.host}`, {
path: "/lst/api/socket.io",
// autoConnect: false, // connect manually
// reconnection: true,
// reconnectionAttempts: 5,
// reconnectionDelay: 1000,
});
export default socket;

View File

@@ -0,0 +1,6 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}