Refactoring

This commit is contained in:
2020-12-12 23:44:53 -06:00
parent 21c17d7080
commit 258080fdcf
3 changed files with 25 additions and 19 deletions

View File

@@ -45,6 +45,23 @@ exports.LINUX_SELECTABLE_PLATFORMS = [
'debian10', 'debian10',
]; ];
exports.WINFSP_VERSION_NAMES = [
'WinFsp 2019',
'WinFsp 2019.0',
'WinFsp 2019.1',
'WinFsp 2019.2',
'WinFsp 2019.3',
'WinFsp 2019.3 B1',
'WinFsp 2019.3 B2',
'WinFsp 2019.3 B3',
'WinFsp 2019.3 B4',
'WinFsp 2019.3 B5',
'WinFsp 2020',
'WinFsp 2020.0',
'WinFsp 2020.1',
'WinFsp 2020.2',
];
exports.DATA_LOCATIONS = { exports.DATA_LOCATIONS = {
linux: '~/.local/repertory/ui', linux: '~/.local/repertory/ui',
darwin: '~/Library/Application Support/repertory/ui', darwin: '~/Library/Application Support/repertory/ui',
@@ -58,11 +75,15 @@ exports.REPERTORY_LOCATIONS = {
}; };
exports.S3_PROVIDER_LIST = [ exports.S3_PROVIDER_LIST = [
'Goobox S3', 'Filebase',
];
exports.S3_REGION_PROVIDER_REGION = [
'us-east-1',
]; ];
exports.S3_PROVIDER_URL = { exports.S3_PROVIDER_URL = {
'Goobox S3': 'https://sias3.goobox.io', 'Filebase': 'https://s3.filebase.com',
}; };
exports.PROVIDER_LIST = [ exports.PROVIDER_LIST = [

View File

@@ -35,7 +35,7 @@ const default_state = {
Name: '', Name: '',
Port: 20000, Port: 20000,
Provider: Constants.S3_PROVIDER_LIST[0], Provider: Constants.S3_PROVIDER_LIST[0],
Region: 'any', Region: Constants.S3_REGION_PROVIDER_REGION[0],
SecretKey: '', SecretKey: '',
Token: '', Token: '',
}; };

View File

@@ -72,22 +72,7 @@ const addListeners = (ipcMain, {standardIPCReply}) => {
}; };
if (data.IsWinFSP) { if (data.IsWinFSP) {
helpers helpers
.performWindowsUninstall([ .performWindowsUninstall(Constants.WINFSP_VERSION_NAMES)
'WinFsp 2019',
'WinFsp 2019.0',
'WinFsp 2019.1',
'WinFsp 2019.2',
'WinFsp 2019.3',
'WinFsp 2019.3 B1',
'WinFsp 2019.3 B2',
'WinFsp 2019.3 B3',
'WinFsp 2019.3 B4',
'WinFsp 2019.3 B5',
'WinFsp 2020',
'WinFsp 2020.0',
'WinFsp 2020.1',
'WinFsp 2020.2',
])
.then(uninstalled => { .then(uninstalled => {
if (uninstalled) { if (uninstalled) {
standardIPCReply(event, Constants.IPC_Install_Dependency_Reply, { standardIPCReply(event, Constants.IPC_Install_Dependency_Reply, {