✨ feat: 重构管理后台并增强组件系统与回收站功能
* 新增自适应数值与窗口分析工具,提升交互体验 * 优化回收站模块逻辑,增加展示与选择功能 * 引入 Macaron 主题配置文件并更新 Tailwind 配置 * 精简基础组件代码,移除冗余样式与设置项 * 完善测试用例,覆盖 UI 系统与回收站工作流 * 更新多语言配置,支持功能变更后的文案需求
This commit is contained in:
1 parent
614b9a2104
commit
9b22534e2b
61 files changed
+1624
-832
No files matched your search
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div
|
||||
class="flex h-screen overflow-hidden flex-col transition-colors duration-300 lg:flex-row"
|
||||
:class="[isDarkMode ? 'bg-[#10191e]' : 'bg-[#dfe9eb]']"
|
||||
:class="[isDarkMode ? 'bg-[#252b34]' : 'bg-[#dfe9eb]']"
|
||||
>
|
||||
<button
|
||||
v-if="isSidebarOpen"
|
||||
@@ -17,7 +17,7 @@
|
||||
class="fixed inset-y-0 left-0 z-50 flex h-full w-64 shrink-0 transform flex-col border-r shadow-2xl lg:relative lg:h-screen lg:translate-x-0 lg:shadow-none"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'border-[#3d555f] bg-[#18282f]'
|
||||
? 'border-[#495765] bg-[#272e38]'
|
||||
: 'border-[#b8cbd0] bg-[#f9fcfc]',
|
||||
isSidebarOpen ? 'translate-x-0' : '-translate-x-full',
|
||||
'transition-transform duration-300 ease-in-out lg:transition-none'
|
||||
@@ -26,13 +26,13 @@
|
||||
<!-- Logo区域 -->
|
||||
<div
|
||||
class="flex items-center justify-between h-16 px-4 border-b"
|
||||
:class="[isDarkMode ? 'border-[#3d555f]' : 'border-[#c8d7da]']"
|
||||
:class="[isDarkMode ? 'border-[#495765]' : 'border-[#c8d7da]']"
|
||||
>
|
||||
<div class="flex items-center">
|
||||
<div
|
||||
class="rounded-full bg-gradient-to-r from-[#6f98a6] via-[#8eaaa8] to-[#b7b2a1] p-1 animate-spin-slow"
|
||||
>
|
||||
<div class="rounded-full p-1" :class="[isDarkMode ? 'bg-[#18282f]' : 'bg-white']">
|
||||
<div class="rounded-full p-1" :class="[isDarkMode ? 'bg-[#272e38]' : 'bg-white']">
|
||||
<BoxIcon
|
||||
class="w-6 h-6"
|
||||
:class="[isDarkMode ? 'text-[#b9dbe2]' : 'text-[#356b7d]']"
|
||||
@@ -47,7 +47,7 @@
|
||||
{{ t('common.appName') }}
|
||||
</h1>
|
||||
</div>
|
||||
<button type="button" :aria-label="t('common.closeMenu')" :title="t('common.closeMenu')" @click="closeSidebar" class="flex h-11 w-11 items-center justify-center rounded-lg transition-colors lg:hidden" :class="[isDarkMode ? 'hover:bg-[#294047]' : 'hover:bg-[#e5eff1]']">
|
||||
<button type="button" :aria-label="t('common.closeMenu')" :title="t('common.closeMenu')" @click="closeSidebar" class="fcb-action fcb-icon-action flex h-11 w-11 items-center justify-center rounded-lg transition-colors lg:hidden" :class="[isDarkMode ? 'hover:bg-[#333d49]' : 'hover:bg-[#e5eff1]']">
|
||||
<XIcon class="w-6 h-6" :class="[isDarkMode ? 'text-[#d7e6e9]' : 'text-[#294b56]']" />
|
||||
</button>
|
||||
</div>
|
||||
@@ -78,10 +78,10 @@
|
||||
</nav>
|
||||
|
||||
<!-- 退出登录按钮 -->
|
||||
<div class="p-4 border-t" :class="[isDarkMode ? 'border-[#3d555f]' : 'border-[#c8d7da]']">
|
||||
<div class="p-4 border-t" :class="[isDarkMode ? 'border-[#495765]' : 'border-[#c8d7da]']">
|
||||
<button
|
||||
@click="handleLogout"
|
||||
class="flex min-h-11 w-full items-center rounded-lg p-2 transition-colors duration-200"
|
||||
class="fcb-action flex min-h-11 w-full items-center rounded-lg p-2 transition-colors duration-200"
|
||||
:class="[
|
||||
isDarkMode
|
||||
? 'text-[#d0dee1] hover:bg-[#223942] hover:text-white'
|
||||
@@ -99,10 +99,10 @@
|
||||
<!-- Header -->
|
||||
<header
|
||||
class="h-14 border-b shadow-md transition-colors duration-300 lg:hidden"
|
||||
:class="[isDarkMode ? 'bg-[#1a2930] border-[#31454d]' : 'bg-[#f2f6f5] border-[#c8d7da]']"
|
||||
:class="[isDarkMode ? 'bg-[#2c3440] border-[#495765]' : 'bg-[#f2f6f5] border-[#c8d7da]']"
|
||||
>
|
||||
<div class="flex h-14 items-center justify-between px-4">
|
||||
<button ref="menuButtonRef" type="button" :aria-label="t('common.openMenu')" :title="t('common.openMenu')" :aria-expanded="isSidebarOpen" @click="openSidebar" class="flex h-11 w-11 items-center justify-center rounded-lg lg:hidden">
|
||||
<button ref="menuButtonRef" type="button" :aria-label="t('common.openMenu')" :title="t('common.openMenu')" :aria-expanded="isSidebarOpen" @click="openSidebar" class="fcb-action fcb-icon-action flex h-11 w-11 items-center justify-center rounded-lg lg:hidden">
|
||||
<MenuIcon class="w-6 h-6" :class="[isDarkMode ? 'text-gray-400' : 'text-gray-600']" />
|
||||
</button>
|
||||
</div>
|
||||
@@ -111,7 +111,7 @@
|
||||
<!-- Content -->
|
||||
<main
|
||||
class="min-h-0 flex-1 overflow-y-auto transition-colors duration-300 custom-scrollbar"
|
||||
:class="[isDarkMode ? 'bg-[#10191e]' : 'bg-[#dfe9eb]']"
|
||||
:class="[isDarkMode ? 'bg-[#252b34]' : 'bg-[#dfe9eb]']"
|
||||
>
|
||||
<router-view />
|
||||
</main>
|
||||
|
||||
Reference in new issue
Block a user