├── .eslintrc.json ├── .gitignore ├── README.md ├── db.json ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── components │ │ ├── AddTodo.tsx │ │ ├── Navbar.tsx │ │ ├── Todo.tsx │ │ ├── TodoList.tsx │ │ └── UpdateCheckbox.tsx │ ├── edit │ │ └── [id] │ │ │ ├── not-found.tsx │ │ │ └── page.tsx │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx └── lib │ ├── actions.ts │ ├── fetchTodo.ts │ └── fetchTodos.ts ├── tailwind.config.js ├── tsconfig.json └── types.d.ts /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/README.md -------------------------------------------------------------------------------- /db.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/db.json -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/components/AddTodo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/components/AddTodo.tsx -------------------------------------------------------------------------------- /src/app/components/Navbar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/components/Navbar.tsx -------------------------------------------------------------------------------- /src/app/components/Todo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/components/Todo.tsx -------------------------------------------------------------------------------- /src/app/components/TodoList.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/components/TodoList.tsx -------------------------------------------------------------------------------- /src/app/components/UpdateCheckbox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/components/UpdateCheckbox.tsx -------------------------------------------------------------------------------- /src/app/edit/[id]/not-found.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/edit/[id]/not-found.tsx -------------------------------------------------------------------------------- /src/app/edit/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/edit/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/lib/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/lib/actions.ts -------------------------------------------------------------------------------- /src/lib/fetchTodo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/lib/fetchTodo.ts -------------------------------------------------------------------------------- /src/lib/fetchTodos.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/src/lib/fetchTodos.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-server-actions/HEAD/types.d.ts --------------------------------------------------------------------------------