Changes tooltips reference, update character sheet UI, getID now embed the ID_SIZE, new ability max option in feature effect.

This commit is contained in:
Clément Pons
2025-08-29 17:46:08 +02:00
parent 042d4479ee
commit 17bc232602
19 changed files with 522 additions and 242 deletions

View File

@@ -2,7 +2,7 @@ import useDatabase from "~/composables/useDatabase";
import { extname, basename } from 'node:path';
import type { CanvasColor, CanvasContent } from "~/types/canvas";
import type { FileType, ProjectContent } from "#shared/content.util";
import { getID, ID_SIZE, parsePath } from "#shared/general.util";
import { getID, parsePath } from "#shared/general.util";
import { projectContentTable, projectFilesTable } from "~/db/schema";
const typeMapping: Record<string, FileType> = {
@@ -35,7 +35,7 @@ export default defineTask({
const title = basename(e.path);
const order = /(\d+)\. ?(.+)/gsmi.exec(title);
return {
id: getID(ID_SIZE),
id: getID(),
path: parsePath(e.path),
order: i,
title: title,
@@ -54,7 +54,7 @@ export default defineTask({
const content = (await $fetch(`https://git.peaceultime.com/api/v1/repos/peaceultime/system-aspect/raw/${encodeURIComponent(e.path)}`));
return {
id: getID(ID_SIZE),
id: getID(),
path: parsePath(extension === '.md' ? e.path.replace(extension, '') : e.path),
order: i,
title: title,