small frontend rewrite

This commit is contained in:
Zoe
2023-04-24 20:12:36 -05:00
parent 4890d657b5
commit 5743ae664e
40 changed files with 2630 additions and 2569 deletions

13
plugins/socket.client.ts Normal file
View File

@@ -0,0 +1,13 @@
import io from 'socket.io-client';
export default defineNuxtPlugin(() => {
const socket = io('http://localhost:3000', {
auth: (cb) => cb({ token: useCookie('sessionToken').value })
});
return {
provide: {
io: socket
}
};
});