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
|
<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)}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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 }) => {
|
||||||
|
|||||||
@@ -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') {
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
@@ -109,8 +109,7 @@ const addListeners = (ipcMain, {setTrayImage, standardIPCReply}) => {
|
|||||||
driveLetters[provider].push(drive);
|
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) => {
|
ipcMain.on(Constants.IPC_Set_Pinned + '_sync', (event, data) => {
|
||||||
helpers
|
helpers
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user