feat: add A-card operations frontend and backend foundation
This commit is contained in:
@@ -24,10 +24,16 @@ export function Topbar({
|
||||
onSetCurrentWorkspace,
|
||||
onLogout,
|
||||
}: TopbarProps) {
|
||||
const roleLabel = user?.is_system_admin || user?.role_code === "admin"
|
||||
? "管理员"
|
||||
: ["business", "business_team", "biz"].includes(user?.role_code ?? "")
|
||||
? "业务团队"
|
||||
: "模型团队";
|
||||
const pageTitles: Record<string, string> = {
|
||||
home: "工作台",
|
||||
scripts: "构建脚本",
|
||||
schedules: "调度配置",
|
||||
operations: "A卡模型运维",
|
||||
system: "系统管理",
|
||||
};
|
||||
|
||||
@@ -124,7 +130,7 @@ export function Topbar({
|
||||
{user?.display_name ?? "未知用户"}
|
||||
</strong>
|
||||
<small className="text-[10px] text-[#97a3b1]">
|
||||
{user?.role_code === "admin" ? "管理员" : "开发人员"}
|
||||
{roleLabel}
|
||||
</small>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
@@ -2,11 +2,15 @@ import * as React from "react"
|
||||
|
||||
import { cn } from "~/lib/utils"
|
||||
|
||||
function Table({ className, ...props }: React.ComponentProps<"table">) {
|
||||
function Table({
|
||||
className,
|
||||
containerClassName,
|
||||
...props
|
||||
}: React.ComponentProps<"table"> & { containerClassName?: string }) {
|
||||
return (
|
||||
<div
|
||||
data-slot="table-container"
|
||||
className="relative w-full overflow-x-auto"
|
||||
className={cn("relative w-full overflow-x-auto", containerClassName)}
|
||||
>
|
||||
<table
|
||||
data-slot="table"
|
||||
|
||||
Reference in New Issue
Block a user