- store records in SQLite via built-in node:sqlite, no native deps - wrap DB reads in await io() so they stay out of the static shell - add CRUD pages backed by Server Actions with per-request data - generate managed config and restart container via Docker socket - add /resolve page to query dnsmasq for A and CNAME records - add Dockerfile and compose setup with shared config volume
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
"use client"
|
|
|
|
export function DeleteButton() {
|
|
return (
|
|
<button
|
|
type="submit"
|
|
onClick={(event) => {
|
|
if (!window.confirm("确定要删除这条记录吗?")) event.preventDefault()
|
|
}}
|
|
className="text-sm text-red-600 transition-opacity hover:opacity-70 dark:text-red-400">
|
|
删除
|
|
</button>
|
|
)
|
|
}
|