From bda973ff7408974ee3a181b079c5c12e47f7cc49 Mon Sep 17 00:00:00 2001 From: hazzzi Date: Mon, 12 Aug 2024 22:12:19 +0900 Subject: [PATCH 1/5] chore: Add RootScreen component and update layout --- app/@home/screen/RootScreen.tsx | 23 +++++++++++++++++++++++ app/layout.tsx | 17 +++++++++-------- app/page.tsx | 11 +++++++---- next.config.mjs | 6 +++++- tailwind.config.ts | 2 +- 5 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 app/@home/screen/RootScreen.tsx diff --git a/app/@home/screen/RootScreen.tsx b/app/@home/screen/RootScreen.tsx new file mode 100644 index 0000000..d26b259 --- /dev/null +++ b/app/@home/screen/RootScreen.tsx @@ -0,0 +1,23 @@ +import { Button } from '@/app.components/ui/button'; +import Image from 'next/image'; +import Link from 'next/link'; + +type Props = {}; + +const RootScreen = () => { + return ( +
+
+

장타로 단타로

+

매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다.

+

투자의 흐름을 타로로 확인해보세요.

+
+ 장타로 단타로 + +
+ ); +}; + +export default RootScreen; diff --git a/app/layout.tsx b/app/layout.tsx index 2ec7808..b1440ab 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,14 +1,15 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "./globals.css"; +import type { Metadata } from 'next'; +import { Inter } from 'next/font/google'; +import './globals.css'; -const inter = Inter({ subsets: ["latin"] }); +const inter = Inter({ subsets: ['latin'] }); export const metadata: Metadata = { - title: "장타로 단타로", - description: "'장타로 단타로'에서는 매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다. 투자의 흐름을 타로로 확인해보세요.", - keywords: "타로 점, 주식 예측, 코인 타로, 투자 분석, 금융 타로 서비스, 매일 타로 점", - authors: [{ name: "세번째페이지", url: "https://github.com/3rdpage" }], + title: '장타로 단타로', + description: + "'장타로 단타로'에서는 매일 제공되는 주식 및 코인 시장 분석을 타로 카드를 통해 예측합니다. 투자의 흐름을 타로로 확인해보세요.", + keywords: '타로 점, 주식 예측, 코인 타로, 투자 분석, 금융 타로 서비스, 매일 타로 점', + authors: [{ name: '세번째페이지', url: 'https://github.com/3rdpage' }], }; export default function RootLayout({ diff --git a/app/page.tsx b/app/page.tsx index fb6d28c..5e55a99 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,8 +1,11 @@ +import RootScreen from './@home/screen/RootScreen'; -export default function Home() { +const RootPage = () => { return ( -
- +
+
); -} +}; + +export default RootPage; diff --git a/next.config.mjs b/next.config.mjs index 4678774..20a9b05 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,8 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + images: { + remotePatterns: [{ hostname: 'placecats.com' }], + }, +}; export default nextConfig; diff --git a/tailwind.config.ts b/tailwind.config.ts index a3e0d2a..19aac9a 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -3,7 +3,7 @@ import type { Config } from "tailwindcss" const config = { darkMode: ["class"], content: [ - './app/**/*.{ts,tsx}', + './**/*.{ts,tsx}', ], prefix: "", theme: { From 7a64534e70554599cd422f3272e21fca6f81f9a8 Mon Sep 17 00:00:00 2001 From: hazzzi Date: Mon, 12 Aug 2024 22:40:25 +0900 Subject: [PATCH 2/5] action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c247b9..5f5625e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v3 - name: AI Code Reviewer - uses: 3rdpage/ai-code-reviewer@main + uses: freeedcom/ai-codereviewer@v2.7.0 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} From 712775ea8946af41474c87c04c498bafafb65c50 Mon Sep 17 00:00:00 2001 From: hazzzi Date: Mon, 12 Aug 2024 22:46:48 +0900 Subject: [PATCH 3/5] add --- .github/workflows/main.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f5625e..aecbfee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,22 +1,19 @@ name: AI Code Reviewer +permissions: + contents: read + pull-requests: write + on: pull_request: - types: - - opened - - synchronize -permissions: write-all + types: [opened, synchronize] + jobs: - review: + test: runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - - name: AI Code Reviewer - uses: freeedcom/ai-codereviewer@v2.7.0 - with: + - uses: anc95/ChatGPT-CodeReview@main + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_API_MODEL: "gpt-4" # Optional: defaults to "gpt-4" - exclude: "**/*.json, **/*.md" # Optional: exclude patterns separated by commas + LANGUAGE: Korean \ No newline at end of file From 7c4d5c1d7ec51c8462edd2e2464db0ea72b2ac2d Mon Sep 17 00:00:00 2001 From: hazzzi Date: Mon, 12 Aug 2024 22:53:48 +0900 Subject: [PATCH 4/5] aa --- .github/workflows/cr.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/main.yml | 19 ------------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/cr.yml delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml new file mode 100644 index 0000000..d6a9696 --- /dev/null +++ b/.github/workflows/cr.yml @@ -0,0 +1,28 @@ +name: Code Review + +permissions: + contents: read + pull-requests: write + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + test: + # if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached + runs-on: ubuntu-latest + steps: + - uses: anc95/ChatGPT-CodeReview@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + # Optional + LANGUAGE: Chinese + OPENAI_API_ENDPOINT: https://api.openai.com/v1 + MODEL: gpt-3.5-turbo # https://platform.openai.com/docs/models + PROMPT: # example: Please check if there are any confusions or irregularities in the following code diff: + top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p + temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature + max_tokens: 10000 + MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length. \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index aecbfee..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: AI Code Reviewer - -permissions: - contents: read - pull-requests: write - -on: - pull_request: - types: [opened, synchronize] - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: anc95/ChatGPT-CodeReview@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - LANGUAGE: Korean \ No newline at end of file From 9a0b18f757e132b12654534e2588950fa2523f9d Mon Sep 17 00:00:00 2001 From: hazzzi Date: Mon, 12 Aug 2024 22:59:43 +0900 Subject: [PATCH 5/5] dfasf --- .github/workflows/cr.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index d6a9696..53ca478 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -18,11 +18,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} # Optional - LANGUAGE: Chinese - OPENAI_API_ENDPOINT: https://api.openai.com/v1 - MODEL: gpt-3.5-turbo # https://platform.openai.com/docs/models - PROMPT: # example: Please check if there are any confusions or irregularities in the following code diff: - top_p: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-top_p - temperature: 1 # https://platform.openai.com/docs/api-reference/chat/create#chat/create-temperature - max_tokens: 10000 - MAX_PATCH_LENGTH: 10000 # if the patch/diff length is large than MAX_PATCH_LENGTH, will be ignored and won't review. By default, with no MAX_PATCH_LENGTH set, there is also no limit for the patch/diff length. \ No newline at end of file + LANGUAGE: Korean \ No newline at end of file