Merge admin panel and punishment panel applications into staff panel

This commit is contained in:
SKBotNL committed 2026-09-21 22:43:40 +02:00
1 parent 23730d079f
commit 2d30a2f50c
3 files changed
+4 -11

No files matched your search

+1 -2
View File
@@ -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
View File
@@ -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",
+2 -7
View File
@@ -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,