Add missing admin action files and navigation links

- Add 11 missing server action files: badges, bulk-users, catalog, catalog-bc, catalog-items, import-badges, import-furni, multi-account-detect, permissions, rooms, soundtracks
- Add missing admin navigation links: tickets, sounds, translations, import, radio sub-pages
- Add translation keys for all new navigation items
This commit is contained in:
openhands committed 2026-07-11 12:01:05 +02:00
1 parent 7e1ae17a3b
commit 41be6835bf
347 files changed
+28378 -6091

No files matched your search

+6 -6
View File
@@ -23,9 +23,7 @@ export default async function UserView({ userId, username, look }: UserViewProps
where: { OR: [{ userOneId: userId }, { userTwoId: userId }] },
select: { userOneId: true, userTwoId: true },
});
const friendIds = friendships.map((f) =>
f.userOneId === userId ? f.userTwoId : f.userOneId,
);
const friendIds = friendships.map((f) => (f.userOneId === userId ? f.userTwoId : f.userOneId));
if (friendIds.length > 0) {
onlineFriends = await prisma.user.findMany({
where: { id: { in: friendIds }, online: "1" },
@@ -92,8 +90,7 @@ export default async function UserView({ userId, username, look }: UserViewProps
background:
"linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 92%, white), color-mix(in srgb, var(--color-primary) 92%, black))",
color: "var(--button-text-color)",
border:
"1px solid color-mix(in srgb, var(--color-primary) 60%, rgba(255,255,255,0.2))",
border: "1px solid color-mix(in srgb, var(--color-primary) 60%, rgba(255,255,255,0.2))",
boxShadow:
"0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.2)",
}}
@@ -128,7 +125,10 @@ export default async function UserView({ userId, username, look }: UserViewProps
</div>
<div className="flex items-center gap-3 px-3">
{onlineFriends.length === 0 ? (
<p className="mb-3 block w-full text-center text-xs font-medium md:mb-0 md:text-left" style={{ color: "var(--color-text-muted)" }}>
<p
className="mb-3 block w-full text-center text-xs font-medium md:mb-0 md:text-left"
style={{ color: "var(--color-text-muted)" }}
>
{t("noFriendsOnline")}
</p>
) : (