@akemona-org/strapi-plugin-users-permissions 3.13.2 → 3.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/src/components/BaselineAlignement/index.js +2 -4
- package/admin/src/components/BoundRoute/Components.js +1 -1
- package/admin/src/components/FormBloc/index.js +36 -34
- package/admin/src/components/ListRow/Components.js +2 -2
- package/admin/src/components/Permissions/PermissionRow/CheckboxWrapper.js +2 -0
- package/admin/src/components/Permissions/PermissionRow/SubCategory/SubCategoryWrapper.js +1 -1
- package/admin/src/components/Permissions/PermissionRow/SubCategory/index.js +1 -1
- package/admin/src/containers/Roles/ProtectedCreatePage/index.js +5 -3
- package/admin/src/containers/Roles/ProtectedEditPage/index.js +5 -3
- package/package.json +5 -5
|
@@ -8,10 +8,8 @@ import styled from 'styled-components';
|
|
|
8
8
|
// I create it to temporary fix the baseline alignment until we have the design system.
|
|
9
9
|
|
|
10
10
|
const BaselineAlignment = styled.div`
|
|
11
|
-
padding
|
|
12
|
-
|
|
13
|
-
padding-bottom: ${({ size, bottom }) => bottom && size};
|
|
14
|
-
padding-left: ${({ size, left }) => left && size};
|
|
11
|
+
padding: ${({ size, top }) => top && size} ${({ size, right }) => right && size}
|
|
12
|
+
${({ size, bottom }) => bottom && size} ${({ size, left }) => left && size};
|
|
15
13
|
`;
|
|
16
14
|
|
|
17
15
|
BaselineAlignment.defaultProps = {
|
|
@@ -6,41 +6,43 @@ import BaselineAlignement from '../BaselineAlignement';
|
|
|
6
6
|
import Bloc from '../Bloc';
|
|
7
7
|
|
|
8
8
|
function FormBloc({ children, actions, isLoading, title, subtitle }) {
|
|
9
|
-
return
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{subtitle && (
|
|
28
|
-
<Text color="grey" lineHeight="1.8rem">
|
|
29
|
-
{subtitle}
|
|
9
|
+
return (
|
|
10
|
+
<Bloc>
|
|
11
|
+
<BaselineAlignement top size={title ? '18px' : '22px'} />
|
|
12
|
+
<Padded left right size="sm">
|
|
13
|
+
{isLoading ? (
|
|
14
|
+
<>
|
|
15
|
+
<LoadingIndicator />
|
|
16
|
+
<BaselineAlignement bottom size="22px" />
|
|
17
|
+
</>
|
|
18
|
+
) : (
|
|
19
|
+
<>
|
|
20
|
+
{title && (
|
|
21
|
+
<>
|
|
22
|
+
<Padded left right size="xs">
|
|
23
|
+
<Flex justifyContent="space-between">
|
|
24
|
+
<Padded left right size="sm">
|
|
25
|
+
<Text fontSize="lg" fontWeight="bold">
|
|
26
|
+
{title}
|
|
30
27
|
</Text>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
{subtitle && (
|
|
29
|
+
<Text color="grey" lineHeight="1.8rem">
|
|
30
|
+
{subtitle}
|
|
31
|
+
</Text>
|
|
32
|
+
)}
|
|
33
|
+
</Padded>
|
|
34
|
+
{actions}
|
|
35
|
+
</Flex>
|
|
36
|
+
</Padded>
|
|
37
|
+
<BaselineAlignement top size="18px" />
|
|
38
|
+
</>
|
|
39
|
+
)}
|
|
40
|
+
{children}
|
|
41
|
+
</>
|
|
42
|
+
)}
|
|
43
|
+
</Padded>
|
|
44
|
+
</Bloc>
|
|
45
|
+
);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
FormBloc.defaultProps = {
|
|
@@ -2,8 +2,8 @@ import styled from 'styled-components';
|
|
|
2
2
|
|
|
3
3
|
const Container = styled.div`
|
|
4
4
|
margin: 0 3.2rem 0 1.9rem;
|
|
5
|
-
padding: 0 1.4rem 0
|
|
6
|
-
border-bottom: 1px solid
|
|
5
|
+
padding: 0 1.4rem 0 0;
|
|
6
|
+
border-bottom: 1px solid rgb(14 22 34 / 4%);
|
|
7
7
|
color: #333740;
|
|
8
8
|
font-size: 1.3rem;
|
|
9
9
|
> div {
|
|
@@ -16,12 +16,14 @@ const CheckboxWrapper = styled.div`
|
|
|
16
16
|
font-size: 1.4rem;
|
|
17
17
|
color: ${({ theme }) => theme.main.colors.greyDark};
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
cursor: pointer;
|
|
20
21
|
}
|
|
21
22
|
&:hover {
|
|
22
23
|
${PolicyWrapper} {
|
|
23
24
|
opacity: 1;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
background-color: ${({ theme }) => theme.main.colors.mediumGrey};
|
|
26
28
|
}
|
|
27
29
|
${({ isActive, theme }) =>
|
|
@@ -4,9 +4,11 @@ import pluginPermissions from '../../../permissions';
|
|
|
4
4
|
import RolesCreatePage from '../CreatePage';
|
|
5
5
|
|
|
6
6
|
function ProtectedRolesCreatePage() {
|
|
7
|
-
return
|
|
8
|
-
<
|
|
9
|
-
|
|
7
|
+
return (
|
|
8
|
+
<CheckPagePermissions permissions={pluginPermissions.createRole}>
|
|
9
|
+
<RolesCreatePage />
|
|
10
|
+
</CheckPagePermissions>
|
|
11
|
+
);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export default ProtectedRolesCreatePage;
|
|
@@ -4,9 +4,11 @@ import pluginPermissions from '../../../permissions';
|
|
|
4
4
|
import RolesEditPage from '../EditPage';
|
|
5
5
|
|
|
6
6
|
function ProtectedRolesEditPage() {
|
|
7
|
-
return
|
|
8
|
-
<
|
|
9
|
-
|
|
7
|
+
return (
|
|
8
|
+
<CheckPagePermissions permissions={pluginPermissions.updateRole}>
|
|
9
|
+
<RolesEditPage />
|
|
10
|
+
</CheckPagePermissions>
|
|
11
|
+
);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export default ProtectedRolesEditPage;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.14.0",
|
|
7
7
|
"description": "Protect your API with a full-authentication process based on JWT",
|
|
8
8
|
"strapi": {
|
|
9
9
|
"name": "Roles & Permissions",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"test": "echo \"no tests yet\""
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@akemona-org/strapi-helper-plugin": "3.
|
|
19
|
-
"@akemona-org/strapi-utils": "3.
|
|
18
|
+
"@akemona-org/strapi-helper-plugin": "3.14.0",
|
|
19
|
+
"@akemona-org/strapi-utils": "3.14.0",
|
|
20
20
|
"@buffetjs/core": "3.3.8",
|
|
21
21
|
"@buffetjs/custom": "3.3.8",
|
|
22
22
|
"@buffetjs/hooks": "3.3.8",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"url": "git://github.com/akemona/strapi.git"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
65
|
+
"node": ">=18.17.0 <=20.x.x",
|
|
66
66
|
"npm": ">=6.0.0"
|
|
67
67
|
},
|
|
68
68
|
"license": "SEE LICENSE IN LICENSE",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "241f7ad8f4277aa7f522f580557e15d65af4a0cc"
|
|
70
70
|
}
|