diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-31 02:39:24 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-31 02:45:04 +0100 |
commit | cd7833ce2400c9bb9e4b49c51c326783bfb03b75 (patch) | |
tree | de598c72f121bd375dad6e3c6a288fbf57b0f278 /packages/main/src/controllers | |
parent | build: Upgrade to chalk 5.0.0 anyways (diff) | |
download | sophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.tar.gz sophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.tar.zst sophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.zip |
chore: Add import extensions preparing for ts 4.6 nodenext
Diffstat (limited to 'packages/main/src/controllers')
4 files changed, 13 insertions, 10 deletions
diff --git a/packages/main/src/controllers/__tests__/config.spec.ts b/packages/main/src/controllers/__tests__/config.spec.ts index 9471ca9..eea7f1e 100644 --- a/packages/main/src/controllers/__tests__/config.spec.ts +++ b/packages/main/src/controllers/__tests__/config.spec.ts | |||
@@ -23,9 +23,10 @@ import { mocked } from 'jest-mock'; | |||
23 | import ms from 'ms'; | 23 | import ms from 'ms'; |
24 | 24 | ||
25 | import { initConfig } from '../config'; | 25 | import { initConfig } from '../config'; |
26 | import type { ConfigPersistenceService } from '../../services/ConfigPersistenceService'; | 26 | import type { ConfigPersistenceService } from '../../services/ConfigPersistenceService.js'; |
27 | import { Config, config as configModel } from '../../stores/Config'; | 27 | import { Config, config as configModel } from '../../stores/Config.js'; |
28 | import { Disposer, silenceLogger } from '../../utils'; | 28 | import { Disposer } from '../../utils/disposer.js'; |
29 | import { silenceLogger } from '../../utils/logging.js'; | ||
29 | 30 | ||
30 | let config: Config; | 31 | let config: Config; |
31 | let persistenceService: ConfigPersistenceService = { | 32 | let persistenceService: ConfigPersistenceService = { |
diff --git a/packages/main/src/controllers/__tests__/nativeTheme.spec.ts b/packages/main/src/controllers/__tests__/nativeTheme.spec.ts index cfb557c..cffeace 100644 --- a/packages/main/src/controllers/__tests__/nativeTheme.spec.ts +++ b/packages/main/src/controllers/__tests__/nativeTheme.spec.ts | |||
@@ -21,8 +21,8 @@ | |||
21 | import { jest } from '@jest/globals'; | 21 | import { jest } from '@jest/globals'; |
22 | import { mocked } from 'jest-mock'; | 22 | import { mocked } from 'jest-mock'; |
23 | 23 | ||
24 | import { createMainStore, MainStore } from '../../stores/MainStore'; | 24 | import { createMainStore, MainStore } from '../../stores/MainStore.js'; |
25 | import { Disposer } from '../../utils'; | 25 | import { Disposer } from '../../utils/disposer.js'; |
26 | 26 | ||
27 | let shouldUseDarkColors = false; | 27 | let shouldUseDarkColors = false; |
28 | 28 | ||
diff --git a/packages/main/src/controllers/config.ts b/packages/main/src/controllers/config.ts index d3559c8..ec23e8f 100644 --- a/packages/main/src/controllers/config.ts +++ b/packages/main/src/controllers/config.ts | |||
@@ -22,9 +22,10 @@ import debounce from 'lodash-es/debounce'; | |||
22 | import ms from 'ms'; | 22 | import ms from 'ms'; |
23 | import { applySnapshot, getSnapshot, onSnapshot } from 'mobx-state-tree'; | 23 | import { applySnapshot, getSnapshot, onSnapshot } from 'mobx-state-tree'; |
24 | 24 | ||
25 | import type { ConfigPersistenceService } from '../services/ConfigPersistenceService'; | 25 | import type { ConfigPersistenceService } from '../services/ConfigPersistenceService.js'; |
26 | import type { Config, ConfigSnapshotOut } from '../stores/Config'; | 26 | import type { Config, ConfigSnapshotOut } from '../stores/Config.js'; |
27 | import { Disposer, getLogger } from '../utils'; | 27 | import { Disposer } from '../utils/disposer.js'; |
28 | import { getLogger } from '../utils/logging.js'; | ||
28 | 29 | ||
29 | const DEFAULT_CONFIG_DEBOUNCE_TIME = ms('1s'); | 30 | const DEFAULT_CONFIG_DEBOUNCE_TIME = ms('1s'); |
30 | 31 | ||
diff --git a/packages/main/src/controllers/nativeTheme.ts b/packages/main/src/controllers/nativeTheme.ts index 9edb4e8..c291a16 100644 --- a/packages/main/src/controllers/nativeTheme.ts +++ b/packages/main/src/controllers/nativeTheme.ts | |||
@@ -21,8 +21,9 @@ | |||
21 | import { nativeTheme } from 'electron'; | 21 | import { nativeTheme } from 'electron'; |
22 | import { autorun } from 'mobx'; | 22 | import { autorun } from 'mobx'; |
23 | 23 | ||
24 | import type { MainStore } from '../stores/MainStore'; | 24 | import type { MainStore } from '../stores/MainStore.js'; |
25 | import { Disposer, getLogger } from '../utils'; | 25 | import { Disposer } from '../utils/disposer.js'; |
26 | import { getLogger } from '../utils/logging.js'; | ||
26 | 27 | ||
27 | const log = getLogger('nativeTheme'); | 28 | const log = getLogger('nativeTheme'); |
28 | 29 | ||