Rename Face to LoginPage.

This commit is contained in:
Yang Luo
2021-03-26 21:56:51 +08:00
parent 7fe9705303
commit 3d4c987d32
6 changed files with 17 additions and 17 deletions

View File

@ -19,7 +19,7 @@ import * as ApplicationBackend from "./backend/ApplicationBackend";
import * as Setting from "./Setting";
import * as ProviderBackend from "./backend/ProviderBackend";
import * as OrganizationBackend from "./backend/OrganizationBackend";
import Face from "./auth/Face";
import LoginPage from "./auth/LoginPage";
import i18next from "i18next";
import UrlTable from "./UrlTable";
@ -254,7 +254,7 @@ class ApplicationEditPage extends React.Component {
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Face Preview")}:
{i18next.t("application:Login Page Preview")}:
</Col>
<Col span={22} >
<a style={{marginBottom: '10px'}} target="_blank" href={`/login/oauth/authorize?client_id=${this.state.application.clientId}&response_type=code&redirect_uri=${this.state.application.redirectUris[0]}&scope=read&state=casdoor`}>
@ -265,7 +265,7 @@ class ApplicationEditPage extends React.Component {
<br/>
<br/>
<div style={{width: "500px", height: "600px", border: "1px solid rgb(217,217,217)"}}>
<Face type={"login"} application={this.state.application} />
<LoginPage type={"login"} application={this.state.application} />
</div>
</Col>
</Row>