diff --git a/Plugin/unraid/pages/partnership.php b/Plugin/unraid/pages/partnership.php index 27cc6f7..07552b5 100644 --- a/Plugin/unraid/pages/partnership.php +++ b/Plugin/unraid/pages/partnership.php @@ -172,8 +172,6 @@ textarea.vv-pt-set-input { resize:vertical; white-space:pre; } Collapsed together they cost one line until opened. -->
@@ -418,103 +416,10 @@ async function vvPtStopSeed(btn) { // ── Array settings cards ─────────────────────────────────────────────────────── -let _vvArrFiles = null; -function _vvInitArrayCards() { - if (_vvArrFiles !== null) return; - _vvArrFiles = false; // loading sentinel - fetch('/plugins/varaverk/api/partnership_settings.php?_=' + Date.now()) - .then(r => r.json()) - .then(d => { - _vvArrFiles = (d.ok && d.files) ? d.files : []; - _vvRenderArrayCards(); - }) - .catch(() => { _vvArrFiles = []; document.getElementById('vv-pt-arrays-wrap').style.display = 'none'; }); -} -function _vvRenderArrayCards() { - const files = _vvArrFiles; - if (!files || !files.length) { document.getElementById('vv-pt-arrays-wrap').style.display = 'none'; return; } - let html = ''; - let hasArrays = false; - for (const f of files) { - for (const g of f.groups) { - for (const fld of g.fields) { - if (fld.type === 'scalar') continue; - hasArrays = true; - const rows = Math.min(16, (fld.value.match(/\n/g) || []).length + 2); - const attrs = `class="vv-pt-set-input" data-key="${_vvSetEsc(fld.key)}" ` - + `data-file="${_vvSetEsc(fld.file)}" data-type="${_vvSetEsc(fld.type)}" ` - + `data-orig="${_vvSetEsc(fld.value)}" oninput="vvPtArrChanged(this)"`; - html += `