c67b9f04a0
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>
26 lines
607 B
PHP
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>
|