chore(v2): 从兴邦预审v2白名单抽取独立可运行基座
按 docs/v2/05-implementation-plan.md §1 候选迁移表与 claude_use/T00 白名单, 从 55e2cdb 抽取 224 个文件(2.48 MB)到独立目录 F:/mini-OpenClaw-v2。 - 排除:凭据(.env/server-deploy.conf/旧DELIVERY.md)、运行数据(xingbang_data 等 4 个 SQLite)、依赖(venv/node_modules 符号链接)、归档(_backup*/test-evidence/ ori_file)、Office 临时文件 - 目标目录独立 git 仓库,初始恢复点;Gitea 远程与分支待 OQ-06 Q2 定案 - 未部署、未启动服务、未调用模型 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
|
||||
import {ShieldCheck} from "lucide-react";
|
||||
|
||||
export const ROLE_LABEL:Record<string,string>={manager:"客户经理",reviewer:"评审员",admin:"配置管理员"};
|
||||
|
||||
export default function IdentitySelector({identity,dark=false,pending=false}:{identity:any;dark?:boolean;pending?:boolean}){
|
||||
const role=identity?.role||(pending?"":"manager");
|
||||
function switchRole(next:string){
|
||||
sessionStorage.removeItem("xingbang-access-token");
|
||||
sessionStorage.setItem("xingbang-demo-role",next);
|
||||
location.reload();
|
||||
}
|
||||
return <label className={`xb-role-switch role-${role}${dark?" dark":""}`}>
|
||||
<span>当前身份</span><ShieldCheck size={16}/>
|
||||
<select aria-label="切换演示身份" value={role} onChange={event=>switchRole(event.target.value)}>
|
||||
{pending&&<option value="" disabled>选择身份</option>}
|
||||
<option value="manager">客户经理</option><option value="reviewer">评审员</option><option value="admin">配置管理员</option>
|
||||
</select>
|
||||
</label>;
|
||||
}
|
||||
Reference in New Issue
Block a user