feat(settings): topic ntfy par site, SMTP/ntfy/S3 globaux, DSN GlitchTip fixe + toggle (Fixes #105 #106 #107 #108)
#105 — Topic ntfy cible par site : - Site.NtfyTopic (migration AddSiteNtfyTopic), UI création/édition SitesPage - NotificationService.ResolveNtfyTopicAsync : topic du site sinon heimdall_{userId} #106 — Paramètres SMTP/ntfy/S3 GLOBAUX : - Seed + sections UI : agentScoped=false pour ntfy.*/email.*/storage.*/sentry.* - Migration douce au démarrage : UPDATE des clés existantes en base #107 — GlitchTip : DSN fixes (central projet 6, agent projet 7) dans appsettings, - plus de champ DSN éditable en UI → switch sentry.enabled (nécessite redémarrage) - Init Sentry déplacé après AddInfrastructure, lit sentry.enabled en base (fallback true) #108 — Composants typés : MudNumericField borné (port SMTP, rétention, heartbeat), - switch pour booléens, select pour log.level — pas de saisie libre
This commit is contained in:
1 parent
85bfdac7ee
commit
dc8a24918d
25 files changed
+2485
-153
No files matched your search
@@ -56,10 +56,9 @@
|
||||
HelperText="Ex : smtp.gmail.com" />
|
||||
</MudItem>
|
||||
<MudItem xs="6" md="2">
|
||||
<MudTextField T="string" Label="Port SMTP" Variant="Variant.Outlined"
|
||||
Type="InputType.Number"
|
||||
Value="@GetValue("email.smtpport")"
|
||||
ValueChanged="OnSmtpPortChanged" />
|
||||
<MudNumericField T="int?" Label="Port SMTP" Variant="Variant.Outlined"
|
||||
Value="@(int.TryParse(GetValue("email.smtpport"), out var p) ? p : null)"
|
||||
ValueChanged="OnSmtpPortChanged" Min="1" Max="65535" />
|
||||
</MudItem>
|
||||
<MudItem xs="12" md="3">
|
||||
<MudTextField T="string" Label="Utilisateur SMTP" Variant="Variant.Outlined"
|
||||
@@ -135,7 +134,7 @@
|
||||
private Task OnFromAddressChanged(string v) => SaveValueAsync("email.fromaddress", v);
|
||||
private Task OnFromNameChanged(string v) => SaveValueAsync("email.fromname", v);
|
||||
private Task OnSmtpHostChanged(string v) => SaveValueAsync("email.smtphost", v);
|
||||
private Task OnSmtpPortChanged(string v) => SaveValueAsync("email.smtpport", v);
|
||||
private Task OnSmtpPortChanged(int? v) => SaveValueAsync("email.smtpport", v?.ToString() ?? "");
|
||||
private Task OnUsernameChanged(string v) => SaveValueAsync("email.username", v);
|
||||
private Task OnPasswordChanged(string v) => SaveValueAsync("email.password", v);
|
||||
private Task OnUseSslChanged(bool v) => SaveValueAsync("email.usessl", v ? "true" : "false");
|
||||
@@ -187,7 +186,7 @@
|
||||
await Api.CreateSettingAsync(new CreateAppSettingRequest(
|
||||
Key: key, Value: value,
|
||||
Category: "integrations",
|
||||
Description: key, ValueType: "string", AllowedValues: null, AgentScoped: true));
|
||||
Description: key, ValueType: "string", AllowedValues: null, AgentScoped: false));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user