feat: 实现命令面板、颜色取色、JSON格式化和系统信息功能
- 重构项目架构,采用四层架构模式 (Command → Service → Platform → Utils) - 实现命令面板功能,支持快捷搜索和特征分类 - 添加颜色取色功能,支持屏幕像素颜色获取 - 添加JSON格式化功能,支持JSON格式化和压缩 - 添加系统信息功能,显示操作系统和硬件信息 - 移除旧的状态文档和无用配置文件
This commit is contained in:
28
src/features/types.ts
Normal file
28
src/features/types.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* 功能分类
|
||||
*/
|
||||
export type FeatureCategory = 'tool' | 'system' | 'media' | 'dev';
|
||||
|
||||
/**
|
||||
* 功能接口
|
||||
*/
|
||||
export interface Feature {
|
||||
/** 功能唯一标识 */
|
||||
id: string;
|
||||
/** 功能名称 */
|
||||
name: string;
|
||||
/** 功能描述 */
|
||||
description: string;
|
||||
/** 图标名称(lucide-react) */
|
||||
icon: string;
|
||||
/** 功能分类 */
|
||||
category: FeatureCategory;
|
||||
/** 路由路径 */
|
||||
route: string;
|
||||
/** 快捷键(可选) */
|
||||
shortcut?: string;
|
||||
/** 搜索标签 */
|
||||
tags: string[];
|
||||
/** 是否已实现 */
|
||||
implemented: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user