Rename RedrawableHTML, remove File API rate limite and fix pull job transaction.

This commit is contained in:
Clément Pons
2026-01-27 17:13:40 +01:00
parent e9a892076d
commit a412116b9c
14 changed files with 153 additions and 117 deletions

View File

@@ -2,7 +2,7 @@ import { z } from "zod/v4";
import type { User } from "~/types/auth";
import characterConfig from '#shared/character-config.json';
import type { Campaign } from "~/types/campaign";
import { div, dom, icon, span, text, type RedrawableHTML } from "#shared/dom";
import { div, dom, icon, span, text, type HTMLElement } from "#shared/dom";
import { button, foldable, loading, numberpicker, tabgroup, Toaster } from "#shared/components";
import { CharacterCompiler, colorByRarity, stateFactory, subnameFactory } from "#shared/character";
import { modal, tooltip } from "#shared/floating";
@@ -27,7 +27,7 @@ export const CampaignValidation = z.object({
class CharacterPrinter
{
compiler?: CharacterCompiler;
container: RedrawableHTML;
container: HTMLElement;
name: string;
id: number;
constructor(character: number, name: string)
@@ -64,7 +64,7 @@ export class CampaignSheet
private campaign?: Campaign;
private characters!: Array<CharacterPrinter>;
container: RedrawableHTML = div('flex flex-col flex-1 h-full w-full items-center justify-start gap-6');
container: HTMLElement = div('flex flex-col flex-1 h-full w-full items-center justify-start gap-6');
ws?: Socket;
constructor(id: string, user: ComputedRef<User | null>)