mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-29 22:02:05 +00:00
fix doc type error
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "^3.9.2",
|
||||
"@docusaurus/types": "^3.9.2",
|
||||
"@types/react": "18",
|
||||
"@types/react-dom": "18",
|
||||
"autoprefixer": "^10.4.21",
|
||||
"tailwindcss": "3"
|
||||
},
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import Heading from '@theme/Heading';
|
||||
import styles from './HomepageFeatures.module.css';
|
||||
import type { ComponentType, ComponentProps, ReactNode } from 'react';
|
||||
|
||||
type FeatureItem = {
|
||||
title: string;
|
||||
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
|
||||
description: JSX.Element;
|
||||
Svg: ComponentType<ComponentProps<'svg'>>;
|
||||
description: ReactNode;
|
||||
};
|
||||
|
||||
const FeatureList: FeatureItem[] = [
|
||||
@@ -54,7 +55,7 @@ function Feature({title, Svg, description}: FeatureItem) {
|
||||
);
|
||||
}
|
||||
|
||||
export default function HomepageFeatures(): JSX.Element {
|
||||
export default function HomepageFeatures() {
|
||||
return (
|
||||
<section className={styles.features}>
|
||||
<div className="container">
|
||||
|
||||
14
docs/src/css-modules.d.ts
vendored
Normal file
14
docs/src/css-modules.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
declare module '*.module.css' {
|
||||
const classes: { [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.scss' {
|
||||
const classes: { [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.sass' {
|
||||
const classes: { [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
16
docs/src/docusaurus.d.ts
vendored
Normal file
16
docs/src/docusaurus.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/// <reference types="@docusaurus/module-type-aliases" />
|
||||
/// <reference types="@docusaurus/types" />
|
||||
|
||||
// Additional theme component type declarations
|
||||
declare module '@theme/Heading' {
|
||||
import type {ReactNode, CSSProperties} from 'react';
|
||||
|
||||
export type Props = {
|
||||
readonly as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
||||
readonly className?: string;
|
||||
readonly style?: CSSProperties;
|
||||
readonly children?: ReactNode;
|
||||
};
|
||||
|
||||
export default function Heading(props: Props): ReactNode;
|
||||
}
|
||||
@@ -55,11 +55,10 @@ function HomepageHeader() {
|
||||
className="text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-extrabold mb-6 leading-tight animate-fade-in-up"
|
||||
style={{ animationDelay: '0.1s' }}
|
||||
>
|
||||
<span className="text-gray-900">{t.title}</span>
|
||||
<span className="text-gray-900">Route </span>
|
||||
<span className="text-primary">Claude Code</span>
|
||||
<br />
|
||||
<span className="text-transparent bg-clip-text bg-gradient-to-r from-primary to-primary/70">
|
||||
{t.highlight}
|
||||
</span>
|
||||
<span className="text-gray-900">{t.highlight}</span>
|
||||
</Heading>
|
||||
|
||||
{/* Subtitle */}
|
||||
@@ -656,12 +655,9 @@ function CTASection() {
|
||||
);
|
||||
}
|
||||
|
||||
export default function Home(): JSX.Element {
|
||||
const {siteConfig} = useDocusaurusContext();
|
||||
export default function Home() {
|
||||
return (
|
||||
<Layout
|
||||
title={`${siteConfig.title}`}
|
||||
description="Use Claude Code without an Anthropics account and route it to another LLM provider">
|
||||
<Layout>
|
||||
<HomepageHeader />
|
||||
<main>
|
||||
<FeatureSection />
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
"extends": "../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"jsx": "react",
|
||||
"jsxFactory": "React.createElement",
|
||||
"jsxFragmentFactory": "React.Fragment",
|
||||
"jsx": "react-jsx",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"target": "ES2020",
|
||||
|
||||
@@ -36,6 +36,11 @@
|
||||
"shx": "^0.4.0",
|
||||
"typescript": "^5.8.2"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@types/react": "18"
|
||||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"pnpm": ">=8.0.0"
|
||||
|
||||
949
pnpm-lock.yaml
generated
949
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user