Merge branch 'master' into dev
This commit is contained in:
@@ -241,4 +241,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Une erreur s'est produite"
|
"error": "Une erreur s'est produite"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Hiba történt"
|
"error": "Hiba történt"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Si è verificato un errore"
|
"error": "Si è verificato un errore"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Radās kļūda"
|
"error": "Radās kļūda"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Er is een fout opgetreden"
|
"error": "Er is een fout opgetreden"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "En feil oppstod"
|
"error": "En feil oppstod"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Ocorreu um erro"
|
"error": "Ocorreu um erro"
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"descriptor": {
|
"descriptor": {
|
||||||
"name": "Мониторинг состояния системы",
|
"name": "Мониторинг состояния системы",
|
||||||
"description": "",
|
"description": "Информация о вашем NAS",
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "",
|
"title": "",
|
||||||
"fahrenheit": {
|
"fahrenheit": {
|
||||||
"label": ""
|
"label": "По Фаренгейту"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"label": "",
|
"label": "",
|
||||||
@@ -87,13 +87,13 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"uptime": "Время работы",
|
"uptime": "Время работы",
|
||||||
"uptimeFormat": "",
|
"uptimeFormat": "",
|
||||||
"updates": "",
|
"updates": "Обновления",
|
||||||
"reboot": "Перезагрузка"
|
"reboot": "Перезагрузка"
|
||||||
},
|
},
|
||||||
"errors": {
|
"errors": {
|
||||||
"general": {
|
"general": {
|
||||||
"title": "",
|
"title": "Не удалось найти ваш NAS",
|
||||||
"text": ""
|
"text": "Проблема с подключением к вашему NAS. Пожалуйста, проверьте свою конфигурацию/интеграцию."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"headings": {
|
"headings": {
|
||||||
|
|||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Vyskytla sa chyba"
|
"error": "Vyskytla sa chyba"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "Ett fel uppstod"
|
"error": "Ett fel uppstod"
|
||||||
}
|
}
|
||||||
@@ -40,4 +40,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": "出現錯誤"
|
"error": "出現錯誤"
|
||||||
}
|
}
|
||||||
@@ -67,11 +67,18 @@ export async function makeOpenMediaVaultCalls(app: ConfigAppType, input: any) {
|
|||||||
} else {
|
} else {
|
||||||
const cookies = authResponse.headers['set-cookie'] || [];
|
const cookies = authResponse.headers['set-cookie'] || [];
|
||||||
sessionId = cookies
|
sessionId = cookies
|
||||||
.find((cookie: any) => cookie.includes('X-OPENMEDIAVAULT-SESSIONID'))
|
.find(
|
||||||
|
(cookie: any) =>
|
||||||
|
cookie.includes('X-OPENMEDIAVAULT-SESSIONID') ||
|
||||||
|
cookie.includes('OPENMEDIAVAULT-SESSIONID')
|
||||||
|
)
|
||||||
?.split(';')[0];
|
?.split(';')[0];
|
||||||
|
|
||||||
loginToken = cookies
|
loginToken = cookies
|
||||||
.find((cookie: any) => cookie.includes('X-OPENMEDIAVAULT-LOGIN'))
|
.find(
|
||||||
|
(cookie: any) =>
|
||||||
|
cookie.includes('X-OPENMEDIAVAULT-LOGIN') || cookie.includes('OPENMEDIAVAULT-LOGIN')
|
||||||
|
)
|
||||||
?.split(';')[0];
|
?.split(';')[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user