From 2d30a2f50c4a9554207f5ca06a2ebc4688ef4b74 Mon Sep 17 00:00:00 2001 From: Sven Date: Mon, 21 Sep 2026 22:43:40 +0200 Subject: [PATCH] Merge admin panel and punishment panel applications into staff panel --- .env.example | 3 +-- src/i18n/en.ts | 3 +-- src/pages/panel/home.tsx | 9 ++------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 13b31c2..958f6a2 100644 --- a/.env.example +++ b/.env.example @@ -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= diff --git a/src/i18n/en.ts b/src/i18n/en.ts index d67897b..d8dfc7d 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -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", diff --git a/src/pages/panel/home.tsx b/src/pages/panel/home.tsx index 06261ed..00ba4ec 100644 --- a/src/pages/panel/home.tsx +++ b/src/pages/panel/home.tsx @@ -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,