add small logo url

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD 2025-06-19 13:08:20 -06:00
parent b0a5cab2b6
commit 725638d217
3 changed files with 28 additions and 1 deletions

View File

@ -4,24 +4,43 @@ namespace CarCareTracker.Models
{ {
public class ServerConfig public class ServerConfig
{ {
[JsonPropertyName("POSTGRES_CONNECTION")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? PostgresConnection { get; set; } public string? PostgresConnection { get; set; }
[JsonPropertyName("LUBELOGGER_ALLOWED_FILE_EXTENSIONS")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AllowedFileExtensions { get; set; } public string? AllowedFileExtensions { get; set; }
[JsonPropertyName("LUBELOGGER_LOGO_URL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CustomLogoURL { get; set; } public string? CustomLogoURL { get; set; }
[JsonPropertyName("LUBELOGGER_LOGO_SMALL_URL")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CustomSmallLogoURL { get; set; } public string? CustomSmallLogoURL { get; set; }
[JsonPropertyName("LUBELOGGER_MOTD")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? MessageOfTheDay { get; set; } public string? MessageOfTheDay { get; set; }
[JsonPropertyName("LUBELOGGER_WEBHOOK")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? WebHookURL { get; set; } public string? WebHookURL { get; set; }
[JsonPropertyName("LUBELOGGER_CUSTOM_WIDGETS")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? CustomWidgetsEnabled { get; set; } public bool? CustomWidgetsEnabled { get; set; }
[JsonPropertyName("LUBELOGGER_INVARIANT_API")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? InvariantAPIEnabled { get; set; } public bool? InvariantAPIEnabled { get; set; }
[JsonPropertyName("MailConfig")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public MailConfig? SMTPConfig { get; set; } public MailConfig? SMTPConfig { get; set; }
[JsonPropertyName("OpenIDConfig")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public OpenIDConfig? OIDCConfig { get; set; } public OpenIDConfig? OIDCConfig { get; set; }
} }

View File

@ -37,6 +37,14 @@
<input type="text" readonly id="inputLogoURL" class="form-control" placeholder="@translator.Translate(userLanguage, "Not Configured")" value="@Model.CustomLogoURL"> <input type="text" readonly id="inputLogoURL" class="form-control" placeholder="@translator.Translate(userLanguage, "Not Configured")" value="@Model.CustomLogoURL">
</div> </div>
</div> </div>
<div class="row mb-2">
<div class="col-md-6 col-12">
<label for="inputSmallLogoURL">@translator.Translate(userLanguage, "Small Logo URL")</label>
</div>
<div class="col-md-6 col-12">
<input type="text" readonly id="inputSmallLogoURL" class="form-control" placeholder="@translator.Translate(userLanguage, "Not Configured")" value="@Model.CustomSmallLogoURL">
</div>
</div>
<div class="row mb-2"> <div class="row mb-2">
<div class="col-md-6 col-12"> <div class="col-md-6 col-12">
<label for="inputMOTD">@translator.Translate(userLanguage, "Message of the Day")</label> <label for="inputMOTD">@translator.Translate(userLanguage, "Message of the Day")</label>

File diff suppressed because one or more lines are too long