From 706ae829fb85e346a130abf3aa9f8699b533df48 Mon Sep 17 00:00:00 2001 From: Joe Sweeney Date: Sat, 26 Oct 2024 18:25:38 -0600 Subject: [PATCH] cleanup cf pages test --- test/cloudflare_pages/public/static/style.css | 1 - test/cloudflare_pages/src/global.d.ts | 7 ------- test/cloudflare_pages/src/renderer.tsx | 13 ------------- 3 files changed, 21 deletions(-) delete mode 100644 test/cloudflare_pages/public/static/style.css delete mode 100644 test/cloudflare_pages/src/global.d.ts delete mode 100644 test/cloudflare_pages/src/renderer.tsx diff --git a/test/cloudflare_pages/public/static/style.css b/test/cloudflare_pages/public/static/style.css deleted file mode 100644 index bb73cbd..0000000 --- a/test/cloudflare_pages/public/static/style.css +++ /dev/null @@ -1 +0,0 @@ -h1 { font-family: Arial, Helvetica, sans-serif; } \ No newline at end of file diff --git a/test/cloudflare_pages/src/global.d.ts b/test/cloudflare_pages/src/global.d.ts deleted file mode 100644 index 1137e63..0000000 --- a/test/cloudflare_pages/src/global.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import {} from 'hono' - -declare module 'hono' { - interface ContextRenderer { - (content: string | Promise, props?: { title?: string }): Response - } -} diff --git a/test/cloudflare_pages/src/renderer.tsx b/test/cloudflare_pages/src/renderer.tsx deleted file mode 100644 index 45574ed..0000000 --- a/test/cloudflare_pages/src/renderer.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import { jsxRenderer } from 'hono/jsx-renderer' - -export const renderer = jsxRenderer(({ children, title }) => { - return ( - - - - {title} - - {children} - - ) -})