prettier
This commit is contained in:
8
.nvimrc
8
.nvimrc
@@ -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
7
.vimrc
@@ -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
|
||||
@@ -43,8 +43,7 @@ const InfoDetails = (props) => {
|
||||
<textarea
|
||||
autoFocus
|
||||
rows={9}
|
||||
onChange={() => {
|
||||
}}
|
||||
onChange={() => {}}
|
||||
value={msg}
|
||||
className={'SkynetImportTextArea'}
|
||||
onClick={(e) => scrollToTop(e.target)}
|
||||
|
||||
@@ -205,8 +205,7 @@ class Configuration extends IPCContainer {
|
||||
OriginalItemList: itemListCopy,
|
||||
OriginalObjectLookup: objectLookupCopy,
|
||||
},
|
||||
() => {
|
||||
}
|
||||
() => {}
|
||||
);
|
||||
} else {
|
||||
this.props.notifyError(arg.data.Error);
|
||||
|
||||
@@ -21,8 +21,7 @@ class HostList extends Component {
|
||||
this.setState({ items: this.props.value });
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
}
|
||||
componentWillUnmount() {}
|
||||
|
||||
handleAddHost = () => {
|
||||
this.props.AddHost(this.state.items, (changed, { host_data }) => {
|
||||
|
||||
@@ -45,7 +45,7 @@ const _vcRuntimeExists = () => {
|
||||
value.includes(
|
||||
IS_64BIT
|
||||
? 'Microsoft Visual C++ 2015-2019 Redistributable (x64)'
|
||||
: 'Microsoft Visual C++ 2015-2019 Redistributable (x32)',
|
||||
: 'Microsoft Visual C++ 2015-2019 Redistributable (x32)'
|
||||
)
|
||||
) {
|
||||
vcRuntimeExists = true;
|
||||
@@ -392,7 +392,7 @@ module.exports.detectRepertoryMounts = (version, providerList) => {
|
||||
provider,
|
||||
!Constants.PROVIDER_LIST.includes(provider) &&
|
||||
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');
|
||||
|
||||
@@ -539,9 +539,9 @@ module.exports.executeAsync = (command, args = []) => {
|
||||
() =>
|
||||
launchProcess(
|
||||
count,
|
||||
setTimeout(() => resolve(), 3000),
|
||||
setTimeout(() => resolve(), 3000)
|
||||
),
|
||||
1000,
|
||||
1000
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -556,9 +556,9 @@ module.exports.executeAsync = (command, args = []) => {
|
||||
() =>
|
||||
launchProcess(
|
||||
count,
|
||||
setTimeout(() => resolve(), 3000),
|
||||
setTimeout(() => resolve(), 3000)
|
||||
),
|
||||
1000,
|
||||
1000
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -569,7 +569,7 @@ module.exports.executeAsync = (command, args = []) => {
|
||||
|
||||
launchProcess(
|
||||
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) => {
|
||||
const repertoryExec = _getRepertoryExec(version);
|
||||
const processOptions = {
|
||||
@@ -1274,7 +1281,7 @@ module.exports.verifySignature = (file, signatureFile, publicKeyFile) => {
|
||||
} else {
|
||||
resolve(stdout);
|
||||
}
|
||||
},
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1298,7 +1305,7 @@ module.exports.verifySignature = (file, signatureFile, publicKeyFile) => {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
reject(new Error('Failed to locate \'openssl.exe\''));
|
||||
reject(new Error("Failed to locate 'openssl.exe'"));
|
||||
}
|
||||
});
|
||||
} else if (os.platform() === 'linux') {
|
||||
|
||||
@@ -43,8 +43,7 @@ const addListeners = (ipcMain, {getMainWindow, dialog}) => {
|
||||
if (fs.existsSync(data.FilePath)) {
|
||||
fs.unlinkSync(data.FilePath);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
} catch (e) {}
|
||||
});
|
||||
|
||||
ipcMain.on(Constants.IPC_Select_File + '_sync', (event, data) => {
|
||||
|
||||
@@ -109,8 +109,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
|
||||
driveLetters[provider].push(drive);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) => {
|
||||
helpers
|
||||
|
||||
@@ -14,8 +14,7 @@ const addListeners = (ipcMain, {getCleanupReleases, standardIPCReply}) => {
|
||||
let exists = false;
|
||||
try {
|
||||
exists = fs.existsSync(destination) && fs.lstatSync(destination).isDirectory();
|
||||
} catch (e) {
|
||||
}
|
||||
} catch (e) {}
|
||||
standardIPCReply(event, Constants.IPC_Check_Installed_Reply, {
|
||||
Dependencies: dependencies,
|
||||
Exists: exists,
|
||||
@@ -54,8 +53,7 @@ const addListeners = (ipcMain, {getCleanupReleases, standardIPCReply}) => {
|
||||
.on('error', (error) => {
|
||||
try {
|
||||
helpers.removeDirectoryRecursively(destination);
|
||||
} catch (e) {
|
||||
}
|
||||
} catch (e) {}
|
||||
stream.close();
|
||||
standardIPCReply(
|
||||
event,
|
||||
|
||||
@@ -48,7 +48,12 @@ const addListeners = (ipcMain, {standardIPCReply}) => {
|
||||
if (success) {
|
||||
standardIPCReply(event, Constants.IPC_Skynet_Test_Logon_Reply, {});
|
||||
} 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) => {
|
||||
|
||||
@@ -19,8 +19,7 @@ const addListeners = (ipcMain, {setIsInstalling, unmountAllDrives, standardIPCRe
|
||||
if (tempPub) {
|
||||
fs.unlinkSync(tempPub);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
} catch (e) {}
|
||||
};
|
||||
|
||||
const errorHandler = (err) => {
|
||||
|
||||
Reference in New Issue
Block a user