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_API_URL=http://localhost:8080
|
||||||
|
|
||||||
VITE_ADMIN_PANEL_URL=
|
VITE_STAFF_PANEL_URL=
|
||||||
VITE_PUNISHMENT_PANEL_URL=
|
|
||||||
VITE_GITEA_URL=
|
VITE_GITEA_URL=
|
||||||
VITE_WEKAN_URL=
|
VITE_WEKAN_URL=
|
||||||
VITE_FILEBROWSER_URL=
|
VITE_FILEBROWSER_URL=
|
||||||
|
|||||||
+1
-2
@@ -62,8 +62,7 @@ export const dict = {
|
|||||||
home: {
|
home: {
|
||||||
applications: "Applications",
|
applications: "Applications",
|
||||||
application: {
|
application: {
|
||||||
adminPanel: "Admin Panel",
|
staffPanel: "Staff Panel",
|
||||||
punishmentPanel: "Punishment Panel",
|
|
||||||
gitea: "Gitea",
|
gitea: "Gitea",
|
||||||
wekan: "Wekan",
|
wekan: "Wekan",
|
||||||
filebrowser: "Filebrowser",
|
filebrowser: "Filebrowser",
|
||||||
|
|||||||
@@ -10,15 +10,10 @@ export default function HomePage() {
|
|||||||
const applications = createMemo(() =>
|
const applications = createMemo(() =>
|
||||||
[
|
[
|
||||||
user()?.roles.includes("ADMIN") && {
|
user()?.roles.includes("ADMIN") && {
|
||||||
name: t("panel.home.application.adminPanel"),
|
name: t("panel.home.application.staffPanel"),
|
||||||
link: import.meta.env.VITE_ADMIN_PANEL_URL,
|
link: import.meta.env.VITE_STAFF_PANEL_URL,
|
||||||
icon: "/application/minecraft.webp",
|
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"),
|
name: t("panel.home.application.gitea"),
|
||||||
link: import.meta.env.VITE_GITEA_URL,
|
link: import.meta.env.VITE_GITEA_URL,
|
||||||
|
|||||||
Reference in new issue
Block a user