mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-16 05:03:49 +08:00
Improve UI.
This commit is contained in:
@ -21,7 +21,6 @@ import * as Setting from "./Setting";
|
|||||||
import * as ApplicationBackend from "./backend/ApplicationBackend";
|
import * as ApplicationBackend from "./backend/ApplicationBackend";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import BaseListPage from "./BaseListPage";
|
import BaseListPage from "./BaseListPage";
|
||||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
|
||||||
|
|
||||||
class ApplicationListPage extends BaseListPage {
|
class ApplicationListPage extends BaseListPage {
|
||||||
|
|
||||||
|
@ -119,14 +119,14 @@ class ProviderListPage extends BaseListPage {
|
|||||||
{text: 'Storage', value: 'Storage'},
|
{text: 'Storage', value: 'Storage'},
|
||||||
{text: 'SAML', value: 'SAML'},
|
{text: 'SAML', value: 'SAML'},
|
||||||
],
|
],
|
||||||
width: '100px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: i18next.t("provider:Type"),
|
title: i18next.t("provider:Type"),
|
||||||
dataIndex: 'type',
|
dataIndex: 'type',
|
||||||
key: 'type',
|
key: 'type',
|
||||||
width: '80px',
|
width: '110px',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
filterMultiple: false,
|
filterMultiple: false,
|
||||||
filters: [
|
filters: [
|
||||||
@ -152,13 +152,6 @@ class ProviderListPage extends BaseListPage {
|
|||||||
return Setting.getShortText(text);
|
return Setting.getShortText(text);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// title: 'Client secret',
|
|
||||||
// dataIndex: 'clientSecret',
|
|
||||||
// key: 'clientSecret',
|
|
||||||
// width: '150px',
|
|
||||||
// sorter: (a, b) => a.clientSecret.localeCompare(b.clientSecret),
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
title: i18next.t("provider:Provider URL"),
|
title: i18next.t("provider:Provider URL"),
|
||||||
dataIndex: 'providerUrl',
|
dataIndex: 'providerUrl',
|
||||||
|
@ -20,7 +20,6 @@ import * as RecordBackend from "./backend/RecordBackend";
|
|||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import BaseListPage from "./BaseListPage";
|
import BaseListPage from "./BaseListPage";
|
||||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
|
||||||
|
|
||||||
class RecordListPage extends BaseListPage {
|
class RecordListPage extends BaseListPage {
|
||||||
|
|
||||||
@ -92,7 +91,7 @@ class RecordListPage extends BaseListPage {
|
|||||||
title: i18next.t("general:Organization"),
|
title: i18next.t("general:Organization"),
|
||||||
dataIndex: 'organization',
|
dataIndex: 'organization',
|
||||||
key: 'organization',
|
key: 'organization',
|
||||||
width: '80px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('organization'),
|
...this.getColumnSearchProps('organization'),
|
||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
@ -122,7 +121,7 @@ class RecordListPage extends BaseListPage {
|
|||||||
title: i18next.t("general:Method"),
|
title: i18next.t("general:Method"),
|
||||||
dataIndex: 'method',
|
dataIndex: 'method',
|
||||||
key: 'method',
|
key: 'method',
|
||||||
width: '100px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
filterMultiple: false,
|
filterMultiple: false,
|
||||||
filters: [
|
filters: [
|
||||||
|
@ -21,7 +21,6 @@ import * as ResourceBackend from "./backend/ResourceBackend";
|
|||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import {Link} from "react-router-dom";
|
import {Link} from "react-router-dom";
|
||||||
import BaseListPage from "./BaseListPage";
|
import BaseListPage from "./BaseListPage";
|
||||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
|
||||||
|
|
||||||
class ResourceListPage extends BaseListPage {
|
class ResourceListPage extends BaseListPage {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -20,7 +20,6 @@ import * as Setting from "./Setting";
|
|||||||
import * as SyncerBackend from "./backend/SyncerBackend";
|
import * as SyncerBackend from "./backend/SyncerBackend";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import BaseListPage from "./BaseListPage";
|
import BaseListPage from "./BaseListPage";
|
||||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
|
||||||
|
|
||||||
class SyncerListPage extends BaseListPage {
|
class SyncerListPage extends BaseListPage {
|
||||||
|
|
||||||
@ -112,7 +111,7 @@ class SyncerListPage extends BaseListPage {
|
|||||||
title: i18next.t("general:Created time"),
|
title: i18next.t("general:Created time"),
|
||||||
dataIndex: 'createdTime',
|
dataIndex: 'createdTime',
|
||||||
key: 'createdTime',
|
key: 'createdTime',
|
||||||
width: '180px',
|
width: '160px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
return Setting.getFormattedDate(text);
|
return Setting.getFormattedDate(text);
|
||||||
@ -187,7 +186,7 @@ class SyncerListPage extends BaseListPage {
|
|||||||
title: i18next.t("syncer:Sync interval"),
|
title: i18next.t("syncer:Sync interval"),
|
||||||
dataIndex: 'syncInterval',
|
dataIndex: 'syncInterval',
|
||||||
key: 'syncInterval',
|
key: 'syncInterval',
|
||||||
width: '120px',
|
width: '130px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('syncInterval'),
|
...this.getColumnSearchProps('syncInterval'),
|
||||||
},
|
},
|
||||||
|
@ -176,7 +176,7 @@ class TokenListPage extends BaseListPage {
|
|||||||
title: i18next.t("token:Scope"),
|
title: i18next.t("token:Scope"),
|
||||||
dataIndex: 'scope',
|
dataIndex: 'scope',
|
||||||
key: 'scope',
|
key: 'scope',
|
||||||
width: '100px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('scope'),
|
...this.getColumnSearchProps('scope'),
|
||||||
},
|
},
|
||||||
|
@ -20,7 +20,6 @@ import * as Setting from "./Setting";
|
|||||||
import * as UserBackend from "./backend/UserBackend";
|
import * as UserBackend from "./backend/UserBackend";
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import BaseListPage from "./BaseListPage";
|
import BaseListPage from "./BaseListPage";
|
||||||
import * as ProviderBackend from "./backend/ProviderBackend";
|
|
||||||
|
|
||||||
class UserListPage extends BaseListPage {
|
class UserListPage extends BaseListPage {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@ -164,7 +163,7 @@ class UserListPage extends BaseListPage {
|
|||||||
title: i18next.t("general:Display name"),
|
title: i18next.t("general:Display name"),
|
||||||
dataIndex: 'displayName',
|
dataIndex: 'displayName',
|
||||||
key: 'displayName',
|
key: 'displayName',
|
||||||
width: '100px',
|
// width: '100px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('displayName'),
|
...this.getColumnSearchProps('displayName'),
|
||||||
},
|
},
|
||||||
@ -215,7 +214,7 @@ class UserListPage extends BaseListPage {
|
|||||||
title: i18next.t("user:Affiliation"),
|
title: i18next.t("user:Affiliation"),
|
||||||
dataIndex: 'affiliation',
|
dataIndex: 'affiliation',
|
||||||
key: 'affiliation',
|
key: 'affiliation',
|
||||||
width: '120px',
|
width: '140px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('affiliation'),
|
...this.getColumnSearchProps('affiliation'),
|
||||||
},
|
},
|
||||||
@ -223,7 +222,7 @@ class UserListPage extends BaseListPage {
|
|||||||
title: i18next.t("user:Country/Region"),
|
title: i18next.t("user:Country/Region"),
|
||||||
dataIndex: 'region',
|
dataIndex: 'region',
|
||||||
key: 'region',
|
key: 'region',
|
||||||
width: '120px',
|
width: '140px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('region'),
|
...this.getColumnSearchProps('region'),
|
||||||
},
|
},
|
||||||
@ -231,7 +230,7 @@ class UserListPage extends BaseListPage {
|
|||||||
title: i18next.t("user:Tag"),
|
title: i18next.t("user:Tag"),
|
||||||
dataIndex: 'tag',
|
dataIndex: 'tag',
|
||||||
key: 'tag',
|
key: 'tag',
|
||||||
width: '100px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('tag'),
|
...this.getColumnSearchProps('tag'),
|
||||||
},
|
},
|
||||||
@ -251,7 +250,7 @@ class UserListPage extends BaseListPage {
|
|||||||
title: i18next.t("user:Is global admin"),
|
title: i18next.t("user:Is global admin"),
|
||||||
dataIndex: 'isGlobalAdmin',
|
dataIndex: 'isGlobalAdmin',
|
||||||
key: 'isGlobalAdmin',
|
key: 'isGlobalAdmin',
|
||||||
width: '110px',
|
width: '140px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
return (
|
return (
|
||||||
|
@ -72,7 +72,7 @@ class WebhookListPage extends BaseListPage {
|
|||||||
title: i18next.t("general:Organization"),
|
title: i18next.t("general:Organization"),
|
||||||
dataIndex: 'organization',
|
dataIndex: 'organization',
|
||||||
key: 'organization',
|
key: 'organization',
|
||||||
width: '80px',
|
width: '110px',
|
||||||
sorter: true,
|
sorter: true,
|
||||||
...this.getColumnSearchProps('organization'),
|
...this.getColumnSearchProps('organization'),
|
||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
|
@ -246,7 +246,7 @@
|
|||||||
"Name": "名称",
|
"Name": "名称",
|
||||||
"Parse": "Parse",
|
"Parse": "Parse",
|
||||||
"Parse Metadata successfully": "Parse Metadata successfully",
|
"Parse Metadata successfully": "Parse Metadata successfully",
|
||||||
"Port": "端口号",
|
"Port": "端口",
|
||||||
"Port - Tooltip": "端口号",
|
"Port - Tooltip": "端口号",
|
||||||
"Provider URL": "提供商URL",
|
"Provider URL": "提供商URL",
|
||||||
"Provider URL - Tooltip": "提供商URL",
|
"Provider URL - Tooltip": "提供商URL",
|
||||||
@ -292,8 +292,8 @@
|
|||||||
"Application": "应用",
|
"Application": "应用",
|
||||||
"Copy Link": "复制链接",
|
"Copy Link": "复制链接",
|
||||||
"File name": "文件名",
|
"File name": "文件名",
|
||||||
"File size": "文件大小",
|
"File size": "大小",
|
||||||
"Format": "文件格式",
|
"Format": "格式",
|
||||||
"Link copied to clipboard successfully": "链接已成功复制到剪贴板",
|
"Link copied to clipboard successfully": "链接已成功复制到剪贴板",
|
||||||
"Parent": "属主",
|
"Parent": "属主",
|
||||||
"Tag": "标签",
|
"Tag": "标签",
|
||||||
|
Reference in New Issue
Block a user