Skip to content

Commit

Permalink
Merge branch 'main' into review
Browse files Browse the repository at this point in the history
  • Loading branch information
chitraa-cj authored Jun 21, 2024
2 parents c9c6ab6 + d5dcf85 commit 0054a78
Show file tree
Hide file tree
Showing 45 changed files with 1,241 additions and 152 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ CONVEX_DEPLOYMENT=dev:perfect-panther-605
NEXT_PUBLIC_CONVEX_URL=https://perfect-panther-605.convex.cloud
NEXT_PUBLIC_GEMINI_API_KEY_DOC=your-gemini-api-key
NEXT_PUBLIC_GEMINI_API_KEY_FLOWCHART=your-gemini-api-key
NEXT_PUBLIC_FORMSPREE_ID='your_id'
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=your_id
NEXT_PUBLIC_EMAILJS_API_KEY=your_id
NEXT_PUBLIC_EMAILJS_SERVICE_ID=your_id
RESEND_API_KEY=your_api_key
#use these variables only ;)
36 changes: 36 additions & 0 deletions .github/workflows/autocommetn-iss-raised.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Auto Comment on Issue

on:
issues:
types: [opened]

permissions:
issues: write

jobs:
comment:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add Comment to Issue
run: |
COMMENT=$(cat <<EOF
{
"body": "Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊\n\nYou can also check our [CONTRIBUTING.md](https://github.com/ashutosh-rath02/git-re/blob/main/CONTRIBUTING.md) for guidelines on contributing to this project."
}
EOF
)
RESPONSE=$(curl -s -o response.json -w "%{http_code}" \
-X POST \
-H "Authorization: token ${{ secrets.MY_SECRET_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \
-d "$COMMENT")
cat response.json
if [ "$RESPONSE" -ne 201 ]; then
echo "Failed to add comment"
exit 1
fi
env:
GITHUB_TOKEN: ${{ secrets.MY_SECRET_TOKEN }}
58 changes: 36 additions & 22 deletions convex/user.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
import {v} from 'convex/values'
import { mutation, query } from './_generated/server'
import { v } from "convex/values";
import { mutation, query } from "./_generated/server";

export const getUser=query({
args:{
email:v.string()
},
export const getUser = query({
args: {
email: v.string(),
},

handler:async(ctx, args)=> {
const result=await ctx.db.query('user')
.filter((q)=>q.eq(q.field('email'),args.email))
.collect()
handler: async (ctx, args) => {
const result = await ctx.db
.query("user")
.filter((q) => q.eq(q.field("email"), args.email))
.collect();

return result;
},
})
},
});

export const createUser=mutation({
args:{
name:v.string(),
email:v.string(),
image:v.string()
},
handler:async(ctx, args)=> {
return await ctx.db.insert("user",args);
},
})
export const createUser = mutation({
args: {
name: v.string(),
email: v.string(),
image: v.string(),
},
handler: async (ctx, args) => {
return await ctx.db.insert("user", args);
},
});

export const updateUser = mutation({
args: {
_id: v.id("user"),
name: v.string(),
email: v.string(),
image: v.string(),
},
handler: async (ctx, args) => {
const { _id } = args;
return await ctx.db.patch(_id, args);
},
});
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
"@editorjs/simple-image": "^1.6.0",
"@editorjs/table": "^2.3.0",
"@editorjs/warning": "^1.4.0",
"@emailjs/browser": "^4.3.3",
"@excalidraw/excalidraw": "^0.17.6",
"@excalidraw/mermaid-to-excalidraw": "^0.3.0",
"@formspree/react": "^2.5.1",
"@hookform/resolvers": "^3.4.0",
"@kinde-oss/kinde-auth-nextjs": "^2.2.6",
"@langchain/google-genai": "^0.0.16",
"@radix-ui/react-alert-dialog": "^1.0.5",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand All @@ -45,6 +47,8 @@
"convex": "^1.11.3",
"cors": "^2.8.5",
"editorjs-button": "^3.0.3",
"emailjs": "^4.0.3",
"emailjs-com": "^3.2.0",
"embla-carousel-autoplay": "^8.0.4",
"embla-carousel-react": "^8.0.4",
"express": "^4.19.2",
Expand All @@ -63,8 +67,9 @@
"react-spring": "^9.7.3",
"remark": "^15.0.1",
"remark-parse": "^11.0.0",
"resend": "^3.3.0",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
"sonner": "^1.5.0",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"three": "^0.164.1",
Expand Down
Binary file added public/about-pic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/bdkjv.png
Binary file not shown.
Binary file added public/doodle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/insta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/linkedin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/teamInvite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions public/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions public/whatsapp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/app/[...not_found]/page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import {notFound} from "next/navigation"

export default function NotFoundCatchAll() {
notFound()
}
Loading

0 comments on commit 0054a78

Please sign in to comment.