mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(web): implement offline detection (#1065)
* xtreme connected edition * change fallbackRender to fallbackComponent on ErrorBoundary * call healthz endpoint when error is 500 * display custom offline message * fix eslint indentation for switchCase * Update ErrorPage.tsx * check against error.cause --------- Co-authored-by: Fabricio Silva <hi@fabricio.dev>
This commit is contained in:
parent
d187daa566
commit
a1a16adbab
4 changed files with 34 additions and 25 deletions
|
@ -19,7 +19,7 @@ module.exports = {
|
|||
// Allow only double quotes and backticks
|
||||
quotes: ["error", "double"],
|
||||
// Warn if a line isn't indented with a multiple of 2
|
||||
indent: ["warn", 2],
|
||||
indent: ["warn", 2, { "SwitchCase": 1 }],
|
||||
// Don't enforce any particular brace style
|
||||
curly: "off",
|
||||
// Allow only vars starting with _ to be ununsed vars
|
||||
|
@ -64,7 +64,7 @@ module.exports = {
|
|||
"@typescript-eslint/quotes": ["error", "double"],
|
||||
semi: "off",
|
||||
"@typescript-eslint/semi": ["warn", "always"],
|
||||
indent: ["warn", 2],
|
||||
indent: ["warn", 2, { "SwitchCase": 1 }],
|
||||
"@typescript-eslint/indent": "off",
|
||||
"@typescript-eslint/comma-dangle": "warn",
|
||||
"keyword-spacing": "off",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue