gotify notifier updates

pull/737/head
hunterlong 2020-07-10 01:29:07 -07:00
parent 1d3d0ce252
commit 2ec7c8eb95
4 changed files with 6 additions and 5 deletions

View File

@ -189,10 +189,10 @@ func importCli(args []string) error {
if exportData.Config != nil { if exportData.Config != nil {
if ask("Create config.yml file from Configs?") { if ask("Create config.yml file from Configs?") {
log.Printf("Database User: %s\n", exportData.Config.DbUser) log.Printf("Database Host: %s\n", exportData.Config.DbHost)
log.Printf("Database Port: %d\n", exportData.Config.DbPort)
log.Printf("Database User: %s\n", exportData.Config.DbUser)
log.Printf("Database Password: %s\n", exportData.Config.DbPass) log.Printf("Database Password: %s\n", exportData.Config.DbPass)
log.Printf("Database Host: %s\n", exportData.Config.DbHost)
log.Printf("Database Port: %d\n", exportData.Config.DbPort)
if err := exportData.Config.Save(utils.Directory); err != nil { if err := exportData.Config.Save(utils.Directory); err != nil {
return err return err
} }

View File

@ -1,7 +1,6 @@
import {library} from '@fortawesome/fontawesome-svg-core' import {library} from '@fortawesome/fontawesome-svg-core'
import {fas} from '@fortawesome/fontawesome-free-solid'; import {fas} from '@fortawesome/fontawesome-free-solid';
import {fab} from '@fortawesome/free-brands-svg-icons'; import {fab} from '@fortawesome/free-brands-svg-icons';
import {far} from '@fortawesome/fontawesome-svg-core';
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome' import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
import Vue from "vue"; import Vue from "vue";

View File

@ -123,6 +123,8 @@ export default Vue.mixin({
return "bell" return "bell"
case "fas fa-mobile-alt": case "fas fa-mobile-alt":
return "mobile" return "mobile"
case "fa dot-circle":
return ["fa", "dot-circle"]
case "fas envelope-square": case "fas envelope-square":
return ["fas", "envelope-square"] return ["fas", "envelope-square"]
case "fab fa-slack": case "fab fa-slack":

View File

@ -27,7 +27,7 @@ var Gotify = &gotify{&notifications.Notification{
Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.", Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.",
Author: "Hugo van Rijswijk", Author: "Hugo van Rijswijk",
AuthorUrl: "https://github.com/hugo-vrijswijk", AuthorUrl: "https://github.com/hugo-vrijswijk",
Icon: "fa dot-circle", Icon: "broadcast-tower",
Delay: time.Duration(5 * time.Second), Delay: time.Duration(5 * time.Second),
Limits: 60, Limits: 60,
SuccessData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently online!", "priority": 2}`, SuccessData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently online!", "priority": 2}`,