-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Showing
38 changed files
with
458 additions
and
160 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 |
---|---|---|
|
@@ -21,4 +21,5 @@ server | |
.rollup.cache | ||
dist | ||
tsconfig.tsbuildinfo | ||
src/pages/**/*.mdx | ||
src/pages/**/*.mdx | ||
src/**/*.gen.* |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,4 @@ lerna-debug.log* | |
|
||
# Netlify | ||
.netlify | ||
.env.local |
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 |
---|---|---|
|
@@ -38,3 +38,4 @@ package-lock.json | |
yarn.lock | ||
server | ||
drizzle | ||
**/*.gen.d.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
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,33 @@ | ||
/** | ||
* This file is created as part of the typed routes, but it is intended to be modified by the developer. | ||
* | ||
* @fileoverview | ||
*/ | ||
import { untypedAppUrl, omitProps } from '@builder.io/qwik-labs'; | ||
import { type AppLinkProps, type AppRouteParamsFunction } from './routes.gen'; | ||
import { type QwikIntrinsicElements } from '@builder.io/qwik'; | ||
|
||
/** | ||
* Configure `appUrl` with the typed information of routes. | ||
*/ | ||
export const appUrl = untypedAppUrl as AppRouteParamsFunction; | ||
|
||
/** | ||
* Configure `<AppLink/>` component with the typed information of routes. | ||
* | ||
* NOTE: you may consider changing `<a>` to `<Link>` to be globally applied across your application. | ||
*/ | ||
export function AppLink(props: AppLinkProps & QwikIntrinsicElements['a']) { | ||
return ( | ||
<a | ||
href={(appUrl as (route: string, props: any, prefix: string) => string)( | ||
props.route, | ||
props, | ||
'param:' | ||
)} | ||
{...omitProps(props, ['href'])} | ||
> | ||
{props.children} | ||
</a> | ||
); | ||
} |
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,80 @@ | ||
/////////////////////////////////////////////////////////////////////////// | ||
/// GENERATED FILE --- DO NOT EDIT --- YOUR CHANGES WILL BE OVERWRITTEN /// | ||
/////////////////////////////////////////////////////////////////////////// | ||
|
||
export type AppRoutes = | ||
| "/" | ||
| "/api/v1/[publicApiKey]/bundles/" | ||
| "/api/v1/[publicApiKey]/post/" | ||
| "/api/v1/[publicApiKey]/post/error/" | ||
| "/app/" | ||
| "/app/[publicApiKey]/" | ||
| "/app/[publicApiKey]/edit/" | ||
| "/app/[publicApiKey]/errors/" | ||
| "/app/[publicApiKey]/symbols/" | ||
| "/app/[publicApiKey]/symbols/slow/"; | ||
|
||
export interface AppRouteMap { | ||
"/": {}; | ||
"/api/v1/[publicApiKey]/bundles/": { publicApiKey: string }; | ||
"/api/v1/[publicApiKey]/post/": { publicApiKey: string }; | ||
"/api/v1/[publicApiKey]/post/error/": { publicApiKey: string }; | ||
"/app/": {}; | ||
"/app/[publicApiKey]/": { publicApiKey: string }; | ||
"/app/[publicApiKey]/edit/": { publicApiKey: string }; | ||
"/app/[publicApiKey]/errors/": { publicApiKey: string }; | ||
"/app/[publicApiKey]/symbols/": { publicApiKey: string }; | ||
"/app/[publicApiKey]/symbols/slow/": { publicApiKey: string }; | ||
} | ||
|
||
export interface AppRouteParamsFunction { | ||
(route: "/", params?: {}): string; | ||
( | ||
route: "/api/v1/[publicApiKey]/bundles/", | ||
params: { publicApiKey: string } | ||
): string; | ||
( | ||
route: "/api/v1/[publicApiKey]/post/", | ||
params: { publicApiKey: string } | ||
): string; | ||
( | ||
route: "/api/v1/[publicApiKey]/post/error/", | ||
params: { publicApiKey: string } | ||
): string; | ||
(route: "/app/", params?: {}): string; | ||
(route: "/app/[publicApiKey]/", params: { publicApiKey: string }): string; | ||
( | ||
route: "/app/[publicApiKey]/edit/", | ||
params: { publicApiKey: string } | ||
): string; | ||
( | ||
route: "/app/[publicApiKey]/errors/", | ||
params: { publicApiKey: string } | ||
): string; | ||
( | ||
route: "/app/[publicApiKey]/symbols/", | ||
params: { publicApiKey: string } | ||
): string; | ||
( | ||
route: "/app/[publicApiKey]/symbols/slow/", | ||
params: { publicApiKey: string } | ||
): string; | ||
} | ||
|
||
export type AppLinkProps = | ||
| { route: "/" } | ||
| { route: "/api/v1/[publicApiKey]/bundles/"; "param:publicApiKey": string } | ||
| { route: "/api/v1/[publicApiKey]/post/"; "param:publicApiKey": string } | ||
| { | ||
route: "/api/v1/[publicApiKey]/post/error/"; | ||
"param:publicApiKey": string; | ||
} | ||
| { route: "/app/" } | ||
| { route: "/app/[publicApiKey]/"; "param:publicApiKey": string } | ||
| { route: "/app/[publicApiKey]/edit/"; "param:publicApiKey": string } | ||
| { route: "/app/[publicApiKey]/errors/"; "param:publicApiKey": string } | ||
| { route: "/app/[publicApiKey]/symbols/"; "param:publicApiKey": string } | ||
| { | ||
route: "/app/[publicApiKey]/symbols/slow/"; | ||
"param:publicApiKey": string; | ||
}; |
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 was deleted.
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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ dist | |
dist-dev | ||
lib | ||
lib-types | ||
vite | ||
etc | ||
external | ||
node_modules | ||
|
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
Oops, something went wrong.