Skip to content

Commit 3cee5c3

Browse files
committed
删除没用的内容并且不知道发生了什么
1 parent 64c0485 commit 3cee5c3

File tree

4 files changed

+43
-472
lines changed

4 files changed

+43
-472
lines changed

docs/.vitepress/config.mts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ export default defineConfig({
3535
{ text: '⚙️ 设置',
3636
items: [
3737
{ text: '🔑 基本设置', link: '/settings/basic' },
38-
{ text: '🔒 高级设置', link: '/settings/advanced' },
39-
{ text: '🔌 插件管理', link: '/settings/plugins' },
40-
{ text: '🔗 URL协议', link: '/settings/url' },
41-
{ text: '🛡️ 进程守护', link: '/settings/keep_alive' }
38+
//{ text: '🔒 高级设置', link: '/settings/advanced' },
39+
{ text: '🔗 URL协议', link: '/settings/url' }
4240
]
4341
},
4442
{ text: '🆘 支持与资源',
@@ -77,8 +75,7 @@ export default defineConfig({
7775
collapsed: true,
7876
items: [
7977
{ text: '🔑 基本设置', link: '/settings/basic' },
80-
{ text: '🔒 高级设置', link: '/settings/advanced' },
81-
{ text: '🔌 插件管理', link: '/settings/plugins' },
78+
//{ text: '🔒 高级设置', link: '/settings/advanced' },
8279
{ text: '🔗 URL协议', link: '/settings/url' }
8380
]
8481
},

docs/.vitepress/theme/components/TeamCard.vue

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,44 @@ export default {
2626
"叶背影(创意&文档)",
2727
"Jursin(前端页面设计&文档)"
2828
];
29-
this.setupTypingEffect('typing-text', 'cursor', texts)
29+
this.setupTypingEffect('typing-text', 'cursor', texts);
30+
this.startRainbowColorAnimation('typing-text');
3031
}
3132
},
3233
methods: {
34+
startRainbowColorAnimation(textElId) {
35+
const rainbowColors = [
36+
'#FF0000', //
37+
'#FF7F00', //
38+
'#FFFF00', //
39+
'#00FF00', // 绿
40+
'#0000FF', //
41+
'#4B0082', //
42+
'#9400D3' //
43+
];
44+
45+
const targetName = '黎泽懿 Aionflux';
46+
const typingEl = document.getElementById(textElId);
47+
48+
if (!typingEl) return;
49+
50+
let colorIndex = 0;
51+
let lastText = '';
52+
53+
const colorChangeInterval = setInterval(() => {
54+
const currentText = typingEl.textContent;
55+
56+
// 只在文字包含目标名字时更新颜色
57+
if (currentText.includes(targetName)) {
58+
const html = currentText.replace(
59+
targetName,
60+
`<span class="rainbow-name" style="color: ${rainbowColors[colorIndex]}">${targetName}</span>`
61+
);
62+
typingEl.innerHTML = html;
63+
colorIndex = (colorIndex + 1) % rainbowColors.length;
64+
}
65+
}, 600);
66+
},
3367
setupTypingEffect(textElId, cursorElId, texts, typingSpeed = 100, deletingSpeed = 50) {
3468
const PAUSE_AFTER = 2000;
3569
const NEXT_DELAY = 500;
@@ -134,6 +168,11 @@ export default {
134168
animation: blink 1s steps(2, start) infinite;
135169
}
136170
171+
.rainbow-name {
172+
font-weight: 600;
173+
transition: color 0.5s ease-in-out;
174+
}
175+
137176
@keyframes blink {
138177
0%, 100% { opacity: 1; }
139178
50% { opacity: 0; }

docs/settings/keep_alive.md

Lines changed: 0 additions & 282 deletions
This file was deleted.

0 commit comments

Comments
 (0)