mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 14:09:57 +08:00
fix: disable jsx-a11y/anchor-is-valid (#800)
* fix: disable jsx-a11y/anchor-is-valid Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com> * Update LoginPage.js * Update SignupPage.js Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
This commit is contained in:
@ -49,6 +49,8 @@ import CustomGithubCorner from "../CustomGithubCorner";
|
|||||||
import {CountDownInput} from "../common/CountDownInput";
|
import {CountDownInput} from "../common/CountDownInput";
|
||||||
import BilibiliLoginButton from "./BilibiliLoginButton";
|
import BilibiliLoginButton from "./BilibiliLoginButton";
|
||||||
|
|
||||||
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||||
|
|
||||||
class LoginPage extends React.Component {
|
class LoginPage extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
@ -320,7 +322,7 @@ class LoginPage extends React.Component {
|
|||||||
)
|
)
|
||||||
} else if (provider.category === "SAML") {
|
} else if (provider.category === "SAML") {
|
||||||
return (
|
return (
|
||||||
<a href="/#" key={provider.displayName} onClick={this.getSamlUrl.bind(this, provider)}>
|
<a key={provider.displayName} onClick={this.getSamlUrl.bind(this, provider)}>
|
||||||
<img width={width} height={width} src={Setting.getProviderLogoURL(provider)} alt={provider.displayName} style={{margin: margin}} />
|
<img width={width} height={width} src={Setting.getProviderLogoURL(provider)} alt={provider.displayName} style={{margin: margin}} />
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
@ -476,7 +478,7 @@ class LoginPage extends React.Component {
|
|||||||
{i18next.t("login:Auto sign in")}
|
{i18next.t("login:Auto sign in")}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<a href="/#" style={{float: "right"}} onClick={() => {
|
<a style={{float: "right"}} onClick={() => {
|
||||||
Setting.goToForget(this, application);
|
Setting.goToForget(this, application);
|
||||||
}}>
|
}}>
|
||||||
{i18next.t("login:Forgot password?")}
|
{i18next.t("login:Forgot password?")}
|
||||||
@ -555,7 +557,7 @@ class LoginPage extends React.Component {
|
|||||||
<span style={{float: "left"}}>
|
<span style={{float: "left"}}>
|
||||||
{
|
{
|
||||||
!application.enableCodeSignin ? null : (
|
!application.enableCodeSignin ? null : (
|
||||||
<a href="/#" onClick={() => {
|
<a onClick={() => {
|
||||||
this.setState({
|
this.setState({
|
||||||
isCodeSignin: !this.state.isCodeSignin,
|
isCodeSignin: !this.state.isCodeSignin,
|
||||||
});
|
});
|
||||||
@ -567,7 +569,7 @@ class LoginPage extends React.Component {
|
|||||||
</span>
|
</span>
|
||||||
<span style={{float: "right"}}>
|
<span style={{float: "right"}}>
|
||||||
{i18next.t("login:No account?")}
|
{i18next.t("login:No account?")}
|
||||||
<a href="/#" onClick={() => {
|
<a onClick={() => {
|
||||||
sessionStorage.setItem("loginURL", window.location.href)
|
sessionStorage.setItem("loginURL", window.location.href)
|
||||||
Setting.goToSignup(this, application);
|
Setting.goToSignup(this, application);
|
||||||
}}>
|
}}>
|
||||||
|
@ -25,6 +25,8 @@ import {CountDownInput} from "../common/CountDownInput";
|
|||||||
import SelectRegionBox from "../SelectRegionBox";
|
import SelectRegionBox from "../SelectRegionBox";
|
||||||
import CustomGithubCorner from "../CustomGithubCorner";
|
import CustomGithubCorner from "../CustomGithubCorner";
|
||||||
|
|
||||||
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
||||||
|
|
||||||
const formItemLayout = {
|
const formItemLayout = {
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: {
|
xs: {
|
||||||
@ -559,7 +561,7 @@ class SignupPage extends React.Component {
|
|||||||
{i18next.t("account:Sign Up")}
|
{i18next.t("account:Sign Up")}
|
||||||
</Button>
|
</Button>
|
||||||
{i18next.t("signup:Have account?")}
|
{i18next.t("signup:Have account?")}
|
||||||
<a href="/#" onClick={() => {
|
<a onClick={() => {
|
||||||
let linkInStorage = sessionStorage.getItem("loginURL")
|
let linkInStorage = sessionStorage.getItem("loginURL")
|
||||||
if(linkInStorage != null){
|
if(linkInStorage != null){
|
||||||
Setting.goToLink(linkInStorage)
|
Setting.goToLink(linkInStorage)
|
||||||
|
Reference in New Issue
Block a user