Move technical details into plugin information tab

This commit is contained in:
parkel committed 2026-10-12 14:15:23 +02:00
1 parent 2a2f1d5878
commit b9e7d0fdce
6 files changed
+30 -8

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
(() => {
const app=document.querySelector('.hgcf-admin');if(!app)return;
const panels=[...app.querySelectorAll('.hgcf-admin-panel')];const tabs=[...app.querySelectorAll('.hgcf-admin-tabs a')];
function selectTab(id){if(!panels.some(p=>p.id===id))id='hgcf-general';panels.forEach(p=>p.hidden=p.id!==id);tabs.forEach(t=>{const active=t.hash==='#'+id;t.classList.toggle('is-active',active);if(active)t.setAttribute('aria-current','page');else t.removeAttribute('aria-current');});}
function selectTab(id){if(!panels.some(p=>p.id===id))id='hgcf-general';panels.forEach(p=>p.hidden=p.id!==id);const saveBar=app.querySelector('.hgcf-save-bar');if(saveBar)saveBar.hidden=id==='hgcf-info';tabs.forEach(t=>{const active=t.hash==='#'+id;t.classList.toggle('is-active',active);if(active)t.setAttribute('aria-current','page');else t.removeAttribute('aria-current');});}
tabs.forEach(tab=>tab.addEventListener('click',()=>selectTab(tab.hash.slice(1))));selectTab(location.hash.slice(1));window.addEventListener('hashchange',()=>selectTab(location.hash.slice(1)));
let sequence=0;const unique=prefix=>prefix+Date.now().toString(36)+(++sequence).toString(36);
function initCard(card){