chore: fix vue prettier rules (max-attributes-per-line), reformat all codes

This commit is contained in:
leejooy96 committed 2025-06-20 18:15:47 +09:00
1 parent f225b4e54a
commit 2fb64f03ec
17 files changed
+227 -90

No files matched your search

+21 -15
View File
@@ -12,23 +12,29 @@ export default class IPCs {
})
// Open url via web browser
ipcMain.on('msgOpenExternalLink', async (event: IpcMainEvent, url: string) => {
await shell.openExternal(url)
})
ipcMain.on(
'msgOpenExternalLink',
async (event: IpcMainEvent, url: string) => {
await shell.openExternal(url)
}
)
// Open file
ipcMain.handle('msgOpenFile', async (event: IpcMainEvent, filter: string) => {
const filters = []
if (filter === 'text') {
filters.push({ name: 'Text', extensions: ['txt', 'json'] })
} else if (filter === 'zip') {
filters.push({ name: 'Zip', extensions: ['zip'] })
ipcMain.handle(
'msgOpenFile',
async (event: IpcMainEvent, filter: string) => {
const filters = []
if (filter === 'text') {
filters.push({ name: 'Text', extensions: ['txt', 'json'] })
} else if (filter === 'zip') {
filters.push({ name: 'Zip', extensions: ['zip'] })
}
const dialogResult = await dialog.showOpenDialog({
properties: ['openFile'],
filters
})
return dialogResult
}
const dialogResult = await dialog.showOpenDialog({
properties: ['openFile'],
filters
})
return dialogResult
})
)
}
}