From 00a8a64c4e7809163c40af553c9b0f29230477df Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Thu, 28 May 2026 22:41:10 -0400 Subject: [PATCH] Docker tab: own config file, folder.view3 becomes optional sync target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Primary store moved to /boot/config/plugins/varaverk/docker_folders.json - No dependency on folder.view3 plugin being installed - Auto-imports folder.view3 JSON on first run if it exists (one-time bootstrap) - Mirrors writes to folder.view3 JSON only if that plugin's directory is present - Toolbar shows '⇄ folder.view3' badge when sync is active --- Plugin/unraid/include/docker.php | 27 ++++++++++++++++++++++----- Plugin/unraid/pages/docker.php | 4 ++++ 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/Plugin/unraid/include/docker.php b/Plugin/unraid/include/docker.php index 53bdf86..654cbe2 100644 --- a/Plugin/unraid/include/docker.php +++ b/Plugin/unraid/include/docker.php @@ -1,24 +1,41 @@ $ungrouped, 'conf_map' => $confMap, 'drift' => $drift, - 'json_path' => VV_DOCKER_JSON, + 'fv3_synced'=> file_exists(dirname(VV_FV3_JSON)), ]; } diff --git a/Plugin/unraid/pages/docker.php b/Plugin/unraid/pages/docker.php index f05d3d3..d2e847c 100644 --- a/Plugin/unraid/pages/docker.php +++ b/Plugin/unraid/pages/docker.php @@ -46,6 +46,7 @@ + @@ -159,6 +160,9 @@ function _render(data) { const ts = data.ts ? new Date(data.ts * 1000).toLocaleString([], {month:'numeric',day:'numeric',year:'numeric',hour:'2-digit',minute:'2-digit',second:'2-digit'}) : ''; document.getElementById('vv-dk-ts').textContent = ts ? 'Updated: ' + ts : ''; + const fv3El = document.getElementById('vv-dk-fv3'); + if (fv3El) fv3El.textContent = data.fv3_synced ? '⇄ folder.view3' : ''; + _bindEvents(); }