From 6b93e7159521061203b193bdc42c7bc35e868a45 Mon Sep 17 00:00:00 2001 From: atridadl Date: Wed, 22 Nov 2023 12:27:30 -0700 Subject: [PATCH] Mostly working minus presence --- app/root.tsx | 15 +-- app/routes/api.ably.tsx | 55 ---------- app/routes/api.room.create.tsx | 7 ++ app/routes/api.room.delete.$roomId.tsx | 7 ++ app/routes/api.room.get.$roomId.tsx | 39 +++++-- app/routes/api.room.presence.get.$roomId.tsx | 64 +++++++++++ app/routes/api.room.presence.join.$roomId.tsx | 43 ++++++++ .../api.room.presence.leave.$roomId.tsx | 42 ++++++++ app/routes/api.room.set.$roomId.tsx | 87 +++++++++++++++ app/routes/api.vote.set.$roomId.tsx | 50 +++++++++ app/routes/api.votes.get.$roomId.tsx | 55 ++++++++++ app/routes/room.$roomId.tsx | 100 ++++++------------ app/services/schema.ts | 20 ++++ app/services/types.ts | 17 ++- package.json | 1 + pnpm-lock.yaml | 60 ++++++++++- 16 files changed, 512 insertions(+), 150 deletions(-) delete mode 100644 app/routes/api.ably.tsx create mode 100644 app/routes/api.room.presence.get.$roomId.tsx create mode 100644 app/routes/api.room.presence.join.$roomId.tsx create mode 100644 app/routes/api.room.presence.leave.$roomId.tsx create mode 100644 app/routes/api.room.set.$roomId.tsx create mode 100644 app/routes/api.vote.set.$roomId.tsx create mode 100644 app/routes/api.votes.get.$roomId.tsx diff --git a/app/root.tsx b/app/root.tsx index a05ce08..c1ffd24 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -1,5 +1,5 @@ import { rootAuthLoader } from "@clerk/remix/ssr.server"; -import { ClerkApp, ClerkErrorBoundary } from "@clerk/remix"; +import { ClerkApp, ClerkErrorBoundary, ClerkLoaded } from "@clerk/remix"; import type { LinksFunction, LoaderFunction, @@ -42,11 +42,14 @@ function App() { -
-
- -
-