Typo fixes, add spell range to sheet and remove useContent

This commit is contained in:
Clément Pons
2025-10-21 17:49:21 +02:00
parent 25bd165f1d
commit 73b0fdf3f5
16 changed files with 15 additions and 85 deletions

View File

@@ -1,5 +1,5 @@
import useDatabase from '~/composables/useDatabase';
import { hasPermissions } from '~/shared/auth.util';
import { hasPermissions } from '#shared/auth.util';
export default defineEventHandler(async (e) => {
const session = await getUserSession(e);

View File

@@ -1,8 +1,8 @@
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 { hasPermissions } from '#shared/auth.util';
import { group } from '#shared/general.util';
import type { Character, MainStat, TrainingLevel } from '~/types/character';
export default defineEventHandler(async (e) => {

View File

@@ -1,6 +1,6 @@
import useDatabase from '~/composables/useDatabase';
import { characterTable } from '~/db/schema';
import { group } from '~/shared/general.util';
import { group } from '#shared/general.util';
import type { Character, CharacterVariables, Level, MainStat, TrainingLevel } from '~/types/character';
export default defineEventHandler(async (e) => {

View File

@@ -1,7 +1,7 @@
import { eq } from 'drizzle-orm';
import useDatabase from '~/composables/useDatabase';
import { characterTable } from '~/db/schema';
import { CharacterVariablesValidation } from '~/shared/character.util';
import { CharacterVariablesValidation } from '#shared/character.util';
import type { CharacterVariables } from '~/types/character';
export default defineEventHandler(async (e) => {

View File

@@ -17,7 +17,7 @@
<script setup lang="ts">
import { computed } from 'vue';
import Bun from 'bun';
import { format } from '~/shared/general.util';
import { format } from '#shared/general.util';
const { id, userId, username, timestamp } = defineProps<{
id: number