pcm-shared-components 2.0.153 → 2.0.154
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.
|
@@ -84,19 +84,41 @@ export const ImageCanvasDraw = props => {
|
|
|
84
84
|
console.error('error in setImageSize', error);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
+
|
|
88
|
+
// useEffect(() => {
|
|
89
|
+
// //Get the scaled down image and width, height
|
|
90
|
+
// setImageSize(state.b64DataUrl)
|
|
91
|
+
|
|
92
|
+
// try {
|
|
93
|
+
// document.addEventListener('keydown', function (e) {
|
|
94
|
+
// console.log('debug e',e)
|
|
95
|
+
// if (e.ctrlKey && e.key.toLowerCase() === 'z') {
|
|
96
|
+
// saveableCanvas.current.undo();
|
|
97
|
+
// }
|
|
98
|
+
// });
|
|
99
|
+
|
|
100
|
+
// } catch (error) {
|
|
101
|
+
// console.error('Error in keydown ImageCanvasDraw Controls',error)
|
|
102
|
+
// }
|
|
103
|
+
|
|
104
|
+
// }, [])
|
|
105
|
+
|
|
87
106
|
useEffect(() => {
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
// Define the event listener function
|
|
108
|
+
const handleKeyDown = e => {
|
|
109
|
+
console.log('debug e', e);
|
|
110
|
+
if (e.ctrlKey && e.key.toLowerCase() === 'z') {
|
|
111
|
+
saveableCanvas.current.undo();
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// Add the event listener
|
|
116
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
117
|
+
|
|
118
|
+
// Return a cleanup function that removes the event listener
|
|
119
|
+
return () => {
|
|
120
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
121
|
+
};
|
|
100
122
|
}, []);
|
|
101
123
|
useEffect(() => {
|
|
102
124
|
if (saveableCanvas && saveableCanvas.current) {
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
"import_link_title": "Import URL",
|
|
1379
1379
|
"import_link_url": "Other website URL",
|
|
1380
1380
|
"last_sync_date": "Last synchronization date",
|
|
1381
|
-
"manual_calendar_sync": "Sync OTA
|
|
1381
|
+
"manual_calendar_sync": "Sync OTA Calendars",
|
|
1382
1382
|
"sub_title": "Obtain a link from other websites to import their bookings. This two-way connection will update both calendars when a site is booked, thereby blocking availabilities for this lot based on the bookings imported exported.",
|
|
1383
1383
|
"title": "Connect to another website"
|
|
1384
1384
|
},
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
"import_link_title": "URL de importación",
|
|
1379
1379
|
"import_link_url": "URL de otro sitio web",
|
|
1380
1380
|
"last_sync_date": "Fecha de la última sincronización",
|
|
1381
|
-
"manual_calendar_sync": "Sincronizar
|
|
1381
|
+
"manual_calendar_sync": "Sincronizar calendarios OTA",
|
|
1382
1382
|
"sub_title": "Obtener un enlace de otros sitios web para importar sus reservas. Esta conexión bidireccional actualizará ambos calendarios cuando se reserve un sitio, bloqueando así la disponibilidad de este lote en función de las reservas importadas y exportadas.",
|
|
1383
1383
|
"title": "Conectarse a otro sitio web"
|
|
1384
1384
|
},
|
|
@@ -1378,7 +1378,7 @@
|
|
|
1378
1378
|
"import_link_title": "Importer l’URL",
|
|
1379
1379
|
"import_link_url": "URL d’un autre site Web",
|
|
1380
1380
|
"last_sync_date": "Date de la dernière synchronisation",
|
|
1381
|
-
"manual_calendar_sync": "Synchroniser
|
|
1381
|
+
"manual_calendar_sync": "Synchroniser les calendriers OTA",
|
|
1382
1382
|
"sub_title": "Obtenir un lien d’autres sites Web pour importer leurs réservations. Cette connexion bidirectionnelle mettra à jour les deux calendriers lorsqu’un site est réservé, bloquant ainsi les disponibilités pour ce lot en fonction des réservations importées exportées.",
|
|
1383
1383
|
"title": "Se connecter à un autre site web"
|
|
1384
1384
|
},
|