ode-explorer 1.4.19 → 1.5.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/dist/index.html +48 -48
- package/dist/index.js +1387 -76631
- package/dist/version.txt +1 -1
- package/explorer.d.ts +1 -1
- package/lib/ActionBarContainer.js +175 -175
- package/lib/AppAction.js +26 -30
- package/lib/DeleteModal.js +8 -14
- package/lib/DraggableCard.js +25 -0
- package/lib/EmptyScreenApp.js +22 -25
- package/lib/ExportModal.js +24 -30
- package/lib/FolderModal.js +14 -18
- package/lib/FoldersList.js +88 -48
- package/lib/Library.js +25 -27
- package/lib/MoveModal.js +65 -56
- package/lib/ResourcesList.js +101 -81
- package/lib/components/EmptyScreens/EmptyScreenApp.d.ts +0 -1
- package/lib/components/EmptyScreens/EmptyScreenError.d.ts +0 -1
- package/lib/components/EmptyScreens/EmptyScreenNoContentInFolder.d.ts +0 -1
- package/lib/components/EmptyScreens/EmptyScreenSearch.d.ts +0 -1
- package/lib/components/Explorer.d.ts +1 -1
- package/lib/components/LoadMore.d.ts +1 -2
- package/lib/components/OnboardingModal.d.ts +1 -1
- package/lib/config/dndkit.d.ts +2 -0
- package/lib/config/{getExplorerConfig.d.ts → explorer.d.ts} +5 -1
- package/lib/config/index.d.ts +2 -0
- package/lib/features/AccessControl/AccessControl.d.ts +2 -2
- package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
- package/lib/features/ActionBar/Delete/DeleteModal.d.ts +1 -2
- package/lib/features/ActionBar/Disable/DisableModal.d.ts +1 -2
- package/lib/features/ActionBar/Export/ExportModal.d.ts +1 -2
- package/lib/features/ActionBar/Folder/FolderModal.d.ts +1 -2
- package/lib/features/ActionBar/Folder/useFolderModal.d.ts +5 -5
- package/lib/features/ActionBar/Move/MoveModal.d.ts +1 -2
- package/lib/features/ActionBar/Move/useMoveModal.d.ts +3 -4
- package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
- package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
- package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
- package/lib/features/ActionBar/Trash/TrashModal.d.ts +1 -2
- package/lib/features/ActionBar/useActionBar.d.ts +2 -2
- package/lib/features/DndKit/useDndKit.d.ts +7 -0
- package/lib/features/List/DraggableCard.d.ts +6 -0
- package/lib/features/List/FolderCard.d.ts +8 -4
- package/lib/features/List/FoldersList.d.ts +2 -2
- package/lib/features/List/ResourceCard.d.ts +3 -3
- package/lib/features/List/ResourcesList.d.ts +2 -2
- package/lib/features/SearchForm/useSearchForm.d.ts +1 -2
- package/lib/i18n.d.ts +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +3 -12
- package/lib/index2.js +1017 -952
- package/lib/providers/index.d.ts +6 -0
- package/lib/services/api/index.d.ts +16 -16
- package/lib/services/queries/actions.d.ts +18 -0
- package/lib/services/queries/index.d.ts +46 -0
- package/lib/services/resource/service.d.ts +11 -0
- package/lib/store/index.d.ts +89 -35
- package/lib/utils/getChildrenIds.d.ts +2 -0
- package/lib/utils/isResourceShared.d.ts +1 -1
- package/package.json +52 -53
- package/lib/utils/TreeNodeFolderWrapper.d.ts +0 -12
- package/lib/utils/addNode.d.ts +0 -6
- package/lib/utils/deleteNode.d.ts +0 -4
- package/lib/utils/findNodeById.d.ts +0 -2
- package/lib/utils/getAncestors.d.ts +0 -2
- package/lib/utils/hasChildren.d.ts +0 -2
- package/lib/utils/modifyNode.d.ts +0 -2
- package/lib/utils/moveNode.d.ts +0 -5
- package/lib/utils/updateNode.d.ts +0 -6
- package/lib/utils/wrapTreeNode.d.ts +0 -3
package/dist/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Exploration des ressources</title>
|
|
7
7
|
<link rel="icon" id="favicon" href="" />
|
|
8
|
-
<link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=
|
|
8
|
+
<link rel="stylesheet" href="/assets/themes/edifice-bootstrap/index.css?v=ec2f8eda" />
|
|
9
9
|
<script type="module" crossorigin src="/index.js"></script>
|
|
10
10
|
</head>
|
|
11
11
|
|
|
@@ -15,102 +15,102 @@
|
|
|
15
15
|
<div id="portal"></div>
|
|
16
16
|
<!-- SET INITIALISATION CONFIG -->
|
|
17
17
|
<script>
|
|
18
|
-
var WORFLOW_ACCESS =
|
|
18
|
+
var WORFLOW_ACCESS = 'org.entcore.blog.controllers.BlogController|blog';
|
|
19
19
|
var WORKFLOW_CREATE =
|
|
20
|
-
|
|
20
|
+
'org.entcore.blog.controllers.BlogController|create';
|
|
21
21
|
var WORKFLOW_CREATE_PUBLIC =
|
|
22
|
-
|
|
23
|
-
var WORKFLOW_PRINT =
|
|
22
|
+
'org.entcore.blog.controllers.BlogController|createPublicBlog';
|
|
23
|
+
var WORKFLOW_PRINT = 'org.entcore.blog.controllers.BlogController|print';
|
|
24
24
|
var WORKFLOW_PUBLISH =
|
|
25
|
-
|
|
25
|
+
'org.entcore.blog.controllers.BlogController|publish';
|
|
26
26
|
var explorerConfig = {
|
|
27
|
-
app:
|
|
28
|
-
types: [
|
|
27
|
+
app: 'blog',
|
|
28
|
+
types: ['blog'],
|
|
29
29
|
enableOnboarding: false,
|
|
30
30
|
filters: [
|
|
31
|
-
{ id:
|
|
32
|
-
{ id:
|
|
33
|
-
{ id:
|
|
31
|
+
{ id: 'owner', defaultValue: true },
|
|
32
|
+
{ id: 'public', defaultValue: false },
|
|
33
|
+
{ id: 'shared', defaultValue: true },
|
|
34
34
|
],
|
|
35
35
|
orders: [
|
|
36
|
-
{ id:
|
|
37
|
-
{ id:
|
|
36
|
+
{ id: 'name', defaultValue: 'asc', i18n: 'explorer.sorts.name' },
|
|
37
|
+
{ id: 'updatedAt', i18n: 'explorer.sorts.updatedat' },
|
|
38
38
|
],
|
|
39
39
|
actions: [
|
|
40
40
|
{
|
|
41
|
-
id:
|
|
41
|
+
id: 'open',
|
|
42
42
|
workflow: WORFLOW_ACCESS,
|
|
43
|
-
target:
|
|
44
|
-
right:
|
|
43
|
+
target: 'actionbar',
|
|
44
|
+
right: 'read',
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
id:
|
|
47
|
+
id: 'share',
|
|
48
48
|
workflow: WORFLOW_ACCESS,
|
|
49
|
-
target:
|
|
50
|
-
right:
|
|
49
|
+
target: 'actionbar',
|
|
50
|
+
right: 'manager',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
id:
|
|
53
|
+
id: 'edit',
|
|
54
54
|
workflow: WORFLOW_ACCESS,
|
|
55
|
-
target:
|
|
56
|
-
right:
|
|
55
|
+
target: 'actionbar',
|
|
56
|
+
right: 'manager',
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
id:
|
|
59
|
+
id: 'create',
|
|
60
60
|
workflow: WORKFLOW_CREATE,
|
|
61
|
-
target:
|
|
61
|
+
target: 'tree',
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
id:
|
|
64
|
+
id: 'createPublic',
|
|
65
65
|
workflow: WORKFLOW_CREATE_PUBLIC,
|
|
66
|
-
target:
|
|
66
|
+
target: 'tree',
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
|
-
id:
|
|
69
|
+
id: 'move',
|
|
70
70
|
workflow: WORFLOW_ACCESS,
|
|
71
|
-
target:
|
|
72
|
-
right:
|
|
71
|
+
target: 'actionbar',
|
|
72
|
+
right: 'read',
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
id:
|
|
75
|
+
id: 'publish',
|
|
76
76
|
workflow: WORKFLOW_PUBLISH,
|
|
77
|
-
target:
|
|
78
|
-
right:
|
|
77
|
+
target: 'actionbar',
|
|
78
|
+
right: 'creator',
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
|
-
id:
|
|
81
|
+
id: 'print',
|
|
82
82
|
workflow: WORKFLOW_PRINT,
|
|
83
|
-
target:
|
|
84
|
-
right:
|
|
83
|
+
target: 'actionbar',
|
|
84
|
+
right: 'read',
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
id:
|
|
87
|
+
id: 'delete',
|
|
88
88
|
workflow: WORFLOW_ACCESS,
|
|
89
|
-
target:
|
|
90
|
-
right:
|
|
89
|
+
target: 'actionbar',
|
|
90
|
+
right: 'read',
|
|
91
91
|
},
|
|
92
92
|
],
|
|
93
93
|
trashActions: [
|
|
94
94
|
{
|
|
95
|
-
id:
|
|
95
|
+
id: 'restore',
|
|
96
96
|
available: true,
|
|
97
|
-
target:
|
|
98
|
-
workflow:
|
|
99
|
-
right:
|
|
97
|
+
target: 'actionbar',
|
|
98
|
+
workflow: '',
|
|
99
|
+
right: 'manager',
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
id:
|
|
102
|
+
id: 'delete',
|
|
103
103
|
available: true,
|
|
104
|
-
target:
|
|
105
|
-
workflow:
|
|
106
|
-
right:
|
|
104
|
+
target: 'actionbar',
|
|
105
|
+
workflow: '',
|
|
106
|
+
right: 'manager',
|
|
107
107
|
},
|
|
108
108
|
],
|
|
109
109
|
};
|
|
110
110
|
////
|
|
111
|
-
var rootElement = document.querySelector(
|
|
111
|
+
var rootElement = document.querySelector('[data-explorer-config]');
|
|
112
112
|
rootElement.setAttribute(
|
|
113
|
-
|
|
113
|
+
'data-explorer-config',
|
|
114
114
|
JSON.stringify(explorerConfig),
|
|
115
115
|
);
|
|
116
116
|
</script>
|