User Role (#69)

* fix: window.DisableAnimatedMan as boolean

* chore: auto-fix linting and formatting issues

* feat: user role

* feat: use user agent_secret

* feat: hide setting when user role is not admin

* feat: new waf api

* chore: auto-fix linting and formatting issues

* fix: admin settings page

* feat: online-user setting

* fix: pagination

---------

Co-authored-by: hamster1963 <hamster1963@users.noreply.github.com>
This commit is contained in:
仓鼠
2024-12-22 23:17:20 +08:00
committed by GitHub
co-authored by hamster1963
parent cc30a53380
commit 4d12682cdf
15 changed files with 703 additions and 36 deletions
+7
View File
@@ -67,6 +67,13 @@ export default function UserPage() {
accessorKey: "username",
accessorFn: (row) => row.username,
},
{
header: t("Role"),
accessorKey: "role",
accessorFn: (row) => {
return row.role === 1 ? t("User") : t("Admin")
},
},
{
id: "actions",
header: t("Actions"),