nodebb-plugin-onekite-calendar 2.0.0 → 2.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog – calendar-onekite
2
2
 
3
+ ## 1.2.7
4
+ - UI : suppression du bouton flottant mobile « + Réserver »
5
+ - Client : nettoyage du code associé (suppression du bloc FAB)
6
+
3
7
  ## 1.2.6
4
8
  - ACP : anti double action (verrou UI + boutons désactivés/spinner) sur valider/refuser (unitaire + batch)
5
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-onekite-calendar",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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.0"
42
+ "version": "2.0.1"
43
43
  }
package/public/client.js CHANGED
@@ -1826,40 +1826,6 @@ function toDatetimeLocalValue(date) {
1826
1826
 
1827
1827
  refreshDesktopModeButton();
1828
1828
 
1829
- // Mobile: floating action button to create a reservation quickly
1830
- try {
1831
- const fabId = 'onekite-fab-create';
1832
- const existing = document.getElementById(fabId);
1833
- if (existing) existing.remove();
1834
- if (isMobileNow()) {
1835
- const fab = document.createElement('button');
1836
- fab.id = fabId;
1837
- fab.type = 'button';
1838
- fab.className = 'btn btn-primary shadow';
1839
- fab.textContent = '+ Réserver';
1840
- fab.style.position = 'fixed';
1841
- fab.style.right = '14px';
1842
- fab.style.bottom = '14px';
1843
- fab.style.zIndex = '1050';
1844
- fab.style.borderRadius = '999px';
1845
- fab.style.padding = '12px 16px';
1846
- fab.addEventListener('click', async () => {
1847
- try {
1848
- if (isDialogOpen) return;
1849
- if (!lockAction('fab', 900)) return;
1850
- const start = new Date();
1851
- start.setHours(0, 0, 0, 0);
1852
- start.setDate(start.getDate() + 1);
1853
- const end = new Date(start);
1854
- end.setDate(end.getDate() + 1);
1855
- await handleCreateFromSelection({ start, end, allDay: true });
1856
- } catch (e) {}
1857
- });
1858
- document.body.appendChild(fab);
1859
- }
1860
- } catch (e) {}
1861
-
1862
-
1863
1829
  // Mobile controls: view (month/week) + mode (reservation/event) without bloating the header.
1864
1830
  try {
1865
1831
  const controlsId = 'onekite-mobile-controls';