refactor: 完成项目目录重构与代码迁移
本次提交完成了整体项目的目录梳理与代码迁移: 1. 将根级controlplane、webhost等目录的代码迁移至desktop/对应子目录,统一桌面端架构 2. 移动并整理了插件目录结构,将插件统一放入根级plugins/ 3. 调整了前端项目的路径与配置,统一前后端开发构建流程 4. 清理了废弃的旧版app/目录与冗余的构建中间文件 5. 更新了.gitignore与README.md,适配新的项目结构
This commit is contained in:
@@ -0,0 +1,77 @@
|
||||
/* ============ 37du 内网插件控制面 全局基础样式(组件由 Naive UI 提供) ============ */
|
||||
:root {
|
||||
/* 设计令牌:文字 / 边框 / 表面 / 品牌色 / 投影 */
|
||||
--cp-ink: #141c33;
|
||||
--cp-ink-2: #5b6b8c;
|
||||
--cp-ink-3: #94a3c4;
|
||||
--cp-border: rgba(88, 113, 183, .14);
|
||||
--cp-surface: rgba(255, 255, 255, .82);
|
||||
--cp-blue: #3b6cff;
|
||||
--cp-cyan: #22c7e8;
|
||||
--cp-violet: #8b5cf6;
|
||||
--cp-card-shadow: 0 10px 30px -14px rgba(43, 64, 132, .20);
|
||||
--cp-card-shadow-hover: 0 18px 44px -18px rgba(59, 108, 255, .30);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body, #app { height: 100%; margin: 0; }
|
||||
|
||||
body {
|
||||
font-family: "HarmonyOS Sans SC", "Microsoft YaHei UI", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
|
||||
font-size: 13px;
|
||||
color: var(--cp-ink);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
background-color: #eaf0fb;
|
||||
/* 浅色极光画布:三层低透明光晕 + 渐变底 */
|
||||
background-image:
|
||||
radial-gradient(1100px 520px at 88% -10%, rgba(59, 108, 255, .14), transparent 60%),
|
||||
radial-gradient(900px 480px at -8% 108%, rgba(34, 199, 232, .12), transparent 55%),
|
||||
radial-gradient(760px 420px at 55% 118%, rgba(139, 92, 246, .10), transparent 60%),
|
||||
linear-gradient(180deg, #f4f7fd 0%, #e9eefb 100%);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
::selection { background: rgba(59, 108, 255, .18); }
|
||||
|
||||
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||||
::-webkit-scrollbar-thumb { background: #c8d2e8; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #b3c0de; background-clip: content-box; border: 2px solid transparent; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
||||
/* ---------- Naive 组件统一质感 ---------- */
|
||||
.n-card {
|
||||
--n-border-color: var(--cp-border);
|
||||
--n-color: rgba(255, 255, 255, .82);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
box-shadow: var(--cp-card-shadow);
|
||||
}
|
||||
.n-data-table {
|
||||
--n-border-color: rgba(88, 113, 183, .10);
|
||||
}
|
||||
|
||||
/* ---------- 共享页面工具类 ---------- */
|
||||
.page { max-width: 1280px; margin: 0 auto; }
|
||||
.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
|
||||
.page-head h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: .2px; color: var(--cp-ink); display: flex; align-items: center; gap: 10px; }
|
||||
.page-head h3 .badge {
|
||||
font-size: 11px; font-weight: 600; color: var(--cp-blue); letter-spacing: .6px;
|
||||
background: rgba(59, 108, 255, .10); border: 1px solid rgba(59, 108, 255, .18);
|
||||
padding: 2px 9px; border-radius: 20px;
|
||||
}
|
||||
.page-head p { margin: 0; font-size: 12.5px; color: var(--cp-ink-3); }
|
||||
.block { margin-bottom: 16px; }
|
||||
.dim { color: var(--cp-ink-3); }
|
||||
.who { color: var(--cp-blue); font-weight: 600; }
|
||||
|
||||
/* 卡片标题前的小渐变竖条 */
|
||||
.card-title { font-size: 15px; font-weight: 700; color: var(--cp-ink); display: flex; align-items: center; gap: 8px; }
|
||||
.card-title::before { content: ''; width: 4px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #3b6cff, #22c7e8); }
|
||||
|
||||
/* 表格单元格通用 */
|
||||
.cell-strong { font-weight: 700; color: var(--cp-ink); }
|
||||
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
|
||||
/* ---------- 动效 ---------- */
|
||||
@keyframes cp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
|
||||
.cp-rise { animation: cp-rise .5s cubic-bezier(.22, .61, .36, 1) both; }
|
||||
Reference in New Issue
Block a user