You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// // When using the GlobalFetch request adapter, the first parameter receives the Response object
42
-
// // The second parameter is the method instance of the current request, you can use it to synchronize the configuration information before and after the request
43
-
// onSuccess: async (response, method) => {
44
-
// if (response.status >= 400) {
45
-
// throw new Error(response.statusText);
46
-
// }
47
-
// console.log('response', response);
48
-
// const json = await response.json();
49
-
// // The parsed response data will be passed to the transformData hook function of the method instance, and these functions will be explained later
50
-
// return json;
51
-
// },
35
+
responded: {
36
+
onSuccess: async(response,method)=>{
37
+
if(response.status===400){
38
+
thrownewError('Invalid command');
39
+
}
40
+
if(response.status>=400){
41
+
thrownewError(response.statusText);
42
+
}
43
+
constdata=awaitresponse.data;
44
+
if(response.datainstanceofArrayBuffer){
45
+
returnunpack(data);
46
+
}
47
+
returndata;
48
+
},
52
49
53
-
// // Interceptor for request failure
54
-
// // This interceptor will be entered when the request is wrong.
55
-
// // The second parameter is the method instance of the current request, you can use it to synchronize the configuration information before and after the request
Copy file name to clipboardexpand all lines: interface/src/i18n/de/index.ts
+1-2
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ const de: Translation = {
51
51
REMOVE: 'Entfernen',
52
52
PROBLEM_UPDATING: 'Problem beim Aktualisieren',
53
53
PROBLEM_LOADING: 'Problem beim Laden',
54
-
ACCESS_DENIED: 'Zugriff abgelehnt',
54
+
HTTP_ERROR: 'Error {0}',// TODO translate
55
55
ANALOG_SENSOR: 'Analogsensor',
56
56
ANALOG_SENSORS: 'Analogsensoren',
57
57
SETTINGS: 'Einstellungen',
@@ -71,7 +71,6 @@ const de: Translation = {
71
71
TEMP_SENSOR: 'Temperatursensor',
72
72
TEMP_SENSORS: 'Temperatursensoren',
73
73
WRITE_CMD_SENT: 'Befehl schreiben wurde gesendet',
74
-
WRITE_CMD_FAILED: 'Befehl schreiben failed',// TODO translate
75
74
EMS_BUS_WARNING: 'EMS-Bus getrennt. Wenn diese Warnung nach einigen Sekunden immer noch besteht, überprüfen Sie bitte die Einstellungen und das Board-Profil',
Copy file name to clipboardexpand all lines: interface/src/i18n/nl/index.ts
+1-2
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ const nl: Translation = {
51
51
REMOVE: 'Verwijderen',
52
52
PROBLEM_UPDATING: 'Probleem met updaten',
53
53
PROBLEM_LOADING: 'Probleem met laden',
54
-
ACCESS_DENIED: 'Toegang geweigerd',
54
+
HTTP_ERROR: 'Error {0}',// TODO translate
55
55
ANALOG_SENSOR: 'Analoge sensor',
56
56
ANALOG_SENSORS: 'Analoge Sensoren',
57
57
SETTINGS: 'Instellingen',
@@ -71,7 +71,6 @@ const nl: Translation = {
71
71
TEMP_SENSOR: 'Temperatuur sensor',
72
72
TEMP_SENSORS: 'Temperatuur Sensoren',
73
73
WRITE_CMD_SENT: 'Schrijf commando sent',// TODO translate
74
-
WRITE_CMD_FAILED: 'Schrijf commando failed',// TODO translate
75
74
EMS_BUS_WARNING: 'EMS bus niet gevonden. Als deze waarschuwing blijft staan na een paar seconden dan loop de instellingen na en in het bijzonder het apparaat type profiel na.',
76
75
EMS_BUS_SCANNING: 'Scannen naar EMS apparaten...',
Copy file name to clipboardexpand all lines: interface/src/i18n/pl/index.ts
+1-2
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ const pl: BaseTranslation = {
51
51
REMOVE: 'Usuń',
52
52
PROBLEM_UPDATING: 'Problem z uaktualnieniem!',
53
53
PROBLEM_LOADING: 'Problem z załadowaniem!',
54
-
ACCESS_DENIED: 'Brak dostępu!',
54
+
HTTP_ERROR: 'Error {0}',// TODO translate
55
55
ANALOG_SENSOR: '{{u|u||ustawienia u|ustawień u}}rządzeni{{a podłączonego do EMS-ESP|e||a podłączonego do EMS-ESP|a podłączonego do EMS-ESP}}',
56
56
ANALOG_SENSORS: 'Urządzenia podłączone do EMS-ESP',
57
57
SETTINGS: 'ustawienia',
@@ -71,7 +71,6 @@ const pl: BaseTranslation = {
71
71
TEMP_SENSOR: 'czujnika temperatury',
72
72
TEMP_SENSORS: 'Czujniki temperatury 1-Wire®',
73
73
WRITE_CMD_SENT: 'Komenda zapisu została wysłana.',
74
-
WRITE_CMD_FAILED: 'Komenda zapisu nie powiodła się!',
75
74
EMS_BUS_WARNING: 'Brak połączenia z magistralą EMS. Jeśli ten błąd występuje dłużej niż kilka sekund, sprawdź ustawienia oraz profil płytki interfejsu.',
76
75
EMS_BUS_SCANNING: 'Trwa skanowanie urządzeń na magistrali EMS...',
0 commit comments