mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 12:30:06 +02:00
improve network error route (#1435)
This commit is contained in:
@@ -119,6 +119,7 @@
|
|||||||
"quit": "quit",
|
"quit": "quit",
|
||||||
"random": "random",
|
"random": "random",
|
||||||
"rating": "rating",
|
"rating": "rating",
|
||||||
|
"retry": "retry",
|
||||||
"recordLabel": "record label",
|
"recordLabel": "record label",
|
||||||
"releaseType": "release type",
|
"releaseType": "release type",
|
||||||
"refresh": "refresh",
|
"refresh": "refresh",
|
||||||
@@ -212,6 +213,8 @@
|
|||||||
"mpvRequired": "MPV required",
|
"mpvRequired": "MPV required",
|
||||||
"multipleServerSaveQueueError": "the play queue has one or more songs which are not from the current server. this is not supported",
|
"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",
|
"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",
|
"notificationDenied": "permissions for notifications were denied. this setting has no effect",
|
||||||
"openError": "could not open file",
|
"openError": "could not open file",
|
||||||
"playbackError": "an error occurred when trying to play the media",
|
"playbackError": "an error occurred when trying to play the media",
|
||||||
|
|||||||
@@ -23,8 +23,8 @@ const NoNetworkRoute = () => {
|
|||||||
return (
|
return (
|
||||||
<AnimatedPage>
|
<AnimatedPage>
|
||||||
<PageHeader />
|
<PageHeader />
|
||||||
<Center style={{ height: '100%', width: '100vw' }}>
|
<Center style={{ height: '100%' }}>
|
||||||
<Stack gap="xl" style={{ maxWidth: '50%', textAlign: 'center' }}>
|
<Stack align="center" gap="xl" style={{ maxWidth: '50%', textAlign: 'center' }}>
|
||||||
<Icon icon="wifiOff" size="4rem" />
|
<Icon icon="wifiOff" size="4rem" />
|
||||||
<Stack gap="md">
|
<Stack gap="md">
|
||||||
<Text size="xl" weight={600}>
|
<Text size="xl" weight={600}>
|
||||||
|
|||||||
@@ -211,6 +211,8 @@ export const AppRouter = () => {
|
|||||||
path={AppRoute.ACTION_REQUIRED}
|
path={AppRoute.ACTION_REQUIRED}
|
||||||
/>
|
/>
|
||||||
<Route element={<LoginRoute />} path={AppRoute.LOGIN} />
|
<Route element={<LoginRoute />} path={AppRoute.LOGIN} />
|
||||||
|
</Route>
|
||||||
|
<Route element={<ResponsiveLayout />}>
|
||||||
<Route element={<NoNetworkRoute />} path={AppRoute.NO_NETWORK} />
|
<Route element={<NoNetworkRoute />} path={AppRoute.NO_NETWORK} />
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
Reference in New Issue
Block a user