Update configurator
This commit is contained in:
@@ -49,9 +49,13 @@
|
|||||||
<input type="text" id="inputFileExtensions" class="form-control">
|
<input type="text" id="inputFileExtensions" class="form-control">
|
||||||
<small class="text-body-secondary">Blank for default, * for all files</small>
|
<small class="text-body-secondary">Blank for default, * for all files</small>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input"type="checkbox" role="switch" id="inputCustomWidgets">
|
||||||
|
<label class="form-check-label" for="inputCustomWidgets">Custom Widgets</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="inputCustomLogo">Custom Logo URL</label>
|
<label for="inputCustomLogo">Custom Logo URL</label>
|
||||||
<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>
|
||||||
@@ -66,6 +70,10 @@
|
|||||||
<input type="text" id="inputWebHook" class="form-control">
|
<input type="text" id="inputWebHook" class="form-control">
|
||||||
<small class="text-body-secondary">URL to WebHook Consumer</small>
|
<small class="text-body-secondary">URL to WebHook Consumer</small>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input class="form-check-input"type="checkbox" role="switch" id="inputInvariantAPI">
|
||||||
|
<label class="form-check-label" for="inputInvariantAPI">Invariant API</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -262,6 +270,12 @@ function generateConfig(){
|
|||||||
if ($("#inputPostgres").val().trim() != ''){
|
if ($("#inputPostgres").val().trim() != ''){
|
||||||
windowConfig["POSTGRES_CONNECTION"]=$("#inputPostgres").val();
|
windowConfig["POSTGRES_CONNECTION"]=$("#inputPostgres").val();
|
||||||
}
|
}
|
||||||
|
if ($("#inputCustomWidgets").is(":checked")){
|
||||||
|
windowConfig["LUBELOGGER_CUSTOM_WIDGETS"]=$('#inputCustomWidgets').is(':checked');
|
||||||
|
}
|
||||||
|
if ($("#inputInvariantAPI").is(":checked")){
|
||||||
|
windowConfig["LUBELOGGER_INVARIANT_API"]=$('#inputInvariantAPI').is(':checked');
|
||||||
|
}
|
||||||
if ($('#inputSmtpServer').val().trim() != ''){
|
if ($('#inputSmtpServer').val().trim() != ''){
|
||||||
windowConfig["MailConfig"] = {
|
windowConfig["MailConfig"] = {
|
||||||
EmailServer: $("#inputSmtpServer").val(),
|
EmailServer: $("#inputSmtpServer").val(),
|
||||||
@@ -327,6 +341,12 @@ function generateConfig(){
|
|||||||
if ($("#inputPostgres").val().trim() != ''){
|
if ($("#inputPostgres").val().trim() != ''){
|
||||||
dockerConfig.push(`POSTGRES_CONNECTION="${$('#inputPostgres').val()}"`);
|
dockerConfig.push(`POSTGRES_CONNECTION="${$('#inputPostgres').val()}"`);
|
||||||
}
|
}
|
||||||
|
if ($("#inputCustomWidgets").is(":checked")){
|
||||||
|
dockerConfig.push(`LUBELOGGER_CUSTOM_WIDGETS="${$('#inputCustomWidgets').is(':checked')}"`);
|
||||||
|
}
|
||||||
|
if ($("#inputInvariantAPI").is(":checked")){
|
||||||
|
dockerConfig.push(`LUBELOGGER_INVARIANT_API="${$('#inputInvariantAPI').is(':checked')}"`);
|
||||||
|
}
|
||||||
if ($('#inputSmtpServer').val().trim() != ''){
|
if ($('#inputSmtpServer').val().trim() != ''){
|
||||||
dockerConfig.push(`MailConfig__EmailServer="${$('#inputSmtpServer').val()}"`);
|
dockerConfig.push(`MailConfig__EmailServer="${$('#inputSmtpServer').val()}"`);
|
||||||
dockerConfig.push(`MailConfig__EmailFrom="${$('#inputSmtpFrom').val()}"`);
|
dockerConfig.push(`MailConfig__EmailFrom="${$('#inputSmtpFrom').val()}"`);
|
||||||
|
|||||||
Reference in New Issue
Block a user