summaryrefslogtreecommitdiffstats
path: root/templates/mods
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-07-29 12:21:32 +0200
committersalmonik <salmonik@tuta.io>2026-07-29 12:21:32 +0200
commitbc0d3d2f324ee613424ee31103207222b4b19640 (patch)
tree483f699f303c44af6ec27b8f357e220b4d683e0c /templates/mods
parentEnable/disable mods, batch toggle & delete (diff)
downloadminecraft-ui-bc0d3d2f324ee613424ee31103207222b4b19640.tar.gz
minecraft-ui-bc0d3d2f324ee613424ee31103207222b4b19640.zip
Config editor, host networking, whitelist RCON
- Config file editor at /instances/{id}/config (browse & edit config/ files) - Host networking for Docker container (fixes WireGuard MTU DNS issues) - Whitelist changes applied live via RCON instead of stopping the server - Config edit handler detects which fields changed: whitelist → RCON, other settings → restart container - walk_dir simplified (removed unused root param) - import_world uses if-let instead of never-looping while-let - docker-compose.yml updated as reference template
Diffstat (limited to 'templates/mods')
-rw-r--r--templates/mods/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mods/list.html b/templates/mods/list.html
index b5420b8..b05a0e6 100644
--- a/templates/mods/list.html
+++ b/templates/mods/list.html
@@ -119,7 +119,7 @@ function batchSubmit(action) {
119 const checked = document.querySelectorAll('input[name="mod_id"]:checked'); 119 const checked = document.querySelectorAll('input[name="mod_id"]:checked');
120 if (checked.length === 0) return; 120 if (checked.length === 0) return;
121 121
122 const form = document.getElementById('batch-form'); 122 const form = document.querySelector('#batch-form');
123 // Clear any previous hidden inputs 123 // Clear any previous hidden inputs
124 form.textContent = ''; 124 form.textContent = '';
125 form.action = '/instances/{{ instance_id }}/mods/batch-' + action; 125 form.action = '/instances/{{ instance_id }}/mods/batch-' + action;
@@ -129,7 +129,7 @@ function batchSubmit(action) {
129 input.type = 'hidden'; 129 input.type = 'hidden';
130 input.name = 'mod_id'; 130 input.name = 'mod_id';
131 input.value = cb.value; 131 input.value = cb.value;
132 form.appendChild(input); 132 form.append(input);
133 } 133 }
134 134
135 form.submit(); 135 form.submit();