- CustomInstructionService: 프리셋 5개 (번역/요약/전문리라이트/코드설명/자유프롬프트) - 커스텀 명령어 CRUD + 프리셋 보호 (삭제 불가) - CommandsPage: 명령어 목록 + 추가/편집 다이얼로그 - i18n: ko.json/en.json 리소스 파일, t() 함수, React 컨텍스트 - IPC: instruction 핸들러 6개 - AppLayout: Commands 네비게이션 추가
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
// src/main/ipc/index.ts — IPC 핸들러 일괄 등록
|
|
|
|
import { registerAudioHandlers } from './audio-handlers'
|
|
import { registerConfigHandlers } from './config-handlers'
|
|
import { registerWindowHandlers } from './window-handlers'
|
|
import { registerSystemHandlers } from './system-handlers'
|
|
import { registerVoiceHandlers } from './voice-handlers'
|
|
import { registerSTTHandlers } from './stt-handlers'
|
|
import { registerHotkeyHandlers } from './hotkey-handlers'
|
|
import { registerLLMHandlers } from './llm-handlers'
|
|
import { registerHistoryHandlers } from './history-handlers'
|
|
import { registerDictionaryHandlers } from './dictionary-handlers'
|
|
import { registerInstructionHandlers } from './instruction-handlers'
|
|
import { getLogger } from '../services/LoggerService'
|
|
|
|
const logger = getLogger('ipc')
|
|
|
|
export function registerAllIpcHandlers(): void {
|
|
registerAudioHandlers()
|
|
registerConfigHandlers()
|
|
registerWindowHandlers()
|
|
registerSystemHandlers()
|
|
registerVoiceHandlers()
|
|
registerSTTHandlers()
|
|
registerHotkeyHandlers()
|
|
registerLLMHandlers()
|
|
registerHistoryHandlers()
|
|
registerDictionaryHandlers()
|
|
registerInstructionHandlers()
|
|
logger.info('All IPC handlers registered')
|
|
}
|