This commit is contained in:
2021-08-05 13:41:51 -05:00
parent e23c0086c2
commit 33f9ffb393
76 changed files with 1390 additions and 1388 deletions

View File

@@ -1 +1,7 @@
.vimrc set autoread
set path+=.,public/**,src/**,test/**
if has('win32') || has('win64')
let &makeprg="create_dist.cmd"
else
let &makeprg="./create_dist.sh"
endif

7
.vimrc
View File

@@ -1,7 +0,0 @@
set autoread
set path+=.,public/**,src/**,test/**
if has('win32') || has('win64')
let &makeprg="create_dist.cmd"
else
let &makeprg="./create_dist.sh"
endif

View File

@@ -43,8 +43,7 @@ const InfoDetails = (props) => {
<textarea <textarea
autoFocus autoFocus
rows={9} rows={9}
onChange={() => { onChange={() => {}}
}}
value={msg} value={msg}
className={'SkynetImportTextArea'} className={'SkynetImportTextArea'}
onClick={(e) => scrollToTop(e.target)} onClick={(e) => scrollToTop(e.target)}

View File

@@ -205,8 +205,7 @@ class Configuration extends IPCContainer {
OriginalItemList: itemListCopy, OriginalItemList: itemListCopy,
OriginalObjectLookup: objectLookupCopy, OriginalObjectLookup: objectLookupCopy,
}, },
() => { () => {}
}
); );
} else { } else {
this.props.notifyError(arg.data.Error); this.props.notifyError(arg.data.Error);

View File

@@ -21,8 +21,7 @@ class HostList extends Component {
this.setState({ items: this.props.value }); this.setState({ items: this.props.value });
} }
componentWillUnmount() { componentWillUnmount() {}
}
handleAddHost = () => { handleAddHost = () => {
this.props.AddHost(this.state.items, (changed, { host_data }) => { this.props.AddHost(this.state.items, (changed, { host_data }) => {

View File

@@ -45,7 +45,7 @@ const _vcRuntimeExists = () => {
value.includes( value.includes(
IS_64BIT IS_64BIT
? 'Microsoft Visual C++ 2015-2019 Redistributable (x64)' ? 'Microsoft Visual C++ 2015-2019 Redistributable (x64)'
: 'Microsoft Visual C++ 2015-2019 Redistributable (x32)', : 'Microsoft Visual C++ 2015-2019 Redistributable (x32)'
) )
) { ) {
vcRuntimeExists = true; vcRuntimeExists = true;
@@ -392,7 +392,7 @@ module.exports.detectRepertoryMounts = (version, providerList) => {
provider, provider,
!Constants.PROVIDER_LIST.includes(provider) && !Constants.PROVIDER_LIST.includes(provider) &&
provider.toLowerCase().startsWith('remote'), provider.toLowerCase().startsWith('remote'),
!Constants.PROVIDER_LIST.includes(provider) && provider.toLowerCase().startsWith('s3'), !Constants.PROVIDER_LIST.includes(provider) && provider.toLowerCase().startsWith('s3')
); );
args.push('-status'); args.push('-status');
@@ -539,9 +539,9 @@ module.exports.executeAsync = (command, args = []) => {
() => () =>
launchProcess( launchProcess(
count, count,
setTimeout(() => resolve(), 3000), setTimeout(() => resolve(), 3000)
), ),
1000, 1000
); );
} }
}); });
@@ -556,9 +556,9 @@ module.exports.executeAsync = (command, args = []) => {
() => () =>
launchProcess( launchProcess(
count, count,
setTimeout(() => resolve(), 3000), setTimeout(() => resolve(), 3000)
), ),
1000, 1000
); );
} }
} }
@@ -569,7 +569,7 @@ module.exports.executeAsync = (command, args = []) => {
launchProcess( launchProcess(
0, 0,
setTimeout(() => resolve(), 3000), setTimeout(() => resolve(), 3000)
); );
}); });
}; };
@@ -1136,7 +1136,14 @@ module.exports.setConfigValue = (name, value, provider, remote, s3, version) =>
}); });
}; };
module.exports.testSkynetLogon = (version, authURL, authUser, authPassword, agentString, apiKey) => { module.exports.testSkynetLogon = (
version,
authURL,
authUser,
authPassword,
agentString,
apiKey
) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const repertoryExec = _getRepertoryExec(version); const repertoryExec = _getRepertoryExec(version);
const processOptions = { const processOptions = {
@@ -1274,7 +1281,7 @@ module.exports.verifySignature = (file, signatureFile, publicKeyFile) => {
} else { } else {
resolve(stdout); resolve(stdout);
} }
}, }
); );
}; };
@@ -1298,7 +1305,7 @@ module.exports.verifySignature = (file, signatureFile, publicKeyFile) => {
} }
}); });
} else { } else {
reject(new Error('Failed to locate \'openssl.exe\'')); reject(new Error("Failed to locate 'openssl.exe'"));
} }
}); });
} else if (os.platform() === 'linux') { } else if (os.platform() === 'linux') {

View File

@@ -43,8 +43,7 @@ const addListeners = (ipcMain, {getMainWindow, dialog}) => {
if (fs.existsSync(data.FilePath)) { if (fs.existsSync(data.FilePath)) {
fs.unlinkSync(data.FilePath); fs.unlinkSync(data.FilePath);
} }
} catch (e) { } catch (e) {}
}
}); });
ipcMain.on(Constants.IPC_Select_File + '_sync', (event, data) => { ipcMain.on(Constants.IPC_Select_File + '_sync', (event, data) => {

View File

@@ -109,8 +109,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
driveLetters[provider].push(drive); driveLetters[provider].push(drive);
} }
} }
} catch (e) { } catch (e) {}
}
} }
} }

View File

@@ -28,8 +28,7 @@ const addListeners = (ipcMain, {standardIPCReply}) => {
}); });
}); });
ipcMain.on(Constants.IPC_Get_Pinned_Files_Status, (event, data) => { ipcMain.on(Constants.IPC_Get_Pinned_Files_Status, (event, data) => {});
});
ipcMain.on(Constants.IPC_Set_Pinned + '_sync', (event, data) => { ipcMain.on(Constants.IPC_Set_Pinned + '_sync', (event, data) => {
helpers helpers

View File

@@ -14,8 +14,7 @@ const addListeners = (ipcMain, {getCleanupReleases, standardIPCReply}) => {
let exists = false; let exists = false;
try { try {
exists = fs.existsSync(destination) && fs.lstatSync(destination).isDirectory(); exists = fs.existsSync(destination) && fs.lstatSync(destination).isDirectory();
} catch (e) { } catch (e) {}
}
standardIPCReply(event, Constants.IPC_Check_Installed_Reply, { standardIPCReply(event, Constants.IPC_Check_Installed_Reply, {
Dependencies: dependencies, Dependencies: dependencies,
Exists: exists, Exists: exists,
@@ -54,8 +53,7 @@ const addListeners = (ipcMain, {getCleanupReleases, standardIPCReply}) => {
.on('error', (error) => { .on('error', (error) => {
try { try {
helpers.removeDirectoryRecursively(destination); helpers.removeDirectoryRecursively(destination);
} catch (e) { } catch (e) {}
}
stream.close(); stream.close();
standardIPCReply( standardIPCReply(
event, event,

View File

@@ -48,7 +48,12 @@ const addListeners = (ipcMain, {standardIPCReply}) => {
if (success) { if (success) {
standardIPCReply(event, Constants.IPC_Skynet_Test_Logon_Reply, {}); standardIPCReply(event, Constants.IPC_Skynet_Test_Logon_Reply, {});
} else { } else {
standardIPCReply(event, Constants.IPC_Skynet_Test_Logon_Reply, {}, 'Logon failed. Please check credentials'); standardIPCReply(
event,
Constants.IPC_Skynet_Test_Logon_Reply,
{},
'Logon failed. Please check credentials'
);
} }
}) })
.catch((error) => { .catch((error) => {

View File

@@ -19,8 +19,7 @@ const addListeners = (ipcMain, {setIsInstalling, unmountAllDrives, standardIPCRe
if (tempPub) { if (tempPub) {
fs.unlinkSync(tempPub); fs.unlinkSync(tempPub);
} }
} catch (e) { } catch (e) {}
}
}; };
const errorHandler = (err) => { const errorHandler = (err) => {