|
1 | 1 | /* eslint-disable no-await-in-loop -- Event loops */ |
2 | 2 | import React from 'dom-chef'; |
3 | | -import {elementExists} from 'select-dom'; |
4 | 3 | import domLoaded from 'dom-loaded'; |
| 4 | +import * as pageDetect from 'github-url-detection'; |
| 5 | +import oneEvent from 'one-event'; |
| 6 | +import {elementExists} from 'select-dom'; |
5 | 7 | import stripIndent from 'strip-indent'; |
6 | 8 | import type {Promisable} from 'type-fest'; |
7 | | -import * as pageDetect from 'github-url-detection'; |
8 | 9 | import {isWebPage} from 'webext-detect'; |
9 | 10 | import {messageRuntime} from 'webext-msg'; |
10 | | -import oneEvent from 'one-event'; |
11 | 11 |
|
12 | | -import waitFor from './helpers/wait-for.js'; |
13 | | -import ArrayMap from './helpers/map-of-arrays.js'; |
| 12 | +import asyncForEach from './helpers/async-for-each.js'; |
14 | 13 | import bisectFeatures from './helpers/bisect.js'; |
| 14 | +import {catchErrors, disableErrorLogging} from './helpers/errors.js'; |
15 | 15 | import { |
16 | | - shouldFeatureRun, |
17 | | - isFeaturePrivate, |
18 | | - type RunConditions, |
19 | | -} from './helpers/feature-utils.js'; |
20 | | -import optionsStorage, {isFeatureDisabled, type RghOptions} from './options-storage.js'; |
| 16 | + getFeatureId, listenToAjaxedLoad, log, shortcutMap, |
| 17 | +} from './helpers/feature-helpers.js'; |
| 18 | +import {isFeaturePrivate, type RunConditions, shouldFeatureRun} from './helpers/feature-utils.js'; |
21 | 19 | import { |
22 | 20 | applyStyleHotfixes, |
| 21 | + brokenFeatures, |
23 | 22 | getLocalHotfixesAsOptions, |
24 | 23 | preloadSyncLocalStrings, |
25 | | - brokenFeatures, |
26 | 24 | } from './helpers/hotfix.js'; |
27 | | -import asyncForEach from './helpers/async-for-each.js'; |
28 | | -import {catchErrors, disableErrorLogging} from './helpers/errors.js'; |
29 | | -import { |
30 | | - getFeatureId, listenToAjaxedLoad, log, shortcutMap, |
31 | | -} from './helpers/feature-helpers.js'; |
| 25 | +import ArrayMap from './helpers/map-of-arrays.js'; |
| 26 | +import waitFor from './helpers/wait-for.js'; |
| 27 | +import optionsStorage, {isFeatureDisabled, type RghOptions} from './options-storage.js'; |
32 | 28 | import {contentScriptToggle} from './options/reload-without.js'; |
33 | 29 |
|
34 | 30 | type FeatureInitResult = void | false; |
|
0 commit comments