Add /api/oauth/code API.

This commit is contained in:
Yang Luo
2021-03-14 18:18:03 +08:00
parent 202a94a8e5
commit 1fd6ee388c
7 changed files with 164 additions and 11 deletions

View File

@ -88,6 +88,16 @@ class TokenEditPage extends React.Component {
}} />
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Authorization Code")}:
</Col>
<Col span={22} >
<Input value={this.state.token.code} onChange={e => {
this.updateTokenField('code', e.target.value);
}} />
</Col>
</Row>
<Row style={{marginTop: '20px'}} >
<Col style={{marginTop: '5px'}} span={2}>
{i18next.t("general:Access Token")}:

View File

@ -124,6 +124,13 @@ class TokenListPage extends React.Component {
)
}
},
{
title: i18next.t("token:Authorization Code"),
dataIndex: 'code',
key: 'code',
// width: '150px',
sorter: (a, b) => a.code.localeCompare(b.code),
},
{
title: i18next.t("token:Access Token"),
dataIndex: 'accessToken',