mirror of https://gitee.com/topiam/eiam
⚡ 优化管理端前端代码
parent
a60d6b670c
commit
c8e2c5ef19
|
@ -122,7 +122,7 @@ export default () => {
|
||||||
},
|
},
|
||||||
avatar: {
|
avatar: {
|
||||||
search: false,
|
search: false,
|
||||||
render: (text, row) => {
|
render: (_text, row) => {
|
||||||
return (
|
return (
|
||||||
<Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.provider]} />
|
<Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.provider]} />
|
||||||
);
|
);
|
||||||
|
@ -136,10 +136,10 @@ export default () => {
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
search: false,
|
search: false,
|
||||||
render: (text, row) => [<ListContent key="context" {...row} />],
|
render: (_text, row) => [<ListContent key="context" {...row} />],
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
render: (text, row) => [
|
render: (_text, row) => [
|
||||||
<Fragment key={'status'}>
|
<Fragment key={'status'}>
|
||||||
{row.enabled ? (
|
{row.enabled ? (
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default (props: { id: string }) => {
|
||||||
width: 80,
|
width: 80,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
render: (text, record) => [
|
render: (_text, record) => [
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id: 'pages.account.user_detail.app_account.columns.option.popconfirm.title',
|
id: 'pages.account.user_detail.app_account.columns.option.popconfirm.title',
|
||||||
|
|
|
@ -86,7 +86,7 @@ export default (props: { userId: string }) => {
|
||||||
dataIndex: 'eventStatus',
|
dataIndex: 'eventStatus',
|
||||||
search: false,
|
search: false,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
render: (text: any, row: any) => (
|
render: (_text: any, row: any) => (
|
||||||
<Space>
|
<Space>
|
||||||
{row.eventStatus === EventStatus.success && (
|
{row.eventStatus === EventStatus.success && (
|
||||||
<Tag color="#87d068">{intl.formatMessage({ id: 'app.success' })}</Tag>
|
<Tag color="#87d068">{intl.formatMessage({ id: 'app.success' })}</Tag>
|
||||||
|
|
|
@ -266,7 +266,7 @@ export default (props: { appId: string }) => {
|
||||||
width: 80,
|
width: 80,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
render: (text, record) => [
|
render: (_text, record) => [
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id: 'pages.app.config.detail.items.login_access.access_policy.columns.option.popconfirm.title',
|
id: 'pages.app.config.detail.items.login_access.access_policy.columns.option.popconfirm.title',
|
||||||
|
|
|
@ -66,7 +66,7 @@ export default (props: { appId: string; protocol: AppProtocolType | string }) =>
|
||||||
width: 80,
|
width: 80,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
render: (text, record) => [
|
render: (_text, record) => [
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={intl.formatMessage({
|
title={intl.formatMessage({
|
||||||
id: 'pages.app.config.detail.items.login_access.app_account.columns.option.popconfirm.title',
|
id: 'pages.app.config.detail.items.login_access.app_account.columns.option.popconfirm.title',
|
||||||
|
|
|
@ -204,7 +204,7 @@ const List = (props: { category: IdentityProviderCategory }) => {
|
||||||
},
|
},
|
||||||
avatar: {
|
avatar: {
|
||||||
search: false,
|
search: false,
|
||||||
render: (text, row) => {
|
render: (_text, row) => {
|
||||||
return <Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.type]} />;
|
return <Avatar key={row.id} shape="square" size={50} src={ICON_LIST[row.type]} />;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -216,10 +216,10 @@ const List = (props: { category: IdentityProviderCategory }) => {
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
search: false,
|
search: false,
|
||||||
render: (text, row) => <ListContent key="context" {...row} />,
|
render: (_text, row) => <ListContent key="context" {...row} />,
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
render: (text, row) => [
|
render: (_text, row) => [
|
||||||
<Fragment key={'status'}>
|
<Fragment key={'status'}>
|
||||||
{row.enabled ? (
|
{row.enabled ? (
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
|
|
|
@ -144,7 +144,7 @@ export default () => {
|
||||||
width: 60,
|
width: 60,
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
render: (text: any, row: SessionList) => {
|
render: (_text: any, row: SessionList) => {
|
||||||
return [
|
return [
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title={intl.formatMessage({ id: 'pages.other.session.delete.confirm' })}
|
title={intl.formatMessage({ id: 'pages.other.session.delete.confirm' })}
|
||||||
|
|
|
@ -202,7 +202,7 @@ export const Administrator = () => {
|
||||||
valueType: 'option',
|
valueType: 'option',
|
||||||
width: 140,
|
width: 140,
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
render: (text, row) => {
|
render: (_text, row) => {
|
||||||
return [
|
return [
|
||||||
<a
|
<a
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default (props: { visible: boolean }) => {
|
||||||
dataSource={dataSource}
|
dataSource={dataSource}
|
||||||
metas={{
|
metas={{
|
||||||
title: {
|
title: {
|
||||||
render: (text, row) => [
|
render: (_text, row) => [
|
||||||
<p
|
<p
|
||||||
key={row.name}
|
key={row.name}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
@ -109,7 +109,7 @@ export default (props: { visible: boolean }) => {
|
||||||
},
|
},
|
||||||
description: {},
|
description: {},
|
||||||
subTitle: {
|
subTitle: {
|
||||||
render: (text, row) => {
|
render: (_text, row) => {
|
||||||
return (
|
return (
|
||||||
<Space size={0}>
|
<Space size={0}>
|
||||||
{row.custom && (
|
{row.custom && (
|
||||||
|
@ -124,7 +124,7 @@ export default (props: { visible: boolean }) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
render: (text, row) => {
|
render: (_text, row) => {
|
||||||
return [
|
return [
|
||||||
<a
|
<a
|
||||||
key="config"
|
key="config"
|
||||||
|
|
Loading…
Reference in New Issue