-
Notifications
You must be signed in to change notification settings - Fork 7
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
cbad207
commit 0a13aeb
Showing
34 changed files
with
7,823 additions
and
11,801 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
test-apps/react-router-cjs/.react-router/types/app/+types/root.ts
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,40 @@ | ||
// React Router generated types for route: | ||
// root.tsx | ||
|
||
import type * as T from "react-router/route-module" | ||
|
||
|
||
|
||
type Module = typeof import("../root.js") | ||
|
||
export type Info = { | ||
parents: [], | ||
id: "root" | ||
file: "root.tsx" | ||
path: "" | ||
params: {} & { [key: string]: string | undefined } | ||
module: Module | ||
loaderData: T.CreateLoaderData<Module> | ||
actionData: T.CreateActionData<Module> | ||
} | ||
|
||
export namespace Route { | ||
export type LinkDescriptors = T.LinkDescriptors | ||
export type LinksFunction = () => LinkDescriptors | ||
|
||
export type MetaArgs = T.CreateMetaArgs<Info> | ||
export type MetaDescriptors = T.MetaDescriptors | ||
export type MetaFunction = (args: MetaArgs) => MetaDescriptors | ||
|
||
export type HeadersArgs = T.HeadersArgs | ||
export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit | ||
|
||
export type LoaderArgs = T.CreateServerLoaderArgs<Info> | ||
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info> | ||
export type ActionArgs = T.CreateServerActionArgs<Info> | ||
export type ClientActionArgs = T.CreateClientActionArgs<Info> | ||
|
||
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info> | ||
export type ComponentProps = T.CreateComponentProps<Info> | ||
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info> | ||
} |
40 changes: 40 additions & 0 deletions
40
test-apps/react-router-cjs/.react-router/types/app/routes/+types/_index.ts
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,40 @@ | ||
// React Router generated types for route: | ||
// ./routes/_index.tsx | ||
|
||
import type * as T from "react-router/route-module" | ||
|
||
import type { Info as Parent0 } from "../../+types/root.js" | ||
|
||
type Module = typeof import("../_index.js") | ||
|
||
export type Info = { | ||
parents: [Parent0], | ||
id: "routes/_index" | ||
file: "./routes/_index.tsx" | ||
path: "/" | ||
params: {} & { [key: string]: string | undefined } | ||
module: Module | ||
loaderData: T.CreateLoaderData<Module> | ||
actionData: T.CreateActionData<Module> | ||
} | ||
|
||
export namespace Route { | ||
export type LinkDescriptors = T.LinkDescriptors | ||
export type LinksFunction = () => LinkDescriptors | ||
|
||
export type MetaArgs = T.CreateMetaArgs<Info> | ||
export type MetaDescriptors = T.MetaDescriptors | ||
export type MetaFunction = (args: MetaArgs) => MetaDescriptors | ||
|
||
export type HeadersArgs = T.HeadersArgs | ||
export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit | ||
|
||
export type LoaderArgs = T.CreateServerLoaderArgs<Info> | ||
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info> | ||
export type ActionArgs = T.CreateServerActionArgs<Info> | ||
export type ClientActionArgs = T.CreateClientActionArgs<Info> | ||
|
||
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info> | ||
export type ComponentProps = T.CreateComponentProps<Info> | ||
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info> | ||
} |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @ts-ignore | ||
import { route } from "@react-router/dev/routes"; | ||
|
||
export default [ | ||
route("/", "./routes/_index.tsx") | ||
] |
3 changes: 1 addition & 2 deletions
3
...apps/remix-vite-cjs/app/routes/_index.tsx → ...ps/react-router-cjs/app/routes/_index.tsx
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 @@ | ||
{ | ||
"name": "react-router-cjs", | ||
"private": true, | ||
"sideEffects": false, | ||
"type": "commonjs", | ||
"scripts": { | ||
"build": "react-router build", | ||
"dev": "react-router dev", | ||
"lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .", | ||
"start": "react-router-serve ./build/server/index.js", | ||
"typecheck": "tsc" | ||
}, | ||
"dependencies": { | ||
"@react-router/node": "^7.1.5", | ||
"react-router": "^7.1.5", | ||
"@react-router/serve": "^7.1.5", | ||
"isbot": "^4.1.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"open-source-stack": "*" | ||
}, | ||
"devDependencies": { | ||
"@react-router/dev": "^7.1.5", | ||
"@types/react": "^18.2.20", | ||
"@types/react-dom": "^18.2.7", | ||
"@types/node": "22.13.1", | ||
"typescript": "^5.1.6", | ||
"vite": "^5.1.0", | ||
"vite-tsconfig-paths": "^4.2.1" | ||
}, | ||
"engines": { | ||
"node": ">=22.0.0" | ||
} | ||
} |
File renamed without changes.
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,8 @@ | ||
// @ts-ignore | ||
import { reactRouter } from "@react-router/dev/vite"; | ||
import { defineConfig } from "vite"; | ||
import tsconfigPaths from "vite-tsconfig-paths"; | ||
|
||
export default defineConfig({ | ||
plugins: [reactRouter(), tsconfigPaths()], | ||
}); |
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
test-apps/react-router-vite/.react-router/types/app/+types/root.ts
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,40 @@ | ||
// React Router generated types for route: | ||
// root.tsx | ||
|
||
import type * as T from "react-router/route-module" | ||
|
||
|
||
|
||
type Module = typeof import("../root.js") | ||
|
||
export type Info = { | ||
parents: [], | ||
id: "root" | ||
file: "root.tsx" | ||
path: "" | ||
params: {} & { [key: string]: string | undefined } | ||
module: Module | ||
loaderData: T.CreateLoaderData<Module> | ||
actionData: T.CreateActionData<Module> | ||
} | ||
|
||
export namespace Route { | ||
export type LinkDescriptors = T.LinkDescriptors | ||
export type LinksFunction = () => LinkDescriptors | ||
|
||
export type MetaArgs = T.CreateMetaArgs<Info> | ||
export type MetaDescriptors = T.MetaDescriptors | ||
export type MetaFunction = (args: MetaArgs) => MetaDescriptors | ||
|
||
export type HeadersArgs = T.HeadersArgs | ||
export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit | ||
|
||
export type LoaderArgs = T.CreateServerLoaderArgs<Info> | ||
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info> | ||
export type ActionArgs = T.CreateServerActionArgs<Info> | ||
export type ClientActionArgs = T.CreateClientActionArgs<Info> | ||
|
||
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info> | ||
export type ComponentProps = T.CreateComponentProps<Info> | ||
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info> | ||
} |
40 changes: 40 additions & 0 deletions
40
test-apps/react-router-vite/.react-router/types/app/routes/+types/_index.ts
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,40 @@ | ||
// React Router generated types for route: | ||
// ./routes/_index.tsx | ||
|
||
import type * as T from "react-router/route-module" | ||
|
||
import type { Info as Parent0 } from "../../+types/root.js" | ||
|
||
type Module = typeof import("../_index.js") | ||
|
||
export type Info = { | ||
parents: [Parent0], | ||
id: "routes/_index" | ||
file: "./routes/_index.tsx" | ||
path: "/" | ||
params: {} & { [key: string]: string | undefined } | ||
module: Module | ||
loaderData: T.CreateLoaderData<Module> | ||
actionData: T.CreateActionData<Module> | ||
} | ||
|
||
export namespace Route { | ||
export type LinkDescriptors = T.LinkDescriptors | ||
export type LinksFunction = () => LinkDescriptors | ||
|
||
export type MetaArgs = T.CreateMetaArgs<Info> | ||
export type MetaDescriptors = T.MetaDescriptors | ||
export type MetaFunction = (args: MetaArgs) => MetaDescriptors | ||
|
||
export type HeadersArgs = T.HeadersArgs | ||
export type HeadersFunction = (args: HeadersArgs) => Headers | HeadersInit | ||
|
||
export type LoaderArgs = T.CreateServerLoaderArgs<Info> | ||
export type ClientLoaderArgs = T.CreateClientLoaderArgs<Info> | ||
export type ActionArgs = T.CreateServerActionArgs<Info> | ||
export type ClientActionArgs = T.CreateClientActionArgs<Info> | ||
|
||
export type HydrateFallbackProps = T.CreateHydrateFallbackProps<Info> | ||
export type ComponentProps = T.CreateComponentProps<Info> | ||
export type ErrorBoundaryProps = T.CreateErrorBoundaryProps<Info> | ||
} |
File renamed without changes.
Oops, something went wrong.