feat: settings page, sidebar and drawer destination "Settings" (icon settings, after Integration), route /settings (verified), showing only the running build's Version

This commit is contained in:
fsylvain committed 2026-09-30 00:19:29 +02:00
1 parent b146dfead7
commit 162fea4afb
26 files changed
+805 -45

No files matched your search

@@ -0,0 +1,5 @@
package settings
type Settings struct {
Version string `json:"version"`
}
@@ -31,6 +31,7 @@ type Settings struct {
Smtp SmtpSettings
AuthRateLimit AuthRateLimitSettings
TrustedProxies []string
Version string
}
func (s Settings) IsProduction() bool {
@@ -0,0 +1,15 @@
package useCases
import "RenewCMS/internal/domain/settings"
type GetSettingsUseCase struct {
version string
}
func NewGetSettingsUseCase(version string) *GetSettingsUseCase {
return &GetSettingsUseCase{version}
}
func (g *GetSettingsUseCase) GetSettings() settings.Settings {
return settings.Settings{Version: g.version}
}