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

@@ -25,14 +25,17 @@ interface AddSubElementData {
interface DeleteLocationData {
locationId: string;
deletedAt: number;
}
interface DeleteElementData {
elementId: string;
deletedAt: number;
}
interface DeleteSubElementData {
subElementId: string;
deletedAt: number;
}
// GET /series/location/list - Get location list
@@ -66,20 +69,20 @@ ipcMain.handle('db:series:location:subelement:add', createHandler<AddSubElementD
// DELETE /series/location/delete - Delete location
ipcMain.handle('db:series:location:delete', createHandler<DeleteLocationData, boolean>(
function(userId: string, data: DeleteLocationData, lang: 'fr' | 'en'): boolean {
return SeriesLocation.deleteLocation(userId, data.locationId, lang);
return SeriesLocation.deleteLocation(userId, data.locationId, data.deletedAt, lang);
}
));
// DELETE /series/location/element/delete - Delete element
ipcMain.handle('db:series:location:element:delete', createHandler<DeleteElementData, boolean>(
function(userId: string, data: DeleteElementData, lang: 'fr' | 'en'): boolean {
return SeriesLocation.deleteElement(userId, data.elementId, lang);
return SeriesLocation.deleteElement(userId, data.elementId, data.deletedAt, lang);
}
));
// DELETE /series/location/sub-element/delete - Delete sub-element
ipcMain.handle('db:series:location:subelement:delete', createHandler<DeleteSubElementData, boolean>(
function(userId: string, data: DeleteSubElementData, lang: 'fr' | 'en'): boolean {
return SeriesLocation.deleteSubElement(userId, data.subElementId, lang);
return SeriesLocation.deleteSubElement(userId, data.subElementId, data.deletedAt, lang);
}
));