-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-【代码质量】完善多个核心模块的文档注释 -【代码结构】重构并规范化配置和常量定义 -【代码组织】优化 WeeklyReportPanel 类的注释和方法说明 -【代码维护】增加配置键和接口的详细类型声明
- Loading branch information
1 parent
cc32d54
commit 35cbe88
Showing
6 changed files
with
182 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,37 @@ | ||
import * as packageJson from "../package.json"; | ||
|
||
/** 扩展的包名 */ | ||
export const EXTENSION_NAME = packageJson.name; | ||
|
||
/** 扩展的显示名称 */ | ||
export const DISPLAY_NAME = packageJson.displayName; | ||
|
||
// 使用命名空间组织命令 | ||
/** | ||
* 使用命名空间组织的命令常量 | ||
* @namespace | ||
*/ | ||
export const COMMANDS = { | ||
/** Commit相关命令 */ | ||
COMMIT: { | ||
/** 生成commit信息的命令 */ | ||
GENERATE: packageJson.contributes.commands[0].command, | ||
}, | ||
/** 模型相关命令 */ | ||
MODEL: { | ||
/** 显示模型选择的命令 */ | ||
SHOW: packageJson.contributes.commands[1].command, | ||
}, | ||
/** 周报相关命令 */ | ||
WEEKLY_REPORT: { | ||
/** 生成周报的命令 */ | ||
GENERATE: packageJson.contributes.commands[2].command, | ||
}, | ||
/** 代码审查相关命令 */ | ||
CODE_REVIEW: { | ||
/** 执行代码审查的命令 */ | ||
REVIEW: packageJson.contributes.commands[3].command, | ||
}, | ||
} as const; | ||
|
||
// 添加类型导出 | ||
/** COMMANDS常量的TypeScript类型 */ | ||
export type CommandType = typeof COMMANDS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,55 @@ | ||
/** | ||
* 周报配置接口 | ||
* @interface Config | ||
*/ | ||
export interface Config { | ||
/** 总工作时长(小时) */ | ||
totalHours: number; | ||
/** 总工作天数 */ | ||
totalDays: number; | ||
/** 最小计算单位(小时) */ | ||
minUnit: number; | ||
} | ||
|
||
/** | ||
* Jira问题接口 | ||
* @interface JiraIssue | ||
*/ | ||
export interface JiraIssue { | ||
/** Jira问题的唯一标识符 */ | ||
key: string; | ||
/** 问题标题 */ | ||
title: string; | ||
/** 关联用户列表 */ | ||
linkUsers?: string[]; | ||
/** 优先级 */ | ||
priority?: string; | ||
/** 问题描述 */ | ||
description?: string; | ||
} | ||
|
||
/** | ||
* 工作项接口 | ||
* @interface WorkItem | ||
*/ | ||
export interface WorkItem { | ||
/** 工作内容 */ | ||
content: string; | ||
/** 工作耗时 */ | ||
time: string; | ||
/** 工作描述 */ | ||
description: string; | ||
} | ||
|
||
/** | ||
* 代码仓库接口 | ||
* @interface Repository | ||
*/ | ||
export interface Repository { | ||
/** 仓库类型: git或svn */ | ||
type: 'git' | 'svn'; | ||
/** 仓库路径 */ | ||
path: string; | ||
/** 仓库作者 */ | ||
author?: string; | ||
} |
Oops, something went wrong.