mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
remove unused example
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export default 'hello world';
|
||||
@@ -1,28 +0,0 @@
|
||||
{
|
||||
"name": "example-waku-reproduce",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"dev": "waku dev",
|
||||
"build": "waku build",
|
||||
"start": "waku start",
|
||||
"types:check": "waku router typegen && tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^19.2.6",
|
||||
"react-dom": "^19.2.6",
|
||||
"react-server-dom-webpack": "^19.2.6",
|
||||
"waku": "1.0.0-alpha.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/vite": "^4.3.0",
|
||||
"@types/mdx": "^2.0.13",
|
||||
"@types/node": "^25.6.2",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"tailwindcss": "^4.3.0",
|
||||
"typescript": "^6.0.3",
|
||||
"vite": "^8.0.11"
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
|
||||
export const Counter = () => {
|
||||
const [count, setCount] = useState(0);
|
||||
|
||||
const handleIncrement = () => setCount((c) => c + 1);
|
||||
|
||||
return (
|
||||
<section className="border-blue-400 -mx-4 mt-4 rounded-sm border border-dashed p-4">
|
||||
<div>Count: {count}</div>
|
||||
<button
|
||||
onClick={handleIncrement}
|
||||
className="rounded-xs bg-black px-2 py-0.5 text-sm text-white"
|
||||
>
|
||||
Increment
|
||||
</button>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
@@ -1,24 +0,0 @@
|
||||
// deno-fmt-ignore-file
|
||||
// biome-ignore format: generated types do not need formatting
|
||||
// prettier-ignore
|
||||
import type { PathsForPages, GetConfigResponse } from 'waku/router';
|
||||
|
||||
// prettier-ignore
|
||||
import type { getConfig as File_Root_getConfig } from './pages/_root';
|
||||
// prettier-ignore
|
||||
import type { getConfig as File_DocsSlugs_getConfig } from './pages/docs/[...slugs]';
|
||||
|
||||
// prettier-ignore
|
||||
type Page =
|
||||
| ({ path: '/_root' } & GetConfigResponse<typeof File_Root_getConfig>)
|
||||
| ({ path: '/docs/[...slugs]' } & GetConfigResponse<typeof File_DocsSlugs_getConfig>);
|
||||
|
||||
// prettier-ignore
|
||||
declare module 'waku/router' {
|
||||
interface RouteConfig {
|
||||
paths: PathsForPages<Page>;
|
||||
}
|
||||
interface CreatePagesConfig {
|
||||
pages: Page;
|
||||
}
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import appCss from '../styles.css?url';
|
||||
|
||||
export default async function RootElement({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<head>
|
||||
<link rel="stylesheet" href={appCss} />
|
||||
</head>
|
||||
<body data-version="1.0" className="flex flex-col min-h-screen">
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getConfig() {
|
||||
return {
|
||||
render: 'static',
|
||||
} as const;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
import { PageProps } from 'waku/router';
|
||||
import { Counter } from '../../components/counter';
|
||||
|
||||
export default async function Page({ slugs }: PageProps<'/docs/[...slugs]'>) {
|
||||
const out = import.meta.glob(['./**/*.tsx'], {
|
||||
base: '/content',
|
||||
eager: true,
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
{JSON.stringify(out, null, 2)}
|
||||
<p>{JSON.stringify(slugs)}</p>
|
||||
<Counter />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getConfig() {
|
||||
return {
|
||||
render: 'static' as const,
|
||||
staticPaths: [[]],
|
||||
} as const;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
@import 'tailwindcss';
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"target": "esnext",
|
||||
"noEmit": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"esModuleInterop": true,
|
||||
"types": ["vite/client"],
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"skipLibCheck": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"jsx": "react-jsx"
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import { defineConfig } from 'waku/config';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user