nodebb-plugin-onekite-calendar 2.0.53 β†’ 2.0.54

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-onekite-calendar",
3
- "version": "2.0.53",
3
+ "version": "2.0.54",
4
4
  "description": "FullCalendar-based equipment reservation workflow with admin approval & HelloAsso payment for NodeBB",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/plugin.json CHANGED
@@ -39,5 +39,5 @@
39
39
  "acpScripts": [
40
40
  "public/admin.js"
41
41
  ],
42
- "version": "2.0.53"
42
+ "version": "2.0.54"
43
43
  }
package/public/client.js CHANGED
@@ -1571,15 +1571,17 @@ function toDatetimeLocalValue(date) {
1571
1571
  const te = `${pad2(e.getHours())}:${pad2(e.getMinutes())}`;
1572
1572
  const baseTitle = (ev.title || '').trim();
1573
1573
  // Avoid double prefix on rerenders.
1574
- // UX request: no clock icon for "prΓ©vision de sortie" (outing).
1574
+ // UX request:
1575
+ // - Outing forecast: no time displayed in the calendar title.
1576
+ // - Special event: display only the start time (keep the clock icon).
1575
1577
  const isOuting = ev.extendedProps.type === 'outing';
1576
- const prefix = isOuting ? `${ts}-${te} ` : `πŸ•’ ${ts}-${te} `;
1578
+ const prefix = isOuting ? `` : `πŸ•’ ${ts} `;
1577
1579
  if (isOuting) {
1578
- if (!/^\d{2}:\d{2}-\d{2}:\d{2}\s/.test(baseTitle)) {
1579
- ev.title = `${prefix}${baseTitle}`.trim();
1580
- }
1580
+ // No prefix for outings.
1581
+ ev.title = `${baseTitle}`.trim();
1581
1582
  } else {
1582
- if (!baseTitle.startsWith('πŸ•’ ')) {
1583
+ // Prefix only if not already present.
1584
+ if (!/^πŸ•’\s\d{2}:\d{2}\s/.test(baseTitle)) {
1583
1585
  ev.title = `${prefix}${baseTitle}`.trim();
1584
1586
  }
1585
1587
  }