This commit is contained in:
2021-08-04 17:17:16 -05:00
parent ce6d96e59b
commit e23c0086c2
75 changed files with 1255 additions and 1246 deletions

View File

@@ -43,7 +43,8 @@ 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,7 +205,8 @@ 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,7 +21,8 @@ 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

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

View File

@@ -28,7 +28,8 @@ 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,7 +14,8 @@ 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,
@@ -53,7 +54,8 @@ 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

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