153 lines
5.3 KiB
JavaScript
153 lines
5.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.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',
|
|
'debian9',
|
|
'debian10',
|
|
];
|
|
|
|
exports.DATA_LOCATIONS = {
|
|
linux: '~/.local/repertory/ui',
|
|
darwin: '~/Library/Application Support/repertory/ui',
|
|
win32: '%LOCALAPPDATA%\\repertory\\ui'
|
|
};
|
|
|
|
exports.PROVIDER_LIST = [
|
|
'Sia',
|
|
'Skynet',
|
|
'GooboxS3',
|
|
'ScPrime',
|
|
];
|
|
|
|
exports.PROVIDER_ARG = {
|
|
sia: '',
|
|
skynet: '-sk',
|
|
scprime: '-sp',
|
|
gooboxs3: '-gb',
|
|
};
|
|
|
|
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_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_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_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_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_Remove_Remote_Mount = 'remove_remote_mount';
|
|
exports.IPC_Remove_Remote_Mount_Reply = 'remove_remote_mount_reply';
|
|
|
|
exports.IPC_Reboot_System = 'reboot_system';
|
|
|
|
exports.IPC_Save_State = 'save_state';
|
|
|
|
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_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';
|