Skip to content

Tw4 #6759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Tw4 #6759

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: apply lint and formatting fixes
  • Loading branch information
autofix-ci[bot] authored May 12, 2025
commit 4163efce9ce366d0bb83d31f7233f08bfa5b8736
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ function AddMessageForm({ onMessagePost }: { onMessagePost: () => void }) {
}}
/>
<div>
<button type="submit" className="rounded-sm bg-indigo-500 px-4 py-1">
<button
type="submit"
className="rounded-sm bg-indigo-500 px-4 py-1"
>
Submit
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/next-sse-chat/src/components/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Avatar({
className,
// Basic layout
'inline-grid shrink-0 align-middle [--avatar-radius:20%] [--ring-opacity:20%] *:col-start-1 *:row-start-1',
'outline outline-1 -outline-offset-1 outline-black/(--ring-opacity) dark:outline-white/(--ring-opacity)',
'outline-black/(--ring-opacity) dark:outline-white/(--ring-opacity) outline outline-1 -outline-offset-1',
// Add the correct border radius
square
? 'rounded-(--avatar-radius) *:rounded-(--avatar-radius)'
Expand Down
2 changes: 1 addition & 1 deletion examples/next-sse-chat/src/components/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function Dialog({
className={cx(
className,
sizes[size],
'row-start-2 w-full min-w-0 rounded-t-3xl bg-white p-(--gutter) shadow-lg ring-1 ring-gray-950/10 [--gutter:--spacing(8)] dark:bg-gray-900 dark:ring-white/10 sm:mb-auto sm:rounded-2xl forced-colors:outline',
'p-(--gutter) row-start-2 w-full min-w-0 rounded-t-3xl bg-white shadow-lg ring-1 ring-gray-950/10 [--gutter:--spacing(8)] dark:bg-gray-900 dark:ring-white/10 sm:mb-auto sm:rounded-2xl forced-colors:outline',
)}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion examples/next-sse-chat/src/components/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function Label({
{...props}
className={cx(
className,
'select-none text-base/6 text-zinc-950 data-disabled:opacity-50 dark:text-white sm:text-sm/6',
'data-disabled:opacity-50 select-none text-base/6 text-zinc-950 dark:text-white sm:text-sm/6',
)}
/>
);
Expand Down
166 changes: 83 additions & 83 deletions examples/tanstack-start/app/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,181 +10,181 @@

// Import Routes

import { Route as rootRoute } from './routes/__root'
import { Route as RedirectImport } from './routes/redirect'
import { Route as PostsImport } from './routes/posts'
import { Route as IndexImport } from './routes/index'
import { Route as PostsIndexImport } from './routes/posts.index'
import { Route as PostsPostIdImport } from './routes/posts.$postId'
import { Route as PostsPostIdDeepImport } from './routes/posts_.$postId.deep'
import { Route as rootRoute } from './routes/__root';
import { Route as IndexImport } from './routes/index';
import { Route as PostsImport } from './routes/posts';
import { Route as PostsPostIdDeepImport } from './routes/posts_.$postId.deep';
import { Route as PostsPostIdImport } from './routes/posts.$postId';
import { Route as PostsIndexImport } from './routes/posts.index';
import { Route as RedirectImport } from './routes/redirect';

// Create/Update Routes

const RedirectRoute = RedirectImport.update({
id: '/redirect',
path: '/redirect',
getParentRoute: () => rootRoute,
} as any)
} as any);

const PostsRoute = PostsImport.update({
id: '/posts',
path: '/posts',
getParentRoute: () => rootRoute,
} as any)
} as any);

const IndexRoute = IndexImport.update({
id: '/',
path: '/',
getParentRoute: () => rootRoute,
} as any)
} as any);

const PostsIndexRoute = PostsIndexImport.update({
id: '/',
path: '/',
getParentRoute: () => PostsRoute,
} as any)
} as any);

const PostsPostIdRoute = PostsPostIdImport.update({
id: '/$postId',
path: '/$postId',
getParentRoute: () => PostsRoute,
} as any)
} as any);

const PostsPostIdDeepRoute = PostsPostIdDeepImport.update({
id: '/posts_/$postId/deep',
path: '/posts/$postId/deep',
getParentRoute: () => rootRoute,
} as any)
} as any);

// Populate the FileRoutesByPath interface

declare module '@tanstack/react-router' {
interface FileRoutesByPath {
'/': {
id: '/'
path: '/'
fullPath: '/'
preLoaderRoute: typeof IndexImport
parentRoute: typeof rootRoute
}
id: '/';
path: '/';
fullPath: '/';
preLoaderRoute: typeof IndexImport;
parentRoute: typeof rootRoute;
};
'/posts': {
id: '/posts'
path: '/posts'
fullPath: '/posts'
preLoaderRoute: typeof PostsImport
parentRoute: typeof rootRoute
}
id: '/posts';
path: '/posts';
fullPath: '/posts';
preLoaderRoute: typeof PostsImport;
parentRoute: typeof rootRoute;
};
'/redirect': {
id: '/redirect'
path: '/redirect'
fullPath: '/redirect'
preLoaderRoute: typeof RedirectImport
parentRoute: typeof rootRoute
}
id: '/redirect';
path: '/redirect';
fullPath: '/redirect';
preLoaderRoute: typeof RedirectImport;
parentRoute: typeof rootRoute;
};
'/posts/$postId': {
id: '/posts/$postId'
path: '/$postId'
fullPath: '/posts/$postId'
preLoaderRoute: typeof PostsPostIdImport
parentRoute: typeof PostsImport
}
id: '/posts/$postId';
path: '/$postId';
fullPath: '/posts/$postId';
preLoaderRoute: typeof PostsPostIdImport;
parentRoute: typeof PostsImport;
};
'/posts/': {
id: '/posts/'
path: '/'
fullPath: '/posts/'
preLoaderRoute: typeof PostsIndexImport
parentRoute: typeof PostsImport
}
id: '/posts/';
path: '/';
fullPath: '/posts/';
preLoaderRoute: typeof PostsIndexImport;
parentRoute: typeof PostsImport;
};
'/posts_/$postId/deep': {
id: '/posts_/$postId/deep'
path: '/posts/$postId/deep'
fullPath: '/posts/$postId/deep'
preLoaderRoute: typeof PostsPostIdDeepImport
parentRoute: typeof rootRoute
}
id: '/posts_/$postId/deep';
path: '/posts/$postId/deep';
fullPath: '/posts/$postId/deep';
preLoaderRoute: typeof PostsPostIdDeepImport;
parentRoute: typeof rootRoute;
};
}
}

// Create and export the route tree

interface PostsRouteChildren {
PostsPostIdRoute: typeof PostsPostIdRoute
PostsIndexRoute: typeof PostsIndexRoute
PostsPostIdRoute: typeof PostsPostIdRoute;
PostsIndexRoute: typeof PostsIndexRoute;
}

const PostsRouteChildren: PostsRouteChildren = {
PostsPostIdRoute: PostsPostIdRoute,
PostsIndexRoute: PostsIndexRoute,
}
};

const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren)
const PostsRouteWithChildren = PostsRoute._addFileChildren(PostsRouteChildren);

export interface FileRoutesByFullPath {
'/': typeof IndexRoute
'/posts': typeof PostsRouteWithChildren
'/redirect': typeof RedirectRoute
'/posts/$postId': typeof PostsPostIdRoute
'/posts/': typeof PostsIndexRoute
'/posts/$postId/deep': typeof PostsPostIdDeepRoute
'/': typeof IndexRoute;
'/posts': typeof PostsRouteWithChildren;
'/redirect': typeof RedirectRoute;
'/posts/$postId': typeof PostsPostIdRoute;
'/posts/': typeof PostsIndexRoute;
'/posts/$postId/deep': typeof PostsPostIdDeepRoute;
}

export interface FileRoutesByTo {
'/': typeof IndexRoute
'/redirect': typeof RedirectRoute
'/posts/$postId': typeof PostsPostIdRoute
'/posts': typeof PostsIndexRoute
'/posts/$postId/deep': typeof PostsPostIdDeepRoute
'/': typeof IndexRoute;
'/redirect': typeof RedirectRoute;
'/posts/$postId': typeof PostsPostIdRoute;
'/posts': typeof PostsIndexRoute;
'/posts/$postId/deep': typeof PostsPostIdDeepRoute;
}

export interface FileRoutesById {
__root__: typeof rootRoute
'/': typeof IndexRoute
'/posts': typeof PostsRouteWithChildren
'/redirect': typeof RedirectRoute
'/posts/$postId': typeof PostsPostIdRoute
'/posts/': typeof PostsIndexRoute
'/posts_/$postId/deep': typeof PostsPostIdDeepRoute
__root__: typeof rootRoute;
'/': typeof IndexRoute;
'/posts': typeof PostsRouteWithChildren;
'/redirect': typeof RedirectRoute;
'/posts/$postId': typeof PostsPostIdRoute;
'/posts/': typeof PostsIndexRoute;
'/posts_/$postId/deep': typeof PostsPostIdDeepRoute;
}

export interface FileRouteTypes {
fileRoutesByFullPath: FileRoutesByFullPath
fileRoutesByFullPath: FileRoutesByFullPath;
fullPaths:
| '/'
| '/posts'
| '/redirect'
| '/posts/$postId'
| '/posts/'
| '/posts/$postId/deep'
fileRoutesByTo: FileRoutesByTo
to: '/' | '/redirect' | '/posts/$postId' | '/posts' | '/posts/$postId/deep'
| '/posts/$postId/deep';
fileRoutesByTo: FileRoutesByTo;
to: '/' | '/redirect' | '/posts/$postId' | '/posts' | '/posts/$postId/deep';
id:
| '__root__'
| '/'
| '/posts'
| '/redirect'
| '/posts/$postId'
| '/posts/'
| '/posts_/$postId/deep'
fileRoutesById: FileRoutesById
| '/posts_/$postId/deep';
fileRoutesById: FileRoutesById;
}

export interface RootRouteChildren {
IndexRoute: typeof IndexRoute
PostsRoute: typeof PostsRouteWithChildren
RedirectRoute: typeof RedirectRoute
PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute
IndexRoute: typeof IndexRoute;
PostsRoute: typeof PostsRouteWithChildren;
RedirectRoute: typeof RedirectRoute;
PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute;
}

const rootRouteChildren: RootRouteChildren = {
IndexRoute: IndexRoute,
PostsRoute: PostsRouteWithChildren,
RedirectRoute: RedirectRoute,
PostsPostIdDeepRoute: PostsPostIdDeepRoute,
}
};

export const routeTree = rootRoute
._addFileChildren(rootRouteChildren)
._addFileTypes<FileRouteTypes>()
._addFileTypes<FileRouteTypes>();

/* ROUTE_MANIFEST_START
{
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy