@retikolo/drag-drop-content-types 1.5.0 → 1.5.2
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/README.md +1 -0
- package/admin/src/pages/Settings/index.js +2 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ module.exports = {
|
|
|
32
32
|
Go to `Settings` -> `Drag Drop Content Type` -> `Configuration`:
|
|
33
33
|
* Specify how the rank field is called in your content-types. Default value is `rank`.
|
|
34
34
|
* Add the `rank` fields to your content type. With the default value this would be `rank` (Number (Number format: integer)).
|
|
35
|
+
* (Give permissions for the `rank` field to roles such as "Editor" if needed).
|
|
35
36
|
|
|
36
37
|
#### Hints
|
|
37
38
|
* Add "Default sort attribute" `rank`, "Default sort order" `ASC` and remove the `rank` attribute from the view using "Configure the view" button.
|
|
@@ -3,19 +3,8 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import sortRequests from '../../api/sort';
|
|
4
4
|
|
|
5
5
|
import { LoadingIndicatorPage, useNotification } from '@strapi/helper-plugin';
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
9
|
-
import { Button } from '@strapi/design-system/Button';
|
|
10
|
-
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
11
|
-
import { HeaderLayout } from '@strapi/design-system/Layout';
|
|
12
|
-
import { ContentLayout } from '@strapi/design-system/Layout';
|
|
13
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
14
|
-
import { TextInput } from '@strapi/design-system/TextInput';
|
|
15
|
-
import { Tooltip } from '@strapi/design-system/Tooltip';
|
|
16
|
-
|
|
17
|
-
import Information from '@strapi/icons/Information';
|
|
18
|
-
import Check from '@strapi/icons/Check';
|
|
6
|
+
import { Box, Stack, Button, Grid, GridItem, HeaderLayout, ContentLayout, Typography, TextInput, Tooltip } from '@strapi/design-system';
|
|
7
|
+
import { Information, Check } from '@strapi/icons';
|
|
19
8
|
|
|
20
9
|
const Settings = () => {
|
|
21
10
|
const [settings, setSettings] = useState({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retikolo/drag-drop-content-types",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "This plugin add a drag and droppable list that allows you to sort content type entries.",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"name": "drag-drop-content-types",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@strapi/design-system": "^1.13.1",
|
|
30
|
-
"@strapi/icons": "1.13.1",
|
|
30
|
+
"@strapi/icons": "^1.13.1",
|
|
31
31
|
"@strapi/strapi": "^4.0.0"
|
|
32
32
|
},
|
|
33
33
|
"author": {
|