-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a74b905
commit 1e08247
Showing
7 changed files
with
97 additions
and
27 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
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,38 @@ | ||
/* prettier-ignore-start */ | ||
|
||
/* eslint-disable */ | ||
|
||
// @ts-nocheck | ||
|
||
// noinspection JSUnusedGlobalSymbols | ||
|
||
// This file is auto-generated by TanStack Router | ||
|
||
// Import Routes | ||
|
||
import { Route as rootRoute } from './routes/__root' | ||
import { Route as IndexImport } from './routes/index' | ||
|
||
// Create/Update Routes | ||
|
||
const IndexRoute = IndexImport.update({ | ||
path: '/', | ||
getParentRoute: () => rootRoute, | ||
} as any) | ||
|
||
// Populate the FileRoutesByPath interface | ||
|
||
declare module '@tanstack/react-router' { | ||
interface FileRoutesByPath { | ||
'/': { | ||
preLoaderRoute: typeof IndexImport | ||
parentRoute: typeof rootRoute | ||
} | ||
} | ||
} | ||
|
||
// Create and export the route tree | ||
|
||
export const routeTree = rootRoute.addChildren([IndexRoute]) | ||
|
||
/* prettier-ignore-end */ |
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,11 @@ | ||
import { createRootRoute, Outlet } from '@tanstack/react-router' | ||
import { TanStackRouterDevtools } from '@tanstack/router-devtools' | ||
|
||
export const Route = createRootRoute({ | ||
component: () => ( | ||
<> | ||
<Outlet /> | ||
<TanStackRouterDevtools /> | ||
</> | ||
), | ||
}) |
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,10 @@ | ||
import { Books } from "@/components/pages/Books"; | ||
import { createFileRoute } from "@tanstack/react-router"; | ||
|
||
export const Route = createFileRoute("/")({ | ||
component: Index, | ||
}); | ||
|
||
function Index() { | ||
return <Books />; | ||
} |
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 |
---|---|---|
@@ -1,31 +1,29 @@ | ||
import { defineConfig } from "vitest/config"; | ||
import Icons from "unplugin-icons/vite"; | ||
import react from "@vitejs/plugin-react-swc"; | ||
import path from 'path'; | ||
import path from "path"; | ||
import { TanStackRouterVite } from "@tanstack/router-vite-plugin"; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
Icons(), | ||
], | ||
resolve: { | ||
alias: { | ||
'@': path.resolve(__dirname, './src'), | ||
$lib: path.resolve(__dirname, './src/lib'), | ||
} | ||
}, | ||
// 1. prevent vite from obscuring rust errors | ||
clearScreen: false, | ||
server: { | ||
port: 1420, | ||
// 2. tauri expects a fixed port, fail if that port is not available | ||
strictPort: true, | ||
watch: { | ||
// 3. tell vite to ignore watching `src-tauri` | ||
ignored: ["**/src-tauri/**"], | ||
}, | ||
}, | ||
test: { | ||
include: ["src/**/*.{test,spec}.{js,ts}"], | ||
}, | ||
plugins: [react(), Icons(), TanStackRouterVite()], | ||
resolve: { | ||
alias: { | ||
"@": path.resolve(__dirname, "./src"), | ||
$lib: path.resolve(__dirname, "./src/lib"), | ||
}, | ||
}, | ||
// 1. prevent vite from obscuring rust errors | ||
clearScreen: false, | ||
server: { | ||
port: 1420, | ||
// 2. tauri expects a fixed port, fail if that port is not available | ||
strictPort: true, | ||
watch: { | ||
// 3. tell vite to ignore watching `src-tauri` | ||
ignored: ["**/src-tauri/**"], | ||
}, | ||
}, | ||
test: { | ||
include: ["src/**/*.{test,spec}.{js,ts}"], | ||
}, | ||
}); |