mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Fixes linting errors
This commit is contained in:
@@ -121,12 +121,12 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const HeaderBrand = (
|
const HeaderBrand = (
|
||||||
<Brand data-cy="brand-logo" src={logo} alt={alt || brandName} />
|
<Brand dataCy="brand-logo" src={logo} alt={alt || brandName} />
|
||||||
);
|
);
|
||||||
const Header = <LoginHeader headerBrand={HeaderBrand} />;
|
const Header = <LoginHeader headerBrand={HeaderBrand} />;
|
||||||
const Footer = (
|
const Footer = (
|
||||||
<LoginFooter
|
<LoginFooter
|
||||||
data-cy="login-footer"
|
dataCy="login-footer"
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: sanitizeHtml(loginInfo),
|
__html: sanitizeHtml(loginInfo),
|
||||||
}}
|
}}
|
||||||
@@ -136,7 +136,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
return (
|
return (
|
||||||
<Login header={Header} footer={Footer}>
|
<Login header={Header} footer={Footer}>
|
||||||
<LoginMainHeader
|
<LoginMainHeader
|
||||||
data-cy="login-header"
|
dataCy="login-header"
|
||||||
title={
|
title={
|
||||||
brandName
|
brandName
|
||||||
? i18n._(t`Welcome to Ansible ${brandName}! Please Sign In.`)
|
? i18n._(t`Welcome to Ansible ${brandName}! Please Sign In.`)
|
||||||
@@ -153,7 +153,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
>
|
>
|
||||||
{formik => (
|
{formik => (
|
||||||
<LoginForm
|
<LoginForm
|
||||||
data-cy="login-form"
|
dataCy="login-form"
|
||||||
className={authError ? 'pf-m-error' : ''}
|
className={authError ? 'pf-m-error' : ''}
|
||||||
helperText={helperText}
|
helperText={helperText}
|
||||||
isLoginButtonDisabled={isAuthenticating}
|
isLoginButtonDisabled={isAuthenticating}
|
||||||
@@ -183,7 +183,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
variant="error"
|
variant="error"
|
||||||
title={i18n._(t`Error!`)}
|
title={i18n._(t`Error!`)}
|
||||||
onClose={dismissLoginInfoError}
|
onClose={dismissLoginInfoError}
|
||||||
data-cy="login-info-error"
|
dataCy="login-info-error"
|
||||||
>
|
>
|
||||||
{i18n._(
|
{i18n._(
|
||||||
t`Failed to fetch custom login configuration settings. System defaults will be shown instead.`
|
t`Failed to fetch custom login configuration settings. System defaults will be shown instead.`
|
||||||
@@ -201,7 +201,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'azuread-oauth2') {
|
if (authKey === 'azuread-oauth2') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-azure"
|
dataCy="social-auth-azure"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -214,7 +214,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github') {
|
if (authKey === 'github') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github"
|
dataCy="social-auth-github"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -227,7 +227,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github-org') {
|
if (authKey === 'github-org') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github-org"
|
dataCy="social-auth-github-org"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -242,7 +242,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github-team') {
|
if (authKey === 'github-team') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github-team"
|
dataCy="social-auth-github-team"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -255,7 +255,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github-enterprise') {
|
if (authKey === 'github-enterprise') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github-enterprise"
|
dataCy="social-auth-github-enterprise"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -270,7 +270,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github-enterprise-org') {
|
if (authKey === 'github-enterprise-org') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github-enterprise-org"
|
dataCy="social-auth-github-enterprise-org"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -287,7 +287,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'github-enterprise-team') {
|
if (authKey === 'github-enterprise-team') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-github-enterprise-team"
|
dataCy="social-auth-github-enterprise-team"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -304,7 +304,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
if (authKey === 'google-oauth2') {
|
if (authKey === 'google-oauth2') {
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-google"
|
dataCy="social-auth-google"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
@@ -318,7 +318,7 @@ function AWXLogin({ alt, i18n, isAuthenticated }) {
|
|||||||
const samlIDP = authKey.split(':')[1] || null;
|
const samlIDP = authKey.split(':')[1] || null;
|
||||||
return (
|
return (
|
||||||
<LoginMainFooterLinksItem
|
<LoginMainFooterLinksItem
|
||||||
data-cy="social-auth-saml"
|
dataCy="social-auth-saml"
|
||||||
href={loginUrl}
|
href={loginUrl}
|
||||||
key={authKey}
|
key={authKey}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user