mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-05-06 05:38:51 +00:00
feat: 批量转移服务器给其他用户
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { swrFetcher } from "@/api/api"
|
||||
import { deleteServer, forceUpdateServer } from "@/api/server"
|
||||
import { ActionButtonGroup } from "@/components/action-button-group"
|
||||
import { BatchMoveServerIcon } from "@/components/batch-move-server-icon"
|
||||
import { CopyButton } from "@/components/copy-button"
|
||||
import { HeaderButtonGroup } from "@/components/header-button-group"
|
||||
import { InstallCommandsMenu } from "@/components/install-commands"
|
||||
@@ -213,6 +214,7 @@ export default function ServerPage() {
|
||||
})
|
||||
}}
|
||||
/>
|
||||
<BatchMoveServerIcon serverIds={selectedRows.map((r) => r.original.id)} />
|
||||
<ServerConfigCardBatch
|
||||
sid={selectedRows.map((r) => r.original.id)}
|
||||
className="shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] bg-yellow-600 text-white hover:bg-yellow-500 dark:hover:bg-yellow-700 rounded-lg"
|
||||
|
||||
@@ -74,6 +74,11 @@ export default function UserPage() {
|
||||
return row.role === 1 ? t("User") : t("Admin")
|
||||
},
|
||||
},
|
||||
{
|
||||
header: t("LastLogin"),
|
||||
accessorKey: "updated_at",
|
||||
accessorFn: (row) => row.updated_at ? new Date(row.updated_at).toLocaleString() : t("Never"),
|
||||
},
|
||||
{
|
||||
id: "actions",
|
||||
header: t("Actions"),
|
||||
|
||||
Reference in New Issue
Block a user