refactor: remove meaningless comments

Remove 50+ noise comments across the codebase:
- AI-generated verbose prose (💡 emoji, '超进化', '大闸', etc.)
- Comments that restate what the code obviously does
- Comments about deleted code
- Import-level noise comments
- Overly verbose Chinese section markers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
雨霖铃
2026-05-28 20:37:52 +08:00
parent b79fe7dd49
commit e140af7698
34 changed files with 32 additions and 242 deletions
-1
View File
@@ -48,7 +48,6 @@ export function useI18n(namespace?: string | string[]) {
}
}
// 处理插值
if (options) {
for (const [placeholder, value] of Object.entries(options)) {
message = message.replace(`{{${placeholder}}}`, String(value));
-2
View File
@@ -41,7 +41,6 @@ export function htmlToMarkdown(html: string): HtmlToMarkdownResult {
const parser = new DOMParser();
const doc = parser.parseFromString(trimmed, 'text/html');
// 检查解析错误
const parserError = doc.querySelector('parsererror');
if (parserError) {
return {
@@ -225,7 +224,6 @@ function convertTable(table: HTMLElement): string {
const lines: string[] = [];
// 处理表头
const headerRow = rows[0];
const headerCells = Array.from(headerRow.querySelectorAll('th, td'));
const headers = headerCells.map((cell) => (cell.textContent ?? '').trim());