mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-03-30 06:12:06 -07:00
chore: consolidate duplicate import paths in main.ts
This commit is contained in:
16
src/main.ts
16
src/main.ts
@@ -101,8 +101,7 @@ import { AnkiIntegration } from './anki-integration';
|
|||||||
import { SubtitleTimingTracker } from './subtitle-timing-tracker';
|
import { SubtitleTimingTracker } from './subtitle-timing-tracker';
|
||||||
import { RuntimeOptionsManager } from './runtime-options';
|
import { RuntimeOptionsManager } from './runtime-options';
|
||||||
import { downloadToFile, isRemoteMediaPath, parseMediaInfo } from './jimaku/utils';
|
import { downloadToFile, isRemoteMediaPath, parseMediaInfo } from './jimaku/utils';
|
||||||
import { createLogger, setLogLevel, type LogLevelSource } from './logger';
|
import { createLogger, setLogLevel, resolveDefaultLogFilePath, type LogLevelSource } from './logger';
|
||||||
import { resolveDefaultLogFilePath } from './logger';
|
|
||||||
import { createWindowTracker as createWindowTrackerCore } from './window-trackers';
|
import { createWindowTracker as createWindowTrackerCore } from './window-trackers';
|
||||||
import {
|
import {
|
||||||
commandNeedsOverlayStartupPrereqs,
|
commandNeedsOverlayStartupPrereqs,
|
||||||
@@ -111,10 +110,11 @@ import {
|
|||||||
parseArgs,
|
parseArgs,
|
||||||
shouldRunSettingsOnlyStartup,
|
shouldRunSettingsOnlyStartup,
|
||||||
shouldStartApp,
|
shouldStartApp,
|
||||||
|
type CliArgs,
|
||||||
|
type CliCommandSource,
|
||||||
} from './cli/args';
|
} from './cli/args';
|
||||||
import type { CliArgs, CliCommandSource } from './cli/args';
|
|
||||||
import { printHelp } from './cli/help';
|
import { printHelp } from './cli/help';
|
||||||
import { IPC_CHANNELS } from './shared/ipc/contracts';
|
import { IPC_CHANNELS, type OverlayHostedModal } from './shared/ipc/contracts';
|
||||||
import {
|
import {
|
||||||
buildConfigParseErrorDetails,
|
buildConfigParseErrorDetails,
|
||||||
buildConfigWarningDialogDetails,
|
buildConfigWarningDialogDetails,
|
||||||
@@ -142,9 +142,9 @@ import {
|
|||||||
createGetDefaultSocketPathHandler,
|
createGetDefaultSocketPathHandler,
|
||||||
buildJellyfinSetupFormHtml,
|
buildJellyfinSetupFormHtml,
|
||||||
parseJellyfinSetupSubmissionUrl,
|
parseJellyfinSetupSubmissionUrl,
|
||||||
|
getConfiguredJellyfinSession,
|
||||||
|
type ActiveJellyfinRemotePlaybackState,
|
||||||
} from './main/runtime/domains/jellyfin';
|
} from './main/runtime/domains/jellyfin';
|
||||||
import type { ActiveJellyfinRemotePlaybackState } from './main/runtime/domains/jellyfin';
|
|
||||||
import { getConfiguredJellyfinSession } from './main/runtime/domains/jellyfin';
|
|
||||||
import {
|
import {
|
||||||
createBuildConfigHotReloadMessageMainDepsHandler,
|
createBuildConfigHotReloadMessageMainDepsHandler,
|
||||||
createBuildConfigHotReloadAppliedMainDepsHandler,
|
createBuildConfigHotReloadAppliedMainDepsHandler,
|
||||||
@@ -404,7 +404,6 @@ import { handleCliCommandRuntimeServiceWithContext } from './main/cli-runtime';
|
|||||||
import { createOverlayModalRuntimeService } from './main/overlay-runtime';
|
import { createOverlayModalRuntimeService } from './main/overlay-runtime';
|
||||||
import { createOverlayModalInputState } from './main/runtime/overlay-modal-input-state';
|
import { createOverlayModalInputState } from './main/runtime/overlay-modal-input-state';
|
||||||
import { openYoutubeTrackPicker } from './main/runtime/youtube-picker-open';
|
import { openYoutubeTrackPicker } from './main/runtime/youtube-picker-open';
|
||||||
import type { OverlayHostedModal } from './shared/ipc/contracts';
|
|
||||||
import { createOverlayShortcutsRuntimeService } from './main/overlay-shortcuts-runtime';
|
import { createOverlayShortcutsRuntimeService } from './main/overlay-shortcuts-runtime';
|
||||||
import {
|
import {
|
||||||
createFrequencyDictionaryRuntimeService,
|
createFrequencyDictionaryRuntimeService,
|
||||||
@@ -466,8 +465,7 @@ import {
|
|||||||
} from './config';
|
} from './config';
|
||||||
import { resolveConfigDir } from './config/path-resolution';
|
import { resolveConfigDir } from './config/path-resolution';
|
||||||
import { parseSubtitleCues } from './core/services/subtitle-cue-parser';
|
import { parseSubtitleCues } from './core/services/subtitle-cue-parser';
|
||||||
import { createSubtitlePrefetchService } from './core/services/subtitle-prefetch';
|
import { createSubtitlePrefetchService, type SubtitlePrefetchService } from './core/services/subtitle-prefetch';
|
||||||
import type { SubtitlePrefetchService } from './core/services/subtitle-prefetch';
|
|
||||||
import {
|
import {
|
||||||
buildSubtitleSidebarSourceKey,
|
buildSubtitleSidebarSourceKey,
|
||||||
resolveSubtitleSourcePath,
|
resolveSubtitleSourcePath,
|
||||||
|
|||||||
Reference in New Issue
Block a user