improve network error route (#1435)

This commit is contained in:
Fleeym
2025-12-23 06:03:06 +02:00
committed by GitHub
parent f418bbfd2f
commit 76f55111ec
3 changed files with 7 additions and 2 deletions
+3
View File
@@ -119,6 +119,7 @@
"quit": "quit",
"random": "random",
"rating": "rating",
"retry": "retry",
"recordLabel": "record label",
"releaseType": "release type",
"refresh": "refresh",
@@ -212,6 +213,8 @@
"mpvRequired": "MPV required",
"multipleServerSaveQueueError": "the play queue has one or more songs which are not from the current server. this is not supported",
"networkError": "a network error occurred",
"noNetwork": "server unavailable",
"noNetworkDescription": "couldn't connect to this server",
"notificationDenied": "permissions for notifications were denied. this setting has no effect",
"openError": "could not open file",
"playbackError": "an error occurred when trying to play the media",
@@ -23,8 +23,8 @@ const NoNetworkRoute = () => {
return (
<AnimatedPage>
<PageHeader />
<Center style={{ height: '100%', width: '100vw' }}>
<Stack gap="xl" style={{ maxWidth: '50%', textAlign: 'center' }}>
<Center style={{ height: '100%' }}>
<Stack align="center" gap="xl" style={{ maxWidth: '50%', textAlign: 'center' }}>
<Icon icon="wifiOff" size="4rem" />
<Stack gap="md">
<Text size="xl" weight={600}>
+2
View File
@@ -211,6 +211,8 @@ export const AppRouter = () => {
path={AppRoute.ACTION_REQUIRED}
/>
<Route element={<LoginRoute />} path={AppRoute.LOGIN} />
</Route>
<Route element={<ResponsiveLayout />}>
<Route element={<NoNetworkRoute />} path={AppRoute.NO_NETWORK} />
</Route>
</Route>