mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-30 06:12:06 +00:00
fix doc type error
This commit is contained in:
@@ -24,6 +24,8 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@docusaurus/module-type-aliases": "^3.9.2",
|
"@docusaurus/module-type-aliases": "^3.9.2",
|
||||||
"@docusaurus/types": "^3.9.2",
|
"@docusaurus/types": "^3.9.2",
|
||||||
|
"@types/react": "18",
|
||||||
|
"@types/react-dom": "18",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"tailwindcss": "3"
|
"tailwindcss": "3"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import Heading from '@theme/Heading';
|
import Heading from '@theme/Heading';
|
||||||
import styles from './HomepageFeatures.module.css';
|
import styles from './HomepageFeatures.module.css';
|
||||||
|
import type { ComponentType, ComponentProps, ReactNode } from 'react';
|
||||||
|
|
||||||
type FeatureItem = {
|
type FeatureItem = {
|
||||||
title: string;
|
title: string;
|
||||||
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
|
Svg: ComponentType<ComponentProps<'svg'>>;
|
||||||
description: JSX.Element;
|
description: ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
const FeatureList: FeatureItem[] = [
|
const FeatureList: FeatureItem[] = [
|
||||||
@@ -54,7 +55,7 @@ function Feature({title, Svg, description}: FeatureItem) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function HomepageFeatures(): JSX.Element {
|
export default function HomepageFeatures() {
|
||||||
return (
|
return (
|
||||||
<section className={styles.features}>
|
<section className={styles.features}>
|
||||||
<div className="container">
|
<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"
|
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' }}
|
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 />
|
<br />
|
||||||
<span className="text-transparent bg-clip-text bg-gradient-to-r from-primary to-primary/70">
|
<span className="text-gray-900">{t.highlight}</span>
|
||||||
{t.highlight}
|
|
||||||
</span>
|
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
{/* Subtitle */}
|
{/* Subtitle */}
|
||||||
@@ -656,12 +655,9 @@ function CTASection() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Home(): JSX.Element {
|
export default function Home() {
|
||||||
const {siteConfig} = useDocusaurusContext();
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout>
|
||||||
title={`${siteConfig.title}`}
|
|
||||||
description="Use Claude Code without an Anthropics account and route it to another LLM provider">
|
|
||||||
<HomepageHeader />
|
<HomepageHeader />
|
||||||
<main>
|
<main>
|
||||||
<FeatureSection />
|
<FeatureSection />
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"jsx": "react",
|
"jsx": "react-jsx",
|
||||||
"jsxFactory": "React.createElement",
|
|
||||||
"jsxFragmentFactory": "React.Fragment",
|
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "Bundler",
|
"moduleResolution": "Bundler",
|
||||||
"target": "ES2020",
|
"target": "ES2020",
|
||||||
|
|||||||
@@ -36,6 +36,11 @@
|
|||||||
"shx": "^0.4.0",
|
"shx": "^0.4.0",
|
||||||
"typescript": "^5.8.2"
|
"typescript": "^5.8.2"
|
||||||
},
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"overrides": {
|
||||||
|
"@types/react": "18"
|
||||||
|
}
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0",
|
"node": ">=18.0.0",
|
||||||
"pnpm": ">=8.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