export default class Globals { static DOWNLOAD_DIR = '/home/michael/Downloads'; // TODO: not hard coded static MAX_CURRENT_MESSAGES = 300; static MESSAGES_PER_REQUEST = 100; static MAX_TEXT_MESSAGE_LENGTH = 1024 * 2; // 2 KB character message max (for readability) static MAX_RESOURCE_SIZE = 1024 * 1024 * 10; // 10 MB max resource size (server is 50, client-side is limited until socket.io-stream) static MAX_AVATAR_SIZE = 1024 * 128; // 128 KB max avatar size static MAX_DISPLAY_NAME_LENGTH = 32; // 32 char max display name length static MAX_ICON_SIZE = 1024 * 128; // 128 KB max server icon size static MAX_SERVER_NAME_LENGTH = 64; // 64 char max server name length static MAX_CHANNEL_NAME_LENGTH = 32; // 32 char max channel name length static MAX_CHANNEL_FLAVOR_TEXT_LENGTH = 256; // 256 char max channel flavor text length static MAX_CACHED_CHANNEL_MESSAGES = 1000; // the 1000 most recent messages in each text channel are cached (in the sqlite db) static MAX_SERVER_RESOURCE_CACHE_SIZE = 1024 * 1024 * 1024; // 1 GB max resource cache per server static MAX_CACHED_RESOURCE_SIZE = 1024 * 1024 * 4; // 4 MB is the biggest resource that will be cached static MAX_RAM_CACHED_MESSAGES_CHANNEL_SIZE = 1024 * 1024 * 64; // at most, 64 MB of messages are cached in RAM per channel static MAX_RAM_CACHED_MESSAGES_TOTAL_SIZE = 1024 * 1024 * 256; // 256 MB max message cache (text length) }