feat: 更新依赖项与优化组件样式

* 在 `package.json` 中添加 ESLint 相关依赖,增强代码质量管理。
* 更新 `index.html` 中的样式,移除图片懒加载的默认透明度设置,避免显示问题。
* 在 `App.vue` 和其他组件中优化代码格式,提升可读性和一致性。
* 更新 `env.d.ts` 文件,添加类型注释以支持 Vue 组件的类型定义。
* 在 `StatsCorner.vue` 中引入过渡效果,提升用户体验。
This commit is contained in:
AdingApkgg
2025-11-20 15:57:39 +08:00
parent a9b9a007eb
commit a62ca55519
21 changed files with 2164 additions and 717 deletions

View File

@@ -99,16 +99,11 @@
color: var(--text-dark);
}
/* 图片懒加载淡入动画 */
/* 图片懒加载淡入动画 - 移除默认 opacity: 0避免显示问题 */
img[loading="lazy"] {
opacity: 0;
transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
img[loading="lazy"].loaded {
opacity: 1;
}
/* Pace.js 自定义样式 */
.pace {
pointer-events: none;