├── .env.sample ├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── art └── screens.png ├── components.json ├── db.json ├── drizzle.config.ts ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.mjs ├── public ├── next.svg ├── placeholder.svg └── vercel.svg ├── src ├── app │ ├── [locale] │ │ ├── [id] │ │ │ ├── delete │ │ │ │ ├── action.tsx │ │ │ │ ├── form.tsx │ │ │ │ └── page.tsx │ │ │ ├── edit │ │ │ │ ├── action.tsx │ │ │ │ ├── form.tsx │ │ │ │ └── page.tsx │ │ │ └── page.tsx │ │ ├── admin │ │ │ └── page.tsx │ │ ├── globals.css │ │ ├── layout.tsx │ │ ├── loaders.ts │ │ ├── main-layout.tsx │ │ ├── new │ │ │ ├── action.tsx │ │ │ ├── form.tsx │ │ │ └── page.tsx │ │ ├── page.tsx │ │ ├── pokemon-list-item.tsx │ │ ├── pokemons.tsx │ │ ├── register │ │ │ ├── action.tsx │ │ │ ├── form.tsx │ │ │ └── page.tsx │ │ ├── signIn │ │ │ ├── action.tsx │ │ │ ├── form.tsx │ │ │ └── page.tsx │ │ └── signOut │ │ │ └── action.ts │ ├── api │ │ └── auth │ │ │ └── [...nextauth] │ │ │ └── route.ts │ ├── favicon.ico │ └── i18n.ts ├── auth.ts ├── components │ ├── LanguageChanger.tsx │ ├── SignInMenuItem.tsx │ ├── SignOutMenuItem.tsx │ ├── ThemeToggleButton.tsx │ ├── TranslationsProvider.tsx │ └── ui │ │ ├── button.tsx │ │ ├── card.tsx │ │ ├── checkbox.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── select.tsx │ │ └── sheet.tsx ├── context │ └── NextAuthProvider.tsx ├── db │ ├── index.ts │ ├── migrations │ │ ├── 0000_amused_stephen_strange.sql │ │ └── meta │ │ │ ├── 0000_snapshot.json │ │ │ └── _journal.json │ ├── schema │ │ ├── index.ts │ │ ├── pokemons.ts │ │ └── users.ts │ └── seed.ts ├── env.mjs ├── i18nConfig.ts ├── lib │ └── utils.ts ├── locales │ ├── en-US │ │ ├── delete.json │ │ ├── edit.json │ │ ├── main-layout.json │ │ ├── new.json │ │ ├── pokemons.json │ │ ├── register.json │ │ └── signIn.json │ └── tr-TR │ │ ├── delete.json │ │ ├── edit.json │ │ ├── main-layout.json │ │ ├── new.json │ │ ├── pokemons.json │ │ ├── register.json │ │ └── signIn.json ├── middleware.ts └── theme │ └── ThemeProvider.tsx ├── tailwind.config.ts └── tsconfig.json /.env.sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/.env.sample -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/README.md -------------------------------------------------------------------------------- /art/screens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/art/screens.png -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/components.json -------------------------------------------------------------------------------- /db.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/db.json -------------------------------------------------------------------------------- /drizzle.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/drizzle.config.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/placeholder.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/public/placeholder.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/[locale]/[id]/delete/action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/delete/action.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/delete/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/delete/form.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/delete/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/delete/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/edit/action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/edit/action.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/edit/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/edit/form.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/edit/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/edit/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/admin/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/admin/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/globals.css -------------------------------------------------------------------------------- /src/app/[locale]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/layout.tsx -------------------------------------------------------------------------------- /src/app/[locale]/loaders.ts: -------------------------------------------------------------------------------- 1 | export const API_URL = "http://localhost:3001"; 2 | -------------------------------------------------------------------------------- /src/app/[locale]/main-layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/main-layout.tsx -------------------------------------------------------------------------------- /src/app/[locale]/new/action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/new/action.tsx -------------------------------------------------------------------------------- /src/app/[locale]/new/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/new/form.tsx -------------------------------------------------------------------------------- /src/app/[locale]/new/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/new/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/pokemon-list-item.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/pokemon-list-item.tsx -------------------------------------------------------------------------------- /src/app/[locale]/pokemons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/pokemons.tsx -------------------------------------------------------------------------------- /src/app/[locale]/register/action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/register/action.tsx -------------------------------------------------------------------------------- /src/app/[locale]/register/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/register/form.tsx -------------------------------------------------------------------------------- /src/app/[locale]/register/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/register/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/signIn/action.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/signIn/action.tsx -------------------------------------------------------------------------------- /src/app/[locale]/signIn/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/signIn/form.tsx -------------------------------------------------------------------------------- /src/app/[locale]/signIn/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/signIn/page.tsx -------------------------------------------------------------------------------- /src/app/[locale]/signOut/action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/[locale]/signOut/action.ts -------------------------------------------------------------------------------- /src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/app/i18n.ts -------------------------------------------------------------------------------- /src/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/auth.ts -------------------------------------------------------------------------------- /src/components/LanguageChanger.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/LanguageChanger.tsx -------------------------------------------------------------------------------- /src/components/SignInMenuItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/SignInMenuItem.tsx -------------------------------------------------------------------------------- /src/components/SignOutMenuItem.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/SignOutMenuItem.tsx -------------------------------------------------------------------------------- /src/components/ThemeToggleButton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ThemeToggleButton.tsx -------------------------------------------------------------------------------- /src/components/TranslationsProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/TranslationsProvider.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/card.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/card.tsx -------------------------------------------------------------------------------- /src/components/ui/checkbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/checkbox.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/context/NextAuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/context/NextAuthProvider.tsx -------------------------------------------------------------------------------- /src/db/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/index.ts -------------------------------------------------------------------------------- /src/db/migrations/0000_amused_stephen_strange.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/migrations/0000_amused_stephen_strange.sql -------------------------------------------------------------------------------- /src/db/migrations/meta/0000_snapshot.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/migrations/meta/0000_snapshot.json -------------------------------------------------------------------------------- /src/db/migrations/meta/_journal.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/migrations/meta/_journal.json -------------------------------------------------------------------------------- /src/db/schema/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/schema/index.ts -------------------------------------------------------------------------------- /src/db/schema/pokemons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/schema/pokemons.ts -------------------------------------------------------------------------------- /src/db/schema/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/schema/users.ts -------------------------------------------------------------------------------- /src/db/seed.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/db/seed.ts -------------------------------------------------------------------------------- /src/env.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/env.mjs -------------------------------------------------------------------------------- /src/i18nConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/i18nConfig.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/locales/en-US/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/delete.json -------------------------------------------------------------------------------- /src/locales/en-US/edit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/edit.json -------------------------------------------------------------------------------- /src/locales/en-US/main-layout.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/main-layout.json -------------------------------------------------------------------------------- /src/locales/en-US/new.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/new.json -------------------------------------------------------------------------------- /src/locales/en-US/pokemons.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/pokemons.json -------------------------------------------------------------------------------- /src/locales/en-US/register.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/register.json -------------------------------------------------------------------------------- /src/locales/en-US/signIn.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/en-US/signIn.json -------------------------------------------------------------------------------- /src/locales/tr-TR/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/delete.json -------------------------------------------------------------------------------- /src/locales/tr-TR/edit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/edit.json -------------------------------------------------------------------------------- /src/locales/tr-TR/main-layout.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/main-layout.json -------------------------------------------------------------------------------- /src/locales/tr-TR/new.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/new.json -------------------------------------------------------------------------------- /src/locales/tr-TR/pokemons.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/pokemons.json -------------------------------------------------------------------------------- /src/locales/tr-TR/register.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/register.json -------------------------------------------------------------------------------- /src/locales/tr-TR/signIn.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/locales/tr-TR/signIn.json -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/theme/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/src/theme/ThemeProvider.tsx -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ozcanzaferayan/next-workshop/HEAD/tsconfig.json --------------------------------------------------------------------------------