Last active
December 6, 2023 19:27
-
-
Save Swizec/234a686fa18332cd488188f161c3b796 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
. | |
├── CODEOWNERS | |
├── README.md | |
├── ampli.json | |
├── cloudformation | |
│ └── templates | |
│ └── tiara.yaml | |
├── index.html | |
├── package.json | |
├── public | |
├── src | |
│ ├── AmplitudeExperimentProvider.tsx | |
│ ├── Auth.tsx | |
│ ├── ampli | |
│ │ └── index.ts | |
│ ├── index.css | |
│ ├── logger.ts | |
│ ├── main.tsx | |
│ ├── medplum.ts | |
│ ├── pages | |
│ │ ├── -MainMenu.tsx | |
│ │ ├── __root.tsx | |
│ │ ├── index.tsx | |
│ │ └── patients | |
│ │ ├── $id | |
│ │ │ ├── index.tsx | |
│ │ │ └── reference-notes.tsx | |
│ │ ├── -components | |
│ │ │ └── PatientSearchResult.tsx | |
│ │ └── index.tsx | |
│ ├── routeTree.gen.ts | |
│ └── vite-env.d.ts | |
├── tsconfig.json | |
├── tsconfig.node.json | |
├── tsr.config.json | |
├── vite.config.ts | |
└── yarn.lock | |
10 directories, 27 files |
This file contains hidden or 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
import { Route as rootRoute } from "./pages/__root" | |
import { Route as IndexRoute } from "./pages/index" | |
import { Route as PatientsIndexRoute } from "./pages/patients/index" | |
import { Route as PatientsIdReferenceNotesRoute } from "./pages/patients/$id/reference-notes" | |
import { Route as PatientsIdIndexRoute } from "./pages/patients/$id/index" | |
declare module "@tanstack/react-router" { | |
interface FileRoutesByPath { | |
"/": { | |
parentRoute: typeof rootRoute | |
} | |
"/patients/": { | |
parentRoute: typeof rootRoute | |
} | |
"/patients/$id/": { | |
parentRoute: typeof rootRoute | |
} | |
"/patients/$id/reference-notes": { | |
parentRoute: typeof rootRoute | |
} | |
} | |
} | |
Object.assign(IndexRoute.options, { | |
path: "/", | |
getParentRoute: () => rootRoute, | |
}) | |
Object.assign(PatientsIndexRoute.options, { | |
path: "/patients/", | |
getParentRoute: () => rootRoute, | |
}) | |
Object.assign(PatientsIdIndexRoute.options, { | |
path: "/patients/$id/", | |
getParentRoute: () => rootRoute, | |
}) | |
Object.assign(PatientsIdReferenceNotesRoute.options, { | |
path: "/patients/$id/reference-notes", | |
getParentRoute: () => rootRoute, | |
}) | |
export const routeTree = rootRoute.addChildren([ | |
IndexRoute, | |
PatientsIndexRoute, | |
PatientsIdIndexRoute, | |
PatientsIdReferenceNotesRoute, | |
]) |
This file contains hidden or 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
{ | |
"rootDirectory": ".", | |
"routeFileIgnorePrefix": "-", | |
"routesDirectory": "./src/pages", | |
"generatedRouteTree": "./src/routeTree.gen.ts" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment