diff options
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r-- | src/stores/AppStore.ts | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts index b8356bd56..b0a925411 100644 --- a/src/stores/AppStore.ts +++ b/src/stores/AppStore.ts | |||
@@ -1,46 +1,46 @@ | |||
1 | import { URL } from 'node:url'; | 1 | import { URL } from 'node:url'; |
2 | import { ipcRenderer } from 'electron'; | ||
3 | import { | 2 | import { |
4 | app, | 3 | app, |
5 | screen, | ||
6 | powerMonitor, | ||
7 | nativeTheme, | ||
8 | getCurrentWindow, | 4 | getCurrentWindow, |
5 | nativeTheme, | ||
6 | powerMonitor, | ||
9 | process as remoteProcess, | 7 | process as remoteProcess, |
8 | screen, | ||
10 | } from '@electron/remote'; | 9 | } from '@electron/remote'; |
10 | import AutoLaunch from 'auto-launch'; | ||
11 | import { ipcRenderer } from 'electron'; | ||
12 | import { readJsonSync } from 'fs-extra'; | ||
11 | import { action, computed, makeObservable, observable } from 'mobx'; | 13 | import { action, computed, makeObservable, observable } from 'mobx'; |
12 | import moment from 'moment'; | 14 | import moment from 'moment'; |
13 | import AutoLaunch from 'auto-launch'; | ||
14 | import ms from 'ms'; | 15 | import ms from 'ms'; |
15 | import { readJsonSync } from 'fs-extra'; | ||
16 | 16 | ||
17 | import { Stores } from '../@types/stores.types'; | 17 | import type { Stores } from '../@types/stores.types'; |
18 | import { ApiInterface } from '../api'; | 18 | import type { Actions } from '../actions/lib/actions'; |
19 | import { Actions } from '../actions/lib/actions'; | 19 | import type { ApiInterface } from '../api'; |
20 | import TypedStore from './lib/TypedStore'; | ||
21 | import Request from './lib/Request'; | ||
22 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; | 20 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
23 | import { cleanseJSObject } from '../jsUtils'; | ||
24 | import { | 21 | import { |
22 | electronVersion, | ||
25 | isMac, | 23 | isMac, |
26 | isWinPortable, | 24 | isWinPortable, |
27 | electronVersion, | ||
28 | osRelease, | 25 | osRelease, |
29 | } from '../environment'; | 26 | } from '../environment'; |
30 | import { | 27 | import { |
28 | ferdiumLocale, | ||
31 | ferdiumVersion, | 29 | ferdiumVersion, |
32 | userDataPath, | 30 | userDataPath, |
33 | ferdiumLocale, | ||
34 | } from '../environment-remote'; | 31 | } from '../environment-remote'; |
35 | import generatedTranslations from '../i18n/translations'; | ||
36 | import { getLocale } from '../helpers/i18n-helpers'; | 32 | import { getLocale } from '../helpers/i18n-helpers'; |
33 | import generatedTranslations from '../i18n/translations'; | ||
34 | import { cleanseJSObject } from '../jsUtils'; | ||
35 | import Request from './lib/Request'; | ||
36 | import TypedStore from './lib/TypedStore'; | ||
37 | 37 | ||
38 | import sleep from '../helpers/async-helpers'; | ||
38 | import { | 39 | import { |
39 | getServiceIdsFromPartitions, | 40 | getServiceIdsFromPartitions, |
40 | removeServicePartitionDirectory, | 41 | removeServicePartitionDirectory, |
41 | } from '../helpers/service-helpers'; | 42 | } from '../helpers/service-helpers'; |
42 | import { openExternalUrl } from '../helpers/url-helpers'; | 43 | import { openExternalUrl } from '../helpers/url-helpers'; |
43 | import sleep from '../helpers/async-helpers'; | ||
44 | 44 | ||
45 | const debug = require('../preload-safe-debug')('Ferdium:AppStore'); | 45 | const debug = require('../preload-safe-debug')('Ferdium:AppStore'); |
46 | 46 | ||