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

@ -33,7 +33,7 @@ import HomePage from "./basic/HomePage";
import CustomGithubCorner from "./CustomGithubCorner";
import * as Auth from "./auth/Auth";
import Face from "./auth/Face";
import LoginPage from "./auth/LoginPage";
import SelfLoginPage from "./auth/SelfLoginPage";
import * as AuthBackend from "./auth/AuthBackend";
import AuthCallback from "./auth/AuthCallback";
@ -334,7 +334,7 @@ class App extends Component {
if (this.isDoorPages()) {
return (
<Switch>
<Route exact path="/login/oauth/authorize" render={(props) => <Face type={"code"} {...props} />}/>
<Route exact path="/login/oauth/authorize" render={(props) => <LoginPage type={"code"} {...props} />}/>
</Switch>
)
}

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>

View File

@ -19,7 +19,7 @@ import * as AuthBackend from "./AuthBackend";
import * as Provider from "./Provider";
import * as Util from "./Util";
class Face extends React.Component {
class LoginPage extends React.Component {
constructor(props) {
super(props);
this.state = {
@ -228,4 +228,4 @@ class Face extends React.Component {
}
}
export default Face;
export default LoginPage;

View File

@ -13,13 +13,13 @@
// limitations under the License.
import React from 'react';
import Face from "./Face";
import LoginPage from "./LoginPage";
import {authConfig} from "./Auth";
class SelfLoginPage extends React.Component {
render() {
return (
<Face type={"login"} applicationName={authConfig.appName} account={this.props.account} onLoggedIn={this.props.onLoggedIn.bind(this)} {...this.props} />
<LoginPage type={"login"} applicationName={authConfig.appName} account={this.props.account} onLoggedIn={this.props.onLoggedIn.bind(this)} {...this.props} />
)
}
}

View File

@ -27,7 +27,7 @@
"OAuth providers": "OAuth providers",
"Applications that requires authentication": "Applications that requires authentication"
},
"account":
"account":
{
"My Account": "My Account",
"Login": "Login",
@ -55,10 +55,10 @@
"Is Admin": "Is Admin",
"Is Global Admin": "Is Global Admin"
},
"application":
"application":
{
"Edit Application": "Edit Application",
"Enable Password": "Enable Password",
"Face Preview": "Face Preview"
"Login Page Preview": "Login Page Preview"
}
}
}

View File

@ -27,7 +27,7 @@
"OAuth providers": "OAuth提供方",
"Applications that requires authentication": "需要鉴权的应用"
},
"account":
"account":
{
"My Account": "我的账户",
"Login": "登录",
@ -57,10 +57,10 @@
"Is Admin": "是管理员",
"Is Global Admin": "是全局管理员"
},
"application":
"application":
{
"Edit Application": "修改应用",
"Enable Password": "开启密码",
"Face Preview": "图标预览"
"Login Page Preview": "登录页面预览"
}
}
}