ode-explorer 1.3.2 → 1.3.3-develop-b2school.202402081140

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 CHANGED
@@ -16,20 +16,22 @@
16
16
  <!-- blog, collaborativeeditor, collaborativewall, exercizer, mindmap, pages, timelinegenerator, wiki, scrapbook -->
17
17
  <div id="root"></div>
18
18
  <div id="portal"></div>
19
-
20
19
  <!-- SET INITIALISATION CONFIG -->
21
20
  <script>
22
- var WORFLOW_ACCESS = "org.entcore.blog.controllers.BlogController|blog";
21
+ var WORFLOW_ACCESS =
22
+ "fr.wseduc.scrapbook.controllers.ScrapbookController|view";
23
23
  var WORKFLOW_CREATE =
24
- "org.entcore.blog.controllers.BlogController|create";
25
- var WORKFLOW_CREATE_PUBLIC =
26
- "org.entcore.blog.controllers.BlogController|createPublicBlog";
24
+ "fr.wseduc.scrapbook.controllers.ScrapbookController|createScrapbook";
27
25
  var WORKFLOW_PUBLISH =
28
- "org.entcore.blog.controllers.BlogController|publish";
29
- var WORKFLOW_PRINT = "org.entcore.blog.controllers.BlogController|print";
26
+ "fr.wseduc.scrapbook.controllers.ScrapbookController|publish";
27
+ var WORKFLOW_PRINT =
28
+ "fr.wseduc.scrapbook.controllers.ScrapbookController|print";
29
+ var WORKFLOW_EXPORT_HTML =
30
+ "fr.wseduc.scrapbook.controllers.ScrapbookController|exportHtml";
31
+ ///////////
30
32
  var explorerConfig = {
31
- app: "blog",
32
- types: ["blog"],
33
+ app: "scrapbook",
34
+ types: ["scrapbook"],
33
35
  filters: [
34
36
  { id: "owner", defaultValue: true },
35
37
  { id: "public", defaultValue: false },
@@ -63,11 +65,12 @@
63
65
  workflow: WORKFLOW_CREATE,
64
66
  target: "tree",
65
67
  },
66
- {
67
- id: "createPublic",
68
- workflow: WORKFLOW_CREATE_PUBLIC,
69
- target: "tree",
70
- },
68
+ /*{
69
+ id: "duplicate",
70
+ workflow: WORFLOW_ACCESS,
71
+ target: "actionbar",
72
+ right: "tree",
73
+ },*/
71
74
  {
72
75
  id: "move",
73
76
  workflow: WORFLOW_ACCESS,
@@ -86,6 +89,12 @@
86
89
  target: "actionbar",
87
90
  right: "read",
88
91
  },
92
+ {
93
+ id: "export",
94
+ workflow: WORKFLOW_EXPORT_HTML,
95
+ target: "actionbar",
96
+ right: "read",
97
+ },
89
98
  {
90
99
  id: "delete",
91
100
  workflow: WORFLOW_ACCESS,
@@ -110,7 +119,8 @@
110
119
  },
111
120
  ],
112
121
  };
113
- const rootElement = document.querySelector("[data-explorer-config]");
122
+ ////
123
+ var rootElement = document.querySelector("[data-explorer-config]");
114
124
  rootElement.setAttribute(
115
125
  "data-explorer-config",
116
126
  JSON.stringify(explorerConfig),