feat: implement main renderer application with file upload, transcription configuration, and Electron integration

This commit is contained in:
Ümit Tunç
2026-04-23 09:14:49 +03:00
parent 183cf27bfd
commit 86ff0dbc71
7 changed files with 583 additions and 5 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ const api = {
onTranscriptionProgress: (callback) => ipcRenderer.on('transcription-progress', (_, progress) => callback(progress)),
onTranscriptionData: (callback) => ipcRenderer.on('transcription-data', (_, data) => callback(data)),
detectHardware: () => ipcRenderer.invoke('detect-hardware'),
openExplorer: (path) => ipcRenderer.send('open-explorer', path)
openExplorer: (path) => ipcRenderer.send('open-explorer', path),
readSrt: (filePath) => ipcRenderer.invoke('read-srt', filePath),
saveSrt: (filePath, content) => ipcRenderer.invoke('save-srt', { filePath, content }),
selectFile: (filters) => ipcRenderer.invoke('select-file', filters),
optimizeSrt: (filePath) => ipcRenderer.invoke('optimize-srt', filePath)
}
if (process.contextIsolated) {