mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 22:52:09 -05:00
feat(login): add more email providers (#363)
This commit is contained in:
parent
c4881db86c
commit
eab5c299a8
1 changed files with 48 additions and 0 deletions
|
@ -22,6 +22,38 @@ function mapMailProvider(email?: string): [string, string] | undefined {
|
|||
return ["Tutanota", "https://mail.tutanota.com"];
|
||||
case "outlook.com":
|
||||
case "hotmail.com":
|
||||
case "outlook.jp":
|
||||
case "outlook.fr":
|
||||
case "outlook.dk":
|
||||
case "outlook.com.ar":
|
||||
case "outlook.com.au":
|
||||
case "outlook.at":
|
||||
case "outlook.be":
|
||||
case "outlook.com.br":
|
||||
case "outlook.cl":
|
||||
case "outlook.cz":
|
||||
case "outlook.dk":
|
||||
case "outlook.com.gr":
|
||||
case "outlook.co.il":
|
||||
case "outlook.in":
|
||||
case "outlook.co.id":
|
||||
case "outlook.ie":
|
||||
case "outlook.it":
|
||||
case "outlook.hu":
|
||||
case "outlook.kr":
|
||||
case "outlook.lv":
|
||||
case "outlook.my":
|
||||
case "outlook.co.nz":
|
||||
case "outlook.com.pe":
|
||||
case "outlook.ph":
|
||||
case "outlook.pt":
|
||||
case "outlook.sa":
|
||||
case "outlook.sg":
|
||||
case "outlook.sk":
|
||||
case "outlook.es":
|
||||
case "outlook.co.th":
|
||||
case "outlook.com.tr":
|
||||
case "outlook.com.vn":
|
||||
return ["Outlook", "https://outlook.live.com"];
|
||||
case "yahoo.com":
|
||||
return ["Yahoo", "https://mail.yahoo.com"];
|
||||
|
@ -45,10 +77,26 @@ function mapMailProvider(email?: string): [string, string] | undefined {
|
|||
case "mail.com":
|
||||
case "email.com":
|
||||
return ["mail.com", "https://www.mail.com/mail/"];
|
||||
case "yandex.ru":
|
||||
case "yandex.by":
|
||||
case "yandex.ua":
|
||||
case "yandex.com":
|
||||
return ["Yandex Mail", "https://mail.yandex.com/"];
|
||||
case "hey.com":
|
||||
return ["HEY", "https://app.hey.com/"];
|
||||
case "mail.ru":
|
||||
case "bk.ru":
|
||||
case "inbox.ru":
|
||||
case "list.ru":
|
||||
case "internet.ru":
|
||||
return ["Mail.ru", "https://mail.ru/"];
|
||||
case "rambler.ru":
|
||||
case "lenta.ru":
|
||||
case "autorambler.ru":
|
||||
case "myrambler.ru":
|
||||
case "ro.ru":
|
||||
case "rambler.ua":
|
||||
return ["Rambler", "https://rambler.ru/"];
|
||||
default:
|
||||
return [domain, `https://${domain}`];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue