feat(admin-ui): 管理后台整体切换为浅色主题(ModernLight) + 新增 lightbulb 图标
1. layout(管理控制台 dashboard.vue): main bg-[#09090b] text-zinc-100 → bg-[#f8fafc] text-zinc-900; header bg-zinc-950/60 border-zinc-800 → bg-white/80 border-zinc-200; 移动菜单按钮/新手引导按钮 text-zinc-300/400 hover:bg-zinc-800 → text-zinc-600 hover:bg-zinc-100 border-zinc-200
2. Admin/Sidebar.vue: bg-[#09090b] border-zinc-800 → bg-white border-zinc-200 + shadow-sm; 标题 text-zinc-100 → 900; activeTab bg-blue-600/10 text-blue-400 → bg-blue-50 text-blue-700 border-blue-200; 未选中 text-zinc-500 hover:text-zinc-200 hover:bg-zinc-800/40 → text-zinc-600 hover:text-zinc-900 hover:bg-zinc-100; 用户卡 avatar/首字母 bg-white/70 border-zinc-200 + 退出按钮 hover:bg-red-50 text-red-600
3. 批量 33 个 Admin 组件硬编码深色原子类 1414 处替换(bg-zinc-9xx / border-zinc-8xx / text-zinc-100,200,300 / shadow-black/ -> 对应 light 版本) + style 块原生 CSS rgba(255,255,255,x) 16 处改为 rgba(0,0,0,x) / var 浅色主题 + 硬编码 bg-[#0c0c0e] / border-white/10 / color:white / surface-primary fallback 对应浅色修正
4. 二轮批量追加: bg-zinc-950 + opacity 变体(80/60/50/40/30/20/10) 共 431 处 → bg-white 对应 opacity 版本;placeholder:text-zinc-800 → 500;text-blue/red/emerald/amber/rose/purple 400 版 → 700/600 深浅一致版;border color /500 /30 → 200;focus:ring /20 → /30;shadow color 阴影降低强度
5. hover:text-white 扫尾: 13 处 DataAnalysisPanel/DatabaseManager/NotificationSender/SemesterManager/SongManagement/UserSongsModal hover 文本从 white → zinc-900;按钮三态从 hover:bg-*600 白字 → hover:bg-*-100/200 对应深字色,和前台 indigo/浅色体系保持一致
6. BlacklistManager 前台可见提示 💡→ <Icon lightbulb amber-600 size=13>;ChangelogManager 徽章色从 emerald-300/blue-300/zinc-400 → emerald-700/blue-700/zinc-600 可读;Icon.vue 新增 lightbulb 分支 stroke 图标
7. 受影响文件: dashboard.vue + Sidebar.vue + Icon.vue + Admin/* (33个组件共 1874 处批量替换 + 20 处手工精细化修正)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="relative bg-zinc-900/50 border border-zinc-800/50 rounded-xl p-1 overflow-hidden">
|
||||
<div class="relative bg-zinc-50/50 border border-zinc-200 rounded-xl p-1 overflow-hidden">
|
||||
<!-- 简化版多选日期显示 -->
|
||||
<div class="flex items-center justify-between px-2.5 py-1.5" @click="toggleCalendar" style="cursor: pointer">
|
||||
<div class="flex items-center gap-2.5 min-w-0 flex-1">
|
||||
@@ -10,7 +10,7 @@
|
||||
<span class="text-[10px] font-bold leading-none opacity-80">天</span>
|
||||
</div>
|
||||
<div class="flex flex-col min-w-0 flex-1">
|
||||
<span class="text-xs font-bold text-zinc-200 truncate">
|
||||
<span class="text-xs font-bold text-zinc-700 truncate">
|
||||
{{ modelValue.length ? modelValue.slice(0, 3).join('、') + (modelValue.length > 3 ? ` 等${modelValue.length}天` : '') : '未选择日期' }}
|
||||
</span>
|
||||
<span class="text-[10px] text-zinc-500 font-medium leading-tight truncate">
|
||||
@@ -19,13 +19,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center border-l border-zinc-800 pl-2 ml-2 shrink-0">
|
||||
<button class="p-1.5 text-zinc-500 hover:text-emerald-400 transition-colors" title="跳转到今天" @click.stop="scrollToToday">
|
||||
<div class="flex items-center border-l border-zinc-200 pl-2 ml-2 shrink-0">
|
||||
<button class="p-1.5 text-zinc-500 hover:text-emerald-700 transition-colors" title="跳转到今天" @click.stop="scrollToToday">
|
||||
<CircleDot class="w-4 h-4" />
|
||||
</button>
|
||||
<button
|
||||
class="p-1.5 text-zinc-500 hover:text-blue-400 transition-colors"
|
||||
:class="{ 'text-blue-400': showCalendar }"
|
||||
class="p-1.5 text-zinc-500 hover:text-blue-700 transition-colors"
|
||||
:class="{ 'text-blue-700': showCalendar }"
|
||||
title="打开月历"
|
||||
>
|
||||
<CalendarIcon class="w-4 h-4" />
|
||||
@@ -35,19 +35,19 @@
|
||||
|
||||
<!-- 扩展面板:快捷批量 + 月历 -->
|
||||
<Transition name="expand">
|
||||
<div v-if="showCalendar" class="border-t border-zinc-800/60 mt-1 pt-2 px-2 pb-2 space-y-3">
|
||||
<div v-if="showCalendar" class="border-t border-zinc-200/60 mt-1 pt-2 px-2 pb-2 space-y-3">
|
||||
<!-- 批量操作按钮 -->
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<span class="text-[10px] font-black text-zinc-600 uppercase tracking-widest px-1">批量选择</span>
|
||||
<button
|
||||
v-for="b in batchActions"
|
||||
:key="b.label"
|
||||
class="px-2.5 py-1.5 rounded-lg text-[11px] font-bold bg-zinc-900 border border-zinc-800 text-zinc-400 hover:text-zinc-200 hover:border-zinc-700 transition-all"
|
||||
class="px-2.5 py-1.5 rounded-lg text-[11px] font-bold bg-white border border-zinc-200 text-zinc-400 hover:text-zinc-700 hover:border-zinc-200 transition-all"
|
||||
@click="applyBatchAction(b.action)"
|
||||
>
|
||||
{{ b.label }}
|
||||
</button>
|
||||
<div class="w-px h-4 bg-zinc-800 mx-1" />
|
||||
<div class="w-px h-4 bg-zinc-100 mx-1" />
|
||||
<button
|
||||
class="px-2.5 py-1.5 rounded-lg text-[11px] font-bold bg-red-500/10 border border-red-500/20 text-red-400 hover:text-red-300 hover:bg-red-500/15 transition-all"
|
||||
@click="clearAll"
|
||||
@@ -63,33 +63,33 @@
|
||||
</div>
|
||||
|
||||
<!-- 月历网格 -->
|
||||
<div class="bg-zinc-950/60 border border-zinc-800 rounded-xl p-3">
|
||||
<div class="bg-white/80 border border-zinc-200 rounded-xl p-3">
|
||||
<div class="flex items-center justify-between mb-3 px-1">
|
||||
<button
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-200 rounded-lg hover:bg-zinc-800 transition-colors"
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-700 rounded-lg hover:bg-zinc-100 transition-colors"
|
||||
@click="calendarMonth--"
|
||||
>
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><polyline points="15,18 9,12 15,6" /></svg>
|
||||
</button>
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-sm font-black text-zinc-200">{{ calendarYear }}年</span>
|
||||
<span class="text-sm font-black text-zinc-700">{{ calendarYear }}年</span>
|
||||
<select
|
||||
v-model="calendarMonth"
|
||||
class="bg-zinc-900 border border-zinc-800 rounded-lg px-2 py-1 text-sm font-black text-zinc-200 focus:outline-none focus:border-blue-500/50"
|
||||
class="bg-white border border-zinc-200 rounded-lg px-2 py-1 text-sm font-black text-zinc-700 focus:outline-none focus:border-blue-500/50"
|
||||
>
|
||||
<option v-for="m in 12" :key="m" :value="m - 1">{{ m }}月</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="flex items-center gap-1">
|
||||
<button
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-200 rounded-lg hover:bg-zinc-800 transition-colors"
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-700 rounded-lg hover:bg-zinc-100 transition-colors"
|
||||
@click="goToday"
|
||||
title="回到本月"
|
||||
>
|
||||
<CircleDot class="w-3.5 h-3.5" />
|
||||
</button>
|
||||
<button
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-200 rounded-lg hover:bg-zinc-800 transition-colors"
|
||||
class="p-1.5 text-zinc-500 hover:text-zinc-700 rounded-lg hover:bg-zinc-100 transition-colors"
|
||||
@click="calendarMonth++"
|
||||
>
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><polyline points="9,18 15,12 9,6" /></svg>
|
||||
@@ -116,9 +116,9 @@
|
||||
'relative aspect-square rounded-lg flex items-center justify-center text-sm font-bold transition-all',
|
||||
!cell.inMonth ? 'text-zinc-800 cursor-default' : '',
|
||||
cell.inMonth && !isSelected(cell.dateStr) && !cell.isToday
|
||||
? 'text-zinc-400 hover:bg-zinc-800 hover:text-zinc-200' : '',
|
||||
? 'text-zinc-400 hover:bg-zinc-100 hover:text-zinc-700' : '',
|
||||
cell.inMonth && !isSelected(cell.dateStr) && cell.isToday
|
||||
? 'text-emerald-400 ring-1 ring-emerald-500/40 hover:bg-zinc-800' : '',
|
||||
? 'text-emerald-700 ring-1 ring-emerald-500/40 hover:bg-zinc-100' : '',
|
||||
isSelected(cell.dateStr)
|
||||
? 'bg-blue-600 text-white shadow-lg shadow-blue-900/20' : '',
|
||||
cell.isRangeMiddle && !isSelected(cell.dateStr)
|
||||
|
||||
Reference in New Issue
Block a user