重命名前端目录

This commit is contained in:
yml2213
2026-07-07 19:55:18 +08:00
parent 8268a3b906
commit dbcb5a4979
182 changed files with 7019 additions and 7017 deletions
@@ -1,238 +0,0 @@
/* ============================================================
管理员配置页面共享结构样式
引入: AdminKuaishouCloudFulfillment.css
各页面自行覆盖颜色、圆角、主题属性
============================================================ */
/* ---------- 分区标题 ---------- */
.section-title-row {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
}
.section-title-row h3 {
margin: 0;
}
.section-title-row p {
margin: 6px 0 0;
}
/* ---------- 头部工具 ---------- */
.section-header-tools,
.section-mini-stats,
.section-action-group {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.section-header-tools {
justify-content: flex-end;
}
/* ---------- 卡片容器 ---------- */
.overview-card,
.table-card,
.empty-block,
.error-copy {
padding: 16px;
background: rgba(255, 255, 255, 0.94);
border: 1px solid rgba(86, 108, 138, 0.1);
}
.table-card--dense {
padding: 14px 16px 16px;
}
.overview-card {
display: grid;
gap: 12px;
}
/* ---------- 概览文件 & 统计 ---------- */
.overview-file {
display: grid;
gap: 6px;
}
.overview-file code {
display: inline-flex;
width: 100%;
max-width: 100%;
padding: 8px 12px;
border-radius: 14px;
word-break: break-all;
}
.overview-stats {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
}
.overview-stat {
display: grid;
gap: 4px;
padding: 12px 14px;
background: #f8fafc;
border: 1px solid rgba(148, 163, 184, 0.14);
}
.overview-stat span {
font-size: var(--text-xs);
font-weight: 700;
}
.overview-stat strong {
line-height: 1.1;
}
.overview-notes {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
/* ---------- 分区工具 ---------- */
.section-title-row--tight {
align-items: center;
}
/* ---------- 字段块 ---------- */
.field-block {
min-width: 0;
display: grid;
gap: 6px;
}
.field-block span {
font-size: var(--text-xs);
font-weight: 700;
}
.field-block--action {
align-content: end;
}
.field-block--action :deep(.el-button) {
width: 100%;
}
.field-help {
font-size: var(--text-xs);
line-height: 1.5;
}
/* ---------- 文本输入 ---------- */
.text-input {
width: 100%;
border-radius: 14px;
}
/* ---------- 校验 & 错误 ---------- */
.validation-banner,
.binding-inline-error {
margin: 10px 0 0;
padding: 10px 12px;
border-radius: 14px;
font-weight: 600;
}
.binding-inline-error {
font-size: var(--text-sm);
}
/* ---------- 数据表 (用于 el-table,具体单元格样式见各页面 :deep() 规则) ---------- */
.data-table--config {
width: 100%;
margin-top: 12px;
}
.cell-stack--config {
display: grid;
gap: 4px;
}
.cell-subtle {
font-size: var(--text-xs);
}
/* ---------- 绑定卡片 ---------- */
.binding-card {
margin-top: 12px;
padding: 14px;
background: #f8fafc;
border: 1px solid rgba(148, 163, 184, 0.18);
}
.binding-card--invalid {
border-color: rgba(220, 38, 38, 0.3);
box-shadow: 0 0 0 4px rgba(254, 226, 226, 0.85);
}
.binding-header {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: flex-start;
margin-bottom: 10px;
}
.binding-summary {
display: grid;
gap: 4px;
}
.binding-title-row {
display: flex;
gap: 10px;
align-items: center;
flex-wrap: wrap;
}
.binding-subtle {
font-size: var(--text-sm);
}
/* ---------- 状态标签 ---------- */
.binding-status-chip {
display: inline-flex;
align-items: center;
border-radius: var(--radius-full);
padding: 2px 10px;
background: #fff1f2;
color: #be123c;
font-size: var(--text-xs);
font-weight: 700;
}
.binding-status-chip--done {
background: #ecfdf3;
color: #027a48;
}
.binding-collapsed-preview {
display: grid;
gap: 6px;
}
/* ---------- 操作栏 ---------- */
.binding-actions {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
}
/* ---------- 工具栏提示 ---------- */
.toolbar-hint {
margin: 10px 0 0;
font-size: var(--text-xs);
}
.mt-4 {
margin-top: 16px;
}
@@ -1,302 +0,0 @@
/* ============================================================
管理员列表页共享样式
引入: AdminOrdersView, AdminTasksView, AdminUsersView
各页面自行覆盖 grid-template-columns 等布局差异
============================================================ */
/* ---------- 页面包裹 ---------- */
.list-page {
display: grid;
gap: 0;
}
/* ---------- 总量标签 ---------- */
.total-badge {
display: inline-flex;
align-items: center;
min-height: 32px;
padding: 0 12px;
border: 1px solid rgba(37, 89, 167, 0.14);
border-radius: var(--radius-full);
background: rgba(37, 89, 167, 0.08);
color: #2559a7;
font-size: var(--text-xs);
font-weight: 700;
}
/* ---------- 卡片区域 ---------- */
.section-card {
margin-top: var(--space-4);
}
/* ---------- 筛选网格 ---------- */
.filter-grid {
display: grid;
gap: var(--space-3);
align-items: center;
}
.filter-control {
width: 100%;
min-width: 0;
}
.filter-buttons {
display: flex;
gap: 10px;
min-width: 156px;
justify-content: flex-end;
}
/* ---------- 摘要条 ---------- */
.summary-strip {
display: flex;
align-items: center;
gap: var(--space-2);
min-height: 38px;
padding: 0;
margin-top: var(--space-4);
flex-wrap: wrap;
}
.summary-title {
color: var(--text-secondary);
font-size: var(--text-xs);
font-weight: 700;
margin-right: 2px;
}
.summary-metric {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 28px;
padding: 0 10px;
border-radius: var(--radius-full);
border: 1px solid transparent;
color: var(--text-secondary);
background: #f8fafc;
font-size: var(--text-xs);
font-weight: 700;
}
.summary-metric strong {
color: var(--text-primary);
font-size: var(--text-base);
line-height: 1;
}
.summary-metric[data-tone='success'] {
color: var(--color-success-dark);
background: var(--color-success-light);
border-color: #bbf7d0;
}
.summary-metric[data-tone='danger'] {
color: var(--color-danger-dark);
background: var(--color-danger-light);
border-color: #fecaca;
}
.summary-metric[data-tone='primary'] {
color: var(--color-primary-dark);
background: var(--color-primary-light);
border-color: #bfdbfe;
}
.summary-metric[data-tone='warning'] {
color: var(--color-warning-dark);
background: var(--color-warning-light);
border-color: #fed7aa;
}
.summary-metric[data-tone='muted'] {
color: var(--text-secondary);
background: #f8fafc;
border-color: var(--border-default);
}
/* ---------- 表格工具栏 ---------- */
.table-toolbar {
margin-bottom: var(--space-3);
}
.table-toolbar strong {
display: block;
color: var(--text-primary);
font-size: var(--text-base);
}
.table-toolbar span {
display: block;
margin-top: 4px;
color: var(--text-secondary);
font-size: var(--text-xs);
}
/* ---------- el-table 统一主题变量 ---------- */
.data-table {
width: 100%;
overflow: hidden;
border: 1px solid var(--border-default);
border-radius: var(--radius-sm);
--el-table-bg-color: transparent;
--el-table-tr-bg-color: transparent;
--el-table-header-bg-color: rgba(239, 246, 255, 0.72);
--el-table-row-hover-bg-color: rgba(239, 246, 255, 0.72);
--el-table-border-color: rgba(86, 108, 138, 0.1);
}
.data-table :deep(.el-table__inner-wrapper::before) {
display: none;
}
.data-table :deep(th.el-table__cell) {
height: 42px;
background: var(--el-table-header-bg-color);
color: var(--text-secondary);
font-weight: 700;
}
/* ---------- 单元格通用 ---------- */
.cell-stack {
display: grid;
gap: 5px;
}
.cell-meta-row {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
}
.compact-chip {
display: inline-flex;
align-items: center;
min-height: 24px;
max-width: 240px;
padding: 0 9px;
border-radius: var(--radius-full);
background: #f4f7fb;
border: 1px solid var(--border-default);
color: var(--text-secondary);
font-size: var(--text-xs);
font-weight: 600;
}
.compact-chip--muted {
color: var(--text-muted);
}
.cell-title {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-primary);
font-weight: 700;
}
.cell-subline {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #475467;
font-size: var(--text-xs);
}
/* ---------- ID 链接 ---------- */
.id-link {
display: inline-block;
max-width: 100%;
font-size: var(--text-base);
font-weight: 800;
color: var(--text-primary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-decoration: none;
}
.id-link:hover {
color: var(--color-primary-dark);
}
/* ---------- 详情链接按钮 ---------- */
.detail-link {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 0 10px;
border-radius: var(--radius-full);
border: 1px solid var(--border-default);
color: var(--color-primary-dark);
background: var(--color-primary-light);
font-size: var(--text-xs);
font-weight: 700;
text-decoration: none;
}
.detail-link:hover {
border-color: var(--border-hover);
background: #dbeafe;
}
/* ---------- 操作 & 状态容器 ---------- */
.action-stack {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.action-stack--nowrap {
flex-wrap: nowrap;
white-space: nowrap;
}
.action-stack--vertical {
flex-direction: column;
align-items: center;
}
.action-stack--tight {
gap: var(--space-2);
}
.status-stack {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
align-items: center;
}
.status-stack :deep(.el-tag) {
max-width: 100%;
}
/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
.filter-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 900px) {
.filter-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.filter-buttons {
justify-content: flex-start;
}
}
@media (max-width: 640px) {
.filter-grid {
grid-template-columns: 1fr;
}
.filter-buttons {
width: 100%;
}
.filter-buttons :deep(.el-button) {
flex: 1 1 auto;
}
}
.mt-4 {
margin-top: 16px;
}
@@ -1,180 +0,0 @@
/* ===== Element Plus Global Overrides =====
Single place for all Element Plus style normalization.
Eliminates the need for scattered :deep() overrides in components.
*/
/* ---- Buttons ---- */
.el-button {
border-radius: var(--radius-md);
font-weight: 500;
}
.el-button--primary {
--el-button-bg-color: var(--color-primary);
--el-button-border-color: var(--color-primary);
--el-button-hover-bg-color: var(--color-primary-dark);
--el-button-hover-border-color: var(--color-primary-dark);
}
/* ---- Dialogs ---- */
.el-dialog {
border-radius: var(--radius-xl);
}
.el-message-box {
border-radius: var(--radius-xl);
}
/* ---- Cards ---- */
.el-card {
border-radius: var(--radius-lg);
border: 1px solid var(--border-default);
background: var(--bg-surface);
box-shadow: var(--shadow-md);
}
/* ---- Tables ---- */
.el-table {
border-radius: var(--radius-lg);
overflow: hidden;
}
.el-table th.el-table__cell {
background: var(--bg-subtle);
color: var(--text-secondary);
font-size: var(--text-sm);
font-weight: 600;
}
/* ---- Tags ---- */
.el-tag {
border-radius: var(--radius-full);
font-weight: 600;
}
/* ---- Menus ---- */
.el-menu {
border-right: none;
background: transparent;
}
/* ---- Inputs & Selects ---- */
.el-input .el-input__wrapper,
.el-select .el-select__wrapper,
.el-date-editor.el-input__wrapper {
border-radius: var(--radius-md);
box-shadow: none;
border: 1px solid var(--border-default);
}
.el-date-editor.el-input__wrapper {
border: 0;
box-shadow: 0 0 0 1px var(--border-default) inset;
}
.el-input .el-input__wrapper:hover,
.el-select .el-select__wrapper:hover,
.el-date-editor.el-input__wrapper:hover {
border-color: var(--border-hover);
}
.el-date-editor.el-input__wrapper:hover {
box-shadow: 0 0 0 1px var(--border-hover) inset;
}
.el-input.is-focus .el-input__wrapper,
.el-select.is-focus .el-select__wrapper,
.el-date-editor.el-input__wrapper.is-active {
border-color: var(--color-primary);
box-shadow: 0 0 0 1px var(--color-primary) inset;
}
/* ---- Pagination ---- */
.el-pagination {
justify-content: center;
margin-top: var(--space-4);
}
/* ---- Tabs ---- */
.el-tabs__header {
margin-bottom: var(--space-4);
}
/* ---- Switch ---- */
.el-switch.is-checked .el-switch__core {
background-color: var(--color-primary);
border-color: var(--color-primary);
}
/* ---- Skeleton ---- */
.el-skeleton {
--el-skeleton-color: var(--bg-subtle);
}
/* ---- Empty ---- */
.el-empty__description {
color: var(--text-muted);
}
/* ---- 通用工具类 ---- */
.mt-4 {
margin-top: var(--space-4);
}
.mb-4 {
margin-bottom: var(--space-4);
}
.w-full {
width: 100%;
}
.text-muted-xs {
font-size: var(--text-xs);
color: var(--text-muted);
}
.text-muted-xs.mt-1 {
margin-top: var(--space-1);
}
.fw-600 {
font-weight: 600;
}
.text-danger {
color: var(--color-danger);
}
.ml-2 {
margin-left: var(--space-2);
}
.pagination-center {
margin-top: var(--space-4);
display: flex;
justify-content: center;
}
.card-header {
display: flex;
justify-content: space-between;
gap: var(--space-3);
align-items: flex-end;
}
.card-header--split {
align-items: center;
}
.card-title {
display: block;
color: var(--text-primary);
font-size: var(--text-lg);
font-weight: 600;
}
.card-desc {
display: block;
margin-top: 4px;
color: var(--text-secondary);
font-size: var(--text-sm);
line-height: 1.6;
}
.card-actions {
display: flex;
flex-wrap: wrap;
gap: var(--space-2);
align-items: center;
}
.filter-col-160 {
width: 160px;
}
File diff suppressed because it is too large Load Diff
-76
View File
@@ -1,76 +0,0 @@
/* ===== Design Tokens =====
Single source of truth for all visual values.
Every component/view must reference these variables instead of hardcoded values.
*/
:root {
/* ---- Color Palette ---- */
--color-primary: #3b82f6;
--color-primary-light: #eff6ff;
--color-primary-dark: #1d4ed8;
--color-success: #22c55e;
--color-success-light: #f0fdf4;
--color-success-dark: #15803d;
--color-warning: #f59e0b;
--color-warning-light: #fffbeb;
--color-warning-dark: #b45309;
--color-danger: #ef4444;
--color-danger-light: #fef2f2;
--color-danger-dark: #b91c1c;
/* ---- Surfaces & Backgrounds ---- */
--bg-page: #f3f7fc;
--bg-surface: rgba(255, 255, 255, 0.94);
--bg-sidebar: rgba(255, 255, 255, 0.92);
--bg-subtle: rgba(15, 93, 216, 0.06);
/* ---- Text ---- */
--text-primary: #1e293b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
/* ---- Borders ---- */
--border-default: rgba(86, 108, 138, 0.12);
--border-hover: rgba(37, 99, 235, 0.28);
/* ---- Spacing (4px base) ---- */
--space-1: 4px;
--space-2: 8px;
--space-3: 12px;
--space-4: 16px;
--space-5: 20px;
--space-6: 24px;
--space-8: 32px;
/* ---- Border Radius ---- */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 20px;
--radius-full: 999px;
/* ---- Shadows ---- */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
--shadow-lg: 0 10px 30px rgba(30, 49, 78, 0.08);
/* ---- Typography ---- */
--font-sans: 'PingFang SC', 'SF Pro Display', 'Segoe UI', sans-serif;
--font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;
--text-xs: 12px;
--text-sm: 13px;
--text-base: 14px;
--text-lg: 16px;
--text-xl: 20px;
--text-2xl: 24px;
--text-3xl: 28px;
/* ---- Breakpoints (for reference, not used as CSS variables directly) ---- */
--bp-lg: 1200px;
--bp-md: 900px;
--bp-sm: 640px;
}