Skip to content

Commit

Permalink
Merge pull request #45 from cocola-dev/pre_commits
Browse files Browse the repository at this point in the history
close #40 close #36 close #43
  • Loading branch information
ruru-m07 authored Feb 22, 2024
2 parents 6b7fd93 + e10ce16 commit 7ac5b77
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 136 deletions.
95 changes: 0 additions & 95 deletions .github/workflows/nextjs.yml

This file was deleted.

5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { cn } from "@/lib/utils";
import { withAuth } from "@/protectedRouter";
import Image from "next/image";
import Link from "next/link";
import { redirect } from "next/navigation";
import React from "react";

const Page = () => {
Expand Down Expand Up @@ -114,7 +115,9 @@ const Page = () => {
<div className="w-full ">
<div className="flex items-center my-3 justify-between">
<h1 className="w-full text-lg">Top Repositories</h1>
<Button size={"sm"}> New </Button>
<Link href={"/new"}>
<Button size={"sm"}>New</Button>
</Link>
</div>
<div>
<Input placeholder="Find a repository" />
Expand Down
4 changes: 2 additions & 2 deletions components/Loader2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Loader2 = ({ size }: { size?: number }) => {
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
strokeWidth="2"
stroke-linecap="round"
stroke-linejoin="round"
className="lucide lucide-loader-2 animate-spin"
Expand All @@ -25,7 +25,7 @@ const Loader2 = ({ size }: { size?: number }) => {
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
strokeWidth="2"
stroke-linecap="round"
stroke-linejoin="round"
className="lucide lucide-loader-2 animate-spin"
Expand Down
6 changes: 2 additions & 4 deletions lib/genAI.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { GoogleGenerativeAI } from "@google/generative-ai";

if (!process.env.GENERATIVE_API_KEY) {
throw new Error(
"You must define the GENERATIVE_API_KEY environment variable",
);
console.log("You must define the GENERATIVE_API_KEY environment variable");
}
export const genAI = new GoogleGenerativeAI(process.env.GENERATIVE_API_KEY);
export const genAI = new GoogleGenerativeAI(process.env.GENERATIVE_API_KEY || "");
64 changes: 32 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@google/generative-ai": "^0.2.1",
"@hookform/resolvers": "^3.3.4",
"@primer/react": "^36.7.1",
"@prisma/client": "^5.9.1",
"@prisma/client": "^5.10.2",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
Expand Down Expand Up @@ -92,7 +92,7 @@
"jsdom": "^24.0.0",
"postcss": "^8",
"prettier": "3.2.5",
"prisma": "^5.9.1",
"prisma": "^5.10.2",
"tailwindcss": "^3.3.0",
"typescript": "^5",
"vitest": "^1.2.2"
Expand Down

1 comment on commit 7ac5b77

@vercel
Copy link

@vercel vercel bot commented on 7ac5b77 Feb 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.