- Mobile responsive CSS (touch targets 44px, iOS anti-zoom, reduced motion) - Vitest setup s 39 testy (formatters, attendanceHelpers, useTableSort) - Klavesove zkratky (Shift+? napoveda, Ctrl+S ulozit, navigace) - Drag & drop pro polozky nabidek (@dnd-kit, SortableRow, useSortableList) - Univerzalizace: odstraneni BOHA brandingu z UI, emailu, PDF - Smazany nepotrebne soubory (deploy.sh, AUTH_SYSTEM.md, example_design, .htaccess) - CORS konfigurovatelny pres env promennou Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
26 lines
525 B
PHP
26 lines
525 B
PHP
<?php
|
|
|
|
/**
|
|
* API Configuration Bootstrap
|
|
*
|
|
* Nacte helper funkce, env promenne a konstanty.
|
|
* Toto je jediny soubor, ktery API endpointy musi require_once.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/includes/helpers.php';
|
|
require_once dirname(__DIR__) . '/vendor/autoload.php';
|
|
|
|
loadEnv(__DIR__ . '/.env');
|
|
|
|
require_once __DIR__ . '/includes/constants.php';
|
|
|
|
if (DEBUG_MODE) {
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', 1);
|
|
} else {
|
|
error_reporting(0);
|
|
ini_set('display_errors', 0);
|
|
}
|