Files
Mitgliederverwaltung/templates/index.php
T
shahondin1624 c67b9f04a0 chore: bump version to 0.2.5 and add webpack content hash for cache busting
Version bump across info.xml, webpack.config.js, and main.js. Webpack now
outputs content-hashed filenames and templates/index.php dynamically resolves
them. Makefile cleans stale JS bundles before rebuilding.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 16:10:06 +02:00

26 lines
607 B
PHP

<?php
declare(strict_types=1);
use OCP\Util;
$appId = OCA\Mitgliederverwaltung\AppInfo\Application::APP_ID;
// Find the hashed JS filename (mitgliederverwaltung-main-<contenthash>.js)
$jsDir = __DIR__ . '/../js';
$jsFiles = glob($jsDir . '/mitgliederverwaltung-main-*.js');
if (!empty($jsFiles)) {
// Use the filename without extension as the script name
$scriptName = basename(end($jsFiles), '.js');
Util::addScript($appId, $scriptName);
} else {
// Fallback for development
Util::addScript($appId, $appId . '-main');
}
?>
<div id="app-content">
<div id="mitgliederverwaltung"></div>
</div>