├── .eslintrc.json ├── .gitignore ├── README.md ├── components.json ├── data └── users.json ├── next.config.mjs ├── package.json ├── postcss.config.mjs ├── public ├── next.svg └── vercel.svg ├── src ├── app │ ├── actions │ │ └── actions.ts │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ ├── page.tsx │ └── users │ │ ├── @modal │ │ ├── (.)edit │ │ │ └── [id] │ │ │ │ └── page.tsx │ │ └── default.tsx │ │ ├── UserRow.tsx │ │ ├── edit │ │ └── [id] │ │ │ ├── UserForm.tsx │ │ │ ├── UserForm1.tsx │ │ │ ├── UserForm2.tsx │ │ │ └── page.tsx │ │ ├── layout.tsx │ │ └── page.tsx ├── components │ ├── AlertConfirmation.tsx │ ├── DisplayServerActionResponse.tsx │ ├── InputWithLabel.tsx │ ├── Modal.tsx │ └── ui │ │ ├── alert-dialog.tsx │ │ ├── button.tsx │ │ ├── dialog.tsx │ │ ├── form.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── table.tsx │ │ ├── toast.tsx │ │ ├── toaster.tsx │ │ └── use-toast.ts ├── lib │ ├── getUser.ts │ ├── getUsers.ts │ ├── safe-action.ts │ └── utils.ts └── schemas │ └── User.ts ├── tailwind.config.ts └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/README.md -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/components.json -------------------------------------------------------------------------------- /data/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/data/users.json -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/postcss.config.mjs -------------------------------------------------------------------------------- /public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/public/next.svg -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /src/app/actions/actions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/actions/actions.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/app/users/@modal/(.)edit/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/@modal/(.)edit/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/users/@modal/default.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/@modal/default.tsx -------------------------------------------------------------------------------- /src/app/users/UserRow.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/UserRow.tsx -------------------------------------------------------------------------------- /src/app/users/edit/[id]/UserForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/edit/[id]/UserForm.tsx -------------------------------------------------------------------------------- /src/app/users/edit/[id]/UserForm1.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/edit/[id]/UserForm1.tsx -------------------------------------------------------------------------------- /src/app/users/edit/[id]/UserForm2.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/edit/[id]/UserForm2.tsx -------------------------------------------------------------------------------- /src/app/users/edit/[id]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/edit/[id]/page.tsx -------------------------------------------------------------------------------- /src/app/users/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/layout.tsx -------------------------------------------------------------------------------- /src/app/users/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/app/users/page.tsx -------------------------------------------------------------------------------- /src/components/AlertConfirmation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/AlertConfirmation.tsx -------------------------------------------------------------------------------- /src/components/DisplayServerActionResponse.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/DisplayServerActionResponse.tsx -------------------------------------------------------------------------------- /src/components/InputWithLabel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/InputWithLabel.tsx -------------------------------------------------------------------------------- /src/components/Modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/Modal.tsx -------------------------------------------------------------------------------- /src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/form.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/table.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/table.tsx -------------------------------------------------------------------------------- /src/components/ui/toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/toast.tsx -------------------------------------------------------------------------------- /src/components/ui/toaster.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/toaster.tsx -------------------------------------------------------------------------------- /src/components/ui/use-toast.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/components/ui/use-toast.ts -------------------------------------------------------------------------------- /src/lib/getUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/lib/getUser.ts -------------------------------------------------------------------------------- /src/lib/getUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/lib/getUsers.ts -------------------------------------------------------------------------------- /src/lib/safe-action.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/lib/safe-action.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/schemas/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/src/schemas/User.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gitdagray/nextjs-toast-notifications/HEAD/tsconfig.json --------------------------------------------------------------------------------