Merge admin panel and punishment panel applications into staff panel
This commit is contained in:
3 files changed
+4
-11
No files matched your search
+1
-2
@@ -1,7 +1,6 @@
|
||||
VITE_API_URL=http://localhost:8080
|
||||
|
||||
VITE_ADMIN_PANEL_URL=
|
||||
VITE_PUNISHMENT_PANEL_URL=
|
||||
VITE_STAFF_PANEL_URL=
|
||||
VITE_GITEA_URL=
|
||||
VITE_WEKAN_URL=
|
||||
VITE_FILEBROWSER_URL=
|
||||
|
||||
+1
-2
@@ -62,8 +62,7 @@ export const dict = {
|
||||
home: {
|
||||
applications: "Applications",
|
||||
application: {
|
||||
adminPanel: "Admin Panel",
|
||||
punishmentPanel: "Punishment Panel",
|
||||
staffPanel: "Staff Panel",
|
||||
gitea: "Gitea",
|
||||
wekan: "Wekan",
|
||||
filebrowser: "Filebrowser",
|
||||
|
||||
@@ -10,15 +10,10 @@ export default function HomePage() {
|
||||
const applications = createMemo(() =>
|
||||
[
|
||||
user()?.roles.includes("ADMIN") && {
|
||||
name: t("panel.home.application.adminPanel"),
|
||||
link: import.meta.env.VITE_ADMIN_PANEL_URL,
|
||||
name: t("panel.home.application.staffPanel"),
|
||||
link: import.meta.env.VITE_STAFF_PANEL_URL,
|
||||
icon: "/application/minecraft.webp",
|
||||
},
|
||||
{
|
||||
name: t("panel.home.application.punishmentPanel"),
|
||||
link: import.meta.env.VITE_PUNISHMENT_PANEL_URL,
|
||||
icon: "/favicon.webp",
|
||||
},
|
||||
{
|
||||
name: t("panel.home.application.gitea"),
|
||||
link: import.meta.env.VITE_GITEA_URL,
|
||||
|
||||
Reference in new issue
Block a user