214 lines
7.3 KiB
JavaScript
214 lines
7.3 KiB
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
|
|
exports.DEV_PUBLIC_KEY =
|
|
'-----BEGIN PUBLIC KEY-----\n' +
|
|
'MIIEIjANBgkqhkiG9w0BAQEFAAOCBA8AMIIECgKCBAEKfZmq5mMAtD4kSt2Gc/5J\n' +
|
|
'H+HHTYtUZE6YYvsvz8TNG/bNL67ZtNRyaoMyhLTfIN4rPBNLUfD+owNS+u5Yk+lS\n' +
|
|
'ZLYyOuhoCZIFefayYqKLr42G8EeuRbx0IMzXmJtN0a4rqxlWhkYufJubpdQ+V4DF\n' +
|
|
'oeupcPdIATaadCKVeZC7A0G0uaSwoiAVMG5dZqjQW7F2LoQm3PhNkPvAybIJ6vBy\n' +
|
|
'LqdBegS1JrDn43x/pvQHzLO+l+FIG23D1F7iF+yZm3DkzBdcmi/mOMYs/rXZpBym\n' +
|
|
'2/kTuSGh5buuJCeyOwR8N3WdvXw6+KHMU/wWU8qTCTT87mYbzH4YR8HgkjkLHxAO\n' +
|
|
'5waHK6vMu0TxugCdJmVV6BSbiarJsh66VRosn7+6hlq6AdgksxqCeNELZBS+LBki\n' +
|
|
'tb5hKyL+jNZnaHiR0U7USWtmnqZG6FVVRzlCnxP7tZo5O5Ex9AAFGz5JzOzsFNbv\n' +
|
|
'xwQ0zqaTQOze+MJbkda7JfRoC6TncD0+3hoXsiaF4mCn8PqUCn0DwhglcRucZlST\n' +
|
|
'ZvDNDo1WAtxPJebb3aS6uymNhBIquQbVAWxVO4eTrOYEgutxwkHE3yO3is+ogp8d\n' +
|
|
'xot7f/+vzlbsbIDyuZBDe0fFkbTIMTU48QuUUVZpRKmKZTHQloz4EHqminbfX1sh\n' +
|
|
'M7wvDkpJEtqbc0VnG/BukUzP6e7Skvgc7eF1sI3+8jH8du2rivZeZAl7Q2f+L9JA\n' +
|
|
'BY9pjaxttxsud7V5jeFi4tKuDHi21/XhSjlJK2c2C4AiUEK5/WhtGbQ5JjmcOjRq\n' +
|
|
'yXFRqLlerzOcop2kbtU3Ar230wOx3Dj23Wg8++lV3LU4U9vMR/t0qnSbCSGJys7m\n' +
|
|
'ax2JpFlTwj/0wYuTlVFoNQHZJ1cdfyRiRBY4Ou7XO0W5hcBBKiYsC+neEeMMHdCe\n' +
|
|
'iTDIW/ojcVTdFovl+sq3n1u4SBknE90JC/3H+TPE1s2iB+fwORVg0KPosQSNDS0A\n' +
|
|
'7iK6AZCDC3YooFo+OzHkYMt9uLkXiXMSLx70az+qlIwOzVHKxCo7W/QpeKCXUCRZ\n' +
|
|
'MMdlYEUs1PC8x2qIRUEVHuJ0XMTKNyOHmzVLuLK93wUWbToh+rdDxnbhX+emuESn\n' +
|
|
'XH6aKiUwX4olEVKSylRUQw8nVckZGVWXzLDlgpzDrLHC8J8qHzFt7eCqOdiqsxhZ\n' +
|
|
'x1U5LtugxwSWncTZ7vlKl0DuC/AWB7SuDi7bGRMSVp2n+MnD1VLKlsCclHXjIciE\n' +
|
|
'W29n3G3lJ/sOta2sxqLd0j1XBQddrFXl5b609sIY81ocHqu8P2hRu5CpqJ/sGZC5\n' +
|
|
'mMH3segHBkRj0xJcfOxceRLj1a+ULIIR3xL/3f8s5Id25TDo/nqBoCvu5PeCpo6L\n' +
|
|
'9wIDAQAB\n' +
|
|
'-----END PUBLIC KEY-----';
|
|
|
|
const _REPERTORY_BRANCH = '1.3.x_branch';
|
|
const _REPERTORY_UI_BRANCH = '1.3.x_branch';
|
|
|
|
exports.REPERTORY_BRANCH = _REPERTORY_BRANCH;
|
|
exports.REPERTORY_UI_BRANCH = _REPERTORY_UI_BRANCH;
|
|
|
|
exports.RELEASES_URL =
|
|
'https://bitbucket.org/blockstorage/repertory/raw/' + _REPERTORY_BRANCH + '/releases_1.3.json';
|
|
exports.UI_RELEASES_URL =
|
|
'https://bitbucket.org/blockstorage/repertory-ui/raw/' + _REPERTORY_UI_BRANCH + '/releases.json';
|
|
|
|
exports.LINUX_DETECT_SCRIPT_URL =
|
|
'https://bitbucket.org/blockstorage/repertory/raw/' + _REPERTORY_BRANCH + '/detect_linux2.sh';
|
|
|
|
exports.LINUX_SELECTABLE_PLATFORMS = ['centos7'];
|
|
|
|
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',
|
|
'WinFsp 2021',
|
|
'WinFsp 2021 B1',
|
|
'WinFsp 2021 B2',
|
|
'WinFsp 2021 Beta1',
|
|
'WinFsp 2021 Beta2',
|
|
];
|
|
|
|
exports.DATA_LOCATIONS = {
|
|
linux: '~/.local/repertory/ui',
|
|
darwin: '~/Library/Application Support/repertory/ui',
|
|
win32: '%LOCALAPPDATA%\\repertory\\ui',
|
|
};
|
|
|
|
exports.REPERTORY_LOCATIONS = {
|
|
linux: '~/.local/repertory',
|
|
darwin: '~/Library/Application Support/repertory',
|
|
win32: '%LOCALAPPDATA%\\repertory',
|
|
};
|
|
|
|
const _S3_CUSTOM_PROVIDER = 'Custom...';
|
|
exports.S3_CUSTOM_PROVIDER = _S3_CUSTOM_PROVIDER;
|
|
exports.S3_PROVIDER_LIST = ['Filebase', _S3_CUSTOM_PROVIDER];
|
|
|
|
const _S3_CUSTOM_REGION = 'Custom...';
|
|
exports.S3_CUSTOM_REGION = _S3_CUSTOM_REGION;
|
|
exports.S3_REGION_PROVIDER_REGION = [
|
|
['us-east-1', _S3_CUSTOM_REGION],
|
|
['any', _S3_CUSTOM_REGION],
|
|
];
|
|
|
|
exports.S3_PROVIDER_URL = {
|
|
Filebase: 'https://s3.filebase.com',
|
|
};
|
|
|
|
exports.PROVIDER_LIST = ['Sia', 'Skynet', 'ScPrime'];
|
|
|
|
exports.PROVIDER_ARG = {
|
|
sia: '',
|
|
skynet: '-sk',
|
|
scprime: '-sp',
|
|
s3: '-s3',
|
|
};
|
|
|
|
exports.DEFAULT_RELEASE = 0;
|
|
exports.RELEASE_TYPES = ['Release', 'RC', 'Beta', 'Alpha'];
|
|
|
|
exports.INSTALL_TYPES = {
|
|
Dependency: 'dependency',
|
|
Release: 'release',
|
|
TestRelease: 'test_release',
|
|
Upgrade: 'upgrade',
|
|
};
|
|
|
|
exports.IPC_Browse_Directory = 'browse_directory';
|
|
exports.IPC_Browse_File = 'browse_file';
|
|
|
|
exports.IPC_Select_File = 'select_file';
|
|
|
|
exports.IPC_Check_Daemon_Version = 'check_daemon_version';
|
|
exports.IPC_Check_Daemon_Version_Reply = 'check_daemon_version_reply';
|
|
|
|
exports.IPC_Check_Dependency_Installed = 'check_dependency_installed';
|
|
exports.IPC_Check_Dependency_Installed_Reply = 'check_dependency_installed';
|
|
|
|
exports.IPC_Check_Installed = 'check_installed';
|
|
exports.IPC_Check_Installed_Reply = 'check_installed_reply';
|
|
|
|
exports.IPC_Check_Mount_Location = 'check_mount_location';
|
|
|
|
exports.IPC_Cleanup_Releases = 'IPC_Cleanup_Releases';
|
|
|
|
exports.IPC_Delete_File = 'delete_file';
|
|
|
|
exports.IPC_Detect_Mount = 'detect_mount';
|
|
exports.IPC_Detect_Mount_Reply = 'detect_mount_reply';
|
|
|
|
exports.IPC_Download_File = 'download_file';
|
|
exports.IPC_Download_File_Complete = 'download_file_complete';
|
|
exports.IPC_Download_File_Progress = 'download_file_progress';
|
|
|
|
exports.IPC_Export_Skylinks = 'export_skylinks';
|
|
exports.IPC_Export_Skylinks_Reply = 'export_skylinks_reply';
|
|
|
|
exports.IPC_Extract_Release = 'extract_release';
|
|
exports.IPC_Extract_Release_Complete = 'extract_release_complete';
|
|
|
|
exports.IPC_Get_Config = 'get_config';
|
|
exports.IPC_Get_Config_Reply = 'get_config_reply';
|
|
|
|
exports.IPC_Get_Config_Template = 'get_config_template';
|
|
exports.IPC_Get_Config_Template_Reply = 'get_config_template_reply';
|
|
|
|
exports.IPC_Get_Directory_Items = 'get_directory_items';
|
|
exports.IPC_Get_Directory_Items_Reply = 'get_directory_items_reply';
|
|
|
|
exports.IPC_Get_Pinned_Files = 'get_pinned_files';
|
|
exports.IPC_Get_Pinned_Files_Reply = 'get_pinned_files_reply';
|
|
|
|
exports.IPC_Get_Pinned_Files_Status = 'get_pinned_files_status';
|
|
exports.IPC_Get_Pinned_Files_Status_Reply = 'get_pinned_files_status_reply';
|
|
|
|
exports.IPC_Get_Platform = 'get_platform';
|
|
exports.IPC_Get_Platform_Reply = 'get_platform_reply';
|
|
|
|
exports.IPC_Get_State = 'get_state';
|
|
exports.IPC_Get_State_Reply = 'get_state_reply';
|
|
|
|
exports.IPC_Grab_Skynet_Tree = 'grab_skynet_tree';
|
|
exports.IPC_Grab_Skynet_Tree_Reply = 'grab_skynet_tree_reply';
|
|
|
|
exports.IPC_Import_Skylinks = 'import_skylinks';
|
|
exports.IPC_Import_Skylinks_Reply = 'import_skylinks_reply';
|
|
|
|
exports.IPC_Install_Dependency = 'install_dependency';
|
|
exports.IPC_Install_Dependency_Reply = 'install_dependency_reply';
|
|
|
|
exports.IPC_Install_Upgrade = 'install_upgrade';
|
|
exports.IPC_Install_Upgrade_Reply = 'install_upgrade_reply';
|
|
|
|
exports.IPC_Mount_Drive = 'mount_drive';
|
|
exports.IPC_Mount_Drive_Reply = 'mount_drive_reply';
|
|
|
|
exports.IPC_Read_File = 'read_file';
|
|
|
|
exports.IPC_Remove_Mount = 'remove_mount';
|
|
exports.IPC_Remove_Mount_Reply = 'remove_mount_reply';
|
|
|
|
exports.IPC_Reboot_System = 'reboot_system';
|
|
|
|
exports.IPC_Save_File = 'save_file';
|
|
exports.IPC_Save_State = 'save_state';
|
|
|
|
exports.IPC_Set_Pinned = 'set_pinned';
|
|
|
|
exports.IPC_Show_Window = 'show_window';
|
|
|
|
exports.IPC_Set_Config_Values = 'set_config_values';
|
|
exports.IPC_Set_Config_Values_Reply = 'set_config_values_reply';
|
|
|
|
exports.IPC_Set_Linux_AppPlatform = 'IPC_Set_Linux_AppPlatform';
|
|
|
|
exports.IPC_Shutdown = 'shutdown';
|
|
|
|
exports.IPC_Skynet_Test_Logon = 'skynet_test_logon';
|
|
exports.IPC_Skynet_Test_Logon_Reply = 'skynet_test_logon_reply';
|
|
|
|
exports.IPC_Test_Release = 'test_release';
|
|
exports.IPC_Test_Release_Reply = 'test_release_reply';
|
|
|
|
exports.IPC_Unmount_All_Drives = 'unmount_all';
|
|
exports.IPC_Unmount_All_Drives_Reply = 'unmount_all_reply';
|
|
|
|
exports.IPC_Unmount_Drive = 'unmount_drive';
|
|
exports.IPC_Unmount_Drive_Reply = 'unmount_drive_reply';
|