Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf committed May 7, 2024
2 parents b70e179 + f67e2c5 commit 0a08b8f
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion public/locales/fr/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Une erreur s'est produite"
}
}
2 changes: 1 addition & 1 deletion public/locales/hu/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Hiba történt"
}
}
2 changes: 1 addition & 1 deletion public/locales/it/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Si è verificato un errore"
}
}
2 changes: 1 addition & 1 deletion public/locales/lv/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Radās kļūda"
}
}
2 changes: 1 addition & 1 deletion public/locales/nl/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Er is een fout opgetreden"
}
}
2 changes: 1 addition & 1 deletion public/locales/no/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "En feil oppstod"
}
}
2 changes: 1 addition & 1 deletion public/locales/pt/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Ocorreu um erro"
}
}
10 changes: 5 additions & 5 deletions public/locales/ru/modules/health-monitoring.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"descriptor": {
"name": "Мониторинг состояния системы",
"description": "",
"description": "Информация о вашем NAS",
"settings": {
"title": "",
"fahrenheit": {
"label": ""
"label": "По Фаренгейту"
},
"cpu": {
"label": "",
Expand Down Expand Up @@ -87,13 +87,13 @@
"info": {
"uptime": "Время работы",
"uptimeFormat": "",
"updates": "",
"updates": "Обновления",
"reboot": "Перезагрузка"
},
"errors": {
"general": {
"title": "",
"text": ""
"title": "Не удалось найти ваш NAS",
"text": "Проблема с подключением к вашему NAS. Пожалуйста, проверьте свою конфигурацию/интеграцию."
}
},
"headings": {
Expand Down
2 changes: 1 addition & 1 deletion public/locales/sk/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Vyskytla sa chyba"
}
}
2 changes: 1 addition & 1 deletion public/locales/sv/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "Ett fel uppstod"
}
}
2 changes: 1 addition & 1 deletion public/locales/tw/modules/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
},
"error": "出現錯誤"
}
}
11 changes: 9 additions & 2 deletions src/server/api/routers/health-monitoring/openmediavault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,18 @@ export async function makeOpenMediaVaultCalls(app: ConfigAppType, input: any) {
} else {
const cookies = authResponse.headers['set-cookie'] || [];
sessionId = cookies
.find((cookie: any) => cookie.includes('X-OPENMEDIAVAULT-SESSIONID'))
.find(
(cookie: any) =>
cookie.includes('X-OPENMEDIAVAULT-SESSIONID') ||
cookie.includes('OPENMEDIAVAULT-SESSIONID')
)
?.split(';')[0];

loginToken = cookies
.find((cookie: any) => cookie.includes('X-OPENMEDIAVAULT-LOGIN'))
.find(
(cookie: any) =>
cookie.includes('X-OPENMEDIAVAULT-LOGIN') || cookie.includes('OPENMEDIAVAULT-LOGIN')
)
?.split(';')[0];
}

Expand Down

0 comments on commit 0a08b8f

Please sign in to comment.