feat: comma dangle

This commit is contained in:
qianxi0410
2022-08-06 23:54:56 +08:00
parent 9abf1b9d73
commit cd966116d4
60 changed files with 317 additions and 315 deletions

View File

@ -70,7 +70,7 @@ class UserListPage extends BaseListPage {
UserBackend.addUser(newUser)
.then((res) => {
this.props.history.push({pathname: `/users/${newUser.owner}/${newUser.name}`, mode: "add"});
}
},
)
.catch(error => {
Setting.showMessage("error", `User failed to add: ${error}`);
@ -85,7 +85,7 @@ class UserListPage extends BaseListPage {
data: Setting.deleteRow(this.state.data, i),
pagination: {total: this.state.pagination.total - 1},
});
}
},
)
.catch(error => {
Setting.showMessage("error", `User failed to delete: ${error}`);
@ -152,7 +152,7 @@ class UserListPage extends BaseListPage {
{text}
</Link>
);
}
},
},
{
title: i18next.t("general:Application"),
@ -168,7 +168,7 @@ class UserListPage extends BaseListPage {
{text}
</Link>
);
}
},
},
{
title: i18next.t("general:Name"),
@ -184,7 +184,7 @@ class UserListPage extends BaseListPage {
{text}
</Link>
);
}
},
},
{
title: i18next.t("general:Created time"),
@ -194,7 +194,7 @@ class UserListPage extends BaseListPage {
sorter: true,
render: (text, record, index) => {
return Setting.getFormattedDate(text);
}
},
},
{
title: i18next.t("general:Display name"),
@ -215,7 +215,7 @@ class UserListPage extends BaseListPage {
<img src={text} alt={text} width={50} />
</a>
);
}
},
},
{
title: i18next.t("general:Email"),
@ -230,7 +230,7 @@ class UserListPage extends BaseListPage {
{text}
</a>
);
}
},
},
{
title: i18next.t("general:Phone"),
@ -281,7 +281,7 @@ class UserListPage extends BaseListPage {
return (
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
);
}
},
},
{
title: i18next.t("user:Is global admin"),
@ -293,7 +293,7 @@ class UserListPage extends BaseListPage {
return (
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
);
}
},
},
{
title: i18next.t("user:Is forbidden"),
@ -305,7 +305,7 @@ class UserListPage extends BaseListPage {
return (
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
);
}
},
},
{
title: i18next.t("user:Is deleted"),
@ -317,7 +317,7 @@ class UserListPage extends BaseListPage {
return (
<Switch disabled checkedChildren="ON" unCheckedChildren="OFF" checked={text} />
);
}
},
},
{
title: i18next.t("general:Action"),
@ -337,7 +337,7 @@ class UserListPage extends BaseListPage {
</Popconfirm>
</div>
);
}
},
},
];