mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
improve network error route (#1435)
This commit is contained in:
@@ -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}>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user