Feature choice UI rework, feature editor fixes, new character manage page UI with tabgroup and action config

This commit is contained in:
Clément Pons
2025-10-01 17:59:14 +02:00
parent eb0c33deae
commit 3113d8b0f3
8 changed files with 180 additions and 10102 deletions

View File

@@ -1,9 +1,9 @@
import { and, eq, SQL, sql, type Operators } from 'drizzle-orm';
import { eq, SQL, type Operators } from 'drizzle-orm';
import useDatabase from '~/composables/useDatabase';
import { characterTable, userPermissionsTable } from '~/db/schema';
import { hasPermissions } from '~/shared/auth.util';
import { group } from '~/shared/general.util';
import type { Character, Level, MainStat, TrainingLevel } from '~/types/character';
import type { Character, MainStat, TrainingLevel } from '~/types/character';
export default defineEventHandler(async (e) => {
let { visibility } = getQuery(e) as { visibility?: "public" | "own" | "admin" };