├── .gitignore ├── finished ├── .eslintrc.json ├── .gitignore ├── DR-README.md ├── README.md ├── components.json ├── declarative-routing.config.json ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public │ ├── next.svg │ └── vercel.svg ├── revert ├── src │ ├── app │ │ ├── api │ │ │ └── pokemon │ │ │ │ ├── [pokemonId] │ │ │ │ ├── route.info.ts │ │ │ │ └── route.ts │ │ │ │ ├── route.info.ts │ │ │ │ └── route.ts │ │ ├── components │ │ │ ├── PokemonCard.tsx │ │ │ ├── PokemonGrid.tsx │ │ │ ├── PokemonInfo.tsx │ │ │ └── SelectableGrid.tsx │ │ ├── favicon.ico │ │ ├── globals.css │ │ ├── layout.tsx │ │ ├── page.info.ts │ │ ├── page.tsx │ │ ├── pokemon │ │ │ └── [pokemonId] │ │ │ │ ├── page.info.ts │ │ │ │ └── page.tsx │ │ └── search │ │ │ ├── SearchList.tsx │ │ │ ├── page.info.ts │ │ │ └── page.tsx │ ├── components │ │ └── ui │ │ │ └── input.tsx │ ├── lib │ │ └── utils.ts │ ├── pokemon.ts │ ├── routes │ │ ├── index.ts │ │ └── makeRoute.tsx │ └── types.ts ├── tailwind.config.ts └── tsconfig.json └── starter ├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── next.config.mjs ├── package.json ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── revert ├── src ├── app │ ├── api │ │ └── pokemon │ │ │ ├── [pokemonId] │ │ │ └── route.ts │ │ │ └── route.ts │ ├── components │ │ ├── PokemonCard.tsx │ │ ├── PokemonGrid.tsx │ │ ├── PokemonInfo.tsx │ │ └── SelectableGrid.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ ├── pokemon │ │ └── [pokemonId] │ │ │ └── page.tsx │ └── search │ │ ├── SearchList.tsx │ │ └── page.tsx ├── components │ └── ui │ │ └── input.tsx ├── lib │ └── utils.ts ├── pokemon.ts └── types.ts ├── tailwind.config.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/.gitignore -------------------------------------------------------------------------------- /finished/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /finished/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/.gitignore -------------------------------------------------------------------------------- /finished/DR-README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/DR-README.md -------------------------------------------------------------------------------- /finished/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/README.md -------------------------------------------------------------------------------- /finished/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/components.json -------------------------------------------------------------------------------- /finished/declarative-routing.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/declarative-routing.config.json -------------------------------------------------------------------------------- /finished/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/next.config.mjs -------------------------------------------------------------------------------- /finished/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/package.json -------------------------------------------------------------------------------- /finished/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/pnpm-lock.yaml -------------------------------------------------------------------------------- /finished/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/postcss.config.js -------------------------------------------------------------------------------- /finished/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/public/next.svg -------------------------------------------------------------------------------- /finished/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/public/vercel.svg -------------------------------------------------------------------------------- /finished/revert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/revert -------------------------------------------------------------------------------- /finished/src/app/api/pokemon/[pokemonId]/route.info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/api/pokemon/[pokemonId]/route.info.ts -------------------------------------------------------------------------------- /finished/src/app/api/pokemon/[pokemonId]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/api/pokemon/[pokemonId]/route.ts -------------------------------------------------------------------------------- /finished/src/app/api/pokemon/route.info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/api/pokemon/route.info.ts -------------------------------------------------------------------------------- /finished/src/app/api/pokemon/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/api/pokemon/route.ts -------------------------------------------------------------------------------- /finished/src/app/components/PokemonCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/components/PokemonCard.tsx -------------------------------------------------------------------------------- /finished/src/app/components/PokemonGrid.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/components/PokemonGrid.tsx -------------------------------------------------------------------------------- /finished/src/app/components/PokemonInfo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/components/PokemonInfo.tsx -------------------------------------------------------------------------------- /finished/src/app/components/SelectableGrid.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/components/SelectableGrid.tsx -------------------------------------------------------------------------------- /finished/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/favicon.ico -------------------------------------------------------------------------------- /finished/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/globals.css -------------------------------------------------------------------------------- /finished/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/layout.tsx -------------------------------------------------------------------------------- /finished/src/app/page.info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/page.info.ts -------------------------------------------------------------------------------- /finished/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/page.tsx -------------------------------------------------------------------------------- /finished/src/app/pokemon/[pokemonId]/page.info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/pokemon/[pokemonId]/page.info.ts -------------------------------------------------------------------------------- /finished/src/app/pokemon/[pokemonId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/pokemon/[pokemonId]/page.tsx -------------------------------------------------------------------------------- /finished/src/app/search/SearchList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/search/SearchList.tsx -------------------------------------------------------------------------------- /finished/src/app/search/page.info.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/search/page.info.ts -------------------------------------------------------------------------------- /finished/src/app/search/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/app/search/page.tsx -------------------------------------------------------------------------------- /finished/src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/components/ui/input.tsx -------------------------------------------------------------------------------- /finished/src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/lib/utils.ts -------------------------------------------------------------------------------- /finished/src/pokemon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/pokemon.ts -------------------------------------------------------------------------------- /finished/src/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/routes/index.ts -------------------------------------------------------------------------------- /finished/src/routes/makeRoute.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/routes/makeRoute.tsx -------------------------------------------------------------------------------- /finished/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/src/types.ts -------------------------------------------------------------------------------- /finished/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/tailwind.config.ts -------------------------------------------------------------------------------- /finished/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/finished/tsconfig.json -------------------------------------------------------------------------------- /starter/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /starter/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/.gitignore -------------------------------------------------------------------------------- /starter/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/README.md -------------------------------------------------------------------------------- /starter/components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/components.json -------------------------------------------------------------------------------- /starter/next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/next.config.mjs -------------------------------------------------------------------------------- /starter/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/package.json -------------------------------------------------------------------------------- /starter/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/pnpm-lock.yaml -------------------------------------------------------------------------------- /starter/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/postcss.config.js -------------------------------------------------------------------------------- /starter/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/public/next.svg -------------------------------------------------------------------------------- /starter/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/public/vercel.svg -------------------------------------------------------------------------------- /starter/revert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/revert -------------------------------------------------------------------------------- /starter/src/app/api/pokemon/[pokemonId]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/api/pokemon/[pokemonId]/route.ts -------------------------------------------------------------------------------- /starter/src/app/api/pokemon/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/api/pokemon/route.ts -------------------------------------------------------------------------------- /starter/src/app/components/PokemonCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/components/PokemonCard.tsx -------------------------------------------------------------------------------- /starter/src/app/components/PokemonGrid.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/components/PokemonGrid.tsx -------------------------------------------------------------------------------- /starter/src/app/components/PokemonInfo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/components/PokemonInfo.tsx -------------------------------------------------------------------------------- /starter/src/app/components/SelectableGrid.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/components/SelectableGrid.tsx -------------------------------------------------------------------------------- /starter/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/favicon.ico -------------------------------------------------------------------------------- /starter/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/globals.css -------------------------------------------------------------------------------- /starter/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/layout.tsx -------------------------------------------------------------------------------- /starter/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/page.tsx -------------------------------------------------------------------------------- /starter/src/app/pokemon/[pokemonId]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/pokemon/[pokemonId]/page.tsx -------------------------------------------------------------------------------- /starter/src/app/search/SearchList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/search/SearchList.tsx -------------------------------------------------------------------------------- /starter/src/app/search/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/app/search/page.tsx -------------------------------------------------------------------------------- /starter/src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/components/ui/input.tsx -------------------------------------------------------------------------------- /starter/src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/lib/utils.ts -------------------------------------------------------------------------------- /starter/src/pokemon.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/pokemon.ts -------------------------------------------------------------------------------- /starter/src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/src/types.ts -------------------------------------------------------------------------------- /starter/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/tailwind.config.ts -------------------------------------------------------------------------------- /starter/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jherr/nextjs-declarative-routing/HEAD/starter/tsconfig.json --------------------------------------------------------------------------------