ode-explorer 1.3.3-develop.202402261150 → 1.3.3-develop.202403011134
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.js +16 -20
- package/dist/version.txt +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -39256,10 +39256,13 @@ var $mapGet = callBound("Map.prototype.get", true);
|
|
|
39256
39256
|
var $mapSet = callBound("Map.prototype.set", true);
|
|
39257
39257
|
var $mapHas = callBound("Map.prototype.has", true);
|
|
39258
39258
|
var listGetNode = function(list, key) {
|
|
39259
|
-
|
|
39259
|
+
var prev = list;
|
|
39260
|
+
var curr;
|
|
39261
|
+
for (; (curr = prev.next) !== null; prev = curr) {
|
|
39260
39262
|
if (curr.key === key) {
|
|
39261
39263
|
prev.next = curr.next;
|
|
39262
|
-
curr.next = list.next
|
|
39264
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */
|
|
39265
|
+
list.next;
|
|
39263
39266
|
list.next = curr;
|
|
39264
39267
|
return curr;
|
|
39265
39268
|
}
|
|
@@ -39274,8 +39277,9 @@ var listSet = function(objects, key, value) {
|
|
|
39274
39277
|
if (node2) {
|
|
39275
39278
|
node2.value = value;
|
|
39276
39279
|
} else {
|
|
39277
|
-
objects.next = {
|
|
39278
|
-
|
|
39280
|
+
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
39281
|
+
{
|
|
39282
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
39279
39283
|
key,
|
|
39280
39284
|
next: objects.next,
|
|
39281
39285
|
value
|
|
@@ -62466,27 +62470,19 @@ const useConversation = () => {
|
|
|
62466
62470
|
const zimbraWorkflow = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"), zimbraPreauth = useHasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth"), [messages2, setMessages] = reactExports.useState(0), [msgLink, setMsgLink] = reactExports.useState(""), queryParams = {
|
|
62467
62471
|
unread: true,
|
|
62468
62472
|
_: (/* @__PURE__ */ new Date()).getTime()
|
|
62469
|
-
}
|
|
62470
|
-
console.log({
|
|
62471
|
-
zimbraWorkflow
|
|
62472
|
-
});
|
|
62473
|
-
const refreshMails = reactExports.useCallback(async () => {
|
|
62473
|
+
}, refreshMails = async () => {
|
|
62474
62474
|
const url = zimbraWorkflow ? "/zimbra/count/INBOX" : "/conversation/count/INBOX";
|
|
62475
|
-
console.log({
|
|
62476
|
-
url
|
|
62477
|
-
});
|
|
62478
62475
|
try {
|
|
62479
62476
|
const {
|
|
62480
|
-
status,
|
|
62481
62477
|
count: count2
|
|
62482
62478
|
} = await odeServices.http().get(url, {
|
|
62483
62479
|
queryParams
|
|
62484
62480
|
});
|
|
62485
|
-
setMessages(
|
|
62481
|
+
setMessages(count2 ?? 0);
|
|
62486
62482
|
} catch (error) {
|
|
62487
62483
|
console.error(error), setMessages(0);
|
|
62488
62484
|
}
|
|
62489
|
-
},
|
|
62485
|
+
}, goToMessagerie = async () => {
|
|
62490
62486
|
const defaultLink = "/zimbra/zimbra";
|
|
62491
62487
|
try {
|
|
62492
62488
|
const {
|
|
@@ -62496,12 +62492,12 @@ const useConversation = () => {
|
|
|
62496
62492
|
} catch (error) {
|
|
62497
62493
|
console.error(error), setMsgLink(window.location.origin + defaultLink);
|
|
62498
62494
|
}
|
|
62499
|
-
}
|
|
62495
|
+
};
|
|
62500
62496
|
return reactExports.useEffect(() => {
|
|
62501
|
-
|
|
62502
|
-
}, [
|
|
62497
|
+
refreshMails();
|
|
62498
|
+
}, []), reactExports.useEffect(() => {
|
|
62503
62499
|
zimbraPreauth && goToMessagerie();
|
|
62504
|
-
}, [
|
|
62500
|
+
}, []), {
|
|
62505
62501
|
messages: messages2,
|
|
62506
62502
|
msgLink,
|
|
62507
62503
|
zimbraWorkflow
|
|
@@ -65783,7 +65779,7 @@ function ShareBlog({
|
|
|
65783
65779
|
appCode
|
|
65784
65780
|
} = useOdeClient(), {
|
|
65785
65781
|
t: t2
|
|
65786
|
-
} = useTranslation(appCode), publishType = resource && resource["publish-type"], [radioPublicationValue, setRadioPublicationValue] = reactExports.useState(publishType), handleRadioPublicationChange = async (event) => {
|
|
65782
|
+
} = useTranslation(appCode), publishType = resource && resource["publish-type"], [radioPublicationValue, setRadioPublicationValue] = reactExports.useState(publishType ?? "RESTRAINT"), handleRadioPublicationChange = async (event) => {
|
|
65787
65783
|
const value = event.target.value;
|
|
65788
65784
|
(async () => {
|
|
65789
65785
|
const params = {
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 01/03/2024 11:34:33
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.3.3-develop.
|
|
3
|
+
"version": "1.3.3-develop.202403011134",
|
|
4
4
|
"description": "Open Digital Education Explorer",
|
|
5
5
|
"homepage": "https://github.com/opendigitaleducation/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"eslint-plugin-react": "7.33.2",
|
|
75
75
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
76
76
|
"eslint-plugin-react-refresh": "0.4.5",
|
|
77
|
-
"husky": "
|
|
77
|
+
"husky": "9.0.7",
|
|
78
78
|
"lint-staged": "15.2.0",
|
|
79
79
|
"prettier": "3.2.4",
|
|
80
80
|
"typescript": "5.3.3",
|