Add: Discord Login Provider (#58)

This commit is contained in:
爱克狮 2024-04-25 21:12:23 +08:00 committed by GitHub
parent ce27b33736
commit 85af87c75b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" class="logo-TA52YN">
<g>
<title>background</title>
<rect x="-1" y="-1" width="63.538462" height="63.538462" id="canvas_background" fill="none"/>
</g>
<g>
<title>Layer 1</title>
<path stroke="null" d="m160.234286,44.058355c-11.321662,-5.178101 -23.345479,-8.952007 -35.89591,-11.058355c-1.579846,2.720732 -3.33523,6.406813 -4.563999,9.303084c-13.348848,-1.930866 -26.601433,-1.930866 -39.766249,0c-1.228769,-2.896271 -3.071923,-6.582351 -4.563999,-9.303084c-12.637917,2.106348 -24.661734,5.880254 -35.904404,11.058355c-22.731094,33.526141 -28.874656,66.262359 -25.802903,98.559732c15.095569,10.970586 29.664692,17.641046 43.979171,22.029507c3.510599,-4.739538 6.670177,-9.830152 9.39091,-15.183508c-5.178157,-1.930923 -10.093007,-4.300692 -14.832318,-7.109306c1.228712,-0.877126 2.457481,-1.842587 3.598425,-2.808049c28.611348,13.077047 59.601242,13.077047 87.861231,0c1.228769,0.965461 2.369769,1.930923 3.598538,2.808049c-4.739538,2.808615 -9.654047,5.178384 -14.832431,7.109306c2.720846,5.353356 5.880537,10.44397 9.39074,15.183508c14.305816,-4.388461 28.962708,-11.058921 43.979171,-22.029507c3.77351,-37.38742 -5.9768,-69.860331 -25.635972,-98.559732zm-89.178052,78.637252c-8.601043,0 -15.622241,-7.810894 -15.622241,-17.377172c0,-9.566278 6.845659,-17.377738 15.622241,-17.377738c8.688586,0 15.797326,7.81146 15.621788,17.377738c0,9.566278 -6.933202,17.377172 -15.621788,17.377172zm57.670603,0c-8.601383,0 -15.631414,-7.810894 -15.631414,-17.377172c0,-9.566278 6.854493,-17.377738 15.631414,-17.377738c8.688586,0 15.797326,7.81146 15.621788,17.377738c0,9.566278 -6.845432,17.377172 -15.621788,17.377172z" id="svg_2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -260,6 +260,13 @@ export const useSettings = () => {
name: "飞书SSO",
value: generateOAuth2SettingsMap("oauth2_feishu-sso")
}
],
[
"oauth2_discord",
{
name: "Discord",
value: generateOAuth2SettingsMap("oauth2_discord")
}
]
]);

View File

@ -34,6 +34,10 @@ const platforms: { [key: string]: { name: string; class: string } } = {
name: "小米",
class: "btn-white"
},
discord: {
name: "Discord",
class: "btn-white"
},
baidu: {
name: "百度",
class: "btn-white"