diff options
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/index.ts b/src/index.ts index fe254b4f6..a2fcfb890 100644 --- a/src/index.ts +++ b/src/index.ts | |||
@@ -1,22 +1,22 @@ | |||
1 | /* eslint-disable import/first */ | 1 | /* eslint-disable import/first */ |
2 | 2 | ||
3 | import { join } from 'node:path'; | ||
4 | import { EventEmitter } from 'node:events'; | 3 | import { EventEmitter } from 'node:events'; |
4 | import { join } from 'node:path'; | ||
5 | import { | 5 | import { |
6 | app, | ||
7 | BrowserWindow, | 6 | BrowserWindow, |
7 | app, | ||
8 | desktopCapturer, | ||
9 | dialog, | ||
8 | globalShortcut, | 10 | globalShortcut, |
9 | ipcMain, | 11 | ipcMain, |
10 | session, | 12 | session, |
11 | dialog, | ||
12 | desktopCapturer, | ||
13 | } from 'electron'; | 13 | } from 'electron'; |
14 | 14 | ||
15 | import { emptyDirSync, ensureFileSync } from 'fs-extra'; | 15 | import { initialize } from 'electron-react-titlebar/main'; |
16 | import windowStateKeeper from 'electron-window-state'; | 16 | import windowStateKeeper from 'electron-window-state'; |
17 | import { emptyDirSync, ensureFileSync } from 'fs-extra'; | ||
17 | import minimist from 'minimist'; | 18 | import minimist from 'minimist'; |
18 | import ms from 'ms'; | 19 | import ms from 'ms'; |
19 | import { initialize } from 'electron-react-titlebar/main'; | ||
20 | import { enableWebContents, initializeRemote } from './electron-util'; | 20 | import { enableWebContents, initializeRemote } from './electron-util'; |
21 | import enforceMacOSAppLocation from './enforce-macos-app-location'; | 21 | import enforceMacOSAppLocation from './enforce-macos-app-location'; |
22 | 22 | ||
@@ -24,33 +24,33 @@ initializeRemote(); | |||
24 | 24 | ||
25 | import { DEFAULT_APP_SETTINGS, DEFAULT_WINDOW_OPTIONS } from './config'; | 25 | import { DEFAULT_APP_SETTINGS, DEFAULT_WINDOW_OPTIONS } from './config'; |
26 | 26 | ||
27 | import { isMac, isWindows, isLinux, altKey } from './environment'; | 27 | import { altKey, isLinux, isMac, isWindows } from './environment'; |
28 | import { | 28 | import { |
29 | isDevMode, | 29 | isDevMode, |
30 | userDataRecipesPath, | ||
31 | userDataPath, | ||
32 | protocolClient, | 30 | protocolClient, |
31 | userDataPath, | ||
32 | userDataRecipesPath, | ||
33 | } from './environment-remote'; | 33 | } from './environment-remote'; |
34 | import { ifUndefined } from './jsUtils'; | 34 | import { ifUndefined } from './jsUtils'; |
35 | 35 | ||
36 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | ||
37 | // eslint-disable-next-line import/no-cycle | ||
38 | import ipcApi from './electron/ipc-api'; | ||
39 | import TrayIcon from './lib/Tray'; | ||
40 | import DBus from './lib/DBus'; | ||
41 | import Settings from './electron/Settings'; | 36 | import Settings from './electron/Settings'; |
42 | import handleDeepLink from './electron/deepLinking'; | 37 | import handleDeepLink from './electron/deepLinking'; |
38 | import './electron/exception'; | ||
39 | // eslint-disable-next-line import/no-cycle | ||
40 | import ipcApi from './electron/ipc-api'; | ||
43 | import isPositionValid from './electron/windowUtils'; | 41 | import isPositionValid from './electron/windowUtils'; |
42 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | ||
43 | import DBus from './lib/DBus'; | ||
44 | import TrayIcon from './lib/Tray'; | ||
44 | // @ts-expect-error Cannot find module './package.json' or its corresponding type declarations. | 45 | // @ts-expect-error Cannot find module './package.json' or its corresponding type declarations. |
45 | import { appId } from './package.json'; | 46 | import { appId } from './package.json'; |
46 | import './electron/exception'; | ||
47 | 47 | ||
48 | import { asarPath } from './helpers/asar-helpers'; | 48 | import { asarPath } from './helpers/asar-helpers'; |
49 | import { checkIfCertIsPresent } from './helpers/certs-helpers'; | ||
50 | import { translateTo } from './helpers/translation-helpers'; | ||
49 | import { openExternalUrl } from './helpers/url-helpers'; | 51 | import { openExternalUrl } from './helpers/url-helpers'; |
50 | import userAgent from './helpers/userAgent-helpers'; | 52 | import userAgent from './helpers/userAgent-helpers'; |
51 | import { translateTo } from './helpers/translation-helpers'; | ||
52 | import { darkThemeGrayDarkest } from './themes/legacy'; | 53 | import { darkThemeGrayDarkest } from './themes/legacy'; |
53 | import { checkIfCertIsPresent } from './helpers/certs-helpers'; | ||
54 | 54 | ||
55 | const debug = require('./preload-safe-debug')('Ferdium:App'); | 55 | const debug = require('./preload-safe-debug')('Ferdium:App'); |
56 | 56 | ||