Add ipc/character.ipc.ts and ipc/location.ipc.ts for character and location database interactions

- Introduce IPC handlers in `ipc/character.ipc.ts` and `ipc/location.ipc.ts` for CRUD operations, attributes management, and related actions.
- Register character and location IPC modules in `main.ts` for global accessibility.
- Utilize `createHandler` pattern for consistent and modular IPC handler implementation.
- Enhance type definitions for character and location functionalities, improving code consistency.
This commit is contained in:
natreex
2025-11-18 22:47:20 -05:00
parent 75e5d71c74
commit b56f45d1ba
3 changed files with 156 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ import { getDatabaseService } from './database/database.service.js';
import './ipc/book.ipc.js';
import './ipc/user.ipc.js';
import './ipc/chapter.ipc.js';
import './ipc/character.ipc.js';
import './ipc/location.ipc.js';
// Fix pour __dirname en ES modules
const __filename = fileURLToPath(import.meta.url);