├── .editorconfig ├── .eslintrc.json ├── .gitignore ├── .prettierrc.json ├── .vscode └── settings.json ├── README.en.md ├── README.md ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── assets │ ├── chatgpt.svg │ ├── github.svg │ ├── google.svg │ └── twitter.svg ├── favicon.ico ├── next.svg ├── thirteen.svg └── vercel.svg ├── src ├── api │ └── chatgptApi │ │ ├── chatGPTApi.ts │ │ ├── deeplApi.ts │ │ ├── deeplModel.ts │ │ ├── fetchData.ts │ │ └── queryApi.ts ├── app │ └── [locale] │ │ ├── chat │ │ └── [id] │ │ │ └── page.tsx │ │ ├── head.tsx │ │ ├── layout.tsx │ │ ├── login │ │ └── page.tsx │ │ └── page.tsx ├── assets │ └── prompts │ │ ├── cnPrompts.ts │ │ └── enPrompts.ts ├── components │ ├── Footer │ │ └── index.tsx │ ├── Input │ │ └── index.tsx │ ├── analytics │ │ └── index.tsx │ ├── chatInput │ │ └── ChatInput.tsx │ ├── contentContainer │ │ └── index.tsx │ ├── description │ │ └── index.tsx │ ├── markdown │ │ └── index.tsx │ ├── promptLibModal │ │ ├── CustomPrompt.tsx │ │ ├── PromptContent.tsx │ │ ├── PromptItem.tsx │ │ └── PromptLibModal.tsx │ ├── setting │ │ ├── ChangeLog.tsx │ │ ├── Feedback.tsx │ │ ├── LanguageSwitcher.tsx │ │ ├── Logout.tsx │ │ ├── ToggleTheme.tsx │ │ └── index.tsx │ ├── sideBar │ │ ├── ChatRow.tsx │ │ ├── NewChat.tsx │ │ └── index.tsx │ ├── slide │ │ └── SlideOver.tsx │ └── topBar │ │ └── TopBar.tsx ├── hook │ ├── useCopyToClipboard.ts │ ├── useEventListener.ts │ ├── useI18n.ts │ ├── useIsMobile.ts │ ├── useIsomorphicLayoutEffect.ts │ └── useScrollToView.ts ├── i18n │ ├── en │ │ └── common.json │ ├── index.ts │ ├── next-i18n.ts │ ├── provider.ts │ └── zh │ │ └── common.json ├── middleware.ts ├── pages │ └── api │ │ ├── askQuestion.ts │ │ ├── auth │ │ └── [...nextauth].ts │ │ └── deeplTranslate.ts ├── provider │ ├── AtomProvider.tsx │ ├── ClientProvider.tsx │ ├── CustomThemeProvider.tsx │ ├── I18nClientProvider.tsx │ └── SesseionProvider.tsx ├── recoil │ └── atom │ │ ├── AtomChat.ts │ │ ├── AtomMessage.ts │ │ ├── AtomRef.ts │ │ └── AtomSlideOver.ts ├── service │ └── firebase │ │ ├── firebase.ts │ │ └── firebaseAdmin.ts ├── styles │ ├── globals.css │ ├── index.css │ └── tailwind.css ├── utils │ └── textAreaAutoHeight.ts └── views │ ├── chat │ ├── Chat.tsx │ ├── Message.tsx │ └── index.tsx │ └── home │ └── index.tsx ├── static └── home.jpeg ├── tailwind.config.js ├── tsconfig.json └── typing.d.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.en.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/README.en.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/README.md -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/assets/chatgpt.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/assets/chatgpt.svg -------------------------------------------------------------------------------- /public/assets/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/assets/github.svg -------------------------------------------------------------------------------- /public/assets/google.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/assets/google.svg -------------------------------------------------------------------------------- /public/assets/twitter.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/assets/twitter.svg -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/thirteen.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/thirteen.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/api/chatgptApi/chatGPTApi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/api/chatgptApi/chatGPTApi.ts -------------------------------------------------------------------------------- /src/api/chatgptApi/deeplApi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/api/chatgptApi/deeplApi.ts -------------------------------------------------------------------------------- /src/api/chatgptApi/deeplModel.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/api/chatgptApi/deeplModel.ts -------------------------------------------------------------------------------- /src/api/chatgptApi/fetchData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/api/chatgptApi/fetchData.ts -------------------------------------------------------------------------------- /src/api/chatgptApi/queryApi.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/api/chatgptApi/queryApi.ts -------------------------------------------------------------------------------- /src/app/[locale]/chat/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/app/[locale]/chat/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/head.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/app/[locale]/head.tsx -------------------------------------------------------------------------------- /src/app/[locale]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/app/[locale]/layout.tsx -------------------------------------------------------------------------------- /src/app/[locale]/login/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/app/[locale]/login/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/app/[locale]/page.tsx -------------------------------------------------------------------------------- /src/assets/prompts/cnPrompts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/assets/prompts/cnPrompts.ts -------------------------------------------------------------------------------- /src/assets/prompts/enPrompts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/assets/prompts/enPrompts.ts -------------------------------------------------------------------------------- /src/components/Footer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/Footer/index.tsx -------------------------------------------------------------------------------- /src/components/Input/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/Input/index.tsx -------------------------------------------------------------------------------- /src/components/analytics/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/analytics/index.tsx -------------------------------------------------------------------------------- /src/components/chatInput/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/chatInput/ChatInput.tsx -------------------------------------------------------------------------------- /src/components/contentContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/contentContainer/index.tsx -------------------------------------------------------------------------------- /src/components/description/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/description/index.tsx -------------------------------------------------------------------------------- /src/components/markdown/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/markdown/index.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/CustomPrompt.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/promptLibModal/CustomPrompt.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/promptLibModal/PromptContent.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/promptLibModal/PromptItem.tsx -------------------------------------------------------------------------------- /src/components/promptLibModal/PromptLibModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/promptLibModal/PromptLibModal.tsx -------------------------------------------------------------------------------- /src/components/setting/ChangeLog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/ChangeLog.tsx -------------------------------------------------------------------------------- /src/components/setting/Feedback.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/Feedback.tsx -------------------------------------------------------------------------------- /src/components/setting/LanguageSwitcher.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/LanguageSwitcher.tsx -------------------------------------------------------------------------------- /src/components/setting/Logout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/Logout.tsx -------------------------------------------------------------------------------- /src/components/setting/ToggleTheme.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/ToggleTheme.tsx -------------------------------------------------------------------------------- /src/components/setting/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/setting/index.tsx -------------------------------------------------------------------------------- /src/components/sideBar/ChatRow.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/sideBar/ChatRow.tsx -------------------------------------------------------------------------------- /src/components/sideBar/NewChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/sideBar/NewChat.tsx -------------------------------------------------------------------------------- /src/components/sideBar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/sideBar/index.tsx -------------------------------------------------------------------------------- /src/components/slide/SlideOver.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/slide/SlideOver.tsx -------------------------------------------------------------------------------- /src/components/topBar/TopBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/components/topBar/TopBar.tsx -------------------------------------------------------------------------------- /src/hook/useCopyToClipboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useCopyToClipboard.ts -------------------------------------------------------------------------------- /src/hook/useEventListener.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useEventListener.ts -------------------------------------------------------------------------------- /src/hook/useI18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useI18n.ts -------------------------------------------------------------------------------- /src/hook/useIsMobile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useIsMobile.ts -------------------------------------------------------------------------------- /src/hook/useIsomorphicLayoutEffect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useIsomorphicLayoutEffect.ts -------------------------------------------------------------------------------- /src/hook/useScrollToView.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/hook/useScrollToView.ts -------------------------------------------------------------------------------- /src/i18n/en/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/i18n/en/common.json -------------------------------------------------------------------------------- /src/i18n/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/i18n/index.ts -------------------------------------------------------------------------------- /src/i18n/next-i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/i18n/next-i18n.ts -------------------------------------------------------------------------------- /src/i18n/provider.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/i18n/provider.ts -------------------------------------------------------------------------------- /src/i18n/zh/common.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/i18n/zh/common.json -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/pages/api/askQuestion.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/pages/api/askQuestion.ts -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /src/pages/api/deeplTranslate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/pages/api/deeplTranslate.ts -------------------------------------------------------------------------------- /src/provider/AtomProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/provider/AtomProvider.tsx -------------------------------------------------------------------------------- /src/provider/ClientProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/provider/ClientProvider.tsx -------------------------------------------------------------------------------- /src/provider/CustomThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/provider/CustomThemeProvider.tsx -------------------------------------------------------------------------------- /src/provider/I18nClientProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/provider/I18nClientProvider.tsx -------------------------------------------------------------------------------- /src/provider/SesseionProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/provider/SesseionProvider.tsx -------------------------------------------------------------------------------- /src/recoil/atom/AtomChat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/recoil/atom/AtomChat.ts -------------------------------------------------------------------------------- /src/recoil/atom/AtomMessage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/recoil/atom/AtomMessage.ts -------------------------------------------------------------------------------- /src/recoil/atom/AtomRef.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/recoil/atom/AtomRef.ts -------------------------------------------------------------------------------- /src/recoil/atom/AtomSlideOver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/recoil/atom/AtomSlideOver.ts -------------------------------------------------------------------------------- /src/service/firebase/firebase.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/service/firebase/firebase.ts -------------------------------------------------------------------------------- /src/service/firebase/firebaseAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/service/firebase/firebaseAdmin.ts -------------------------------------------------------------------------------- /src/styles/globals.css: -------------------------------------------------------------------------------- 1 | body { 2 | height: 100vh; 3 | } 4 | -------------------------------------------------------------------------------- /src/styles/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/styles/index.css -------------------------------------------------------------------------------- /src/styles/tailwind.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/styles/tailwind.css -------------------------------------------------------------------------------- /src/utils/textAreaAutoHeight.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/utils/textAreaAutoHeight.ts -------------------------------------------------------------------------------- /src/views/chat/Chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/views/chat/Chat.tsx -------------------------------------------------------------------------------- /src/views/chat/Message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/views/chat/Message.tsx -------------------------------------------------------------------------------- /src/views/chat/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/views/chat/index.tsx -------------------------------------------------------------------------------- /src/views/home/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/src/views/home/index.tsx -------------------------------------------------------------------------------- /static/home.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/static/home.jpeg -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/tsconfig.json -------------------------------------------------------------------------------- /typing.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youngle316/chatgpt-nextjs/HEAD/typing.d.ts --------------------------------------------------------------------------------