Improve UI text.

This commit is contained in:
Yang Luo
2021-04-28 00:13:50 +08:00
parent 7a0ed4ebaf
commit 6fbdc556ac
12 changed files with 57 additions and 57 deletions

View File

@ -107,7 +107,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}: {i18next.t("general:Display name")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.application.displayName} onChange={e => { <Input value={this.state.application.displayName} onChange={e => {
@ -186,7 +186,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("provider:Client Secret")}: {i18next.t("provider:Client secret")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.application.clientSecret} onChange={e => { <Input value={this.state.application.clientSecret} onChange={e => {
@ -208,7 +208,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Expire In Hours")}: {i18next.t("general:Expire in hours")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.application.expireInHours} onChange={e => { <Input value={this.state.application.expireInHours} onChange={e => {
@ -218,7 +218,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Enable Password")}: {i18next.t("application:Enable password")}:
</Col> </Col>
<Col span={1} > <Col span={1} >
<Switch checked={this.state.application.enablePassword} onChange={checked => { <Switch checked={this.state.application.enablePassword} onChange={checked => {
@ -228,7 +228,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Enable Sign Up")}: {i18next.t("application:Enable signup")}:
</Col> </Col>
<Col span={1} > <Col span={1} >
<Switch checked={this.state.application.enableSignUp} onChange={checked => { <Switch checked={this.state.application.enableSignUp} onChange={checked => {
@ -254,7 +254,7 @@ class ApplicationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("application:Login Page Preview")}: {i18next.t("application:Login page preview")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<a style={{marginBottom: '10px'}} target="_blank" rel="noreferrer" href={`/login/oauth/authorize?client_id=${this.state.application.clientId}&response_type=code&redirect_uri=${this.state.application.redirectUris[0]}&scope=read&state=casdoor`}> <a style={{marginBottom: '10px'}} target="_blank" rel="noreferrer" href={`/login/oauth/authorize?client_id=${this.state.application.clientId}&response_type=code&redirect_uri=${this.state.application.redirectUris[0]}&scope=read&state=casdoor`}>

View File

@ -104,7 +104,7 @@ class ApplicationListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Created Time"), title: i18next.t("general:Created time"),
dataIndex: 'createdTime', dataIndex: 'createdTime',
key: 'createdTime', key: 'createdTime',
width: '160px', width: '160px',
@ -114,7 +114,7 @@ class ApplicationListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Display Name"), title: i18next.t("general:Display name"),
dataIndex: 'displayName', dataIndex: 'displayName',
key: 'displayName', key: 'displayName',
// width: '100px', // width: '100px',

View File

@ -78,7 +78,7 @@ class OrganizationEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}: {i18next.t("general:Display name")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.organization.displayName} onChange={e => { <Input value={this.state.organization.displayName} onChange={e => {

View File

@ -98,7 +98,7 @@ class OrganizationListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Created Time"), title: i18next.t("general:Created time"),
dataIndex: 'createdTime', dataIndex: 'createdTime',
key: 'createdTime', key: 'createdTime',
width: '160px', width: '160px',
@ -108,7 +108,7 @@ class OrganizationListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Display Name"), title: i18next.t("general:Display name"),
dataIndex: 'displayName', dataIndex: 'displayName',
key: 'displayName', key: 'displayName',
// width: '100px', // width: '100px',

View File

@ -80,7 +80,7 @@ class ProviderEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}: {i18next.t("general:Display name")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.provider.displayName} onChange={e => { <Input value={this.state.provider.displayName} onChange={e => {
@ -117,7 +117,7 @@ class ProviderEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("provider:Client Secret")}: {i18next.t("provider:Client secret")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.provider.clientSecret} onChange={e => { <Input value={this.state.provider.clientSecret} onChange={e => {

View File

@ -102,7 +102,7 @@ class ProviderListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Created Time"), title: i18next.t("general:Created time"),
dataIndex: 'createdTime', dataIndex: 'createdTime',
key: 'createdTime', key: 'createdTime',
width: '160px', width: '160px',
@ -112,7 +112,7 @@ class ProviderListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Display Name"), title: i18next.t("general:Display name"),
dataIndex: 'displayName', dataIndex: 'displayName',
key: 'displayName', key: 'displayName',
// width: '100px', // width: '100px',
@ -138,7 +138,7 @@ class ProviderListPage extends React.Component {
sorter: (a, b) => a.clientId.localeCompare(b.clientId), sorter: (a, b) => a.clientId.localeCompare(b.clientId),
}, },
// { // {
// title: 'Client Secret', // title: 'Client secret',
// dataIndex: 'clientSecret', // dataIndex: 'clientSecret',
// key: 'clientSecret', // key: 'clientSecret',
// width: '150px', // width: '150px',

View File

@ -88,7 +88,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Authorization Code")}: {i18next.t("general:Authorization code")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.code} onChange={e => { <Input value={this.state.token.code} onChange={e => {
@ -98,7 +98,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Access Token")}: {i18next.t("general:Access token")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.accessToken} onChange={e => { <Input value={this.state.token.accessToken} onChange={e => {
@ -108,7 +108,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Expires In")}: {i18next.t("general:Expires in")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.expiresIn} onChange={e => { <Input value={this.state.token.expiresIn} onChange={e => {
@ -128,7 +128,7 @@ class TokenEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Token Type")}: {i18next.t("general:Token type")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.token.tokenType} onChange={e => { <Input value={this.state.token.tokenType} onChange={e => {

View File

@ -101,7 +101,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Created Time"), title: i18next.t("general:Created time"),
dataIndex: 'createdTime', dataIndex: 'createdTime',
key: 'createdTime', key: 'createdTime',
width: '160px', width: '160px',
@ -125,7 +125,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("token:Authorization Code"), title: i18next.t("token:Authorization code"),
dataIndex: 'code', dataIndex: 'code',
key: 'code', key: 'code',
// width: '150px', // width: '150px',
@ -135,7 +135,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("token:Access Token"), title: i18next.t("token:Access token"),
dataIndex: 'accessToken', dataIndex: 'accessToken',
key: 'accessToken', key: 'accessToken',
// width: '150px', // width: '150px',
@ -146,7 +146,7 @@ class TokenListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("token:Expires In"), title: i18next.t("token:Expires in"),
dataIndex: 'expiresIn', dataIndex: 'expiresIn',
key: 'expiresIn', key: 'expiresIn',
width: '120px', width: '120px',
@ -160,7 +160,7 @@ class TokenListPage extends React.Component {
sorter: (a, b) => a.scope.localeCompare(b.scope), sorter: (a, b) => a.scope.localeCompare(b.scope),
}, },
{ {
title: i18next.t("token:Token Type"), title: i18next.t("token:Token type"),
dataIndex: 'tokenType', dataIndex: 'tokenType',
key: 'tokenType', key: 'tokenType',
width: '130px', width: '130px',

View File

@ -210,7 +210,7 @@ class UserEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Display Name")}: {i18next.t("general:Display name")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Input value={this.state.user.displayName} onChange={e => { <Input value={this.state.user.displayName} onChange={e => {
@ -250,7 +250,7 @@ class UserEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:User Type")}: {i18next.t("general:User type")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}> <Select virtual={false} style={{width: '100%'}} value={this.state.user.type} onChange={(value => {this.updateUserField('type', value);})}>
@ -263,7 +263,7 @@ class UserEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Password Type")}: {i18next.t("general:Password type")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<Select virtual={false} style={{width: '100%'}} value={this.state.user.passwordType} onChange={(value => {this.updateUserField('passwordType', value);})}> <Select virtual={false} style={{width: '100%'}} value={this.state.user.passwordType} onChange={(value => {this.updateUserField('passwordType', value);})}>
@ -331,7 +331,7 @@ class UserEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Third-party Logins")}: {i18next.t("user:Third-party logins")}:
</Col> </Col>
<Col span={22} > <Col span={22} >
<div style={{marginBottom: 20}}> <div style={{marginBottom: 20}}>
@ -346,7 +346,7 @@ class UserEditPage extends React.Component {
<React.Fragment> <React.Fragment>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Is Admin")}: {i18next.t("user:Is admin")}:
</Col> </Col>
<Col span={1} > <Col span={1} >
<Switch checked={this.state.user.isAdmin} onChange={checked => { <Switch checked={this.state.user.isAdmin} onChange={checked => {
@ -356,7 +356,7 @@ class UserEditPage extends React.Component {
</Row> </Row>
<Row style={{marginTop: '20px'}} > <Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}> <Col style={{marginTop: '5px'}} span={2}>
{i18next.t("user:Is Global Admin")}: {i18next.t("user:Is global admin")}:
</Col> </Col>
<Col span={1} > <Col span={1} >
<Switch checked={this.state.user.isGlobalAdmin} onChange={checked => { <Switch checked={this.state.user.isGlobalAdmin} onChange={checked => {

View File

@ -121,7 +121,7 @@ class UserListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("general:Created Time"), title: i18next.t("general:Created time"),
dataIndex: 'createdTime', dataIndex: 'createdTime',
key: 'createdTime', key: 'createdTime',
width: '160px', width: '160px',
@ -131,7 +131,7 @@ class UserListPage extends React.Component {
} }
}, },
// { // {
// title: 'Password Type', // title: 'Password type',
// dataIndex: 'passwordType', // dataIndex: 'passwordType',
// key: 'passwordType', // key: 'passwordType',
// width: '150px', // width: '150px',
@ -145,7 +145,7 @@ class UserListPage extends React.Component {
// sorter: (a, b) => a.password.localeCompare(b.password), // sorter: (a, b) => a.password.localeCompare(b.password),
// }, // },
{ {
title: i18next.t("general:Display Name"), title: i18next.t("general:Display name"),
dataIndex: 'displayName', dataIndex: 'displayName',
key: 'displayName', key: 'displayName',
// width: '100px', // width: '100px',
@ -200,7 +200,7 @@ class UserListPage extends React.Component {
sorter: (a, b) => a.tag.localeCompare(b.tag), sorter: (a, b) => a.tag.localeCompare(b.tag),
}, },
{ {
title: i18next.t("user:Is Admin"), title: i18next.t("user:Is admin"),
dataIndex: 'isAdmin', dataIndex: 'isAdmin',
key: 'isAdmin', key: 'isAdmin',
width: '120px', width: '120px',
@ -212,7 +212,7 @@ class UserListPage extends React.Component {
} }
}, },
{ {
title: i18next.t("user:Is Global Admin"), title: i18next.t("user:Is global admin"),
dataIndex: 'isGlobalAdmin', dataIndex: 'isGlobalAdmin',
key: 'isGlobalAdmin', key: 'isGlobalAdmin',
width: '120px', width: '120px',

View File

@ -12,14 +12,14 @@
"Edit": "Edit", "Edit": "Edit",
"Delete": "Delete", "Delete": "Delete",
"Organization": "Organization", "Organization": "Organization",
"Created Time": "Created Time", "Created time": "Created time",
"Name": "Name", "Name": "Name",
"Display Name": "Display Name", "Display name": "Display name",
"Avatar": "Avatar", "Avatar": "Avatar",
"URL": "URL", "URL": "URL",
"Preview": "Preview", "Preview": "Preview",
"User Type": "User Type", "User type": "User type",
"Password Type": "Password Type", "Password type": "Password type",
"Password": "Password", "Password": "Password",
"Email": "Email", "Email": "Email",
"Phone": "Phone", "Phone": "Phone",
@ -59,7 +59,7 @@
{ {
"Type": "Type", "Type": "Type",
"Client ID": "Client ID", "Client ID": "Client ID",
"Client Secret": "Client Secret", "Client secret": "Client secret",
"Provider URL": "Provider URL", "Provider URL": "Provider URL",
"Edit Provider": "Edit Provider" "Edit Provider": "Edit Provider"
}, },
@ -72,16 +72,16 @@
"Set new profile picture": "Set new profile picture", "Set new profile picture": "Set new profile picture",
"Affiliation": "Affiliation", "Affiliation": "Affiliation",
"Tag": "Tag", "Tag": "Tag",
"Third-party Logins": "Third-party Logins", "Third-party logins": "Third-party logins",
"Link": "Link", "Link": "Link",
"Unlink": "Unlink", "Unlink": "Unlink",
"Is Admin": "Is Admin", "Is admin": "Is admin",
"Is Global Admin": "Is Global Admin" "Is global admin": "Is global admin"
}, },
"application": "application":
{ {
"Edit Application": "Edit Application", "Edit Application": "Edit Application",
"Enable Password": "Enable Password", "Enable password": "Enable password",
"Login Page Preview": "Login Page Preview" "Login page preview": "Login page preview"
} }
} }

View File

@ -12,14 +12,14 @@
"Edit": "修改", "Edit": "修改",
"Delete": "删除", "Delete": "删除",
"Organization": "组织", "Organization": "组织",
"Created Time": "创建时间", "Created time": "创建时间",
"Name": "用户名", "Name": "用户名",
"Display Name": "姓名", "Display name": "姓名",
"Avatar": "头像", "Avatar": "头像",
"URL": "链接", "URL": "链接",
"Preview": "预览", "Preview": "预览",
"User Type": "用户类型", "User type": "用户类型",
"Password Type": "密码类型", "Password type": "密码类型",
"Password": "密码", "Password": "密码",
"Email": "电子邮箱", "Email": "电子邮箱",
"Phone": "手机号", "Phone": "手机号",
@ -58,10 +58,10 @@
"provider": "provider":
{ {
"Name": "用户名", "Name": "用户名",
"Display Name": "姓名", "Display name": "姓名",
"Type": "类型", "Type": "类型",
"Client ID": "Client ID", "Client ID": "Client ID",
"Client Secret": "Client Secret", "Client secret": "Client secret",
"Provider URL": "第三方URL", "Provider URL": "第三方URL",
"Edit Provider": "修改第三方" "Edit Provider": "修改第三方"
}, },
@ -74,16 +74,16 @@
"Set new profile picture": "设置新头像", "Set new profile picture": "设置新头像",
"Affiliation": "单位", "Affiliation": "单位",
"Tag": "标签", "Tag": "标签",
"Third-party Logins": "第三方登录", "Third-party logins": "第三方登录",
"Link": "绑定", "Link": "绑定",
"Unlink": "解绑", "Unlink": "解绑",
"Is Admin": "是管理员", "Is admin": "是管理员",
"Is Global Admin": "是全局管理员" "Is global admin": "是全局管理员"
}, },
"application": "application":
{ {
"Edit Application": "修改应用", "Edit Application": "修改应用",
"Enable Password": "开启密码", "Enable password": "开启密码",
"Login Page Preview": "登录页面预览" "Login page preview": "登录页面预览"
} }
} }