Skip to content

Commit fe970f9

Browse files
Merge pull request #1 from ARYPROGRAMMER/develop/home
feat: editor panel & header states stable with clerk auth | force merge
2 parents f86f1fe + 864a650 commit fe970f9

40 files changed

+1403
-66
lines changed

README.md

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,7 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2-
3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22-
23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
26-
27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31-
32-
## Deploy on Vercel
33-
34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
1+
# CodeX
2+
---
3+
## Under Development, Support the development [Here](https://buymeacoffee.com/aryasingh) and get early access to the project.
4+
---
5+
A Fully Open Source, Fast, Modern and Helpful
6+
Code Editor | Interpreter | Compiler | Online Judge
7+
---

convex/users.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { mutation } from "./_generated/server";
1+
import { mutation, query } from "./_generated/server";
22
import { v } from "convex/values";
33

44
export const syncUser = mutation({
@@ -22,4 +22,21 @@ export const syncUser = mutation({
2222
});
2323
}
2424
}
25+
})
26+
27+
28+
export const getUser = query({
29+
args: {userId:v.string()},
30+
31+
handler: async (ctx,args)=>{
32+
if (!args.userId)return null;
33+
34+
const user = await ctx.db.query("users")
35+
.withIndex("by_user_id")
36+
.filter((q)=>q.eq(q.field("userId"),args.userId))
37+
.first();
38+
39+
if (!user)return null;
40+
return user;
41+
}
2542
})

package-lock.json

Lines changed: 15 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"clsx": "^2.1.1",
1717
"convex": "^1.17.3",
1818
"eslint-config-prettier": "^9.1.0",
19-
"framer-motion": "^11.13.1",
19+
"framer-motion": "^11.14.4",
2020
"lucide-react": "^0.464.0",
2121
"next": "15.0.3",
2222
"react": "19.0.0-rc-66855b96-20241106",
@@ -26,7 +26,7 @@
2626
"svix": "^1.43.0",
2727
"tailwind-merge": "^2.5.5",
2828
"tailwindcss-animate": "^1.0.7",
29-
"zustand": "^5.0.1"
29+
"zustand": "^5.0.2"
3030
},
3131
"devDependencies": {
3232
"@types/node": "^20",

public/bash.png

4.03 KB
Loading

public/cpp.png

45.1 KB
Loading

public/csharp.png

53 KB
Loading

public/file.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/globe.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/go.png

17.4 KB
Loading

0 commit comments

Comments
 (0)