├── 10 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 11 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json ├── types │ └── chat.d.ts └── yarn.lock ├── 12 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 13 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 14 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 15 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ ├── message │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── lib │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 16 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── lib │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 17 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── lib │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 18 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── lib │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 19 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ ├── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── lib │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 20 ├── .env.development ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ ├── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── lib │ ├── openai.ts │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 21 ├── .env.development ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── api │ │ ├── chat │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ ├── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ ├── message │ │ │ ├── delete │ │ │ │ └── route.ts │ │ │ ├── list │ │ │ │ └── route.ts │ │ │ └── update │ │ │ │ └── route.ts │ │ └── test │ │ │ └── route.ts │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── EventBusContext.tsx │ ├── common │ │ ├── Button.tsx │ │ └── Markdown.tsx │ └── home │ │ ├── Main │ │ ├── ChatInput.tsx │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── MessageList.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── lib │ ├── openai.ts │ └── prisma.ts ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── prisma │ ├── chatgpt-app.sqlite │ ├── migrations │ │ ├── 20230914084314_init │ │ │ └── migration.sql │ │ └── migration_lock.toml │ └── schema.prisma ├── public │ ├── images │ │ └── new-tab.png │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── styles │ ├── globals.css │ └── markdown.css ├── tailwind.config.js ├── tsconfig.json ├── types │ └── chat.d.ts └── yarn.lock ├── 01 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── tailwind.config.js └── tsconfig.json ├── 02 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── tailwind.config.js └── tsconfig.json ├── 03 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ └── home │ │ ├── Main.tsx │ │ └── Navigation.tsx ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── tailwind.config.js └── tsconfig.json ├── 04 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main.tsx │ │ └── Navigation.tsx ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── tailwind.config.js └── tsconfig.json ├── 05 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── Menu.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js └── tsconfig.json ├── 06 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── Menu.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js └── tsconfig.json ├── 07 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── Menu.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 08 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── Menu.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts ├── 09 ├── .eslintrc.json ├── .gitignore ├── README.md ├── app │ ├── chat │ │ ├── layout.tsx │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── common │ └── util.ts ├── components │ ├── AppContext.tsx │ ├── common │ │ └── Button.tsx │ └── home │ │ ├── Main │ │ ├── Example.tsx │ │ ├── Menu.tsx │ │ ├── ModelSelect.tsx │ │ ├── Welcome.tsx │ │ └── index.tsx │ │ └── Navigation │ │ ├── ChatItem.tsx │ │ ├── ChatList.tsx │ │ ├── Menubar.tsx │ │ ├── Toolbar.tsx │ │ └── index.tsx ├── data │ └── examples.json ├── doc.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── reducers │ └── AppReducer.ts ├── tailwind.config.js ├── tsconfig.json └── types │ └── chat.d.ts └── README.md /01/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /01/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/.gitignore -------------------------------------------------------------------------------- /01/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/README.md -------------------------------------------------------------------------------- /01/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/app/favicon.ico -------------------------------------------------------------------------------- /01/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/app/globals.css -------------------------------------------------------------------------------- /01/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/app/layout.tsx -------------------------------------------------------------------------------- /01/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/app/page.tsx -------------------------------------------------------------------------------- /01/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/next.config.js -------------------------------------------------------------------------------- /01/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/package-lock.json -------------------------------------------------------------------------------- /01/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/package.json -------------------------------------------------------------------------------- /01/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/postcss.config.js -------------------------------------------------------------------------------- /01/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/public/next.svg -------------------------------------------------------------------------------- /01/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/public/vercel.svg -------------------------------------------------------------------------------- /01/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/tailwind.config.js -------------------------------------------------------------------------------- /01/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/01/tsconfig.json -------------------------------------------------------------------------------- /02/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /02/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/.gitignore -------------------------------------------------------------------------------- /02/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/README.md -------------------------------------------------------------------------------- /02/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/chat/layout.tsx -------------------------------------------------------------------------------- /02/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/chat/page.tsx -------------------------------------------------------------------------------- /02/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/favicon.ico -------------------------------------------------------------------------------- /02/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/globals.css -------------------------------------------------------------------------------- /02/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/layout.tsx -------------------------------------------------------------------------------- /02/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/app/page.tsx -------------------------------------------------------------------------------- /02/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/next.config.js -------------------------------------------------------------------------------- /02/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/package-lock.json -------------------------------------------------------------------------------- /02/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/package.json -------------------------------------------------------------------------------- /02/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/postcss.config.js -------------------------------------------------------------------------------- /02/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/public/next.svg -------------------------------------------------------------------------------- /02/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/public/vercel.svg -------------------------------------------------------------------------------- /02/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/tailwind.config.js -------------------------------------------------------------------------------- /02/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/02/tsconfig.json -------------------------------------------------------------------------------- /03/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /03/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/.gitignore -------------------------------------------------------------------------------- /03/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/README.md -------------------------------------------------------------------------------- /03/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/chat/layout.tsx -------------------------------------------------------------------------------- /03/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/chat/page.tsx -------------------------------------------------------------------------------- /03/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/favicon.ico -------------------------------------------------------------------------------- /03/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/globals.css -------------------------------------------------------------------------------- /03/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/layout.tsx -------------------------------------------------------------------------------- /03/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/app/page.tsx -------------------------------------------------------------------------------- /03/components/home/Main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/components/home/Main.tsx -------------------------------------------------------------------------------- /03/components/home/Navigation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/components/home/Navigation.tsx -------------------------------------------------------------------------------- /03/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/next.config.js -------------------------------------------------------------------------------- /03/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/package-lock.json -------------------------------------------------------------------------------- /03/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/package.json -------------------------------------------------------------------------------- /03/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/postcss.config.js -------------------------------------------------------------------------------- /03/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/public/next.svg -------------------------------------------------------------------------------- /03/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/public/vercel.svg -------------------------------------------------------------------------------- /03/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/tailwind.config.js -------------------------------------------------------------------------------- /03/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/03/tsconfig.json -------------------------------------------------------------------------------- /04/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /04/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/.gitignore -------------------------------------------------------------------------------- /04/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/README.md -------------------------------------------------------------------------------- /04/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/chat/layout.tsx -------------------------------------------------------------------------------- /04/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/chat/page.tsx -------------------------------------------------------------------------------- /04/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/favicon.ico -------------------------------------------------------------------------------- /04/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/globals.css -------------------------------------------------------------------------------- /04/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/layout.tsx -------------------------------------------------------------------------------- /04/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/app/page.tsx -------------------------------------------------------------------------------- /04/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/components/common/Button.tsx -------------------------------------------------------------------------------- /04/components/home/Main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/components/home/Main.tsx -------------------------------------------------------------------------------- /04/components/home/Navigation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/components/home/Navigation.tsx -------------------------------------------------------------------------------- /04/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/next.config.js -------------------------------------------------------------------------------- /04/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/package-lock.json -------------------------------------------------------------------------------- /04/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/package.json -------------------------------------------------------------------------------- /04/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/postcss.config.js -------------------------------------------------------------------------------- /04/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/public/next.svg -------------------------------------------------------------------------------- /04/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/public/vercel.svg -------------------------------------------------------------------------------- /04/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/tailwind.config.js -------------------------------------------------------------------------------- /04/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/04/tsconfig.json -------------------------------------------------------------------------------- /05/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /05/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/.gitignore -------------------------------------------------------------------------------- /05/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/README.md -------------------------------------------------------------------------------- /05/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/chat/layout.tsx -------------------------------------------------------------------------------- /05/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/chat/page.tsx -------------------------------------------------------------------------------- /05/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/favicon.ico -------------------------------------------------------------------------------- /05/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/globals.css -------------------------------------------------------------------------------- /05/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/layout.tsx -------------------------------------------------------------------------------- /05/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/app/page.tsx -------------------------------------------------------------------------------- /05/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/AppContext.tsx -------------------------------------------------------------------------------- /05/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/common/Button.tsx -------------------------------------------------------------------------------- /05/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /05/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/home/Main/index.tsx -------------------------------------------------------------------------------- /05/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /05/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /05/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /05/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/doc.md -------------------------------------------------------------------------------- /05/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/next.config.js -------------------------------------------------------------------------------- /05/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/package-lock.json -------------------------------------------------------------------------------- /05/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/package.json -------------------------------------------------------------------------------- /05/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/postcss.config.js -------------------------------------------------------------------------------- /05/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/public/next.svg -------------------------------------------------------------------------------- /05/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/public/vercel.svg -------------------------------------------------------------------------------- /05/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/reducers/AppReducer.ts -------------------------------------------------------------------------------- /05/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/tailwind.config.js -------------------------------------------------------------------------------- /05/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/05/tsconfig.json -------------------------------------------------------------------------------- /06/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /06/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/.gitignore -------------------------------------------------------------------------------- /06/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/README.md -------------------------------------------------------------------------------- /06/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/chat/layout.tsx -------------------------------------------------------------------------------- /06/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/chat/page.tsx -------------------------------------------------------------------------------- /06/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/favicon.ico -------------------------------------------------------------------------------- /06/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/globals.css -------------------------------------------------------------------------------- /06/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/layout.tsx -------------------------------------------------------------------------------- /06/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/app/page.tsx -------------------------------------------------------------------------------- /06/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/AppContext.tsx -------------------------------------------------------------------------------- /06/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/common/Button.tsx -------------------------------------------------------------------------------- /06/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /06/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/home/Main/index.tsx -------------------------------------------------------------------------------- /06/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /06/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /06/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /06/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/doc.md -------------------------------------------------------------------------------- /06/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/next.config.js -------------------------------------------------------------------------------- /06/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/package-lock.json -------------------------------------------------------------------------------- /06/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/package.json -------------------------------------------------------------------------------- /06/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/postcss.config.js -------------------------------------------------------------------------------- /06/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/public/next.svg -------------------------------------------------------------------------------- /06/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/public/vercel.svg -------------------------------------------------------------------------------- /06/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/reducers/AppReducer.ts -------------------------------------------------------------------------------- /06/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/tailwind.config.js -------------------------------------------------------------------------------- /06/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/06/tsconfig.json -------------------------------------------------------------------------------- /07/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /07/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/.gitignore -------------------------------------------------------------------------------- /07/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/README.md -------------------------------------------------------------------------------- /07/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/chat/layout.tsx -------------------------------------------------------------------------------- /07/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/chat/page.tsx -------------------------------------------------------------------------------- /07/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/favicon.ico -------------------------------------------------------------------------------- /07/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/globals.css -------------------------------------------------------------------------------- /07/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/layout.tsx -------------------------------------------------------------------------------- /07/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/app/page.tsx -------------------------------------------------------------------------------- /07/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/common/util.ts -------------------------------------------------------------------------------- /07/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/AppContext.tsx -------------------------------------------------------------------------------- /07/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/common/Button.tsx -------------------------------------------------------------------------------- /07/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /07/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Main/index.tsx -------------------------------------------------------------------------------- /07/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /07/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /07/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /07/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /07/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/doc.md -------------------------------------------------------------------------------- /07/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/next.config.js -------------------------------------------------------------------------------- /07/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/package-lock.json -------------------------------------------------------------------------------- /07/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/package.json -------------------------------------------------------------------------------- /07/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/postcss.config.js -------------------------------------------------------------------------------- /07/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/public/next.svg -------------------------------------------------------------------------------- /07/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/public/vercel.svg -------------------------------------------------------------------------------- /07/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/reducers/AppReducer.ts -------------------------------------------------------------------------------- /07/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/tailwind.config.js -------------------------------------------------------------------------------- /07/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/tsconfig.json -------------------------------------------------------------------------------- /07/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/07/types/chat.d.ts -------------------------------------------------------------------------------- /08/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /08/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/.gitignore -------------------------------------------------------------------------------- /08/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/README.md -------------------------------------------------------------------------------- /08/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/chat/layout.tsx -------------------------------------------------------------------------------- /08/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/chat/page.tsx -------------------------------------------------------------------------------- /08/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/favicon.ico -------------------------------------------------------------------------------- /08/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/globals.css -------------------------------------------------------------------------------- /08/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/layout.tsx -------------------------------------------------------------------------------- /08/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/app/page.tsx -------------------------------------------------------------------------------- /08/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/common/util.ts -------------------------------------------------------------------------------- /08/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/AppContext.tsx -------------------------------------------------------------------------------- /08/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/common/Button.tsx -------------------------------------------------------------------------------- /08/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /08/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Main/index.tsx -------------------------------------------------------------------------------- /08/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /08/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /08/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /08/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /08/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /08/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/next.config.js -------------------------------------------------------------------------------- /08/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/package-lock.json -------------------------------------------------------------------------------- /08/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/package.json -------------------------------------------------------------------------------- /08/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/postcss.config.js -------------------------------------------------------------------------------- /08/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/public/next.svg -------------------------------------------------------------------------------- /08/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/public/vercel.svg -------------------------------------------------------------------------------- /08/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/reducers/AppReducer.ts -------------------------------------------------------------------------------- /08/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/tailwind.config.js -------------------------------------------------------------------------------- /08/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/tsconfig.json -------------------------------------------------------------------------------- /08/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/08/types/chat.d.ts -------------------------------------------------------------------------------- /09/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /09/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/.gitignore -------------------------------------------------------------------------------- /09/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/README.md -------------------------------------------------------------------------------- /09/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/chat/layout.tsx -------------------------------------------------------------------------------- /09/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/chat/page.tsx -------------------------------------------------------------------------------- /09/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/favicon.ico -------------------------------------------------------------------------------- /09/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/globals.css -------------------------------------------------------------------------------- /09/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/layout.tsx -------------------------------------------------------------------------------- /09/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/app/page.tsx -------------------------------------------------------------------------------- /09/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/common/util.ts -------------------------------------------------------------------------------- /09/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/AppContext.tsx -------------------------------------------------------------------------------- /09/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/common/Button.tsx -------------------------------------------------------------------------------- /09/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /09/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /09/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /09/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /09/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Main/index.tsx -------------------------------------------------------------------------------- /09/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /09/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /09/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /09/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /09/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /09/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/data/examples.json -------------------------------------------------------------------------------- /09/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/doc.md -------------------------------------------------------------------------------- /09/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/next.config.js -------------------------------------------------------------------------------- /09/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/package-lock.json -------------------------------------------------------------------------------- /09/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/package.json -------------------------------------------------------------------------------- /09/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/postcss.config.js -------------------------------------------------------------------------------- /09/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/public/next.svg -------------------------------------------------------------------------------- /09/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/public/vercel.svg -------------------------------------------------------------------------------- /09/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/reducers/AppReducer.ts -------------------------------------------------------------------------------- /09/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/tailwind.config.js -------------------------------------------------------------------------------- /09/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/tsconfig.json -------------------------------------------------------------------------------- /09/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/09/types/chat.d.ts -------------------------------------------------------------------------------- /10/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /10/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/.gitignore -------------------------------------------------------------------------------- /10/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/README.md -------------------------------------------------------------------------------- /10/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/chat/layout.tsx -------------------------------------------------------------------------------- /10/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/chat/page.tsx -------------------------------------------------------------------------------- /10/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/favicon.ico -------------------------------------------------------------------------------- /10/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/globals.css -------------------------------------------------------------------------------- /10/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/layout.tsx -------------------------------------------------------------------------------- /10/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/app/page.tsx -------------------------------------------------------------------------------- /10/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/common/util.ts -------------------------------------------------------------------------------- /10/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/AppContext.tsx -------------------------------------------------------------------------------- /10/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/common/Button.tsx -------------------------------------------------------------------------------- /10/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /10/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /10/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /10/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /10/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /10/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Main/index.tsx -------------------------------------------------------------------------------- /10/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /10/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /10/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /10/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /10/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /10/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/data/examples.json -------------------------------------------------------------------------------- /10/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/doc.md -------------------------------------------------------------------------------- /10/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/next.config.js -------------------------------------------------------------------------------- /10/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/package-lock.json -------------------------------------------------------------------------------- /10/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/package.json -------------------------------------------------------------------------------- /10/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/postcss.config.js -------------------------------------------------------------------------------- /10/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/public/images/new-tab.png -------------------------------------------------------------------------------- /10/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/public/next.svg -------------------------------------------------------------------------------- /10/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/public/vercel.svg -------------------------------------------------------------------------------- /10/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/reducers/AppReducer.ts -------------------------------------------------------------------------------- /10/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/tailwind.config.js -------------------------------------------------------------------------------- /10/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/tsconfig.json -------------------------------------------------------------------------------- /10/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/10/types/chat.d.ts -------------------------------------------------------------------------------- /11/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /11/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/.gitignore -------------------------------------------------------------------------------- /11/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/README.md -------------------------------------------------------------------------------- /11/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/app/chat/layout.tsx -------------------------------------------------------------------------------- /11/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/app/chat/page.tsx -------------------------------------------------------------------------------- /11/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/app/favicon.ico -------------------------------------------------------------------------------- /11/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/app/layout.tsx -------------------------------------------------------------------------------- /11/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/app/page.tsx -------------------------------------------------------------------------------- /11/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/common/util.ts -------------------------------------------------------------------------------- /11/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/AppContext.tsx -------------------------------------------------------------------------------- /11/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/common/Button.tsx -------------------------------------------------------------------------------- /11/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/common/Markdown.tsx -------------------------------------------------------------------------------- /11/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /11/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /11/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /11/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /11/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /11/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /11/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Main/index.tsx -------------------------------------------------------------------------------- /11/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /11/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /11/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /11/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /11/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /11/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/data/examples.json -------------------------------------------------------------------------------- /11/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/doc.md -------------------------------------------------------------------------------- /11/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/next.config.js -------------------------------------------------------------------------------- /11/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/package-lock.json -------------------------------------------------------------------------------- /11/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/package.json -------------------------------------------------------------------------------- /11/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/postcss.config.js -------------------------------------------------------------------------------- /11/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/public/images/new-tab.png -------------------------------------------------------------------------------- /11/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/public/next.svg -------------------------------------------------------------------------------- /11/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/public/vercel.svg -------------------------------------------------------------------------------- /11/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/reducers/AppReducer.ts -------------------------------------------------------------------------------- /11/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/styles/globals.css -------------------------------------------------------------------------------- /11/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/styles/markdown.css -------------------------------------------------------------------------------- /11/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/tailwind.config.js -------------------------------------------------------------------------------- /11/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/tsconfig.json -------------------------------------------------------------------------------- /11/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/types/chat.d.ts -------------------------------------------------------------------------------- /11/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/11/yarn.lock -------------------------------------------------------------------------------- /12/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /12/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/.gitignore -------------------------------------------------------------------------------- /12/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/README.md -------------------------------------------------------------------------------- /12/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/api/chat/route.ts -------------------------------------------------------------------------------- /12/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/api/test/route.ts -------------------------------------------------------------------------------- /12/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/chat/layout.tsx -------------------------------------------------------------------------------- /12/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/chat/page.tsx -------------------------------------------------------------------------------- /12/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/favicon.ico -------------------------------------------------------------------------------- /12/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/layout.tsx -------------------------------------------------------------------------------- /12/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/app/page.tsx -------------------------------------------------------------------------------- /12/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/common/util.ts -------------------------------------------------------------------------------- /12/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/AppContext.tsx -------------------------------------------------------------------------------- /12/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/common/Button.tsx -------------------------------------------------------------------------------- /12/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/common/Markdown.tsx -------------------------------------------------------------------------------- /12/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /12/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /12/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /12/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /12/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /12/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /12/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Main/index.tsx -------------------------------------------------------------------------------- /12/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /12/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /12/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /12/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /12/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /12/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/data/examples.json -------------------------------------------------------------------------------- /12/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/doc.md -------------------------------------------------------------------------------- /12/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/next.config.js -------------------------------------------------------------------------------- /12/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/package-lock.json -------------------------------------------------------------------------------- /12/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/package.json -------------------------------------------------------------------------------- /12/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/postcss.config.js -------------------------------------------------------------------------------- /12/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/public/images/new-tab.png -------------------------------------------------------------------------------- /12/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/public/next.svg -------------------------------------------------------------------------------- /12/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/public/vercel.svg -------------------------------------------------------------------------------- /12/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/reducers/AppReducer.ts -------------------------------------------------------------------------------- /12/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/styles/globals.css -------------------------------------------------------------------------------- /12/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/styles/markdown.css -------------------------------------------------------------------------------- /12/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/tailwind.config.js -------------------------------------------------------------------------------- /12/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/tsconfig.json -------------------------------------------------------------------------------- /12/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/12/types/chat.d.ts -------------------------------------------------------------------------------- /13/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /13/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/.gitignore -------------------------------------------------------------------------------- /13/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/README.md -------------------------------------------------------------------------------- /13/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/api/chat/route.ts -------------------------------------------------------------------------------- /13/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/api/test/route.ts -------------------------------------------------------------------------------- /13/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/chat/layout.tsx -------------------------------------------------------------------------------- /13/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/chat/page.tsx -------------------------------------------------------------------------------- /13/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/favicon.ico -------------------------------------------------------------------------------- /13/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/layout.tsx -------------------------------------------------------------------------------- /13/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/app/page.tsx -------------------------------------------------------------------------------- /13/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/common/util.ts -------------------------------------------------------------------------------- /13/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/AppContext.tsx -------------------------------------------------------------------------------- /13/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/common/Button.tsx -------------------------------------------------------------------------------- /13/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/common/Markdown.tsx -------------------------------------------------------------------------------- /13/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /13/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /13/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /13/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /13/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /13/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /13/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Main/index.tsx -------------------------------------------------------------------------------- /13/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /13/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /13/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /13/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /13/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /13/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/data/examples.json -------------------------------------------------------------------------------- /13/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/doc.md -------------------------------------------------------------------------------- /13/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/next.config.js -------------------------------------------------------------------------------- /13/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/package-lock.json -------------------------------------------------------------------------------- /13/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/package.json -------------------------------------------------------------------------------- /13/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/postcss.config.js -------------------------------------------------------------------------------- /13/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/public/images/new-tab.png -------------------------------------------------------------------------------- /13/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/public/next.svg -------------------------------------------------------------------------------- /13/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/public/vercel.svg -------------------------------------------------------------------------------- /13/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/reducers/AppReducer.ts -------------------------------------------------------------------------------- /13/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/styles/globals.css -------------------------------------------------------------------------------- /13/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/styles/markdown.css -------------------------------------------------------------------------------- /13/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/tailwind.config.js -------------------------------------------------------------------------------- /13/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/tsconfig.json -------------------------------------------------------------------------------- /13/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/13/types/chat.d.ts -------------------------------------------------------------------------------- /14/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /14/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/.gitignore -------------------------------------------------------------------------------- /14/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/README.md -------------------------------------------------------------------------------- /14/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/api/chat/route.ts -------------------------------------------------------------------------------- /14/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/api/test/route.ts -------------------------------------------------------------------------------- /14/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/chat/layout.tsx -------------------------------------------------------------------------------- /14/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/chat/page.tsx -------------------------------------------------------------------------------- /14/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/favicon.ico -------------------------------------------------------------------------------- /14/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/layout.tsx -------------------------------------------------------------------------------- /14/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/app/page.tsx -------------------------------------------------------------------------------- /14/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/common/util.ts -------------------------------------------------------------------------------- /14/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/AppContext.tsx -------------------------------------------------------------------------------- /14/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/common/Button.tsx -------------------------------------------------------------------------------- /14/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/common/Markdown.tsx -------------------------------------------------------------------------------- /14/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /14/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /14/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /14/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /14/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /14/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /14/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Main/index.tsx -------------------------------------------------------------------------------- /14/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /14/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /14/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /14/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /14/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /14/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/data/examples.json -------------------------------------------------------------------------------- /14/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/next.config.js -------------------------------------------------------------------------------- /14/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/package-lock.json -------------------------------------------------------------------------------- /14/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/package.json -------------------------------------------------------------------------------- /14/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/postcss.config.js -------------------------------------------------------------------------------- /14/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/public/images/new-tab.png -------------------------------------------------------------------------------- /14/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/public/next.svg -------------------------------------------------------------------------------- /14/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/public/vercel.svg -------------------------------------------------------------------------------- /14/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/reducers/AppReducer.ts -------------------------------------------------------------------------------- /14/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/styles/globals.css -------------------------------------------------------------------------------- /14/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/styles/markdown.css -------------------------------------------------------------------------------- /14/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/tailwind.config.js -------------------------------------------------------------------------------- /14/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/tsconfig.json -------------------------------------------------------------------------------- /14/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/14/types/chat.d.ts -------------------------------------------------------------------------------- /15/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /15/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/.gitignore -------------------------------------------------------------------------------- /15/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/README.md -------------------------------------------------------------------------------- /15/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/api/chat/route.ts -------------------------------------------------------------------------------- /15/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/api/message/update/route.ts -------------------------------------------------------------------------------- /15/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/api/test/route.ts -------------------------------------------------------------------------------- /15/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/chat/layout.tsx -------------------------------------------------------------------------------- /15/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/chat/page.tsx -------------------------------------------------------------------------------- /15/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/favicon.ico -------------------------------------------------------------------------------- /15/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/layout.tsx -------------------------------------------------------------------------------- /15/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/app/page.tsx -------------------------------------------------------------------------------- /15/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/common/util.ts -------------------------------------------------------------------------------- /15/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/AppContext.tsx -------------------------------------------------------------------------------- /15/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/common/Button.tsx -------------------------------------------------------------------------------- /15/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/common/Markdown.tsx -------------------------------------------------------------------------------- /15/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /15/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /15/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /15/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /15/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /15/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /15/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Main/index.tsx -------------------------------------------------------------------------------- /15/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /15/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /15/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /15/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /15/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /15/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/data/examples.json -------------------------------------------------------------------------------- /15/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/doc.md -------------------------------------------------------------------------------- /15/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/lib/prisma.ts -------------------------------------------------------------------------------- /15/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/next.config.js -------------------------------------------------------------------------------- /15/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/package-lock.json -------------------------------------------------------------------------------- /15/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/package.json -------------------------------------------------------------------------------- /15/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/postcss.config.js -------------------------------------------------------------------------------- /15/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /15/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /15/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /15/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/prisma/schema.prisma -------------------------------------------------------------------------------- /15/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/public/images/new-tab.png -------------------------------------------------------------------------------- /15/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/public/next.svg -------------------------------------------------------------------------------- /15/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/public/vercel.svg -------------------------------------------------------------------------------- /15/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/reducers/AppReducer.ts -------------------------------------------------------------------------------- /15/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/styles/globals.css -------------------------------------------------------------------------------- /15/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/styles/markdown.css -------------------------------------------------------------------------------- /15/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/tailwind.config.js -------------------------------------------------------------------------------- /15/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/tsconfig.json -------------------------------------------------------------------------------- /15/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/15/types/chat.d.ts -------------------------------------------------------------------------------- /16/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /16/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/.gitignore -------------------------------------------------------------------------------- /16/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/README.md -------------------------------------------------------------------------------- /16/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/api/chat/route.ts -------------------------------------------------------------------------------- /16/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /16/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/api/message/update/route.ts -------------------------------------------------------------------------------- /16/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/api/test/route.ts -------------------------------------------------------------------------------- /16/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/chat/layout.tsx -------------------------------------------------------------------------------- /16/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/chat/page.tsx -------------------------------------------------------------------------------- /16/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/favicon.ico -------------------------------------------------------------------------------- /16/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/layout.tsx -------------------------------------------------------------------------------- /16/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/app/page.tsx -------------------------------------------------------------------------------- /16/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/common/util.ts -------------------------------------------------------------------------------- /16/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/AppContext.tsx -------------------------------------------------------------------------------- /16/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/EventBusContext.tsx -------------------------------------------------------------------------------- /16/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/common/Button.tsx -------------------------------------------------------------------------------- /16/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/common/Markdown.tsx -------------------------------------------------------------------------------- /16/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /16/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /16/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /16/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /16/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /16/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /16/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Main/index.tsx -------------------------------------------------------------------------------- /16/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /16/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /16/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /16/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /16/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /16/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/data/examples.json -------------------------------------------------------------------------------- /16/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/lib/prisma.ts -------------------------------------------------------------------------------- /16/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/next.config.js -------------------------------------------------------------------------------- /16/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/package-lock.json -------------------------------------------------------------------------------- /16/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/package.json -------------------------------------------------------------------------------- /16/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/postcss.config.js -------------------------------------------------------------------------------- /16/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /16/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /16/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /16/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/prisma/schema.prisma -------------------------------------------------------------------------------- /16/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/public/images/new-tab.png -------------------------------------------------------------------------------- /16/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/public/next.svg -------------------------------------------------------------------------------- /16/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/public/vercel.svg -------------------------------------------------------------------------------- /16/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/reducers/AppReducer.ts -------------------------------------------------------------------------------- /16/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/styles/globals.css -------------------------------------------------------------------------------- /16/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/styles/markdown.css -------------------------------------------------------------------------------- /16/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/tailwind.config.js -------------------------------------------------------------------------------- /16/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/tsconfig.json -------------------------------------------------------------------------------- /16/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/16/types/chat.d.ts -------------------------------------------------------------------------------- /17/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /17/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/.gitignore -------------------------------------------------------------------------------- /17/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/README.md -------------------------------------------------------------------------------- /17/app/api/chat/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/chat/list/route.ts -------------------------------------------------------------------------------- /17/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/chat/route.ts -------------------------------------------------------------------------------- /17/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /17/app/api/message/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/message/list/route.ts -------------------------------------------------------------------------------- /17/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/message/update/route.ts -------------------------------------------------------------------------------- /17/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/api/test/route.ts -------------------------------------------------------------------------------- /17/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/chat/layout.tsx -------------------------------------------------------------------------------- /17/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/chat/page.tsx -------------------------------------------------------------------------------- /17/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/favicon.ico -------------------------------------------------------------------------------- /17/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/layout.tsx -------------------------------------------------------------------------------- /17/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/app/page.tsx -------------------------------------------------------------------------------- /17/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/common/util.ts -------------------------------------------------------------------------------- /17/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/AppContext.tsx -------------------------------------------------------------------------------- /17/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/EventBusContext.tsx -------------------------------------------------------------------------------- /17/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/common/Button.tsx -------------------------------------------------------------------------------- /17/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/common/Markdown.tsx -------------------------------------------------------------------------------- /17/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /17/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /17/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /17/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /17/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /17/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /17/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Main/index.tsx -------------------------------------------------------------------------------- /17/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /17/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /17/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /17/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /17/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /17/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/data/examples.json -------------------------------------------------------------------------------- /17/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/lib/prisma.ts -------------------------------------------------------------------------------- /17/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/next.config.js -------------------------------------------------------------------------------- /17/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/package-lock.json -------------------------------------------------------------------------------- /17/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/package.json -------------------------------------------------------------------------------- /17/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/postcss.config.js -------------------------------------------------------------------------------- /17/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /17/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /17/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /17/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/prisma/schema.prisma -------------------------------------------------------------------------------- /17/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/public/images/new-tab.png -------------------------------------------------------------------------------- /17/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/public/next.svg -------------------------------------------------------------------------------- /17/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/public/vercel.svg -------------------------------------------------------------------------------- /17/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/reducers/AppReducer.ts -------------------------------------------------------------------------------- /17/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/styles/globals.css -------------------------------------------------------------------------------- /17/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/styles/markdown.css -------------------------------------------------------------------------------- /17/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/tailwind.config.js -------------------------------------------------------------------------------- /17/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/tsconfig.json -------------------------------------------------------------------------------- /17/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/17/types/chat.d.ts -------------------------------------------------------------------------------- /18/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /18/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/.gitignore -------------------------------------------------------------------------------- /18/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/README.md -------------------------------------------------------------------------------- /18/app/api/chat/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/chat/list/route.ts -------------------------------------------------------------------------------- /18/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/chat/route.ts -------------------------------------------------------------------------------- /18/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /18/app/api/message/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/message/list/route.ts -------------------------------------------------------------------------------- /18/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/message/update/route.ts -------------------------------------------------------------------------------- /18/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/api/test/route.ts -------------------------------------------------------------------------------- /18/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/chat/layout.tsx -------------------------------------------------------------------------------- /18/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/chat/page.tsx -------------------------------------------------------------------------------- /18/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/favicon.ico -------------------------------------------------------------------------------- /18/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/layout.tsx -------------------------------------------------------------------------------- /18/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/app/page.tsx -------------------------------------------------------------------------------- /18/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/common/util.ts -------------------------------------------------------------------------------- /18/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/AppContext.tsx -------------------------------------------------------------------------------- /18/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/EventBusContext.tsx -------------------------------------------------------------------------------- /18/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/common/Button.tsx -------------------------------------------------------------------------------- /18/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/common/Markdown.tsx -------------------------------------------------------------------------------- /18/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /18/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /18/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /18/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /18/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /18/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /18/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Main/index.tsx -------------------------------------------------------------------------------- /18/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /18/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /18/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /18/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /18/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /18/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/data/examples.json -------------------------------------------------------------------------------- /18/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/lib/prisma.ts -------------------------------------------------------------------------------- /18/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/next.config.js -------------------------------------------------------------------------------- /18/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/package-lock.json -------------------------------------------------------------------------------- /18/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/package.json -------------------------------------------------------------------------------- /18/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/postcss.config.js -------------------------------------------------------------------------------- /18/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /18/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /18/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /18/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/prisma/schema.prisma -------------------------------------------------------------------------------- /18/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/public/images/new-tab.png -------------------------------------------------------------------------------- /18/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/public/next.svg -------------------------------------------------------------------------------- /18/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/public/vercel.svg -------------------------------------------------------------------------------- /18/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/reducers/AppReducer.ts -------------------------------------------------------------------------------- /18/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/styles/globals.css -------------------------------------------------------------------------------- /18/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/styles/markdown.css -------------------------------------------------------------------------------- /18/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/tailwind.config.js -------------------------------------------------------------------------------- /18/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/tsconfig.json -------------------------------------------------------------------------------- /18/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/18/types/chat.d.ts -------------------------------------------------------------------------------- /19/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /19/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/.gitignore -------------------------------------------------------------------------------- /19/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/README.md -------------------------------------------------------------------------------- /19/app/api/chat/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/chat/delete/route.ts -------------------------------------------------------------------------------- /19/app/api/chat/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/chat/list/route.ts -------------------------------------------------------------------------------- /19/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/chat/route.ts -------------------------------------------------------------------------------- /19/app/api/chat/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/chat/update/route.ts -------------------------------------------------------------------------------- /19/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /19/app/api/message/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/message/list/route.ts -------------------------------------------------------------------------------- /19/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/message/update/route.ts -------------------------------------------------------------------------------- /19/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/api/test/route.ts -------------------------------------------------------------------------------- /19/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/chat/layout.tsx -------------------------------------------------------------------------------- /19/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/chat/page.tsx -------------------------------------------------------------------------------- /19/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/favicon.ico -------------------------------------------------------------------------------- /19/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/layout.tsx -------------------------------------------------------------------------------- /19/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/app/page.tsx -------------------------------------------------------------------------------- /19/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/common/util.ts -------------------------------------------------------------------------------- /19/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/AppContext.tsx -------------------------------------------------------------------------------- /19/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/EventBusContext.tsx -------------------------------------------------------------------------------- /19/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/common/Button.tsx -------------------------------------------------------------------------------- /19/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/common/Markdown.tsx -------------------------------------------------------------------------------- /19/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /19/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /19/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /19/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /19/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /19/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /19/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Main/index.tsx -------------------------------------------------------------------------------- /19/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /19/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /19/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /19/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /19/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /19/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/data/examples.json -------------------------------------------------------------------------------- /19/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/lib/prisma.ts -------------------------------------------------------------------------------- /19/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/next.config.js -------------------------------------------------------------------------------- /19/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/package-lock.json -------------------------------------------------------------------------------- /19/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/package.json -------------------------------------------------------------------------------- /19/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/postcss.config.js -------------------------------------------------------------------------------- /19/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /19/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /19/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /19/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/prisma/schema.prisma -------------------------------------------------------------------------------- /19/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/public/images/new-tab.png -------------------------------------------------------------------------------- /19/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/public/next.svg -------------------------------------------------------------------------------- /19/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/public/vercel.svg -------------------------------------------------------------------------------- /19/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/reducers/AppReducer.ts -------------------------------------------------------------------------------- /19/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/styles/globals.css -------------------------------------------------------------------------------- /19/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/styles/markdown.css -------------------------------------------------------------------------------- /19/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/tailwind.config.js -------------------------------------------------------------------------------- /19/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/tsconfig.json -------------------------------------------------------------------------------- /19/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/19/types/chat.d.ts -------------------------------------------------------------------------------- /20/.env.development: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/.env.development -------------------------------------------------------------------------------- /20/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /20/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/.gitignore -------------------------------------------------------------------------------- /20/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/README.md -------------------------------------------------------------------------------- /20/app/api/chat/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/chat/delete/route.ts -------------------------------------------------------------------------------- /20/app/api/chat/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/chat/list/route.ts -------------------------------------------------------------------------------- /20/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/chat/route.ts -------------------------------------------------------------------------------- /20/app/api/chat/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/chat/update/route.ts -------------------------------------------------------------------------------- /20/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /20/app/api/message/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/message/list/route.ts -------------------------------------------------------------------------------- /20/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/message/update/route.ts -------------------------------------------------------------------------------- /20/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/api/test/route.ts -------------------------------------------------------------------------------- /20/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/chat/layout.tsx -------------------------------------------------------------------------------- /20/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/chat/page.tsx -------------------------------------------------------------------------------- /20/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/favicon.ico -------------------------------------------------------------------------------- /20/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/layout.tsx -------------------------------------------------------------------------------- /20/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/app/page.tsx -------------------------------------------------------------------------------- /20/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/common/util.ts -------------------------------------------------------------------------------- /20/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/AppContext.tsx -------------------------------------------------------------------------------- /20/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/EventBusContext.tsx -------------------------------------------------------------------------------- /20/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/common/Button.tsx -------------------------------------------------------------------------------- /20/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/common/Markdown.tsx -------------------------------------------------------------------------------- /20/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /20/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /20/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /20/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /20/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /20/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /20/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Main/index.tsx -------------------------------------------------------------------------------- /20/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /20/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /20/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /20/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /20/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /20/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/data/examples.json -------------------------------------------------------------------------------- /20/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/doc.md -------------------------------------------------------------------------------- /20/lib/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/lib/openai.ts -------------------------------------------------------------------------------- /20/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/lib/prisma.ts -------------------------------------------------------------------------------- /20/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/next.config.js -------------------------------------------------------------------------------- /20/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/package-lock.json -------------------------------------------------------------------------------- /20/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/package.json -------------------------------------------------------------------------------- /20/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/postcss.config.js -------------------------------------------------------------------------------- /20/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /20/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /20/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /20/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/prisma/schema.prisma -------------------------------------------------------------------------------- /20/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/public/images/new-tab.png -------------------------------------------------------------------------------- /20/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/public/next.svg -------------------------------------------------------------------------------- /20/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/public/vercel.svg -------------------------------------------------------------------------------- /20/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/reducers/AppReducer.ts -------------------------------------------------------------------------------- /20/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/styles/globals.css -------------------------------------------------------------------------------- /20/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/styles/markdown.css -------------------------------------------------------------------------------- /20/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/tailwind.config.js -------------------------------------------------------------------------------- /20/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/tsconfig.json -------------------------------------------------------------------------------- /20/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/20/types/chat.d.ts -------------------------------------------------------------------------------- /21/.env.development: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/.env.development -------------------------------------------------------------------------------- /21/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /21/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/.gitignore -------------------------------------------------------------------------------- /21/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/README.md -------------------------------------------------------------------------------- /21/app/api/chat/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/chat/delete/route.ts -------------------------------------------------------------------------------- /21/app/api/chat/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/chat/list/route.ts -------------------------------------------------------------------------------- /21/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/chat/route.ts -------------------------------------------------------------------------------- /21/app/api/chat/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/chat/update/route.ts -------------------------------------------------------------------------------- /21/app/api/message/delete/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/message/delete/route.ts -------------------------------------------------------------------------------- /21/app/api/message/list/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/message/list/route.ts -------------------------------------------------------------------------------- /21/app/api/message/update/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/message/update/route.ts -------------------------------------------------------------------------------- /21/app/api/test/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/api/test/route.ts -------------------------------------------------------------------------------- /21/app/chat/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/chat/layout.tsx -------------------------------------------------------------------------------- /21/app/chat/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/chat/page.tsx -------------------------------------------------------------------------------- /21/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/favicon.ico -------------------------------------------------------------------------------- /21/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/layout.tsx -------------------------------------------------------------------------------- /21/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/app/page.tsx -------------------------------------------------------------------------------- /21/common/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/common/util.ts -------------------------------------------------------------------------------- /21/components/AppContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/AppContext.tsx -------------------------------------------------------------------------------- /21/components/EventBusContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/EventBusContext.tsx -------------------------------------------------------------------------------- /21/components/common/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/common/Button.tsx -------------------------------------------------------------------------------- /21/components/common/Markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/common/Markdown.tsx -------------------------------------------------------------------------------- /21/components/home/Main/ChatInput.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/ChatInput.tsx -------------------------------------------------------------------------------- /21/components/home/Main/Example.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/Example.tsx -------------------------------------------------------------------------------- /21/components/home/Main/Menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/Menu.tsx -------------------------------------------------------------------------------- /21/components/home/Main/MessageList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/MessageList.tsx -------------------------------------------------------------------------------- /21/components/home/Main/ModelSelect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/ModelSelect.tsx -------------------------------------------------------------------------------- /21/components/home/Main/Welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/Welcome.tsx -------------------------------------------------------------------------------- /21/components/home/Main/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Main/index.tsx -------------------------------------------------------------------------------- /21/components/home/Navigation/ChatItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Navigation/ChatItem.tsx -------------------------------------------------------------------------------- /21/components/home/Navigation/ChatList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Navigation/ChatList.tsx -------------------------------------------------------------------------------- /21/components/home/Navigation/Menubar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Navigation/Menubar.tsx -------------------------------------------------------------------------------- /21/components/home/Navigation/Toolbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Navigation/Toolbar.tsx -------------------------------------------------------------------------------- /21/components/home/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/components/home/Navigation/index.tsx -------------------------------------------------------------------------------- /21/data/examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/data/examples.json -------------------------------------------------------------------------------- /21/doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/doc.md -------------------------------------------------------------------------------- /21/lib/openai.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/lib/openai.ts -------------------------------------------------------------------------------- /21/lib/prisma.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/lib/prisma.ts -------------------------------------------------------------------------------- /21/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/next.config.js -------------------------------------------------------------------------------- /21/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/package-lock.json -------------------------------------------------------------------------------- /21/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/package.json -------------------------------------------------------------------------------- /21/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/postcss.config.js -------------------------------------------------------------------------------- /21/prisma/chatgpt-app.sqlite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/prisma/chatgpt-app.sqlite -------------------------------------------------------------------------------- /21/prisma/migrations/20230914084314_init/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/prisma/migrations/20230914084314_init/migration.sql -------------------------------------------------------------------------------- /21/prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /21/prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/prisma/schema.prisma -------------------------------------------------------------------------------- /21/public/images/new-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/public/images/new-tab.png -------------------------------------------------------------------------------- /21/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/public/next.svg -------------------------------------------------------------------------------- /21/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/public/vercel.svg -------------------------------------------------------------------------------- /21/reducers/AppReducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/reducers/AppReducer.ts -------------------------------------------------------------------------------- /21/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/styles/globals.css -------------------------------------------------------------------------------- /21/styles/markdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/styles/markdown.css -------------------------------------------------------------------------------- /21/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/tailwind.config.js -------------------------------------------------------------------------------- /21/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/tsconfig.json -------------------------------------------------------------------------------- /21/types/chat.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/types/chat.d.ts -------------------------------------------------------------------------------- /21/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/21/yarn.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhixingxiaoke/react-hands-on-tutorial-for-beginners/HEAD/README.md --------------------------------------------------------------------------------