fix: attacksShell appends content box to root (detached-div bug) + cache-bust

The Attacks shell created its content div but never attached it to the
document, so all launcher cards rendered into a detached subtree (tabs
only were visible). Bumped views.js cache version in index.html.
This commit is contained in:
2026-08-18 20:11:30 -05:00
parent 46dd587348
commit a4479df077
2 changed files with 5 additions and 3 deletions
@@ -267,7 +267,7 @@
<script src="js/xterm-addon-fit.min.js"></script> <script src="js/xterm-addon-fit.min.js"></script>
<script src="js/terminal.js"></script> <script src="js/terminal.js"></script>
<script src="js/pager.js"></script> <script src="js/pager.js"></script>
<script src="js/views.js?v=20260817-12"></script> <script src="js/views.js?v=20260818-1"></script>
<script src="js/app.js?v=20260811-9"></script> <script src="js/app.js?v=20260811-9"></script>
</body> </body>
</html> </html>
@@ -1,5 +1,4 @@
'use strict'; 'use strict';
const views = {}; const views = {};
const h = (tag, attrs, ...children) => { const h = (tag, attrs, ...children) => {
@@ -1157,8 +1156,11 @@ const ATTACK_TABS = [
function attacksShell(root, activeHash) { function attacksShell(root, activeHash) {
root.appendChild(h('h1', { class: 'page-title', text: 'Attacks' })); root.appendChild(h('h1', { class: 'page-title', text: 'Attacks' }));
tabBar(root, ATTACK_TABS, activeHash); tabBar(root, ATTACK_TABS, activeHash);
return h('div', {}, h('div', { class: 'muted', style: 'font-size:12px;margin:8px 0' }, const box = h('div', {});
box.appendChild(h('div', { class: 'muted', style: 'font-size:12px;margin:8px 0' },
'Targets: only networks you are authorized to test. The device is the source of truth — every change is verified against it.')); 'Targets: only networks you are authorized to test. The device is the source of truth — every change is verified against it.'));
root.appendChild(box);
return box;
} }
function attackBadge(ap) { function attackBadge(ap) {