Fix frontend warnings.

This commit is contained in:
Gucheng Wang
2022-04-25 20:00:57 +08:00
parent 3e92d761b9
commit 4263af6f2c
5 changed files with 4 additions and 6 deletions

View File

@ -27,7 +27,6 @@ export const CropperDiv = (props) => {
const [confirmLoading, setConfirmLoading] = React.useState(false); const [confirmLoading, setConfirmLoading] = React.useState(false);
const {title} = props; const {title} = props;
const {user} = props; const {user} = props;
const {account} = props;
const {buttonText} = props; const {buttonText} = props;
let uploadButton; let uploadButton;

View File

@ -19,7 +19,6 @@ import moment from "moment";
import * as Setting from "./Setting"; import * as Setting from "./Setting";
import * as TokenBackend from "./backend/TokenBackend"; import * as TokenBackend from "./backend/TokenBackend";
import i18next from "i18next"; import i18next from "i18next";
import * as ResourceBackend from "./backend/ResourceBackend";
import BaseListPage from "./BaseListPage"; import BaseListPage from "./BaseListPage";
class TokenListPage extends BaseListPage { class TokenListPage extends BaseListPage {

View File

@ -21,7 +21,6 @@ import * as Setting from "./Setting";
import * as UserBackend from "./backend/UserBackend"; import * as UserBackend from "./backend/UserBackend";
import i18next from "i18next"; import i18next from "i18next";
import BaseListPage from "./BaseListPage"; import BaseListPage from "./BaseListPage";
import * as path from "path";
class UserListPage extends BaseListPage { class UserListPage extends BaseListPage {
constructor(props) { constructor(props) {

View File

@ -149,7 +149,7 @@ class LoginPage extends React.Component {
AuthBackend.loginCas(values, casParams).then((res) => { AuthBackend.loginCas(values, casParams).then((res) => {
if (res.status === 'ok') { if (res.status === 'ok') {
let msg = "Logged in successfully. " let msg = "Logged in successfully. "
if (casParams.service == "") { if (casParams.service === "") {
//If service was not specified, CAS MUST display a message notifying the client that it has successfully initiated a single sign-on session. //If service was not specified, CAS MUST display a message notifying the client that it has successfully initiated a single sign-on session.
msg += "Now you can visit apps protected by casdoor." msg += "Now you can visit apps protected by casdoor."
} }
@ -593,6 +593,9 @@ class LoginPage extends React.Component {
return ( return (
<div> <div>
{/*{*/}
{/* JSON.stringify(silentSignin)*/}
{/*}*/}
<div style={{fontSize: 16, textAlign: "left"}}> <div style={{fontSize: 16, textAlign: "left"}}>
{i18next.t("login:Continue with")}&nbsp;: {i18next.t("login:Continue with")}&nbsp;:
</div> </div>

View File

@ -18,8 +18,6 @@ import * as Setting from "../Setting";
import i18next from "i18next"; import i18next from "i18next";
import * as UserBackend from "../backend/UserBackend"; import * as UserBackend from "../backend/UserBackend";
import {SafetyOutlined} from "@ant-design/icons"; import {SafetyOutlined} from "@ant-design/icons";
import * as Util from "../auth/Util";
import {isValidEmail, isValidPhone} from "../Setting";
const { Search } = Input; const { Search } = Input;