Migrate to generic S3 mount
This commit is contained in:
@@ -110,8 +110,8 @@ class App extends IPCContainer {
|
|||||||
const remoteSupported = this.props.LocationsLookup[selectedVersion] &&
|
const remoteSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||||
this.props.LocationsLookup[selectedVersion].supports_remote;
|
this.props.LocationsLookup[selectedVersion].supports_remote;
|
||||||
|
|
||||||
const gooboxS3Supported = this.props.LocationsLookup[selectedVersion] &&
|
const s3Supported = this.props.LocationsLookup[selectedVersion] &&
|
||||||
this.props.LocationsLookup[selectedVersion].gooboxs3_support;
|
this.props.LocationsLookup[selectedVersion].s3_support;
|
||||||
|
|
||||||
const skynetSupported = this.props.LocationsLookup[selectedVersion] &&
|
const skynetSupported = this.props.LocationsLookup[selectedVersion] &&
|
||||||
this.props.LocationsLookup[selectedVersion].skynet_support;
|
this.props.LocationsLookup[selectedVersion].skynet_support;
|
||||||
@@ -215,7 +215,7 @@ class App extends IPCContainer {
|
|||||||
mainContent.push((
|
mainContent.push((
|
||||||
<Box dxStyle={{padding: 'var(--default_spacing)', height: 'auto'}}
|
<Box dxStyle={{padding: 'var(--default_spacing)', height: 'auto'}}
|
||||||
key={'md_' + key++}>
|
key={'md_' + key++}>
|
||||||
<MountItems gooboxS3Supported={gooboxS3Supported}
|
<MountItems s3Supported={s3Supported}
|
||||||
remoteSupported={remoteSupported}
|
remoteSupported={remoteSupported}
|
||||||
scPrimeSupported={scPrimeSupported}
|
scPrimeSupported={scPrimeSupported}
|
||||||
siaSupported={siaSupported}
|
siaSupported={siaSupported}
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ exports.DATA_LOCATIONS = {
|
|||||||
exports.PROVIDER_LIST = [
|
exports.PROVIDER_LIST = [
|
||||||
'Sia',
|
'Sia',
|
||||||
'Skynet',
|
'Skynet',
|
||||||
'GooboxS3',
|
'S3',
|
||||||
'ScPrime',
|
'ScPrime',
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ exports.PROVIDER_ARG = {
|
|||||||
sia: '',
|
sia: '',
|
||||||
skynet: '-sk',
|
skynet: '-sk',
|
||||||
scprime: '-sp',
|
scprime: '-sp',
|
||||||
gooboxs3: '-gb',
|
s3: '-s3',
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.RELEASE_TYPES = [
|
exports.RELEASE_TYPES = [
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class MountItems extends IPCContainer {
|
|||||||
} else {
|
} else {
|
||||||
let allowAction = true;
|
let allowAction = true;
|
||||||
if (mount) {
|
if (mount) {
|
||||||
let result = remote || provider === "GooboxS3" || provider === "Skynet" ?
|
let result = remote || provider === 'S3' || provider === 'Skynet' ?
|
||||||
{Valid: true, Success: true} :
|
{Valid: true, Success: true} :
|
||||||
this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
|
this.sendSyncRequest(Constants.IPC_Check_Daemon_Version, {
|
||||||
Provider: provider,
|
Provider: provider,
|
||||||
@@ -221,7 +221,7 @@ class MountItems extends IPCContainer {
|
|||||||
|
|
||||||
getProviderList = providersOnly => {
|
getProviderList = providersOnly => {
|
||||||
const providerList = Constants.PROVIDER_LIST.filter(i => {
|
const providerList = Constants.PROVIDER_LIST.filter(i => {
|
||||||
return ((i === 'GooboxS3') && this.props.gooboxS3Supported) ||
|
return ((i === 'S3') && this.props.s3Supported) ||
|
||||||
((i === 'Skynet') && this.props.skynetSupported) ||
|
((i === 'Skynet') && this.props.skynetSupported) ||
|
||||||
((i === 'ScPrime') && this.props.scPrimeSupported) ||
|
((i === 'ScPrime') && this.props.scPrimeSupported) ||
|
||||||
((i === 'Sia') && this.props.siaSupported);
|
((i === 'Sia') && this.props.siaSupported);
|
||||||
|
|||||||
Reference in New Issue
Block a user