diff --git a/webapp/src/actions/todo.ts b/webapp/src/app/(root)/actions.ts similarity index 98% rename from webapp/src/actions/todo.ts rename to webapp/src/app/(root)/actions.ts index 0d0e0c2..22d7b85 100644 --- a/webapp/src/actions/todo.ts +++ b/webapp/src/app/(root)/actions.ts @@ -7,7 +7,7 @@ import { runTranslateJobSchema, updateTodoSchema, updateTodoStatusSchema, -} from './schemas/todo'; +} from './schemas'; import { prisma } from '@/lib/prisma'; import { revalidatePath } from 'next/cache'; import { TodoItemStatus } from '@prisma/client'; diff --git a/webapp/src/components/CreateTodoForm.tsx b/webapp/src/app/(root)/components/CreateTodoForm.tsx similarity index 97% rename from webapp/src/components/CreateTodoForm.tsx rename to webapp/src/app/(root)/components/CreateTodoForm.tsx index 023562a..ed6ea6c 100644 --- a/webapp/src/components/CreateTodoForm.tsx +++ b/webapp/src/app/(root)/components/CreateTodoForm.tsx @@ -3,8 +3,8 @@ import { useState } from 'react'; import { zodResolver } from '@hookform/resolvers/zod'; import { useHookFormAction } from '@next-safe-action/adapter-react-hook-form/hooks'; -import { createTodo } from '@/actions/todo'; -import { createTodoSchema } from '@/actions/schemas/todo'; +import { createTodo } from '../actions'; +import { createTodoSchema } from '../schemas'; import { toast } from 'sonner'; import { useEventBus } from '@/hooks/use-event-bus'; import { useRouter } from 'next/navigation'; diff --git a/webapp/src/components/TodoItem.tsx b/webapp/src/app/(root)/components/TodoItem.tsx similarity index 98% rename from webapp/src/components/TodoItem.tsx rename to webapp/src/app/(root)/components/TodoItem.tsx index aebb498..d14d4c0 100644 --- a/webapp/src/components/TodoItem.tsx +++ b/webapp/src/app/(root)/components/TodoItem.tsx @@ -4,8 +4,8 @@ import { TodoItem, TodoItemStatus } from '@prisma/client'; import { useState } from 'react'; import { useHookFormAction } from '@next-safe-action/adapter-react-hook-form/hooks'; import { zodResolver } from '@hookform/resolvers/zod'; -import { updateTodo, deleteTodo, updateTodoStatus, runTranslateJob } from '@/actions/todo'; -import { updateTodoSchema } from '@/actions/schemas/todo'; +import { updateTodo, deleteTodo, updateTodoStatus, runTranslateJob } from '../actions'; +import { updateTodoSchema } from '../schemas'; import { useAction } from 'next-safe-action/hooks'; import { toast } from 'sonner'; diff --git a/webapp/src/app/page.tsx b/webapp/src/app/(root)/page.tsx similarity index 94% rename from webapp/src/app/page.tsx rename to webapp/src/app/(root)/page.tsx index 125ec02..2bd439b 100644 --- a/webapp/src/app/page.tsx +++ b/webapp/src/app/(root)/page.tsx @@ -1,7 +1,7 @@ import { prisma } from '@/lib/prisma'; import { getSession } from '@/lib/auth'; -import TodoItemComponent from '@/components/TodoItem'; -import CreateTodoForm from '@/components/CreateTodoForm'; +import TodoItemComponent from './components/TodoItem'; +import CreateTodoForm from './components/CreateTodoForm'; import { TodoItemStatus } from '@prisma/client'; import Header from '@/components/Header'; diff --git a/webapp/src/actions/schemas/todo.ts b/webapp/src/app/(root)/schemas.ts similarity index 100% rename from webapp/src/actions/schemas/todo.ts rename to webapp/src/app/(root)/schemas.ts