REFACTOR(repo): simplify project structure

- Move services/nextjs to nextjs/
- Move deploy/docker/Dockerfile.prod to Dockerfile
- Add GitHub Actions workflows (ci.yml, build.yml)
- Remove deploy/, services/, scripts/ folders
This commit is contained in:
2026-01-05 02:29:10 +09:00
commit e82ea71c22
205 changed files with 21304 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
'use client'
import { TodoItem } from './TodoItem'
import { useTodoStore, useFilteredTodos } from '../model/store'
import { Spinner } from '@/shared/ui/spinner'
export function TodoList() {
const { updateTodo, deleteTodo, toggleTodo, isLoading, error } = useTodoStore()
const filteredTodos = useFilteredTodos()
if (isLoading) {
return (
<div className="flex items-center justify-center p-8">
<Spinner />
</div>
)
}
if (error) {
return (
<div className="text-center p-8 text-destructive">
{error}
</div>
)
}
if (filteredTodos.length === 0) {
return (
<div className="text-center p-8 text-muted-foreground">
</div>
)
}
const handleUpdate = async (id: string, title: string, description?: string) => {
await updateTodo(id, { title, description })
}
return (
<div className="flex flex-col gap-2">
{filteredTodos.map((todo) => (
<TodoItem
key={todo.id}
todo={todo}
onToggle={toggleTodo}
onDelete={deleteTodo}
onUpdate={handleUpdate}
/>
))}
</div>
)
}