Better metadata editing division #79 (#82)

* feat: new dropdown-based editor switching

* feat: tab based switching

* feat: add icon

* fix: lint

* chore: i18n translations

oh boy was this a 'chore'
This commit is contained in:
DecDuck
2025-06-05 14:53:19 +10:00
committed by GitHub
parent 681efe95af
commit 9e929ddf98
21 changed files with 1144 additions and 1226 deletions

View File

@ -1,5 +1,6 @@
import aclManager from "~/server/internal/acls";
import prisma from "~/server/internal/db/database";
import taskHandler from "~/server/internal/tasks";
export default defineEventHandler(async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [
@ -7,7 +8,7 @@ export default defineEventHandler(async (h3) => {
]);
if (!allowed) throw createError({ statusCode: 403 });
await runTask("cleanup:invitations");
await taskHandler.runTaskGroupByName("cleanup:invitations");
const invitations = await prisma.invitation.findMany({});
return invitations;