refactor: add sorting options to library page for Series and BoxSets

This commit is contained in:
Prayag Prajapati committed 2024-07-12 00:34:47 +05:30
1 parent 326b093210
commit c21483ee5b
76 files changed
+7110 -2350

No files matched your search

+18
View File
@@ -13,6 +13,7 @@
import { Route as rootRoute } from './routes/__root'
import { Route as ApiImport } from './routes/_api'
import { Route as IndexImport } from './routes/index'
import { Route as ErrorCodeImport } from './routes/error/$code'
import { Route as ApiSearchIndexImport } from './routes/_api/search/index'
import { Route as ApiPlayerIndexImport } from './routes/_api/player/index'
import { Route as ApiLoginIndexImport } from './routes/_api/login/index'
@@ -46,6 +47,11 @@ const IndexRoute = IndexImport.update({
getParentRoute: () => rootRoute,
} as any)
const ErrorCodeRoute = ErrorCodeImport.update({
path: '/error/$code',
getParentRoute: () => rootRoute,
} as any)
const ApiSearchIndexRoute = ApiSearchIndexImport.update({
path: '/search/',
getParentRoute: () => ApiRoute,
@@ -164,6 +170,13 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof ApiImport
parentRoute: typeof rootRoute
}
'/error/$code': {
id: '/error/$code'
path: '/error/$code'
fullPath: '/error/$code'
preLoaderRoute: typeof ErrorCodeImport
parentRoute: typeof rootRoute
}
'/_api/album/$id': {
id: '/_api/album/$id'
path: '/album/$id'
@@ -330,6 +343,7 @@ export const routeTree = rootRoute.addChildren({
ApiSearchIndexRoute,
ApiLoginUserIdUserNameRoute,
}),
ErrorCodeRoute,
SetupServerAddRoute,
SetupServerErrorRoute,
SetupServerListRoute,
@@ -345,6 +359,7 @@ export const routeTree = rootRoute.addChildren({
"children": [
"/",
"/_api",
"/error/$code",
"/setup/server/add",
"/setup/server/error",
"/setup/server/list"
@@ -375,6 +390,9 @@ export const routeTree = rootRoute.addChildren({
"/_api/login/$userId/$userName"
]
},
"/error/$code": {
"filePath": "error/$code.tsx"
},
"/_api/album/$id": {
"filePath": "_api/album/$id.tsx",
"parent": "/_api"