feat: 重构进度条与键盘快捷键帮助功能

* 移除 `nprogress` 依赖,替换为自定义进度条,使用 `anime.js` 实现更流畅的加载效果。
* 在 `index.html` 中优化主题检测与背景样式,提升用户体验。
* 添加键盘快捷键帮助面板,增强用户交互,支持通过快捷键显示/隐藏。
* 更新多个组件以集成新的键盘帮助功能,确保一致性和可用性。
* 优化 UI 状态管理,支持会话状态的恢复与清除,提升用户体验。
This commit is contained in:
AdingApkgg
2025-12-21 11:30:04 +08:00
parent 6e170c579c
commit c46517da8b
15 changed files with 765 additions and 356 deletions

View File

@@ -1,106 +0,0 @@
/* NProgress - 艳粉主题进度条 */
#nprogress {
pointer-events: none;
}
/* 进度条 */
#nprogress .bar {
background: linear-gradient(90deg, #ff1493, #d946ef, #ff69b4, #ff1493);
background-size: 300% 100%;
animation: gradient-flow 2s linear infinite;
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100%;
height: 3px;
box-shadow:
0 0 10px rgba(255, 20, 147, 0.7),
0 0 20px rgba(217, 70, 239, 0.5),
0 0 30px rgba(255, 105, 180, 0.3);
}
/* 渐变流动动画 */
@keyframes gradient-flow {
0% {
background-position: 0% 50%;
}
100% {
background-position: 300% 50%;
}
}
/* 旋转指示器(右上角) */
#nprogress .spinner {
display: block;
position: fixed;
z-index: 9999;
top: 16px;
right: 16px;
}
#nprogress .spinner-icon {
width: 20px;
height: 20px;
box-sizing: border-box;
border: 2px solid transparent;
border-top-color: #ff1493;
border-left-color: #d946ef;
border-radius: 50%;
animation: nprogress-spinner 0.6s linear infinite;
}
@keyframes nprogress-spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* 进度条末端发光效果 */
#nprogress .peg {
display: block;
position: absolute;
right: 0;
width: 100px;
height: 100%;
box-shadow:
0 0 10px #ff1493,
0 0 5px #ff1493;
opacity: 1;
transform: rotate(3deg) translate(0px, -4px);
}
/* 暗色模式增强 */
.dark #nprogress .bar {
box-shadow:
0 0 15px rgba(255, 20, 147, 0.9),
0 0 30px rgba(217, 70, 239, 0.7),
0 0 45px rgba(255, 105, 180, 0.5);
}
.dark #nprogress .spinner-icon {
border-top-color: #ff69b4;
border-left-color: #e879f9;
}
/* 移动端优化 */
@media (max-width: 640px) {
#nprogress .bar {
height: 2px;
}
#nprogress .spinner {
top: 12px;
right: 12px;
}
#nprogress .spinner-icon {
width: 16px;
height: 16px;
}
}