1+ import { BackIn , BackInit , BackInitArgs , BackOut , BackResParams , ComponentState , ComponentStatus , DownloadDetails } from '@shared/back/types' ;
2+ import { getContentFolderByKey , getCurationFolder } from '@shared/curate/util' ;
3+ import { ILogoSet , LogoSet } from '@shared/extensions/interfaces' ;
4+ import { IBackProcessInfo , RecursivePartial } from '@shared/interfaces' ;
5+ import { LangFileContent , getDefaultLocalization } from '@shared/lang' ;
16import { ILogEntry , LogLevel } from '@shared/Log/interface' ;
7+ import { PreferencesFile } from '@shared/preferences/PreferencesFile' ;
8+ import { defaultPreferencesData } from '@shared/preferences/util' ;
29import { Theme } from '@shared/ThemeFile' ;
310import {
411 createErrorProxy , deepCopy ,
512 removeFileExtension ,
613 stringifyArray
714} from '@shared/Util' ;
8- import * as os from 'os' ;
9- import { BackIn , BackInit , BackInitArgs , BackOut , BackResParams , ComponentState , ComponentStatus , DownloadDetails , FpfssUser } from '@shared/back/types' ;
10- import { getContentFolderByKey , getCurationFolder } from '@shared/curate/util' ;
11- import { ILogoSet , LogoSet } from '@shared/extensions/interfaces' ;
12- import { IBackProcessInfo , RecursivePartial } from '@shared/interfaces' ;
13- import { LangFileContent , getDefaultLocalization } from '@shared/lang' ;
14- import { PreferencesFile } from '@shared/preferences/PreferencesFile' ;
15- import { defaultPreferencesData } from '@shared/preferences/util' ;
1615import { validateSemiUUID } from '@shared/utils/uuid' ;
1716import { FPA_VERSION , VERSION } from '@shared/version' ;
1817import * as child_process from 'child_process' ;
@@ -22,32 +21,31 @@ import * as fs from 'fs-extra';
2221import * as http from 'http' ;
2322import * as mime from 'mime' ;
2423import { Progress , add , extractFull } from 'node-7z' ;
24+ import * as os from 'os' ;
2525import * as path from 'path' ;
2626import 'reflect-metadata' ;
2727import { genCurationWarnings , loadCurationFolder } from './curate/util' ;
2828// Required for the DB Models to function
29+ import { FlashpointArchive , enableDebug , loggerSusbcribe } from '@fparchive/flashpoint-archive' ;
2930import {
3031 CURATIONS_FOLDER_EXPORTED ,
3132 CURATIONS_FOLDER_EXTRACTING ,
3233 CURATIONS_FOLDER_TEMP ,
3334 CURATIONS_FOLDER_WORKING , CURATION_META_FILENAMES
3435} from '@shared/constants' ;
35- import { FlashpointArchive , enableDebug , loggerSusbcribe } from '@fparchive/flashpoint-archive ' ;
36+ import { formatString } from '@shared/utils/StringFormatter ' ;
3637import { Tail } from 'tail' ;
3738import { ConfigFile } from './ConfigFile' ;
38- import { loadExecMappingsFile } from './Execs' ;
39- import { ExtConfigFile } from './ExtConfigFile' ;
40- import { InstancedAbortController } from './InstancedAbortController' ;
41- import { ManagedChildProcess } from './ManagedChildProcess' ;
42- import { PlaylistFile } from './PlaylistFile' ;
43- import { ServicesFile } from './ServicesFile' ;
44- import { SocketServer } from './SocketServer' ;
45- import { newThemeWatcher } from './Themes' ;
4639import { CONFIG_FILENAME , DISCORD_LINK , EXT_CONFIG_FILENAME , PREFERENCES_FILENAME , SERVICES_SOURCE , WIKI_AV_TROUBLESHOOTING } from './constants' ;
40+ import { saveCurationFpfssInfo } from './curate/fpfss' ;
4741import { loadCurationIndexImage } from './curate/parse' ;
4842import { readCurationMeta } from './curate/read' ;
4943import { onFileServerRequestCurationFileFactory , onFileServerRequestPostCuration } from './curate/util' ;
44+ import { axios } from './dns' ;
5045import { downloadGameData } from './download' ;
46+ import { Downloader } from './Downloader' ;
47+ import { loadExecMappingsFile } from './Execs' ;
48+ import { ExtConfigFile } from './ExtConfigFile' ;
5149import { ApiEmitter } from './extensions/ApiEmitter' ;
5250import { ExtensionService } from './extensions/ExtensionService' ;
5351import {
@@ -57,24 +55,26 @@ import {
5755 registerInterceptor
5856} from './extensions/NodeInterceptor' ;
5957import { Command , RegisteredMiddleware } from './extensions/types' ;
58+ import { InstancedAbortController } from './InstancedAbortController' ;
59+ import { ManagedChildProcess } from './ManagedChildProcess' ;
6060import { SystemEnvMiddleware } from './middleware' ;
61+ import { PlaylistFile } from './PlaylistFile' ;
6162import { registerRequestCallbacks } from './responses' ;
6263import { genContentTree } from './rust' ;
64+ import { ServicesFile } from './ServicesFile' ;
65+ import { SocketServer } from './SocketServer' ;
66+ import { newThemeWatcher } from './Themes' ;
6367import { BackState , ImageDownloadItem } from './types' ;
68+ import { awaitDialog } from './util/dialog' ;
6469import { EventQueue } from './util/EventQueue' ;
70+ import { onDidInstallGameData , onDidRemoveGame , onDidRemovePlaylistGame , onDidUninstallGameData , onDidUpdateGame , onDidUpdatePlaylist , onDidUpdatePlaylistGame , onServiceChange , onWillImportCuration , onWillUninstallGameData } from './util/events' ;
6571import { FileServer , serveFile } from './util/FileServer' ;
6672import { FolderWatcher } from './util/FolderWatcher' ;
73+ import { dispose } from './util/lifecycle' ;
6774import { LogFile } from './util/LogFile' ;
6875import { logFactory } from './util/logging' ;
6976import { createContainer , exit , getMacPATH , promiseSleep , runService } from './util/misc' ;
7077import { uuid } from './util/uuid' ;
71- import { onDidInstallGameData , onDidRemoveGame , onDidRemovePlaylistGame , onDidUninstallGameData , onDidUpdateGame , onDidUpdatePlaylist , onDidUpdatePlaylistGame , onServiceChange , onWillImportCuration , onWillUninstallGameData } from './util/events' ;
72- import { dispose } from './util/lifecycle' ;
73- import { formatString } from '@shared/utils/StringFormatter' ;
74- import { awaitDialog } from './util/dialog' ;
75- import { saveCurationFpfssInfo } from './curate/fpfss' ;
76- import { axios } from './dns' ;
77- import { Downloader } from './Downloader' ;
7878
7979export const VERBOSE = {
8080 enabled : false
@@ -1461,7 +1461,6 @@ async function updateFileServerDownloadQueue() {
14611461 } )
14621462 . catch ( ( err ) => {
14631463 item . res . writeHead ( 404 ) ;
1464- log . error ( 'Launcher' , 'Failure downloading image on demand: ' + err ) ;
14651464 } )
14661465 . finally ( async ( ) => {
14671466 removeFileServerDownloadItem ( item ) ;
@@ -1643,4 +1642,4 @@ export async function databaseReady(): Promise<FlashpointArchive> {
16431642 } ;
16441643 waitForDb ( ) ;
16451644 } ) ;
1646- }
1645+ }
0 commit comments