mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-10 12:50:29 +08:00
feat: add provider icons and menus (#1522)
* fix: add provider icons(email and captcha) and menus * fix: add provider icons and menus
This commit is contained in:
@@ -141,6 +141,8 @@ class ProviderListPage extends BaseListPage {
|
|||||||
{text: "SMS", value: "SMS"},
|
{text: "SMS", value: "SMS"},
|
||||||
{text: "Storage", value: "Storage"},
|
{text: "Storage", value: "Storage"},
|
||||||
{text: "SAML", value: "SAML"},
|
{text: "SAML", value: "SAML"},
|
||||||
|
{text: "Captcha", value: "Captcha"},
|
||||||
|
{text: "Payment", value: "Payment"},
|
||||||
],
|
],
|
||||||
width: "110px",
|
width: "110px",
|
||||||
sorter: true,
|
sorter: true,
|
||||||
@@ -159,6 +161,7 @@ class ProviderListPage extends BaseListPage {
|
|||||||
{text: "Storage", value: "Storage", children: Setting.getProviderTypeOptions("Storage").map((o) => {return {text: o.id, value: o.name};})},
|
{text: "Storage", value: "Storage", children: Setting.getProviderTypeOptions("Storage").map((o) => {return {text: o.id, value: o.name};})},
|
||||||
{text: "SAML", value: "SAML", children: Setting.getProviderTypeOptions("SAML").map((o) => {return {text: o.id, value: o.name};})},
|
{text: "SAML", value: "SAML", children: Setting.getProviderTypeOptions("SAML").map((o) => {return {text: o.id, value: o.name};})},
|
||||||
{text: "Captcha", value: "Captcha", children: Setting.getProviderTypeOptions("Captcha").map((o) => {return {text: o.id, value: o.name};})},
|
{text: "Captcha", value: "Captcha", children: Setting.getProviderTypeOptions("Captcha").map((o) => {return {text: o.id, value: o.name};})},
|
||||||
|
{text: "Payment", value: "Payment", children: Setting.getProviderTypeOptions("Payment").map((o) => {return {text: o.id, value: o.name};})},
|
||||||
],
|
],
|
||||||
sorter: true,
|
sorter: true,
|
||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
|
@@ -114,7 +114,11 @@ export const OtherProviderInfo = {
|
|||||||
},
|
},
|
||||||
Email: {
|
Email: {
|
||||||
"Default": {
|
"Default": {
|
||||||
logo: `${StaticBaseUrl}/img/social_default.png`,
|
logo: `${StaticBaseUrl}/img/email_default.png`,
|
||||||
|
url: "",
|
||||||
|
},
|
||||||
|
"SUBMAIL": {
|
||||||
|
logo: `${StaticBaseUrl}/img/social_submail.png`,
|
||||||
url: "",
|
url: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -174,7 +178,7 @@ export const OtherProviderInfo = {
|
|||||||
},
|
},
|
||||||
Captcha: {
|
Captcha: {
|
||||||
"Default": {
|
"Default": {
|
||||||
logo: `${StaticBaseUrl}/img/social_default.png`,
|
logo: `${StaticBaseUrl}/img/captcha_default.png`,
|
||||||
url: "https://pkg.go.dev/github.com/dchest/captcha",
|
url: "https://pkg.go.dev/github.com/dchest/captcha",
|
||||||
},
|
},
|
||||||
"reCAPTCHA": {
|
"reCAPTCHA": {
|
||||||
|
Reference in New Issue
Block a user