From b0fb5be50b53e2f3836f749b109c255fd5f8bd84 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 3 Jan 2026 18:04:02 -0600 Subject: [PATCH] checkpoint --- index.html | 76 ++++++++++++++++++++++++------------------------------ 1 file changed, 33 insertions(+), 43 deletions(-) diff --git a/index.html b/index.html index 99244436..cefa8bd1 100644 --- a/index.html +++ b/index.html @@ -142,7 +142,6 @@
-
@@ -152,12 +151,6 @@
-
-
- - -
-
@@ -253,42 +246,39 @@ div.appendChild(table); }); } - function loadMounts() { - fetch('/mounts') - .then(r => r.json()) - .then(data => { - const select = document.getElementById('mount-select'); - const selectAdvanced = document.getElementById('mount-select-advanced'); - const selectBranches = document.getElementById('mount-select-branches'); - [select, selectAdvanced, selectBranches].forEach(s => { - s.innerHTML = ''; - data.forEach(m => { - const opt = document.createElement('option'); - opt.value = m; - opt.text = m; - s.appendChild(opt); - }); - }); - const onchangeFunc = function() { - const mount = this.value; - loadKV(mount); - }; - const onchangeBranchesFunc = function() { - const mount = this.value; - loadBranches(mount); - }; - select.onchange = onchangeFunc; - selectAdvanced.onchange = onchangeFunc; - selectBranches.onchange = onchangeBranchesFunc; - if (data.length > 0) { - select.value = data[0]; - selectAdvanced.value = data[0]; - selectBranches.value = data[0]; - loadKV(data[0]); - loadBranches(data[0]); - } - }); - } + function loadMounts() { + fetch('/mounts') + .then(r => r.json()) + .then(data => { + const selectAdvanced = document.getElementById('mount-select-advanced'); + const selectBranches = document.getElementById('mount-select-branches'); + [selectAdvanced, selectBranches].forEach(s => { + s.innerHTML = ''; + data.forEach(m => { + const opt = document.createElement('option'); + opt.value = m; + opt.text = m; + s.appendChild(opt); + }); + }); + const onchangeFunc = function() { + const mount = this.value; + loadKV(mount); + }; + const onchangeBranchesFunc = function() { + const mount = this.value; + loadBranches(mount); + }; + selectAdvanced.onchange = onchangeFunc; + selectBranches.onchange = onchangeBranchesFunc; + if (data.length > 0) { + selectAdvanced.value = data[0]; + selectBranches.value = data[0]; + loadKV(data[0]); + loadBranches(data[0]); + } + }); + } function loadBranches(mount) { let url = '/kvs?mount=' + encodeURIComponent(mount); fetch(url)