mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 14:44:31 +00:00
Merge branch 'releases/v4' of https://github.com/strapi/strapi into filter-cm-fix
This commit is contained in:
commit
533b339dd1
@ -1,3 +1,14 @@
|
||||
module.exports = () => {
|
||||
return (ctx, next) => next();
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* `test-middleware` middleware.
|
||||
*/
|
||||
|
||||
module.exports = (config, { strapi }) => {
|
||||
// Add your own logic here.
|
||||
return async (ctx, next) => {
|
||||
strapi.log.info('In test-middleware middleware.');
|
||||
|
||||
await next();
|
||||
};
|
||||
};
|
||||
|
||||
@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
||||
import { Box } from '@strapi/design-system/Box';
|
||||
import { Flex } from '@strapi/design-system/Flex';
|
||||
import { Td, Tr } from '@strapi/design-system/Table';
|
||||
import { Text } from '@strapi/design-system/Text';
|
||||
import { Text, EllipsisText } from '@strapi/design-system/Text';
|
||||
import { IconButton } from '@strapi/design-system/IconButton';
|
||||
import { stopPropagation, onRowClick } from '@strapi/helper-plugin';
|
||||
import { stopPropagation, onRowClick, pxToRem } from '@strapi/helper-plugin';
|
||||
import { useIntl } from 'react-intl';
|
||||
|
||||
const RoleRow = ({ id, name, description, usersCount, icons }) => {
|
||||
@ -26,11 +26,11 @@ const RoleRow = ({ id, name, description, usersCount, icons }) => {
|
||||
fn: icons[1].onClick,
|
||||
})}
|
||||
>
|
||||
<Td>
|
||||
<Text textColor="neutral800">{name}</Text>
|
||||
<Td maxWidth={pxToRem(130)}>
|
||||
<EllipsisText textColor="neutral800">{name}</EllipsisText>
|
||||
</Td>
|
||||
<Td>
|
||||
<Text textColor="neutral800">{description}</Text>
|
||||
<Td maxWidth={pxToRem(250)}>
|
||||
<EllipsisText textColor="neutral800">{description}</EllipsisText>
|
||||
</Td>
|
||||
<Td>
|
||||
<Text textColor="neutral800">{usersCountText}</Text>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* `{{ name }}` middleware.
|
||||
*/
|
||||
|
||||
module.exports = async (config, { strapi }) => {
|
||||
module.exports = (config, { strapi }) => {
|
||||
// Add your own logic here.
|
||||
return async (ctx, next) => {
|
||||
strapi.log.info('In {{ name }} middleware.');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user