A simple test module with two 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
| diff --git a/package.json b/package.json | |
| --- a/package.json | |
| +++ b/package.json | |
| @@ -1,3 +1,6 @@ | |
| { | |
| - "name": "test" | |
| + "name": "test", | |
| + "dependencies": { | |
| + "zod": "^3.0.0" | |
| + } |
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 { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" | |
| import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js" | |
| import { Socket } from "net" | |
| import { Readable } from "stream" | |
| import { IncomingMessage, type ServerResponse } from "http" | |
| import { | |
| subscribeToChannel, | |
| unsubscribeFromChannel, | |
| publishMessage, | |
| } from "../redis.server.js" |
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
| --- | |
| description: "Use shadcn/ui components as needed for any UI code" | |
| patterns: "*.tsx" | |
| --- | |
| # Shadcn UI Components | |
| This project uses @shadcn/ui for UI components. These are beautifully designed, accessible components that you can copy and paste into your apps. | |
| ## Finding and Using Components |
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
| { | |
| + "typescript.preferences.autoImportFileExcludePatterns": [ | |
| + "zod", | |
| + ] | |
| } |
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 { RemixBrowser } from "@remix-run/react"; | |
| import { startTransition, StrictMode } from "react"; | |
| import { hydrateRoot } from "react-dom/client"; | |
| startTransition(() => { | |
| hydrateRoot( | |
| document, | |
| <StrictMode> | |
| <RemixBrowser /> | |
| </StrictMode> |
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 '#app/tailwind.css' |
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 { z } from "zod" | |
| import { parseWithZod } from "@conform-to/zod" | |
| import { Submission } from "@conform-to/react" | |
| export async function parseRequest<ZodSchema>( | |
| request: Request, | |
| { schema }: { schema: z.ZodType<ZodSchema> }, | |
| ) { | |
| const type = request.headers.get("content-type") | |
| if (type === "application/json") { |
NewerOlder