mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
feat: add multiple notification providers (#2302)
* feat: support dingtalk notification provider * feat: support lark notification provider * feat: support microsoft teams notification provider * feat: support bark notification provider * feat: support pushover notification provider * feat: support pushbullet notification provider * feat: support slack notification provider * feat: support webpush notification provider * fix go-test error * update notify repository * feat: support discord notification provider * feat: support google chat notification provider * feat: support Line notification provider * feat: support matrix notification provider * feat: support twitter notification provider * fix lint * add no proxy provider * update setting.js * update social_teams
This commit is contained in:
@ -283,6 +283,70 @@ export const OtherProviderInfo = {
|
||||
logo: `${StaticBaseUrl}/img/email_default.png`,
|
||||
url: "https://casdoor.org/docs/provider/notification/overview",
|
||||
},
|
||||
"DingTalk": {
|
||||
logo: `${StaticBaseUrl}/img/social_dingtalk.png`,
|
||||
url: "https://www.dingtalk.com/",
|
||||
},
|
||||
"Lark": {
|
||||
logo: `${StaticBaseUrl}/img/social_lark.png`,
|
||||
url: "https://www.larksuite.com/",
|
||||
},
|
||||
"Microsoft Teams": {
|
||||
logo: `${StaticBaseUrl}/img/social_teams.png`,
|
||||
url: "https://www.microsoft.com/microsoft-teams",
|
||||
},
|
||||
"Bark": {
|
||||
logo: `${StaticBaseUrl}/img/social_bark.png`,
|
||||
url: "https://apps.apple.com/us/app/bark-customed-notifications/id1403753865",
|
||||
},
|
||||
"Pushover": {
|
||||
logo: `${StaticBaseUrl}/img/social_pushover.png`,
|
||||
url: "https://pushover.net/",
|
||||
},
|
||||
"Pushbullet": {
|
||||
logo: `${StaticBaseUrl}/img/social_pushbullet.png`,
|
||||
url: "https://www.pushbullet.com/",
|
||||
},
|
||||
"Slack": {
|
||||
logo: `${StaticBaseUrl}/img/social_slack.png`,
|
||||
url: "https://slack.com/",
|
||||
},
|
||||
"Webpush": {
|
||||
logo: `${StaticBaseUrl}/img/email_default.png`,
|
||||
url: "https://developer.mozilla.org/en-US/docs/Web/API/Push_API",
|
||||
},
|
||||
"Discord": {
|
||||
logo: `${StaticBaseUrl}/img/social_discord.png`,
|
||||
url: "https://discord.com/",
|
||||
},
|
||||
"Google Chat": {
|
||||
logo: `${StaticBaseUrl}/img/social_google_chat.png`,
|
||||
url: "https://workspace.google.com/intl/en/products/chat/",
|
||||
},
|
||||
"Line": {
|
||||
logo: `${StaticBaseUrl}/img/social_line.png`,
|
||||
url: "https://line.me/",
|
||||
},
|
||||
"Matrix": {
|
||||
logo: `${StaticBaseUrl}/img/social_matrix.png`,
|
||||
url: "https://www.matrix.org/",
|
||||
},
|
||||
"Twitter": {
|
||||
logo: `${StaticBaseUrl}/img/social_twitter.png`,
|
||||
url: "https://twitter.com/",
|
||||
},
|
||||
"Reddit": {
|
||||
logo: `${StaticBaseUrl}/img/social_reddit.png`,
|
||||
url: "https://www.reddit.com/",
|
||||
},
|
||||
"Rocket Chat": {
|
||||
logo: `${StaticBaseUrl}/img/social_rocket_chat.png`,
|
||||
url: "https://rocket.chat/",
|
||||
},
|
||||
"Viber": {
|
||||
logo: `${StaticBaseUrl}/img/social_viber.png`,
|
||||
url: "https://www.viber.com/",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@ -973,6 +1037,22 @@ export function getProviderTypeOptions(category) {
|
||||
return ([
|
||||
{id: "Telegram", name: "Telegram"},
|
||||
{id: "Custom HTTP", name: "Custom HTTP"},
|
||||
{id: "DingTalk", name: "DingTalk"},
|
||||
{id: "Lark", name: "Lark"},
|
||||
{id: "Microsoft Teams", name: "Microsoft Teams"},
|
||||
{id: "Bark", name: "Bark"},
|
||||
{id: "Pushover", name: "Pushover"},
|
||||
{id: "Pushbullet", name: "Pushbullet"},
|
||||
{id: "Slack", name: "Slack"},
|
||||
{id: "Webpush", name: "Webpush"},
|
||||
{id: "Discord", name: "Discord"},
|
||||
{id: "Google Chat", name: "Google Chat"},
|
||||
{id: "Line", name: "Line"},
|
||||
{id: "Matrix", name: "Matrix"},
|
||||
{id: "Twitter", name: "Twitter"},
|
||||
{id: "Reddit", name: "Reddit"},
|
||||
{id: "Rocket Chat", name: "Rocket Chat"},
|
||||
{id: "Viber", name: "Viber"},
|
||||
]);
|
||||
} else {
|
||||
return [];
|
||||
|
Reference in New Issue
Block a user