aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts34
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
3import { join } from 'node:path';
4import { EventEmitter } from 'node:events'; 3import { EventEmitter } from 'node:events';
4import { join } from 'node:path';
5import { 5import {
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
15import { emptyDirSync, ensureFileSync } from 'fs-extra'; 15import { initialize } from 'electron-react-titlebar/main';
16import windowStateKeeper from 'electron-window-state'; 16import windowStateKeeper from 'electron-window-state';
17import { emptyDirSync, ensureFileSync } from 'fs-extra';
17import minimist from 'minimist'; 18import minimist from 'minimist';
18import ms from 'ms'; 19import ms from 'ms';
19import { initialize } from 'electron-react-titlebar/main';
20import { enableWebContents, initializeRemote } from './electron-util'; 20import { enableWebContents, initializeRemote } from './electron-util';
21import enforceMacOSAppLocation from './enforce-macos-app-location'; 21import enforceMacOSAppLocation from './enforce-macos-app-location';
22 22
@@ -24,33 +24,33 @@ initializeRemote();
24 24
25import { DEFAULT_APP_SETTINGS, DEFAULT_WINDOW_OPTIONS } from './config'; 25import { DEFAULT_APP_SETTINGS, DEFAULT_WINDOW_OPTIONS } from './config';
26 26
27import { isMac, isWindows, isLinux, altKey } from './environment'; 27import { altKey, isLinux, isMac, isWindows } from './environment';
28import { 28import {
29 isDevMode, 29 isDevMode,
30 userDataRecipesPath,
31 userDataPath,
32 protocolClient, 30 protocolClient,
31 userDataPath,
32 userDataRecipesPath,
33} from './environment-remote'; 33} from './environment-remote';
34import { ifUndefined } from './jsUtils'; 34import { ifUndefined } from './jsUtils';
35 35
36import { mainIpcHandler as basicAuthHandler } from './features/basicAuth';
37// eslint-disable-next-line import/no-cycle
38import ipcApi from './electron/ipc-api';
39import TrayIcon from './lib/Tray';
40import DBus from './lib/DBus';
41import Settings from './electron/Settings'; 36import Settings from './electron/Settings';
42import handleDeepLink from './electron/deepLinking'; 37import handleDeepLink from './electron/deepLinking';
38import './electron/exception';
39// eslint-disable-next-line import/no-cycle
40import ipcApi from './electron/ipc-api';
43import isPositionValid from './electron/windowUtils'; 41import isPositionValid from './electron/windowUtils';
42import { mainIpcHandler as basicAuthHandler } from './features/basicAuth';
43import DBus from './lib/DBus';
44import 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.
45import { appId } from './package.json'; 46import { appId } from './package.json';
46import './electron/exception';
47 47
48import { asarPath } from './helpers/asar-helpers'; 48import { asarPath } from './helpers/asar-helpers';
49import { checkIfCertIsPresent } from './helpers/certs-helpers';
50import { translateTo } from './helpers/translation-helpers';
49import { openExternalUrl } from './helpers/url-helpers'; 51import { openExternalUrl } from './helpers/url-helpers';
50import userAgent from './helpers/userAgent-helpers'; 52import userAgent from './helpers/userAgent-helpers';
51import { translateTo } from './helpers/translation-helpers';
52import { darkThemeGrayDarkest } from './themes/legacy'; 53import { darkThemeGrayDarkest } from './themes/legacy';
53import { checkIfCertIsPresent } from './helpers/certs-helpers';
54 54
55const debug = require('./preload-safe-debug')('Ferdium:App'); 55const debug = require('./preload-safe-debug')('Ferdium:App');
56 56