mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
一点点优化
This commit is contained in:
parent
9286624ea2
commit
ff7ecbf3b9
@ -10,6 +10,7 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
notification,
|
notification,
|
||||||
Popconfirm,
|
Popconfirm,
|
||||||
|
Checkbox,
|
||||||
} from "antd";
|
} from "antd";
|
||||||
import type { GetRef, TableColumnsType } from "antd";
|
import type { GetRef, TableColumnsType } from "antd";
|
||||||
// import { headers } from 'next/headers'
|
// import { headers } from 'next/headers'
|
||||||
@ -187,6 +188,18 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
|
|||||||
dataIndex: "updatedAt",
|
dataIndex: "updatedAt",
|
||||||
render: (value) => getCurrentTime(new Date(value)),
|
render: (value) => getCurrentTime(new Date(value)),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "allowToLogin",
|
||||||
|
dataIndex: "allowToLogin",
|
||||||
|
width: 120,
|
||||||
|
render: (value) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Checkbox defaultChecked={value} disabled></Checkbox>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Action",
|
title: "Action",
|
||||||
dataIndex: "",
|
dataIndex: "",
|
||||||
@ -195,7 +208,8 @@ function UsersTable({ users, setUsers, loading }: UserInterface) {
|
|||||||
<Space size="middle">
|
<Space size="middle">
|
||||||
{contextHolder}
|
{contextHolder}
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="输入新密码"
|
id="user-admin-table-pop_confirm"
|
||||||
|
title="设置密码"
|
||||||
description={
|
description={
|
||||||
<>
|
<>
|
||||||
<Input.Password
|
<Input.Password
|
||||||
|
@ -95,3 +95,7 @@ input {
|
|||||||
#login-form input:-webkit-autofill {
|
#login-form input:-webkit-autofill {
|
||||||
transition: background-color 5000s ease-in-out 0s;
|
transition: background-color 5000s ease-in-out 0s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#user-admin-table-pop_confirm input:-webkit-autofill {
|
||||||
|
transition: background-color 5000s ease-in-out 0s;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user