feat: 迁移自定义功能至 1.5.9.9 版本

包含音乐源限制、CI 防 OOM 优化、数据库连接池优化、管理端权限及 UI 细节定制等功能
This commit is contained in:
2026-09-12 19:26:42 +08:00
parent 34f0679117
commit 1106aeea6c
161 changed files with 18963 additions and 27900 deletions
+17 -20
View File
@@ -9,9 +9,9 @@
<Transition name="entry" appear>
<div v-show="active" class="content">
<span class="badge">{{ yearReview.firstSongBadge }}</span>
<span class="badge">初次相遇</span>
<p class="text-intro">{{ yearReview.firstSongIntro }}</p>
<p class="text-intro">这一年,你点的<span class="highlight">第一首歌</span>是</p>
<div class="vinyl-container">
<div class="vinyl-record">
@@ -53,17 +53,14 @@
</template>
<script setup>
import { useLocale } from '~/utils/locale'
defineProps({
data: Object,
active: Boolean
})
const { yearReview } = useLocale()
const formatDate = (dateStr) => {
const date = new Date(dateStr)
return yearReview.value.date(date.getMonth() + 1, date.getDate())
return `${date.getMonth() + 1}月${date.getDate()}日`
}
</script>
@@ -77,7 +74,7 @@ const formatDate = (dateStr) => {
align-items: center;
justify-content: center;
overflow: hidden;
background-color: var(--bg-primary);
background-color: var(--bg-primary, #111111);
}
.bg-blur {
@@ -105,25 +102,25 @@ const formatDate = (dateStr) => {
display: inline-block;
padding: 0.25rem 1rem;
border-radius: 9999px;
border: 1px solid var(--overlay-20);
background: var(--overlay-5);
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(12px);
font-size: 0.875rem;
margin-bottom: 1.5rem;
letter-spacing: 0.1em;
color: var(--color-pink); /* brand-pink */
color: #f472b6; /* brand-pink */
font-weight: 600;
}
.text-intro {
font-size: 1.5rem;
color: var(--text-primary-lighter);
color: #d1d5db;
font-weight: 300;
margin-bottom: 2rem;
}
.highlight {
color: var(--text-primary);
color: var(--text-primary, #ffffff);
font-weight: 700;
margin: 0 0.5rem;
}
@@ -142,9 +139,9 @@ const formatDate = (dateStr) => {
height: 100%;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 25px 50px -12px var(--mask-50);
border: 1px solid var(--overlay-10);
background: var(--panel-bg-dark);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.1);
background: var(--bg-secondary, #111827);
display: flex;
align-items: center;
justify-content: center;
@@ -162,13 +159,13 @@ const formatDate = (dateStr) => {
}
.placeholder-icon {
color: var(--text-muted);
color: #4b5563;
}
.glossy-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top right, var(--overlay-10), transparent);
background: linear-gradient(to top right, rgba(255, 255, 255, 0.1), transparent);
pointer-events: none;
}
@@ -184,12 +181,12 @@ const formatDate = (dateStr) => {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-primary);
color: var(--text-primary, #ffffff);
}
.song-artist {
font-size: 1.125rem;
color: var(--text-muted);
color: #9ca3af;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -198,7 +195,7 @@ const formatDate = (dateStr) => {
.date-text {
margin-top: 2rem;
font-size: 1.125rem;
color: var(--text-muted);
color: #9ca3af;
font-family:
'MiSans',
system-ui,