From 6b05f7c74e3a5a819809e9c2ab28bd509f39b32d Mon Sep 17 00:00:00 2001 From: RhenCloud Date: Thu, 18 Dec 2025 22:13:47 +0800 Subject: [PATCH] =?UTF-8?q?style(app):=20=E4=BD=BF=E7=94=A8=20`NuxtImg`=20?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3=20`img`=20=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在多个组件中将 `img` 标签替换为 `NuxtImg` 标签,提升图片加载的性能和优化。例如,在 `AboutSection.vue`、`FriendsSection.vue`、`HeroSection.vue`、`ProjectsSection.vue`、`SitesSection.vue` 和 `SkillsSection.vue` 中的图片标签。 refactor(app): 扩展 `nuxt.config.ts` 配置 扩展了 `nuxt.config.ts` 配置文件中的模块配置,添加了 `@nuxt/image` 和 `@nuxt/eslint` 模块。同时,优化了 `routeRules` 配置,以支持预渲染和增量静态生成。 --- app/app.vue | 8 +- app/components/AboutSection.vue | 41 ++++-- app/components/FooterSection.vue | 47 ++++-- app/components/FriendsSection.vue | 72 ++++++---- app/components/GithubSection.vue | 32 +++-- app/components/HeroSection.vue | 22 ++- app/components/MusicPlayer.vue | 5 +- app/components/PageSwitcher.vue | 17 ++- app/components/ProjectsSection.vue | 20 ++- app/components/SitesSection.vue | 20 ++- app/components/SkillsSection.vue | 9 +- app/components/SocialLinks.vue | 33 +++-- app/components/StatsSection.vue | 52 ++++--- app/components/WakatimeSection.vue | 32 +++-- app/pages/comments.vue | 30 ++-- app/plugins/neteaseMiniPlayer.client.ts | 13 +- app/plugins/umami.client.ts | 2 +- eslint.config.mjs | 6 + nuxt.config.ts | 183 +++++++++++++----------- package.json | 7 +- pnpm-workspace.yaml | 3 +- 21 files changed, 423 insertions(+), 231 deletions(-) create mode 100644 eslint.config.mjs diff --git a/app/app.vue b/app/app.vue index 348dce4..7c708bd 100644 --- a/app/app.vue +++ b/app/app.vue @@ -1,18 +1,18 @@