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 +4 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/public/client.js +0 -34
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
package/plugin.json
CHANGED
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';
|