Updated configurator

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2025-06-24 14:40:31 -06:00
parent c4adc5b297
commit 8c770536c0

View File

@ -60,6 +60,11 @@
<input type="text" id="inputCustomLogo" class="form-control"> <input type="text" id="inputCustomLogo" class="form-control">
<small class="text-body-secondary">Default size: 204x48</small> <small class="text-body-secondary">Default size: 204x48</small>
</div> </div>
<div class="form-group">
<label for="inputCustomSmallLogo">Custom Small Logo URL</label>
<input type="text" id="inputCustomSmallLogo" class="form-control">
<small class="text-body-secondary">Default size: 48x48</small>
</div>
<div class="form-group"> <div class="form-group">
<label for="inputMOTD">Message Of The Day</label> <label for="inputMOTD">Message Of The Day</label>
<input type="text" id="inputMOTD" class="form-control"> <input type="text" id="inputMOTD" class="form-control">
@ -311,6 +316,9 @@ function generateConfig(){
if ($('#inputCustomLogo').val().trim() != ''){ if ($('#inputCustomLogo').val().trim() != ''){
windowConfig["LUBELOGGER_LOGO_URL"] = $("#inputCustomLogo").val(); windowConfig["LUBELOGGER_LOGO_URL"] = $("#inputCustomLogo").val();
} }
if ($('#inputCustomSmallLogo').val().trim() != ''){
windowConfig["LUBELOGGER_SMALL_LOGO_URL"] = $("#inputCustomSmallLogo").val();
}
if ($('#inputMOTD').val().trim() != '') { if ($('#inputMOTD').val().trim() != '') {
windowConfig["LUBELOGGER_MOTD"] = $("#inputMOTD").val(); windowConfig["LUBELOGGER_MOTD"] = $("#inputMOTD").val();
} }
@ -391,6 +399,9 @@ function generateConfig(){
if ($('#inputCustomLogo').val().trim() != ''){ if ($('#inputCustomLogo').val().trim() != ''){
dockerConfig.push(`LUBELOGGER_LOGO_URL="${$('#inputCustomLogo').val()}"`); dockerConfig.push(`LUBELOGGER_LOGO_URL="${$('#inputCustomLogo').val()}"`);
} }
if ($('#inputCustomSmallLogo').val().trim() != ''){
dockerConfig.push(`LUBELOGGER_SMALL_LOGO_URL="${$('#inputCustomSmallLogo').val()}"`);
}
if ($('#inputMOTD').val().trim() != '') { if ($('#inputMOTD').val().trim() != '') {
dockerConfig.push(`LUBELOGGER_MOTD="${$('#inputMOTD').val()}"`); dockerConfig.push(`LUBELOGGER_MOTD="${$('#inputMOTD').val()}"`);
} }