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' ;
1
6
import { ILogEntry , LogLevel } from '@shared/Log/interface' ;
7
+ import { PreferencesFile } from '@shared/preferences/PreferencesFile' ;
8
+ import { defaultPreferencesData } from '@shared/preferences/util' ;
2
9
import { Theme } from '@shared/ThemeFile' ;
3
10
import {
4
11
createErrorProxy , deepCopy ,
5
12
removeFileExtension ,
6
13
stringifyArray
7
14
} 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' ;
16
15
import { validateSemiUUID } from '@shared/utils/uuid' ;
17
16
import { FPA_VERSION , VERSION } from '@shared/version' ;
18
17
import * as child_process from 'child_process' ;
@@ -22,32 +21,31 @@ import * as fs from 'fs-extra';
22
21
import * as http from 'http' ;
23
22
import * as mime from 'mime' ;
24
23
import { Progress , add , extractFull } from 'node-7z' ;
24
+ import * as os from 'os' ;
25
25
import * as path from 'path' ;
26
26
import 'reflect-metadata' ;
27
27
import { genCurationWarnings , loadCurationFolder } from './curate/util' ;
28
28
// Required for the DB Models to function
29
+ import { FlashpointArchive , enableDebug , loggerSusbcribe } from '@fparchive/flashpoint-archive' ;
29
30
import {
30
31
CURATIONS_FOLDER_EXPORTED ,
31
32
CURATIONS_FOLDER_EXTRACTING ,
32
33
CURATIONS_FOLDER_TEMP ,
33
34
CURATIONS_FOLDER_WORKING , CURATION_META_FILENAMES
34
35
} from '@shared/constants' ;
35
- import { FlashpointArchive , enableDebug , loggerSusbcribe } from '@fparchive/flashpoint-archive ' ;
36
+ import { formatString } from '@shared/utils/StringFormatter ' ;
36
37
import { Tail } from 'tail' ;
37
38
import { 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' ;
46
39
import { CONFIG_FILENAME , DISCORD_LINK , EXT_CONFIG_FILENAME , PREFERENCES_FILENAME , SERVICES_SOURCE , WIKI_AV_TROUBLESHOOTING } from './constants' ;
40
+ import { saveCurationFpfssInfo } from './curate/fpfss' ;
47
41
import { loadCurationIndexImage } from './curate/parse' ;
48
42
import { readCurationMeta } from './curate/read' ;
49
43
import { onFileServerRequestCurationFileFactory , onFileServerRequestPostCuration } from './curate/util' ;
44
+ import { axios } from './dns' ;
50
45
import { downloadGameData } from './download' ;
46
+ import { Downloader } from './Downloader' ;
47
+ import { loadExecMappingsFile } from './Execs' ;
48
+ import { ExtConfigFile } from './ExtConfigFile' ;
51
49
import { ApiEmitter } from './extensions/ApiEmitter' ;
52
50
import { ExtensionService } from './extensions/ExtensionService' ;
53
51
import {
@@ -57,24 +55,26 @@ import {
57
55
registerInterceptor
58
56
} from './extensions/NodeInterceptor' ;
59
57
import { Command , RegisteredMiddleware } from './extensions/types' ;
58
+ import { InstancedAbortController } from './InstancedAbortController' ;
59
+ import { ManagedChildProcess } from './ManagedChildProcess' ;
60
60
import { SystemEnvMiddleware } from './middleware' ;
61
+ import { PlaylistFile } from './PlaylistFile' ;
61
62
import { registerRequestCallbacks } from './responses' ;
62
63
import { genContentTree } from './rust' ;
64
+ import { ServicesFile } from './ServicesFile' ;
65
+ import { SocketServer } from './SocketServer' ;
66
+ import { newThemeWatcher } from './Themes' ;
63
67
import { BackState , ImageDownloadItem } from './types' ;
68
+ import { awaitDialog } from './util/dialog' ;
64
69
import { EventQueue } from './util/EventQueue' ;
70
+ import { onDidInstallGameData , onDidRemoveGame , onDidRemovePlaylistGame , onDidUninstallGameData , onDidUpdateGame , onDidUpdatePlaylist , onDidUpdatePlaylistGame , onServiceChange , onWillImportCuration , onWillUninstallGameData } from './util/events' ;
65
71
import { FileServer , serveFile } from './util/FileServer' ;
66
72
import { FolderWatcher } from './util/FolderWatcher' ;
73
+ import { dispose } from './util/lifecycle' ;
67
74
import { LogFile } from './util/LogFile' ;
68
75
import { logFactory } from './util/logging' ;
69
76
import { createContainer , exit , getMacPATH , promiseSleep , runService } from './util/misc' ;
70
77
import { 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' ;
78
78
79
79
export const VERBOSE = {
80
80
enabled : false
@@ -1461,7 +1461,6 @@ async function updateFileServerDownloadQueue() {
1461
1461
} )
1462
1462
. catch ( ( err ) => {
1463
1463
item . res . writeHead ( 404 ) ;
1464
- log . error ( 'Launcher' , 'Failure downloading image on demand: ' + err ) ;
1465
1464
} )
1466
1465
. finally ( async ( ) => {
1467
1466
removeFileServerDownloadItem ( item ) ;
@@ -1643,4 +1642,4 @@ export async function databaseReady(): Promise<FlashpointArchive> {
1643
1642
} ;
1644
1643
waitForDb ( ) ;
1645
1644
} ) ;
1646
- }
1645
+ }
0 commit comments