ode-ts-client 1.2.3 → 1.2.4-dev.202602101102
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 +6 -6
- package/dist/ode-ts-client.esm.js +7 -4
- package/dist/ode-ts-client.esm.js.map +1 -1
- package/dist/ode-ts-client.js +1 -1
- package/dist/ode-ts-client.js.map +1 -1
- package/dist/ode-ts-client.mjs +7 -4
- package/dist/ode-ts-client.mjs.map +1 -1
- package/dist/version.txt +1 -1
- package/dist/widget/LastInfos.widget.d.ts +8 -6
- package/dist/widget/interfaces.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# ode-ts-client
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
# À propos d'ode-ts-client
|
|
2
|
+
|
|
3
|
+
* Licence : [AGPL v3](http://www.gnu.org/licenses/agpl.txt) - Copyright Edifice
|
|
4
|
+
* Financeur(s) : Edifice
|
|
5
|
+
* Développeur(s) : Edifice
|
|
6
|
+
* Description : framework front Edifice pour les applications AngularJS / Bootstrap.
|
|
7
7
|
|
|
8
8
|
***
|
|
9
9
|
|
|
@@ -5337,7 +5337,8 @@ const WIDGET_POSITION = {
|
|
|
5337
5337
|
"school-widget": WIDGET_POSITION.LEFT,
|
|
5338
5338
|
"edumalin-widget": WIDGET_POSITION.RIGHT,
|
|
5339
5339
|
"mediacentre-widget": WIDGET_POSITION.RIGHT,
|
|
5340
|
-
"cantine-widget": WIDGET_POSITION.LEFT
|
|
5340
|
+
"cantine-widget": WIDGET_POSITION.LEFT,
|
|
5341
|
+
"screen-time-widget": WIDGET_POSITION.RIGHT
|
|
5341
5342
|
}, defaultWidgetOrder = {
|
|
5342
5343
|
"school-widget": 0,
|
|
5343
5344
|
"my-apps": 10,
|
|
@@ -5359,7 +5360,8 @@ const WIDGET_POSITION = {
|
|
|
5359
5360
|
notes: 140,
|
|
5360
5361
|
"edumalin-widget": 35,
|
|
5361
5362
|
"mediacentre-widget": 145,
|
|
5362
|
-
"cantine-widget": 21
|
|
5363
|
+
"cantine-widget": 21,
|
|
5364
|
+
"screen-time-widget": 35
|
|
5363
5365
|
};
|
|
5364
5366
|
class WidgetFramework {
|
|
5365
5367
|
constructor() {
|
|
@@ -5450,7 +5452,7 @@ class Widget {
|
|
|
5450
5452
|
const widgets = new WidgetFramework();
|
|
5451
5453
|
class LastInfosWidget {
|
|
5452
5454
|
loadInfos(e) {
|
|
5453
|
-
return transport.http.get("/actualites/infos/last/" + e);
|
|
5455
|
+
return transport.http.get("/actualites/api/v1/infos/preview/last/" + e);
|
|
5454
5456
|
}
|
|
5455
5457
|
getMaxResults() {
|
|
5456
5458
|
return transport.http.get("/userbook/preference/maxInfos").then((e) => e.preference ? parseInt(e.preference) : 4);
|
|
@@ -5483,7 +5485,8 @@ const WIDGET_NAME = {
|
|
|
5483
5485
|
SCHOOL: "school-widget",
|
|
5484
5486
|
EDUMALIN: "edumalin-widget",
|
|
5485
5487
|
MEDIACENTRE: "mediacentre-widget",
|
|
5486
|
-
CANTINE: "cantine-widget"
|
|
5488
|
+
CANTINE: "cantine-widget",
|
|
5489
|
+
SCREEN_TIME: "screen-time-widget"
|
|
5487
5490
|
};
|
|
5488
5491
|
class WidgetFrameworkFactory {
|
|
5489
5492
|
static instance() {
|