mirror of
https://github.com/luckjiawei/podux.git
synced 2026-11-30 01:16:47 +00:00
✨ Admin Button
This commit is contained in:
1 parent
2bd3e904e0
commit
fd855d8b1a
3 files changed
+5
No files matched your search
@@ -303,6 +303,9 @@ export function MainLayout({ children }: MainLayoutProps) {
|
||||
<DropdownMenu.Item onClick={handleGotoProfile}>
|
||||
<Icon icon="lucide:user" width="16" height="16" /> {t("settings.profile")}
|
||||
</DropdownMenu.Item>
|
||||
<DropdownMenu.Item onClick={() => window.open("/_/", "_blank", "noopener,noreferrer")}>
|
||||
<Icon icon="lucide:database" width="16" height="16" /> {t("nav.pbAdmin")}
|
||||
</DropdownMenu.Item>
|
||||
<DropdownMenu.Separator />
|
||||
<DropdownMenu.Item color="red" onClick={handleLogout}>
|
||||
<Icon icon="lucide:log-out" width="16" height="16" /> {t("nav.logout")}
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"proxies": "Proxies",
|
||||
"settings": "Settings",
|
||||
"logout": "Logout",
|
||||
"pbAdmin": "Admin Panel",
|
||||
"version": "Version",
|
||||
"import": "Import"
|
||||
},
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
"proxies": "代理",
|
||||
"settings": "设置",
|
||||
"logout": "退出登录",
|
||||
"pbAdmin": "后台管理",
|
||||
"version": "版本",
|
||||
"import": "导入"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user