From ac4f8dac82f4b9fd79d57d45ea754eddecfd7265 Mon Sep 17 00:00:00 2001
From: youzi <2410633923@qq.com>
Date: Thu, 15 Jan 2026 17:17:40 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0NProgress=E5=8A=A0?=
=?UTF-8?q?=E8=BD=BD=E8=BF=9B=E5=BA=A6=E6=9D=A1=E5=92=8C=E4=BC=98=E5=8C=96?=
=?UTF-8?q?UI=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
添加NProgress依赖并集成到路由中,实现页面切换时的加载进度条
优化友链页面、博客分类和文章列表的UI样式
调整登录按钮和图片懒加载的显示效果
新增标签随机颜色功能,提升视觉体验
---
components.d.ts | 1 +
extra.d.ts | 3 +-
package.json | 1 +
src/App.vue | 7 ++-
src/assets/base.less | 10 ++++
src/assets/main.css | 6 +-
src/components/menuH.vue | 9 +--
src/icon/arti.svg | 5 +-
src/icon/download.svg | 1 +
src/icon/tag2.svg | 4 +-
src/lib/components/LazyImg.vue | 19 +++++-
src/main.ts | 15 +++--
src/router/index.ts | 16 ++++-
src/views/Gallery.vue | 4 +-
src/views/Plink.vue | 66 +++++++++++++++------
src/views/blog/index.vue | 105 +++++++++++++++++++++++----------
yarn.lock | 5 ++
17 files changed, 204 insertions(+), 73 deletions(-)
diff --git a/components.d.ts b/components.d.ts
index 4623e93..faf267b 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -33,6 +33,7 @@ declare module 'vue' {
NLayoutFooter: typeof import('naive-ui')['NLayoutFooter']
NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
+ NLoadingBarProvider: typeof import('naive-ui')['NLoadingBarProvider']
NMenu: typeof import('naive-ui')['NMenu']
NMessageProvider: typeof import('naive-ui')['NMessageProvider']
NModal: typeof import('naive-ui')['NModal']
diff --git a/extra.d.ts b/extra.d.ts
index f97b363..2257723 100644
--- a/extra.d.ts
+++ b/extra.d.ts
@@ -3,4 +3,5 @@ declare module "vue3-video-play";
declare module "vue3-masonry-plus";
declare module "vite";
declare module "vue-devui/tag";
-declare module "es-toolkit";
\ No newline at end of file
+declare module "es-toolkit";
+declare module "nprogress";
\ No newline at end of file
diff --git a/package.json b/package.json
index 108f968..8e57695 100644
--- a/package.json
+++ b/package.json
@@ -40,6 +40,7 @@
"@vue/tsconfig": "^0.7.0",
"naive-ui": "^2.43.2",
"npm-run-all2": "^8.0.4",
+ "nprogress": "^0.2.0",
"typescript": "~5.8.0",
"vfonts": "^0.0.3",
"vite": "^7.0.6",
diff --git a/src/App.vue b/src/App.vue
index 4f2c539..03d6f6f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,6 @@