- Updated the list of supported notification provider types to include 'ntfy'. - Modified the notification settings UI to accommodate the Ntfy provider, including form fields for topic URL and access token. - Enhanced localization files to include translations for Ntfy-related fields in German, English, Spanish, French, and Chinese. - Implemented tests for the Ntfy notification provider, covering form rendering, CRUD operations, payload contracts, and security measures. - Updated existing tests to account for the new Ntfy provider in various scenarios.
15 lines
887 B
Go
15 lines
887 B
Go
package notifications
|
|
|
|
const (
|
|
FlagNotifyEngineEnabled = "feature.notifications.engine.notify_v1.enabled"
|
|
FlagDiscordServiceEnabled = "feature.notifications.service.discord.enabled"
|
|
FlagEmailServiceEnabled = "feature.notifications.service.email.enabled"
|
|
FlagGotifyServiceEnabled = "feature.notifications.service.gotify.enabled"
|
|
FlagWebhookServiceEnabled = "feature.notifications.service.webhook.enabled"
|
|
FlagTelegramServiceEnabled = "feature.notifications.service.telegram.enabled"
|
|
FlagSlackServiceEnabled = "feature.notifications.service.slack.enabled"
|
|
FlagPushoverServiceEnabled = "feature.notifications.service.pushover.enabled"
|
|
FlagNtfyServiceEnabled = "feature.notifications.service.ntfy.enabled"
|
|
FlagSecurityProviderEventsEnabled = "feature.notifications.security_provider_events.enabled"
|
|
)
|