-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support for toggling between 12/24-hour time in UI (#1026)
This is implemented as baseline for region and timezone selection.
- Loading branch information
1 parent
0150be4
commit 891ed29
Showing
19 changed files
with
629 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { DayjsProvider } from '@/providers/DayjsProvider.tsx'; | ||
import useStore from '@/store/index.ts'; | ||
import { LocalizationProvider } from '@mui/x-date-pickers'; | ||
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; | ||
import { QueryClientProvider } from '@tanstack/react-query'; | ||
import { RouterProvider } from '@tanstack/react-router'; | ||
import { SnackbarProvider } from 'notistack'; | ||
import { DndProvider } from 'react-dnd'; | ||
import { HTML5Backend } from 'react-dnd-html5-backend'; | ||
import { TunarrApiProvider } from './components/TunarrApiContext.tsx'; | ||
import { ServerEventsProvider } from './components/server_events/ServerEventsProvider.tsx'; | ||
import { router } from './main.tsx'; | ||
import { queryClient } from './queryClient.ts'; | ||
|
||
export const Tunarr = () => { | ||
const locale = useStore((store) => store.settings.ui.i18n.locale); | ||
return ( | ||
<TunarrApiProvider queryClient={queryClient}> | ||
<DayjsProvider> | ||
<LocalizationProvider dateAdapter={AdapterDayjs} adapterLocale={locale}> | ||
<DndProvider backend={HTML5Backend}> | ||
<ServerEventsProvider> | ||
<QueryClientProvider client={queryClient}> | ||
<SnackbarProvider maxSnack={2} autoHideDuration={5000}> | ||
<RouterProvider basepath="/web" router={router} /> | ||
</SnackbarProvider> | ||
</QueryClientProvider> | ||
</ServerEventsProvider> | ||
</DndProvider> | ||
</LocalizationProvider> | ||
</DayjsProvider> | ||
</TunarrApiProvider> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.