diff options
Diffstat (limited to 'src/webview/recipe.ts')
-rw-r--r-- | src/webview/recipe.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/webview/recipe.ts b/src/webview/recipe.ts index 148ea6fab..d6db39779 100644 --- a/src/webview/recipe.ts +++ b/src/webview/recipe.ts | |||
@@ -1,26 +1,24 @@ | |||
1 | /* eslint-disable global-require */ | 1 | /* eslint-disable global-require */ |
2 | /* eslint-disable import/no-dynamic-require */ | 2 | /* eslint-disable import/no-dynamic-require */ |
3 | 3 | ||
4 | import { join } from 'node:path'; | ||
5 | import { existsSync } from 'node:fs'; | 4 | import { existsSync } from 'node:fs'; |
6 | import { noop, debounce } from 'lodash'; | 5 | import { join } from 'node:path'; |
7 | import { contextBridge, ipcRenderer } from 'electron'; | ||
8 | import { autorun, computed, makeObservable, observable } from 'mobx'; | ||
9 | import { pathExistsSync, readFileSync } from 'fs-extra'; | ||
10 | import { | 6 | import { |
11 | disable as disableDarkMode, | 7 | disable as disableDarkMode, |
12 | enable as enableDarkMode, | 8 | enable as enableDarkMode, |
13 | } from 'darkreader'; | 9 | } from 'darkreader'; |
10 | import { contextBridge, ipcRenderer } from 'electron'; | ||
11 | import { pathExistsSync, readFileSync } from 'fs-extra'; | ||
12 | import { debounce, noop } from 'lodash'; | ||
13 | import { autorun, computed, makeObservable, observable } from 'mobx'; | ||
14 | 14 | ||
15 | import ignoreList from './darkmode/ignore'; | ||
16 | import customDarkModeCss from './darkmode/custom'; | 15 | import customDarkModeCss from './darkmode/custom'; |
16 | import ignoreList from './darkmode/ignore'; | ||
17 | 17 | ||
18 | import RecipeWebview from './lib/RecipeWebview'; | 18 | import RecipeWebview from './lib/RecipeWebview'; |
19 | import Userscript from './lib/Userscript'; | 19 | import Userscript from './lib/Userscript'; |
20 | 20 | ||
21 | import BadgeHandler from './badge'; | 21 | import BadgeHandler from './badge'; |
22 | import DialogTitleHandler from './dialogTitle'; | ||
23 | import SessionHandler from './sessionHandler'; | ||
24 | import contextMenu from './contextMenu'; | 22 | import contextMenu from './contextMenu'; |
25 | import { | 23 | import { |
26 | darkModeStyleExists, | 24 | darkModeStyleExists, |
@@ -28,25 +26,27 @@ import { | |||
28 | isDarkModeStyleInjected, | 26 | isDarkModeStyleInjected, |
29 | removeDarkModeStyle, | 27 | removeDarkModeStyle, |
30 | } from './darkmode'; | 28 | } from './darkmode'; |
29 | import DialogTitleHandler from './dialogTitle'; | ||
31 | import FindInPage from './find'; | 30 | import FindInPage from './find'; |
32 | import { | 31 | import { |
33 | notificationsClassDefinition, | ||
34 | NotificationsHandler, | 32 | NotificationsHandler, |
33 | notificationsClassDefinition, | ||
35 | } from './notifications'; | 34 | } from './notifications'; |
36 | import { | 35 | import { |
37 | getDisplayMediaSelector, | 36 | getDisplayMediaSelector, |
38 | screenShareCss, | 37 | screenShareCss, |
39 | screenShareJs, | 38 | screenShareJs, |
40 | } from './screenshare'; | 39 | } from './screenshare'; |
40 | import SessionHandler from './sessionHandler'; | ||
41 | import { | 41 | import { |
42 | getSpellcheckerLocaleByFuzzyIdentifier, | 42 | getSpellcheckerLocaleByFuzzyIdentifier, |
43 | switchDict, | 43 | switchDict, |
44 | } from './spellchecker'; | 44 | } from './spellchecker'; |
45 | 45 | ||
46 | import type { AppStore } from '../@types/stores.types'; | ||
46 | import { DEFAULT_APP_SETTINGS } from '../config'; | 47 | import { DEFAULT_APP_SETTINGS } from '../config'; |
47 | import { cleanseJSObject, ifUndefined, safeParseInt } from '../jsUtils'; | 48 | import { cleanseJSObject, ifUndefined, safeParseInt } from '../jsUtils'; |
48 | import { AppStore } from '../@types/stores.types'; | 49 | import type Service from '../models/Service'; |
49 | import Service from '../models/Service'; | ||
50 | 50 | ||
51 | // For some services darkreader tries to use the chrome extension message API | 51 | // For some services darkreader tries to use the chrome extension message API |
52 | // This will cause the service to fail loading | 52 | // This will cause the service to fail loading |