Skip to content

Commit 9baece7

Browse files
committed
更新依赖,修改主页
1 parent 0c4ec83 commit 9baece7

7 files changed

Lines changed: 973 additions & 841 deletions

File tree

docs/.vuepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default defineUserConfig({
101101
// },
102102
// chartjs: true, // 启用 chart.js
103103
// echarts: true, // 启用 ECharts
104-
mermaid: true, // 启用 mermaid
104+
// mermaid: true, // 启用 mermaid
105105
// flowchart: true, // 启用 flowchart
106106
image: {
107107
// figure: true, // 启用 figure

docs/.vuepress/navbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { defineNavbarConfig } from 'vuepress-theme-plume'
99
export default defineNavbarConfig([
1010
{ text: '主页', icon: 'mdi:home', link: '/' },
1111
{ text: '博客', icon: 'mdi:blog', link: '/blog/' },
12-
{ text: '技术', icon: 'mdi:code-tags', link: '/tech' },
12+
{ text: '技能', icon: 'mdi:code-tags', link: '/skills' },
1313
{ text: '友链', icon: 'mdi:link', link: '/friends' },
1414
{
1515
text: '我的网站',

docs/blog/um-cli-android.md

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -47,69 +47,3 @@ um -i /storage/emulated/0/Download/KuGouLite/Music -o /storage/emulated/0/Music
4747
::: tip
4848
`-i` 参数指定你要解锁的歌曲目录,`-o` 参数指定你要输出的歌曲目录。
4949
:::
50-
51-
## 扩展
52-
下面是我自用的一个脚本,可以自动解锁酷狗概念版下载的歌曲并输出到指定目录,再自动删除源文件:
53-
54-
```bash title="um.sh"
55-
#!/bin/bash
56-
57-
source_dir="/storage/emulated/0/Download/KuGouLite/Music/"
58-
destination="/storage/emulated/0/Music/"
59-
60-
for file in "$source_dir"*; do
61-
timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
62-
warning="\033[1;33mWARNING\033[0m"
63-
64-
if [[ "$file" == *.kgm.flac ]]; then
65-
new_file="${file//_HQ/}"
66-
new_file="${new_file//_SQ/}"
67-
new_file="${new_file//.kgm.flac/.kgm}"
68-
mv -- "$file" "$new_file"
69-
um -i "$new_file" -o "$destination"
70-
rm "$new_file"
71-
echo -e "$timestamp $warning successfully removed \"$new_file\""
72-
elif [[ "$file" == *.mp3 ]]; then
73-
new_file="${file//_HQ/}"
74-
new_file="${new_file//_SQ/}"
75-
if [[ "$file" != "$new_file" ]]; then
76-
mv -- "$file" "$new_file"
77-
file="$new_file"
78-
fi
79-
mv -- "$file" "$destination"
80-
echo -e "$timestamp $warning successfully moved \"$file\" to \"$destination$(basename "$file")\""
81-
fi
82-
done
83-
```
84-
85-
```mermaid
86-
---
87-
title: 脚本流程图
88-
---
89-
flowchart TD
90-
A([开始]) --> B[设置源目录和目标目录]
91-
B --> C[遍历源目录所有文件]
92-
C --> D{文件是.kgm.flac格式?}
93-
94-
D -->|| E[移除_HQ和_SQ后缀<br>将.kgm.flac改为.kgm]
95-
E --> F[执行重命名文件]
96-
F --> G[使用um命令解锁文件并输出到目标目录]
97-
G --> H[删除重命名后的加密文件]
98-
H --> I[输出删除成功日志]
99-
100-
D -->|| J{文件是.mp3格式?}
101-
102-
J -->|| K[移除_HQ和_SQ后缀<br>重命名文件]
103-
K --> L[移动处理后的文件到目标目录]
104-
L --> M[输出移动成功日志]
105-
106-
J -->|| N[跳过处理<br>不记录日志]
107-
108-
I --> O[继续下一个文件]
109-
M --> O
110-
N --> O
111-
112-
O --> P{还有更多文件?}
113-
P -->|| C
114-
P -->|| Q([结束])
115-
```

docs/index.md

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,6 @@ pageLayout: page
2525
<span style="color: var(--vp-c-text-1);">Jursin</span>
2626
<span class="cursor">_</span>
2727
</div>
28-
<div class="tags-container">
29-
<span class="tag">
30-
<Icon name="mdi:location" width="16" height="16" />
31-
湖北荆州
32-
</span>
33-
<span class="tag">
34-
<Icon name="ep:school" width="16" height="16" />
35-
长江大学
36-
</span>
37-
</div>
38-
<p class="career">
39-
<mark class="vp-mark-visible" style=" margin-right: 0.5rem;">大学生</mark>
40-
<mark class="important vp-mark-visible">前端入门者</mark>
41-
</p>
42-
<p class="desc">若想梦想实现,先从梦中醒来。</p>
4328
<blockquote>
4429
<p class="hitokoto">
4530
<span id="hitokoto_text">一言加载中…</span>
@@ -49,8 +34,14 @@ pageLayout: page
4934
<a href="https://github.com/Jursin" target="_blank"><Icon name="mdi:github" /></a>
5035
<a href="https://space.bilibili.com/1575907920" target="_blank"><Icon name="mingcute:bilibili-line" color="#F9709A" /></a>
5136
<a href="https://t.me/Hello_Jursin" target="_blank"><Icon name="mingcute:telegram-fill" color="#62B8EB" /></a>
52-
<a href="jursin@126.com" target="_blank"><Icon name="mdi:email-outline" color="#177F41" /></a>
37+
<a href="mailto:jursin@126.com" target="_blank"><Icon name="mdi:email-outline" color="#177F41" /></a>
5338
<a href="https://forum.smart-teach.cn/u/Jursin" target="_blank"><img src="/icon/SmartTeach.svg" alt="SmartTeach" class="social-icon"></a>
39+
</div>
40+
<div class="actions">
41+
<div class="action">
42+
<VPButton text="博客" icon="mdi:blog" href="/blog/" theme="alt" />
43+
<VPButton text="技能" icon="mdi:code-tags" href="/skills" theme="alt" />
44+
</div>
5445
</div>
5546
</div>
5647
</div>
@@ -174,39 +165,10 @@ pageLayout: page
174165
line-height: 1.2;
175166
}
176167

177-
.tags-container {
178-
display: flex;
179-
gap: 0.4rem;
180-
margin-bottom: 0.8rem;
181-
}
182-
183-
.tag {
184-
padding: 7px 10px;
185-
background: var(--vp-c-bg-soft);
186-
border-radius: 8px;
187-
font-size: 16px;
188-
display: inline-flex;
189-
align-items: center;
190-
gap: 0.3rem;
191-
}
192-
193168
.vp-icon {
194169
margin: 0 !important;
195170
}
196171

197-
.career {
198-
margin: 0 0 1rem;
199-
font-size: 22px;
200-
color: var(--vp-c-text-2);
201-
}
202-
203-
.desc {
204-
font-size: 20px;
205-
color: var(--vp-c-text-1);
206-
padding-left: 16px;
207-
border-left: 3px solid var(--vp-c-brand-1);
208-
}
209-
210172
.info > blockquote {
211173
background-color: var(--vp-c-bg-soft);
212174
}
@@ -247,6 +209,21 @@ pageLayout: page
247209
transform: scale(1.1);
248210
}
249211

212+
.actions {
213+
display: flex;
214+
justify-content: flex-start;
215+
margin-top: 1rem;
216+
}
217+
218+
.action {
219+
display: flex;
220+
gap: 0.25rem;
221+
}
222+
223+
.action :deep(.vp-button) {
224+
text-decoration: none;
225+
}
226+
250227
@media screen and (max-width: 768px) {
251228
.home {
252229
flex-direction: column;
@@ -269,6 +246,9 @@ pageLayout: page
269246
justify-content: center;
270247
align-items: center;
271248
}
249+
.actions {
250+
justify-content: center;
251+
}
272252
}
273253
</style>
274254

docs/tech.md renamed to docs/skills.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 技术
2+
title: 技能
33
aside: false
44
editLink: false
55
copyright: false

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "1.0.0",
55
"description": "",
6-
"packageManager": "pnpm@10.28.2",
6+
"packageManager": "pnpm@10.29.3",
77
"author": "Jursin <jursin@126.com>",
88
"license": "MIT",
99
"scripts": {
@@ -14,17 +14,16 @@
1414
"vp-update": "pnpm dlx vp-update"
1515
},
1616
"devDependencies": {
17-
"@iconify/json": "^2.2.432",
17+
"@iconify/json": "^2.2.439",
1818
"@vuepress/bundler-vite": "2.0.0-rc.26",
1919
"@vuepress/plugin-feed": "2.0.0-rc.121",
20-
"@waline/client": "^3.8.0",
20+
"@waline/client": "^3.9.0",
2121
"http-server": "^14.1.1",
22-
"mermaid": "^11.12.2",
2322
"swiper": "^12.1.0",
2423
"typescript": "^5.9.3",
25-
"vue": "^3.5.27",
24+
"vue": "^3.5.28",
2625
"vuepress": "2.0.0-rc.26",
27-
"vuepress-theme-plume": "1.0.0-rc.187",
26+
"vuepress-theme-plume": "1.0.0-rc.188",
2827
"postprocessing": "^6.38.2",
2928
"three": "^0.182.0"
3029
},

0 commit comments

Comments
 (0)