mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Improve UI.
This commit is contained in:
parent
2dd4afbe7b
commit
8543d09d05
@ -87,7 +87,7 @@ class OrganizationEditPage extends React.Component {
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
Website Url:
|
||||
Website URL:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.organization.websiteUrl} onChange={e => {
|
||||
|
@ -114,7 +114,7 @@ class OrganizationListPage extends React.Component {
|
||||
sorter: (a, b) => a.displayName.localeCompare(b.displayName),
|
||||
},
|
||||
{
|
||||
title: 'Website Url',
|
||||
title: 'Website URL',
|
||||
dataIndex: 'websiteUrl',
|
||||
key: 'websiteUrl',
|
||||
width: '300px',
|
||||
|
@ -13,10 +13,12 @@
|
||||
// limitations under the License.
|
||||
|
||||
import React from "react";
|
||||
import {Button, Card, Col, Input, Row} from 'antd';
|
||||
import {Button, Card, Col, Input, Row, Select} from 'antd';
|
||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
||||
import * as Setting from "./Setting";
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
class ProviderEditPage extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
@ -87,17 +89,24 @@ class ProviderEditPage extends React.Component {
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
type:
|
||||
Type:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.provider.type} onChange={e => {
|
||||
this.updateProviderField('type', e.target.value);
|
||||
}} />
|
||||
<Select virtual={false} style={{width: '100%'}} value={this.state.provider.type} onChange={(value => {this.updateProviderField('type', value);})}>
|
||||
{
|
||||
[
|
||||
{id: 'google', name: 'Google'},
|
||||
{id: 'github', name: 'GitHub'},
|
||||
{id: 'qq', name: 'QQ'},
|
||||
{id: 'wechat', name: 'WeChat'},
|
||||
].map((providerType, index) => <Option key={index} value={providerType.id}>{providerType.name}</Option>)
|
||||
}
|
||||
</Select>
|
||||
</Col>
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
Client Id:
|
||||
Client ID:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.provider.clientId} onChange={e => {
|
||||
@ -117,7 +126,7 @@ class ProviderEditPage extends React.Component {
|
||||
</Row>
|
||||
<Row style={{marginTop: '20px'}} >
|
||||
<Col style={{marginTop: '5px'}} span={2}>
|
||||
Provider Url:
|
||||
Provider URL:
|
||||
</Col>
|
||||
<Col span={22} >
|
||||
<Input value={this.state.provider.providerUrl} onChange={e => {
|
||||
|
@ -18,6 +18,7 @@ import {Button, Col, Popconfirm, Row, Table} from 'antd';
|
||||
import moment from "moment";
|
||||
import * as Setting from "./Setting";
|
||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
||||
import * as Auth from "./common/Auth";
|
||||
|
||||
class ProviderListPage extends React.Component {
|
||||
constructor(props) {
|
||||
@ -120,8 +121,13 @@ class ProviderListPage extends React.Component {
|
||||
title: 'Type',
|
||||
dataIndex: 'type',
|
||||
key: 'type',
|
||||
width: '150px',
|
||||
width: '80px',
|
||||
sorter: (a, b) => a.type.localeCompare(b.type),
|
||||
render: (text, record, index) => {
|
||||
return (
|
||||
<img width={30} height={30} src={Auth.getAuthLogo(record)} alt={record.displayName} />
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Client Id',
|
||||
|
Loading…
x
Reference in New Issue
Block a user