Merge pull request #59 from StarFleetCPTN/development
feat: Add notification service structure to new notification form
@@ -1169,6 +1169,43 @@ func (h *Handlers) HandleNewNotificationPage(c *gin.Context) {
|
|||||||
|
|
||||||
data := components.NotificationFormData{
|
data := components.NotificationFormData{
|
||||||
IsNew: true,
|
IsNew: true,
|
||||||
|
NotificationService: &struct {
|
||||||
|
ID uint
|
||||||
|
Name string
|
||||||
|
Description string
|
||||||
|
Type string
|
||||||
|
IsEnabled bool
|
||||||
|
EventTriggers []string
|
||||||
|
RetryPolicy string
|
||||||
|
WebhookURL string
|
||||||
|
Method string
|
||||||
|
Headers string
|
||||||
|
PayloadTemplate string
|
||||||
|
SecretKey string
|
||||||
|
PushbulletAPIKey string
|
||||||
|
PushbulletDeviceID string
|
||||||
|
PushbulletTitleTemplate string
|
||||||
|
PushbulletBodyTemplate string
|
||||||
|
NtfyServer string
|
||||||
|
NtfyTopic string
|
||||||
|
NtfyPriority string
|
||||||
|
NtfyUsername string
|
||||||
|
NtfyPassword string
|
||||||
|
NtfyTitleTemplate string
|
||||||
|
NtfyMessageTemplate string
|
||||||
|
GotifyURL string
|
||||||
|
GotifyToken string
|
||||||
|
GotifyPriority string
|
||||||
|
GotifyTitleTemplate string
|
||||||
|
GotifyMessageTemplate string
|
||||||
|
PushoverAPIToken string
|
||||||
|
PushoverUserKey string
|
||||||
|
PushoverDevice string
|
||||||
|
PushoverPriority string
|
||||||
|
PushoverSound string
|
||||||
|
PushoverTitleTemplate string
|
||||||
|
PushoverMessageTemplate string
|
||||||
|
}{},
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx := h.CreateTemplateContext(c)
|
ctx := h.CreateTemplateContext(c)
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 754 KiB |
|
After Width: | Height: | Size: 549 KiB |
|
After Width: | Height: | Size: 303 KiB |
|
Before Width: | Height: | Size: 391 KiB After Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 381 KiB After Width: | Height: | Size: 366 KiB |
|
After Width: | Height: | Size: 480 KiB |
|
After Width: | Height: | Size: 338 KiB |
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 350 KiB |
|
After Width: | Height: | Size: 307 KiB |
|
Before Width: | Height: | Size: 196 KiB |
|
Before Width: | Height: | Size: 825 KiB |
|
Before Width: | Height: | Size: 629 KiB |
|
After Width: | Height: | Size: 255 KiB |
|
After Width: | Height: | Size: 323 KiB |
|
Before Width: | Height: | Size: 300 KiB |
|
After Width: | Height: | Size: 296 KiB |
|
After Width: | Height: | Size: 242 KiB |
|
After Width: | Height: | Size: 279 KiB |
|
Before Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 602 KiB After Width: | Height: | Size: 301 KiB |
|
Before Width: | Height: | Size: 203 KiB |
|
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 257 KiB |