improve: replace long line of words with clipboard button (#95)

* improve: replace long line of words with clipboard button

* change module path
This commit is contained in:
UUBulb
2025-01-06 21:02:39 +08:00
committed by GitHub
parent b643a5d86f
commit a45e789178
7 changed files with 64 additions and 9 deletions
+9
View File
@@ -1,6 +1,7 @@
import { swrFetcher } from "@/api/api"
import { deleteServer, forceUpdateServer } from "@/api/server"
import { ActionButtonGroup } from "@/components/action-button-group"
import { CopyButton } from "@/components/copy-button"
import { HeaderButtonGroup } from "@/components/header-button-group"
import { InstallCommandsMenu } from "@/components/install-commands"
import { NoteMenu } from "@/components/note-menu"
@@ -121,6 +122,14 @@ export default function ServerPage() {
return <NoteMenu note={{ private: s.note, public: s.public_note }} />
},
},
{
id: "uuid",
header: "UUID",
cell: ({ row }) => {
const s = row.original
return <CopyButton text={s.uuid} />
},
},
{
id: "actions",
header: t("Actions"),