fix: resolve all ESLint errors in Vue components

Fixed 22 ESLint errors across 26 Vue component files:
- Removed TypeScript type annotations from ReadingProgress.vue (converted to JS)
- Removed unused variables, imports, and duplicate function declarations
- Fixed HTML parsing errors (invalid attribute names, unclosed tags)
- Added missing :key directives to v-for loops
- Fixed duplicate object keys (backgroundImage)
- Replaced special characters in comments to avoid parsing issues
- Fixed malformed HTML tags (v-else", 003e attributes)

All warnings were left unchanged as requested. Build now passes with 0 errors.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
sanbuphy
2026-02-20 01:03:38 +08:00
parent 8078ee201c
commit 66b2ba6e45
26 changed files with 29 additions and 124 deletions
@@ -145,26 +145,6 @@ const currentInfo = computed(() => {
}
})
function createProcess() {
if (processes.value.length >= 4) return
const id = processes.value.length + 1
const size = 20 + Math.random() * 10
processes.value.push({
id,
pid: pidCounter++,
size,
color: colors[id - 1],
codeSize: Math.floor(size * 0.15),
dataSize: Math.floor(size * 0.1),
heapSize: Math.floor(size * 0.6),
stackSize: Math.floor(size * 0.15),
crashed: false,
active: true
})
}
function killProcess() {
if (processes.value.length === 0) return
processes.value.pop()