mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
Removed Liveblocks and Updated Clerk Components
This commit is contained in:
parent
19c1eaf60f
commit
a25d2bf951
6 changed files with 2 additions and 140 deletions
|
@ -51,7 +51,6 @@ export const Navbar = () => {
|
|||
}}
|
||||
/>
|
||||
<UserButton
|
||||
afterSignOutUrl='/'
|
||||
appearance={{
|
||||
elements: {
|
||||
avatarBox: {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { QueryProvider } from '@/components/providers/query-provider';
|
|||
|
||||
const PlatformLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
return (
|
||||
<ClerkProvider>
|
||||
<ClerkProvider afterSignOutUrl='/'>
|
||||
<QueryProvider>
|
||||
<Toaster />
|
||||
<ModalProvider />
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/* import { Liveblocks } from '@liveblocks/node';
|
||||
import { useUser } from '@clerk/nextjs';
|
||||
import { auth } from '@clerk/nextjs/server';
|
||||
|
||||
const liveblocks = new Liveblocks({
|
||||
secret: process.env.LIVEBLOCKS_SECRET_DEV_API_KEY!,
|
||||
}); */
|
||||
|
||||
export async function POST(req: Request) {
|
||||
/* const { user } = useUser();
|
||||
const { orgId } = auth();
|
||||
|
||||
if (!orgId || !user) return new Response('Unauthorized', { status: 401 });
|
||||
|
||||
// Start an auth session inside your endpoint
|
||||
const session = liveblocks.prepareSession(user.id);
|
||||
|
||||
// Implement your own security, and give the user access to the room
|
||||
const { room } = await req.json();
|
||||
if (room) {
|
||||
session.allow(room, session.FULL_ACCESS);
|
||||
}
|
||||
|
||||
// Authorize the user and return the result
|
||||
const { status, body } = await session.authorize();
|
||||
return new Response(body, { status }); */
|
||||
return new Response('Not implemented', { status: 501 });
|
||||
}
|
|
@ -1,49 +0,0 @@
|
|||
// Define Liveblocks types for your application
|
||||
// https://liveblocks.io/docs/api-reference/liveblocks-react#Typing-your-data
|
||||
declare global {
|
||||
interface Liveblocks {
|
||||
// Each user's Presence, for useMyPresence, useOthers, etc.
|
||||
Presence: {
|
||||
// Example, real-time cursor coordinates
|
||||
cursor: { x: number; y: number };
|
||||
};
|
||||
|
||||
// The Storage tree for the room, for useMutation, useStorage, etc.
|
||||
Storage: {
|
||||
// Example, a conflict-free list
|
||||
// animals: LiveList<string>;
|
||||
};
|
||||
|
||||
// Custom user info set when authenticating with a secret key
|
||||
UserMeta: {
|
||||
id: string;
|
||||
info: {
|
||||
// Example properties, for useSelf, useUser, useOthers, etc.
|
||||
// name: string;
|
||||
// avatar: string;
|
||||
};
|
||||
};
|
||||
|
||||
// Custom events, for useBroadcastEvent, useEventListener
|
||||
RoomEvent: {};
|
||||
// Example has two events, using a union
|
||||
// | { type: "PLAY" }
|
||||
// | { type: "REACTION"; emoji: "🔥" };
|
||||
|
||||
// Custom metadata set on threads, for useThreads, useCreateThread, etc.
|
||||
ThreadMetadata: {
|
||||
// Example, attaching coordinates to a thread
|
||||
// x: number;
|
||||
// y: number;
|
||||
};
|
||||
|
||||
// Custom room info set with resolveRoomsInfo, for useRoomInfo
|
||||
RoomInfo: {
|
||||
// Example, rooms with a title and url
|
||||
// title: string;
|
||||
// url: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
|
@ -14,9 +14,6 @@
|
|||
"dependencies": {
|
||||
"@clerk/nextjs": "^6.9.6",
|
||||
"@hello-pangea/dnd": "^17.0.0",
|
||||
"@liveblocks/client": "^2.15.0",
|
||||
"@liveblocks/node": "^2.15.0",
|
||||
"@liveblocks/react": "^2.15.0",
|
||||
"@mdx-js/loader": "^3.1.0",
|
||||
"@mdx-js/react": "^3.1.0",
|
||||
"@next/bundle-analyzer": "^15.1.2",
|
||||
|
|
59
yarn.lock
59
yarn.lock
|
@ -1086,46 +1086,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@liveblocks/client@npm:2.15.0, @liveblocks/client@npm:^2.15.0":
|
||||
version: 2.15.0
|
||||
resolution: "@liveblocks/client@npm:2.15.0"
|
||||
dependencies:
|
||||
"@liveblocks/core": "npm:2.15.0"
|
||||
checksum: 10c0/844da23be3ce8785382e6b71b9a1b1a75661848247c78c76019953d89510202cd1e49066338f17d85399ccd53c7b954f6315089f10334d3e5d3cc5a43a6d389f
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@liveblocks/core@npm:2.15.0":
|
||||
version: 2.15.0
|
||||
resolution: "@liveblocks/core@npm:2.15.0"
|
||||
checksum: 10c0/39ddba819ded07863714821500c36c189166c67ad8d97de668d9d17ba5f89b9802a86ad4d35bebc33c4fc76e6d4dad13469c0528537c2c3ccc08d72f0f3a8f74
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@liveblocks/node@npm:^2.15.0":
|
||||
version: 2.15.0
|
||||
resolution: "@liveblocks/node@npm:2.15.0"
|
||||
dependencies:
|
||||
"@liveblocks/core": "npm:2.15.0"
|
||||
"@stablelib/base64": "npm:^1.0.1"
|
||||
fast-sha256: "npm:^1.3.0"
|
||||
node-fetch: "npm:^2.6.1"
|
||||
checksum: 10c0/d7b7c08025fb436e4b6e1e66b39cfcc8688d5bc866db0fe8eead846f7d8e72d7b5a4eb9c48340009455a96defc352bc8ef527f3f184eabc1d0797f2e91c4452e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@liveblocks/react@npm:^2.15.0":
|
||||
version: 2.15.0
|
||||
resolution: "@liveblocks/react@npm:2.15.0"
|
||||
dependencies:
|
||||
"@liveblocks/client": "npm:2.15.0"
|
||||
"@liveblocks/core": "npm:2.15.0"
|
||||
peerDependencies:
|
||||
react: ^18 || ^19 || ^19.0.0-rc
|
||||
checksum: 10c0/23f65ae20a17498830c3ce32ee97b7fed0e5c5750c7d8d047cf31f0f436f26d048ead2338ebd12808f3eb894a4b1ce681cc781594d44417d0e4dbf2a27ca0100
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@mdx-js/esbuild@npm:^3.0.0":
|
||||
version: 3.1.0
|
||||
resolution: "@mdx-js/esbuild@npm:3.1.0"
|
||||
|
@ -3375,13 +3335,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@stablelib/base64@npm:^1.0.1":
|
||||
version: 1.0.1
|
||||
resolution: "@stablelib/base64@npm:1.0.1"
|
||||
checksum: 10c0/6330720f021819d19cecfe274111b79a256caa81df478d6b0ae7effc8842b96915b6aeed85926ff05b4d48ec1fc78ad043d928b730ee4e6cc6e8cba6aa097bed
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@swc/counter@npm:0.1.3":
|
||||
version: 0.1.3
|
||||
resolution: "@swc/counter@npm:0.1.3"
|
||||
|
@ -6696,13 +6649,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"fast-sha256@npm:^1.3.0":
|
||||
version: 1.3.0
|
||||
resolution: "fast-sha256@npm:1.3.0"
|
||||
checksum: 10c0/87f9e4baa7639576cf60a2b6235c9f436e1a1c52323abbd8a705b5bea8355500acf176f2aed0c14f2ecd6d6007e26151461bab2f27b8953bcca8d9d6b76a86e4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"fast-uri@npm:^3.0.1":
|
||||
version: 3.0.3
|
||||
resolution: "fast-uri@npm:3.0.3"
|
||||
|
@ -9933,7 +9879,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7":
|
||||
"node-fetch@npm:^2.6.7":
|
||||
version: 2.7.0
|
||||
resolution: "node-fetch@npm:2.7.0"
|
||||
dependencies:
|
||||
|
@ -12559,9 +12505,6 @@ __metadata:
|
|||
"@eslint/eslintrc": "npm:^3.1.0"
|
||||
"@eslint/js": "npm:^9.16.0"
|
||||
"@hello-pangea/dnd": "npm:^17.0.0"
|
||||
"@liveblocks/client": "npm:^2.15.0"
|
||||
"@liveblocks/node": "npm:^2.15.0"
|
||||
"@liveblocks/react": "npm:^2.15.0"
|
||||
"@mdx-js/loader": "npm:^3.1.0"
|
||||
"@mdx-js/react": "npm:^3.1.0"
|
||||
"@microsoft/eslint-formatter-sarif": "npm:^3.1.0"
|
||||
|
|
Loading…
Reference in a new issue