<?php

	namespace VLW;

	/**
	 * # Media
	 * Constants related to media files
	 */
	const MEDIA_DIR           = "/public/assets/media/";
	const ICONS_DIR           = MEDIA_DIR . "icons/";
	const DEFAULT_BUTTON_ICON = ICONS_DIR . "chevron.svg";

	/**
	 * # Search
	 * Constants for the search API endpoint
	 */
	const SEARCH_QUERY_MAX_LENGTH  = 2048;

	/**
	 * # Timeline
	 * Constants related to the work timeline
	 */
	const TIMELINE_PREVIEW_LIMIT_PARAM = "limit";
	const TIMELINE_PREVIEW_LIMIT_COUNT = 5;

	/**
	 * # Forgejo
	 * Constants related to the fetching and caching of real-time prog. language use on Forgejo
	 */
	const FORGEJO_HREF                     = "https://git.vlw.se/explore/repos?q=&sort=recentupdate&language=";
	const FORGEJO_ENDPOINT_USER            = "/api/v1/users/%s";
	const FORGEJO_ENDPOINT_SEARCH          = "/api/v1/repos/search?uid=%s";
	const FORGEJO_SI_BYTE_MULTIPLE         = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];