diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..6036fc3 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,16 @@ +{ + "printWidth": 80, + "tabWidth": 2, + "trailingComma": "none", + "singleQuote": false, + "semi": false, + "importOrder": ["^[./]"], + "importOrderMergeDuplicateImports": true, + "importOrderBuiltinModulesToTop": true, + "importOrderCombineTypeAndValueImports": true, + "plugins": [ + "@ianvs/prettier-plugin-sort-imports", + "prettier-plugin-tailwindcss" + ], + "pluginSearchDirs": false +} diff --git a/.vscode/settings.json b/.vscode/settings.json index d067910..fae8e3d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { "typescript.tsdk": "node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true -} \ No newline at end of file +} diff --git a/app/components/Homepage.tsx b/app/_components/Homepage.tsx similarity index 90% rename from app/components/Homepage.tsx rename to app/_components/Homepage.tsx index 7cbb94e..ef8bed1 100644 --- a/app/components/Homepage.tsx +++ b/app/_components/Homepage.tsx @@ -1,12 +1,12 @@ import { Button } from "@components/ui" -import { Footer } from "app/layout/components" +import { Footer } from "app/layout/_components" import { TrustedBy } from "./TrustedBy" export function Homepage() { return (
-
+
-
-
-
+
+
+

PR-Codex

-

+

A github app to summarize code diffs in pull requests. Powered by ChatGPT.

diff --git a/app/components/TrustedBy.tsx b/app/_components/TrustedBy.tsx similarity index 65% rename from app/components/TrustedBy.tsx rename to app/_components/TrustedBy.tsx index 1d788ae..8193f7b 100644 --- a/app/components/TrustedBy.tsx +++ b/app/_components/TrustedBy.tsx @@ -4,8 +4,8 @@ export const revalidate = 60 * 60 * 3 // 3 hours export function TrustedBy() { return ( -
-

+
+

Trusted by

{/* @ts-expect-error Async Server Component */} diff --git a/app/components/TrustedByList.tsx b/app/_components/TrustedByList.tsx similarity index 91% rename from app/components/TrustedByList.tsx rename to app/_components/TrustedByList.tsx index 8dfd220..755784e 100644 --- a/app/components/TrustedByList.tsx +++ b/app/_components/TrustedByList.tsx @@ -1,10 +1,10 @@ +import Fork from "@components/icons/Fork" +import Star from "@components/icons/Star" +import { ListIterator } from "@components/ui" import { getInstallations } from "@utils/github/getInstallations" import { getRepositories } from "@utils/github/getRepositories" -import Image from "next/image" import { githubColors } from "@utils/githubColors" -import Star from "@components/icons/Star" -import Fork from "@components/icons/Fork" -import { ListIterator } from "@components/ui" +import Image from "next/image" export async function TrustedByList() { const installations = await getInstallations() @@ -53,14 +53,14 @@ export async function TrustedByList() { {topUsersRepos.map((repo) => (
-
+
@@ -76,7 +76,7 @@ export async function TrustedByList() { {repo.full_name}

-

+

{repo.description}

@@ -84,7 +84,7 @@ export async function TrustedByList() { {repo.language && (
- - - {appTitle} - - - - - - - - - ) -} diff --git a/app/layout/components/AppLayout/AppLayout.tsx b/app/layout/_components/AppLayout/AppLayout.tsx similarity index 77% rename from app/layout/components/AppLayout/AppLayout.tsx rename to app/layout/_components/AppLayout/AppLayout.tsx index b9721ca..c8a8814 100644 --- a/app/layout/components/AppLayout/AppLayout.tsx +++ b/app/layout/_components/AppLayout/AppLayout.tsx @@ -3,7 +3,7 @@ import { Footer, Modal, Navbar } from ".." export default function AppLayout({ children }: { children: React.ReactNode }) { return ( <> -
+
{/* */} {children} {/*