Skip to content

Instantly share code, notes, and snippets.

@Swizec
Last active December 6, 2023 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Swizec/234a686fa18332cd488188f161c3b796 to your computer and use it in GitHub Desktop.
Save Swizec/234a686fa18332cd488188f161c3b796 to your computer and use it in GitHub Desktop.
.
├── 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
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,
])
{
"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