update: unify

This commit is contained in:
tao.chen
2026-08-26 11:10:29 +08:00
parent b0281a73a0
commit e79787fa61
3 changed files with 11 additions and 9 deletions
@@ -1,8 +1,8 @@
import { useEffect, useState } from "react";
import { Plus, Search } from "lucide-react";
import { ApiRequestError, type Employee, type Workspace, type WorkspaceMember } from "../../services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import Icon from "../../components/common/Icon";
import { Button } from "~/components/ui/button";
import {
Table,
@@ -244,7 +244,7 @@ export function ProjectManagementPage({
<section className="admin-page">
<div className="admin-toolbar">
<div className="admin-toolbar__search">
<Icon name="search" size={14} />
<Search size={14} />
<input
type="text"
placeholder="请输入项目名称"
@@ -261,7 +261,7 @@ export function ProjectManagementPage({
onClick={openCreateProject}
className={PRIMARY_BUTTON_CLASS}
>
<Icon name="plus" size={15} />
<Plus size={15} />
</Button>
</div>
@@ -24,6 +24,9 @@ import { AdminColgroup, ROLE_COL_WIDTHS } from "./AdminTable";
import "../../styles/admin.css";
const PRIMARY_BUTTON_CLASS =
"h-[37px] gap-[7px] rounded-md border border-[#126ac3] bg-gradient-to-br from-[#1881e7] to-[#1268c9] px-[15px] text-xs font-[650] text-white shadow-[0_6px_15px_rgb(20_111_202/18%)] enabled:hover:from-[#1175d8] enabled:hover:to-[#0e5bad]";
export function RoleManagementPage({
onNotify,
onConnectionChange,
@@ -177,7 +180,7 @@ export function RoleManagementPage({
<section className="admin-page">
<div className="admin-toolbar">
<div className="admin-toolbar__search">
<Search size={14} className="text-[#8a99a8]" />
<Search size={14} />
<input
type="text"
placeholder="搜索角色编码 / 名称"
@@ -192,7 +195,7 @@ export function RoleManagementPage({
type="button"
disabled={!canManage}
onClick={openCreate}
className="h-9 gap-1.5 rounded-[6px] bg-gradient-to-br from-[#2e86de] to-[#1978d4] px-3.5 text-[12px] font-semibold text-white shadow-[0_4px_12px_rgb(28_119_222/18%)] enabled:hover:from-[#1f7ed8] enabled:hover:to-[#1669c0]"
className={PRIMARY_BUTTON_CLASS}
>
<Plus size={15} />
@@ -1,9 +1,8 @@
import { useEffect, useState } from "react";
import { X } from "lucide-react";
import { Plus, Search, X } from "lucide-react";
import { ApiRequestError, type Employee, type Role } from "../../services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import Icon from "../../components/common/Icon";
import { Button } from "~/components/ui/button";
import { Input } from "~/components/ui/input";
import {
@@ -198,7 +197,7 @@ export function UserManagementPage({
<section className="admin-page">
<div className="admin-toolbar">
<div className="admin-toolbar__search">
<Icon name="search" size={14} />
<Search size={14} />
<input
type="text"
placeholder="请输入用户名"
@@ -215,7 +214,7 @@ export function UserManagementPage({
onClick={openCreate}
className={PRIMARY_BUTTON_CLASS}
>
<Icon name="plus" size={15} />
<Plus size={15} />
</Button>
</div>