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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user