mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 05:33:50 +08:00
feat: indent
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
// "eqeqeq": "error",
|
// "eqeqeq": "error",
|
||||||
"semi": ["error", "always"],
|
"semi": ["error", "always"],
|
||||||
// "indent": ["error", 2],
|
"indent": ["error", 2],
|
||||||
// follow antd's style guide
|
// follow antd's style guide
|
||||||
"quotes": ["error", "double"],
|
"quotes": ["error", "double"],
|
||||||
"jsx-quotes": ["error", "prefer-double"],
|
"jsx-quotes": ["error", "prefer-double"],
|
||||||
|
@ -403,14 +403,14 @@ class LoginPage extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
) :
|
) :
|
||||||
(
|
(
|
||||||
<Button
|
<Button
|
||||||
type="primary"
|
type="primary"
|
||||||
htmlType="submit"
|
htmlType="submit"
|
||||||
style={{width: "100%", marginBottom: "5px"}}
|
style={{width: "100%", marginBottom: "5px"}}
|
||||||
disabled={!application.enablePassword}
|
disabled={!application.enablePassword}
|
||||||
>
|
>
|
||||||
{i18next.t("login:Sign in with WebAuthn")}
|
{i18next.t("login:Sign in with WebAuthn")}
|
||||||
</Button>
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -88,8 +88,8 @@ export const CaptchaWidget = ({captchaType, subType, siteKey, clientSecret, onCh
|
|||||||
if (window.initGeetest4 && siteKey && !getLock) {
|
if (window.initGeetest4 && siteKey && !getLock) {
|
||||||
const captchaId = String(siteKey);
|
const captchaId = String(siteKey);
|
||||||
window.initGeetest4({
|
window.initGeetest4({
|
||||||
captchaId,
|
captchaId,
|
||||||
product: "float",
|
product: "float",
|
||||||
}, function(captchaObj) {
|
}, function(captchaObj) {
|
||||||
if (!getLock) {
|
if (!getLock) {
|
||||||
captchaObj.appendTo("#captcha");
|
captchaObj.appendTo("#captcha");
|
||||||
|
Reference in New Issue
Block a user