feat(admin): Phase 2 邀请码发放管理 — apps/adminpanel 跨团队端点 + Admin 邀请码页
后端:新建 apps/adminpanel(跨团队后台容器,/api/admin/);GET/POST invitations(列跨团队码+筛选分页 / 平台发 create_team 开团队码,写审计)+ revoke(写审计),全程 IsPlatformAdmin。 前端:adminApi 分层;Admin 邀请码页(类型筛选段控 + 表格 + 发码弹窗 + 复制邀请链接 + 撤销)接入 AdminApp toast; Invitation 类型补 kind/team_name;admin-page.css 补段控/表格/弹窗(仅 token)。 测试:adminpanel 9 + accounts 22 = 31 单测过;无头 e2e _admin-p2.mjs 6 断言过 + 0 console error + 端到端凭 UI 发的码注册开团队 201;tsc+build 绿。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
3f8547564c
commit
45a4ceae51
@@ -84,3 +84,48 @@
|
||||
.admin-app .topbar .crumbs a {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ── 邀请码页:筛选条 + 表格 + 弹窗 ── */
|
||||
.admin-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 4px 0 16px;
|
||||
}
|
||||
/* 类型筛选 = 模式切换段控(模式切换用黑激活,不抢主橙) */
|
||||
.tabs-sub {
|
||||
display: inline-flex;
|
||||
gap: 2px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
padding: 3px;
|
||||
}
|
||||
.tab-sub {
|
||||
height: 28px;
|
||||
padding: 0 14px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
border-radius: 6px;
|
||||
font-size: 12.5px;
|
||||
color: var(--black-alpha-56);
|
||||
cursor: pointer;
|
||||
transition: background var(--t-base), color var(--t-base);
|
||||
}
|
||||
.tab-sub:hover { background: var(--black-alpha-4); color: var(--accent-black); }
|
||||
.tab-sub.active { background: var(--accent-black); color: var(--accent-white); }
|
||||
|
||||
.admin-table-wrap { overflow-x: auto; }
|
||||
.admin-table { width: 100%; }
|
||||
.admin-table .admin-code { font-size: 12.5px; color: var(--accent-black); letter-spacing: 0.02em; }
|
||||
.admin-table .col-time { color: var(--black-alpha-56); font-size: 12px; }
|
||||
.admin-table .col-actions { text-align: right; white-space: nowrap; }
|
||||
.admin-table td .muted { color: var(--black-alpha-32); }
|
||||
.admin-table .btn-ghost.danger:hover { color: var(--accent-crimson); }
|
||||
|
||||
.admin-modal-desc {
|
||||
font-size: 13px;
|
||||
color: var(--black-alpha-64);
|
||||
line-height: 1.6;
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user