Remove CharacterComponent and CharacterDetail components

- Deleted `CharacterComponent` and `CharacterDetail` files from the project.
- Refactored related logic to improve code maintainability and reduce redundancy.
This commit is contained in:
natreex
2026-02-05 14:12:08 -05:00
parent cec5830360
commit 209dc6f85a
133 changed files with 17673 additions and 3110 deletions

View File

@@ -21,6 +21,7 @@ export interface SpellProps {
components: string | null;
limitations: string | null;
notes: string | null;
seriesSpellId?: string | null;
}
// Pour POST /spell/add et PUT /spell/update
@@ -34,6 +35,7 @@ export interface SpellPropsPost {
components?: string | null;
limitations?: string | null;
notes?: string | null;
seriesSpellId?: string | null;
}
// Item dans la liste (GET /spell/list)
@@ -42,6 +44,7 @@ export interface SpellListItem {
name: string;
description: string;
tags: SpellTagProps[]; // Tags résolus (pas les IDs)
seriesSpellId?: string | null;
}
// Réponse de GET /spell/list
@@ -62,6 +65,7 @@ export interface SpellEditState {
components: string | null;
limitations: string | null;
notes: string | null;
seriesSpellId?: string | null;
}
export const initialSpellState: SpellEditState = {
@@ -74,6 +78,7 @@ export const initialSpellState: SpellEditState = {
components: null,
limitations: null,
notes: null,
seriesSpellId: null,
};
export const spellPowerLevels: SelectBoxProps[] = [