Fix SSE route dependency and align architecture docs

This commit is contained in:
ash66
2026-05-18 16:32:42 +08:00
parent 86b9ac806a
commit 3f69cad404
149 changed files with 4786 additions and 5957 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface BadgeProps {
children: React.ReactNode;
@@ -37,4 +37,4 @@ export const Badge: React.FC<BadgeProps> = ({
{children}
</span>
);
};
};

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface ButtonProps {
variant?: 'primary' | 'secondary';
@@ -57,4 +57,4 @@ export const Button: React.FC<ButtonProps> = ({
{children}
</button>
);
};
};

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface CardProps {
accent?: boolean;
@@ -51,4 +51,4 @@ export const Card: React.FC<CardProps> = ({
{children}
</div>
);
};
};

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface InputProps {
value: string;
@@ -42,4 +42,4 @@ export const Input: React.FC<InputProps> = ({
}}
/>
);
};
};

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface ProgressBarProps {
percent: number;
@@ -40,4 +40,4 @@ export const ProgressBar: React.FC<ProgressBarProps> = ({
)}
</div>
);
};
};

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { useTheme } from '../../contexts/ThemeContext';
import { useTheme } from '../../contexts';
interface ScoreBarProps {
score: number; // 0-100
@@ -49,4 +49,4 @@ export const ScoreBar: React.FC<ScoreBarProps> = ({
</div>
</div>
);
};
};