refactor: clean up codebase by removing redundant comments

Remove unnecessary JSDoc comments and redundant explanations from components, types, and data files. Simplify code structure while maintaining functionality.

Clean up language handling logic in components by removing redundant comments and simplifying state management. Move type imports to dedicated type import statements where applicable.
This commit is contained in:
joyzhao
2025-06-21 09:28:10 +08:00
parent ea01dc6dd8
commit 67f713565a
15 changed files with 9 additions and 168 deletions

View File

@@ -1,19 +1,9 @@
/**
* Data types module
* Contains type definitions for all data structures used in the application
*/
import type { Lang } from './i18n.ts';
/**
* Multi-language text type
*/
export type LocalizedText = {
[K in Lang]: string;
};
/**
* Personal information interface
*/
export interface PersonalInfo {
name: string;
location: string;
@@ -45,18 +35,12 @@ export interface PersonalInfo {
};
}
/**
* Project image interface
*/
export interface ProjectImage {
bg: string;
hover: string;
text: string;
}
/**
* Project interface
*/
export interface Project {
id: string;
tag: string;
@@ -69,17 +53,11 @@ export interface Project {
link: string;
}
/**
* Service icon interface
*/
export interface ServiceIcon {
svg: string;
gradient: string;
}
/**
* Service interface
*/
export interface Service {
title: string;
icon: ServiceIcon;