ode-explorer 1.0.0-dev.202306051744

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.
@@ -0,0 +1,113 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Exploration des ressources</title>
7
+ <link rel="icon" id="favicon" href="" />
8
+ <link id="theme" rel="stylesheet" href="" />
9
+ <script type="module" crossorigin src="/index.js"></script>
10
+ <link rel="stylesheet" href="/style.css">
11
+ </head>
12
+
13
+ <body class="app-react" data-ode-app>
14
+ <!-- blog, collaborativeeditor, collaborativewall, exercizer, mindmap, pages, timelinegenerator, wiki, scrapbook -->
15
+ <div id="root"></div>
16
+ <div id="portal"></div>
17
+
18
+ <!-- SET INITIALISATION CONFIG -->
19
+ <script>
20
+ var WORFLOW_ACCESS = "org.entcore.blog.controllers.BlogController|blog";
21
+ var WORKFLOW_CREATE =
22
+ "org.entcore.blog.controllers.BlogController|create";
23
+ var WORKFLOW_CREATE_PUBLIC =
24
+ "org.entcore.blog.controllers.BlogController|createPublicBlog";
25
+ var WORKFLOW_PUBLISH =
26
+ "org.entcore.blog.controllers.BlogController|publish";
27
+ var WORKFLOW_PRINT = "org.entcore.blog.controllers.BlogController|print";
28
+ var odeConfig = {
29
+ app: "blog",
30
+ types: ["blog"],
31
+ filters: [
32
+ { id: "owner", defaultValue: true },
33
+ { id: "public", defaultValue: false },
34
+ { id: "shared", defaultValue: true },
35
+ ],
36
+ orders: [
37
+ { id: "name", defaultValue: "asc", i18n: "explorer.sorts.name" },
38
+ { id: "updatedAt", i18n: "explorer.sorts.updatedat" },
39
+ ],
40
+ actions: [
41
+ {
42
+ id: "open",
43
+ workflow: WORFLOW_ACCESS,
44
+ target: "actionbar",
45
+ right: "read",
46
+ },
47
+ {
48
+ id: "share",
49
+ workflow: WORFLOW_ACCESS,
50
+ target: "actionbar",
51
+ right: "manager",
52
+ },
53
+ {
54
+ id: "edit",
55
+ workflow: WORFLOW_ACCESS,
56
+ target: "actionbar",
57
+ right: "manager",
58
+ },
59
+ {
60
+ id: "create",
61
+ workflow: WORKFLOW_CREATE,
62
+ target: "tree",
63
+ },
64
+ {
65
+ id: "createPublic",
66
+ workflow: WORKFLOW_CREATE_PUBLIC,
67
+ target: "tree",
68
+ },
69
+ {
70
+ id: "move",
71
+ workflow: WORFLOW_ACCESS,
72
+ target: "actionbar",
73
+ right: "read",
74
+ },
75
+ {
76
+ id: "publish",
77
+ workflow: WORKFLOW_PUBLISH,
78
+ target: "actionbar",
79
+ right: "creator",
80
+ },
81
+ {
82
+ id: "print",
83
+ workflow: WORKFLOW_PRINT,
84
+ target: "actionbar",
85
+ right: "read",
86
+ },
87
+ {
88
+ id: "delete",
89
+ workflow: WORFLOW_ACCESS,
90
+ target: "actionbar",
91
+ right: "read",
92
+ },
93
+ ],
94
+ trashActions: [
95
+ {
96
+ id: "restore",
97
+ available: true,
98
+ target: "actionbar",
99
+ workflow: "",
100
+ },
101
+ {
102
+ id: "delete",
103
+ available: true,
104
+ target: "actionbar",
105
+ workflow: "",
106
+ },
107
+ ],
108
+ };
109
+ var rootElement = document.querySelector("[data-ode-app]");
110
+ rootElement.setAttribute("data-ode-app", JSON.stringify(odeConfig));
111
+ </script>
112
+ </body>
113
+ </html>