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:
1 parent
b146dfead7
commit
162fea4afb
26 files changed
+805
-45
No files matched your search
@@ -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}
|
||||
}
|
||||
Reference in new issue
Block a user