refactor: reorganize project structure and improve type definitions

- Split types into separate modules for better organization
- Move data files to dedicated directories with proper documentation
- Enhance i18n utilities with better type safety and performance
- Maintain backward compatibility with legacy imports
This commit is contained in:
joyzhao
2025-06-21 09:18:39 +08:00
parent e38ec6b12f
commit ea01dc6dd8
14 changed files with 784 additions and 523 deletions

22
src/types/components.ts Normal file
View File

@@ -0,0 +1,22 @@
/**
* Component types module
* Contains type definitions for UI components
*/
import type { Lang } from './i18n';
/**
* Skill item interface
*/
export interface SkillItem {
name: string;
icon: string;
color: string;
}
/**
* Skill section component props
*/
export interface SkillSectionProps {
title: string;
skills: SkillItem[];
}