mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-13 21:13:40 +02:00
30 lines
No EOL
721 B
PHP
30 lines
No EOL
721 B
PHP
<?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_SI_BYTE_MULTIPLE = ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; |