- FallBack tab: per-node tier inventory + active fallback card with duration, tier, handback strikes, running container status - Watchdog tab: live system health (RAM bar + thresholds, load, uptime, daemon), docker watchdog strikes + skip list + restart history, stability strikes + reboot log, resource pressure alert card, config inventory (mem limits, required, pause/stop lists) - Swapped partnership/arrs tab order; FallBack between partnership and watchdog - Plugin source tree moved from Plugin/usr/local/emhttp/plugins/varaverk/ to Plugin/unraid/ - Deployment/ conf templates added
45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
require_once dirname(__DIR__) . '/include/docs.php';
|
|
require_once dirname(__DIR__) . '/include/config.php';
|
|
|
|
$tree = vv_docs_tree();
|
|
$vars = vv_conf_vars();
|
|
$active = $_GET['doc'] ?? '';
|
|
|
|
// Validate: must be a .md file within SCRIPTS_DIR
|
|
$active = preg_match('/^[a-zA-Z0-9_\-\/]+\.md$/', $active) ? $active : '';
|
|
if ($active && !file_exists(SCRIPTS_DIR . '/' . $active)) $active = '';
|
|
?>
|
|
|
|
<div id="vv-docs">
|
|
|
|
<div id="vv-docs-sidebar">
|
|
<h3>Documents</h3>
|
|
<ul>
|
|
<?php foreach ($tree as $rel): ?>
|
|
<li>
|
|
<a href="?tab=docs&doc=<?= urlencode($rel) ?>"
|
|
class="<?= $rel === $active ? 'active' : '' ?>">
|
|
<?= htmlspecialchars($rel) ?>
|
|
</a>
|
|
</li>
|
|
<?php endforeach; ?>
|
|
</ul>
|
|
</div>
|
|
|
|
<div id="vv-docs-content">
|
|
<?php if ($active): ?>
|
|
<div class="vv-doc-body">
|
|
<?= vv_docs_render($active, $vars) ?>
|
|
</div>
|
|
<p class="vv-doc-hint">
|
|
Values shown in <code class="vv-live-var">green</code> are live from your conf files.
|
|
<code class="vv-unknown-var">Orange</code> means the variable was not found.
|
|
</p>
|
|
<?php else: ?>
|
|
<p>Select a document from the sidebar.</p>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
</div>
|