diff options
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r-- | src/electron/ipc-api/appIndicator.ts | 6 | ||||
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/download.ts | 4 | ||||
-rw-r--r-- | src/electron/ipc-api/focusState.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/index.ts | 18 | ||||
-rw-r--r-- | src/electron/ipc-api/localServer.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/processManager.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/sessionStorage.ts | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/settings.ts | 2 |
9 files changed, 20 insertions, 20 deletions
diff --git a/src/electron/ipc-api/appIndicator.ts b/src/electron/ipc-api/appIndicator.ts index f4a5ba480..2837a75f0 100644 --- a/src/electron/ipc-api/appIndicator.ts +++ b/src/electron/ipc-api/appIndicator.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import { join } from 'node:path'; | 1 | import { join } from 'node:path'; |
2 | import { app, ipcMain, BrowserWindow } from 'electron'; | 2 | import { type BrowserWindow, app, ipcMain } from 'electron'; |
3 | import { autorun } from 'mobx'; | 3 | import { autorun } from 'mobx'; |
4 | import { isMac, isWindows, isLinux } from '../../environment'; | 4 | import { isLinux, isMac, isWindows } from '../../environment'; |
5 | import TrayIcon from '../../lib/Tray'; | 5 | import type TrayIcon from '../../lib/Tray'; |
6 | 6 | ||
7 | const INDICATOR_TASKBAR = 'taskbar'; | 7 | const INDICATOR_TASKBAR = 'taskbar'; |
8 | const FILE_EXTENSION = isWindows ? 'ico' : 'png'; | 8 | const FILE_EXTENSION = isWindows ? 'ico' : 'png'; |
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index 14214aacb..775daf602 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ipcMain, BrowserWindow } from 'electron'; | 1 | import { BrowserWindow, ipcMain } from 'electron'; |
2 | import { autoUpdater } from 'electron-updater'; | 2 | import { autoUpdater } from 'electron-updater'; |
3 | import { appEvents } from '../..'; | 3 | import { appEvents } from '../..'; |
4 | 4 | ||
diff --git a/src/electron/ipc-api/download.ts b/src/electron/ipc-api/download.ts index 44eec9fc1..d749cb889 100644 --- a/src/electron/ipc-api/download.ts +++ b/src/electron/ipc-api/download.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { PathLike } from 'node:fs'; | 1 | import type { PathLike } from 'node:fs'; |
2 | import { ipcMain, dialog, BrowserWindow } from 'electron'; | 2 | import { BrowserWindow, dialog, ipcMain } from 'electron'; |
3 | import { download } from 'electron-dl'; | 3 | import { download } from 'electron-dl'; |
4 | import { writeFileSync } from 'fs-extra'; | 4 | import { writeFileSync } from 'fs-extra'; |
5 | 5 | ||
diff --git a/src/electron/ipc-api/focusState.ts b/src/electron/ipc-api/focusState.ts index 01aa1a971..bfda92b1e 100644 --- a/src/electron/ipc-api/focusState.ts +++ b/src/electron/ipc-api/focusState.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { BrowserWindow } from 'electron'; | 1 | import type { BrowserWindow } from 'electron'; |
2 | 2 | ||
3 | export default (params: { mainWindow: BrowserWindow }) => { | 3 | export default (params: { mainWindow: BrowserWindow }) => { |
4 | params.mainWindow.on('focus', () => { | 4 | params.mainWindow.on('focus', () => { |
diff --git a/src/electron/ipc-api/index.ts b/src/electron/ipc-api/index.ts index b57a9d881..48c6d142c 100644 --- a/src/electron/ipc-api/index.ts +++ b/src/electron/ipc-api/index.ts | |||
@@ -1,15 +1,15 @@ | |||
1 | import { BrowserWindow } from 'electron'; | 1 | import type { BrowserWindow } from 'electron'; |
2 | import autoUpdate from './autoUpdate'; | 2 | import type TrayIcon from '../../lib/Tray'; |
3 | import settings from './settings'; | ||
4 | import sessionStorage from './sessionStorage'; | ||
5 | import appIndicator from './appIndicator'; | 3 | import appIndicator from './appIndicator'; |
6 | import download from './download'; | 4 | import autoUpdate from './autoUpdate'; |
7 | import processManager from './processManager'; | ||
8 | import localServer from './localServer'; | ||
9 | import languageDetect from './languageDetect'; | ||
10 | import dnd from './dnd'; | 5 | import dnd from './dnd'; |
6 | import download from './download'; | ||
11 | import focusState from './focusState'; | 7 | import focusState from './focusState'; |
12 | import TrayIcon from '../../lib/Tray'; | 8 | import languageDetect from './languageDetect'; |
9 | import localServer from './localServer'; | ||
10 | import processManager from './processManager'; | ||
11 | import sessionStorage from './sessionStorage'; | ||
12 | import settings from './settings'; | ||
13 | 13 | ||
14 | export default (params: { | 14 | export default (params: { |
15 | mainWindow: BrowserWindow; | 15 | mainWindow: BrowserWindow; |
diff --git a/src/electron/ipc-api/localServer.ts b/src/electron/ipc-api/localServer.ts index bcc2f9d78..99c40dfd6 100644 --- a/src/electron/ipc-api/localServer.ts +++ b/src/electron/ipc-api/localServer.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { randomBytes } from 'node:crypto'; | 1 | import { randomBytes } from 'node:crypto'; |
2 | import { createServer } from 'node:net'; | 2 | import { createServer } from 'node:net'; |
3 | import { ipcMain, BrowserWindow } from 'electron'; | 3 | import { type BrowserWindow, ipcMain } from 'electron'; |
4 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../../config'; | 4 | import { LOCAL_HOSTNAME, LOCAL_PORT } from '../../config'; |
5 | import { userDataPath } from '../../environment-remote'; | 5 | import { userDataPath } from '../../environment-remote'; |
6 | import { server } from '../../internal-server/start'; | 6 | import { server } from '../../internal-server/start'; |
diff --git a/src/electron/ipc-api/processManager.ts b/src/electron/ipc-api/processManager.ts index 96501eeaa..6e9069666 100644 --- a/src/electron/ipc-api/processManager.ts +++ b/src/electron/ipc-api/processManager.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { ipcMain } from 'electron'; | ||
2 | import { openProcessManager } from '@krisdages/electron-process-manager'; | 1 | import { openProcessManager } from '@krisdages/electron-process-manager'; |
2 | import { ipcMain } from 'electron'; | ||
3 | 3 | ||
4 | export default () => { | 4 | export default () => { |
5 | ipcMain.on('openProcessManager', () => { | 5 | ipcMain.on('openProcessManager', () => { |
diff --git a/src/electron/ipc-api/sessionStorage.ts b/src/electron/ipc-api/sessionStorage.ts index 39e84d42b..0f32cd6de 100644 --- a/src/electron/ipc-api/sessionStorage.ts +++ b/src/electron/ipc-api/sessionStorage.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ipcMain, Session, session } from 'electron'; | 1 | import { type Session, ipcMain, session } from 'electron'; |
2 | 2 | ||
3 | import { TODOS_PARTITION_ID } from '../../config'; | 3 | import { TODOS_PARTITION_ID } from '../../config'; |
4 | 4 | ||
diff --git a/src/electron/ipc-api/settings.ts b/src/electron/ipc-api/settings.ts index 72de6866d..3cc001080 100644 --- a/src/electron/ipc-api/settings.ts +++ b/src/electron/ipc-api/settings.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { ipcMain, BrowserWindow, Settings } from 'electron'; | 1 | import { type BrowserWindow, type Settings, ipcMain } from 'electron'; |
2 | 2 | ||
3 | export default (params: { mainWindow: BrowserWindow; settings: Settings }) => { | 3 | export default (params: { mainWindow: BrowserWindow; settings: Settings }) => { |
4 | ipcMain.on('getAppSettings', (_event, type) => { | 4 | ipcMain.on('getAppSettings', (_event, type) => { |