mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Sort country list
This commit is contained in:
@ -92,7 +92,7 @@ export const OtherProviderInfo = {
|
|||||||
url: "https://www.huaweicloud.com/product/msgsms.html",
|
url: "https://www.huaweicloud.com/product/msgsms.html",
|
||||||
},
|
},
|
||||||
"Twilio SMS": {
|
"Twilio SMS": {
|
||||||
logo: `${StaticBaseUrl}/img/social_twilio.png`,
|
logo: `${StaticBaseUrl}/img/social_twilio.svg`,
|
||||||
url: "https://www.twilio.com/messaging",
|
url: "https://www.twilio.com/messaging",
|
||||||
},
|
},
|
||||||
"SmsBao SMS": {
|
"SmsBao SMS": {
|
||||||
@ -216,7 +216,8 @@ export function getCountriesData(countryCodes = phoneNumber.getCountries()) {
|
|||||||
phone: phoneNumber.getCountryCallingCode(countryCode),
|
phone: phoneNumber.getCountryCallingCode(countryCode),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
}).filter(item => item.name !== "")
|
||||||
|
.sort((a, b) => a.phone - b.phone);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function countryFlag(country) {
|
export function countryFlag(country) {
|
||||||
|
Reference in New Issue
Block a user