runner.js: the Escape handler now checks panel.style.display !== 'none' before closing. During the test run the panel is hidden (display:none) but the variable is truthy — synthetic Escape events dispatched by tests (e.g. "closes on ESC") were triggering close() mid-run, removing the panel entirely so results never showed. quick-capture.test.js: the "Enter creates card with #inbox tag" test was asserting found.tags contains 'inbox', but the #inbox auto-tag was removed in 0.9.17. Renamed to "Enter creates card in active bucket" and dropped the stale tags assertion. chore: bump version to 0.9.20 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
566 B
PHP
15 lines
566 B
PHP
<?php
|
|
|
|
define('APP_NAME', 'hyprcrd');
|
|
define('APP_VERSION', '0.9.20');
|
|
|
|
// Database path — writable directory, outside webroot
|
|
define('DB_PATH', __DIR__ . '/data/hyprcrd.db');
|
|
|
|
// Base URL auto-detection (works in Docker and hosted environments)
|
|
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
|
$host = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
|
$scriptDir = dirname($_SERVER['SCRIPT_NAME']);
|
|
$basePath = ($scriptDir === '/' || $scriptDir === '\\') ? '' : $scriptDir;
|
|
define('BASE_URL', $protocol . '://' . $host . $basePath);
|