diff --git a/frontend/public/static/discord.svg b/frontend/public/static/discord.svg new file mode 100644 index 000000000..65c9fccff --- /dev/null +++ b/frontend/public/static/discord.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/frontend/public/static/home-assistant.png b/frontend/public/static/home-assistant.png new file mode 100644 index 000000000..3a690e9f8 Binary files /dev/null and b/frontend/public/static/home-assistant.png differ diff --git a/frontend/public/static/matrix.png b/frontend/public/static/matrix.png new file mode 100644 index 000000000..56eb45ee6 Binary files /dev/null and b/frontend/public/static/matrix.png differ diff --git a/frontend/public/static/pushover.svg b/frontend/public/static/pushover.svg new file mode 100644 index 000000000..08956d819 --- /dev/null +++ b/frontend/public/static/pushover.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/frontend/src/api/about.js b/frontend/src/api/about.js index ad64305c7..211e63169 100644 --- a/frontend/src/api/about.js +++ b/frontend/src/api/about.js @@ -14,6 +14,7 @@ const aboutURLs = { event: id => `${prefix}/events/${id}`, allNotifications: `${prefix}/events/notifications`, + testNotifications: `${prefix}/events/notifications/test`, notification: id => `${prefix}/events/notifications/${id}`, }; @@ -45,6 +46,14 @@ export const aboutAPI = { const response = await apiReq.delete(aboutURLs.notification(id)); return response.data; }, + async testNotificationByID(id) { + const response = await apiReq.post(aboutURLs.testNotifications, { id: id }); + return response.data; + }, + async testNotificationByURL(url) { + const response = await apiReq.post(aboutURLs.testNotifications, { test_url: url }); + return response.data; + }, // async getAppInfo() { // const response = await apiReq.get(aboutURLs.version); // return response.data; diff --git a/frontend/src/pages/Admin/ToolBox/EventNotification/index.vue b/frontend/src/pages/Admin/ToolBox/EventNotification/index.vue index 453ec969a..c12d30f5c 100644 --- a/frontend/src/pages/Admin/ToolBox/EventNotification/index.vue +++ b/frontend/src/pages/Admin/ToolBox/EventNotification/index.vue @@ -14,9 +14,9 @@ We use the Apprise library to - generate notifications. They offer many options for services to use. Refer to their wiki for a comprehensive - guide on how to create the URL for your service. If available, selecting the type of your notification can - include extra features Here are some common choices. + generate notifications. They offer many options for services to use for notifications. Refer to their wiki + for a comprehensive guide on how to create the URL for your service. If available, selecting the type of + your notification can include extra features Here are some common choices.
Gotify @@ -33,6 +33,10 @@ + + mdi-test-tube + Test + Select the events you would like to recieve notifications for on this URL @@ -55,31 +59,31 @@