feat: 新增租戶品牌客製化系統(Logo、主色系)、修正 hardcoded 顏色為 CSS 變數
This commit is contained in:
@@ -107,7 +107,7 @@ export default function RoleCreate({ groupedPermissions }: Props) {
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Shield className="h-6 w-6 text-[#01ab83]" />
|
||||
<Shield className="h-6 w-6 text-primary-main" />
|
||||
建立新角色
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
@@ -179,7 +179,7 @@ export default function RoleCreate({ groupedPermissions }: Props) {
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => toggleGroup(group.permissions)}
|
||||
className="text-xs h-7 text-[#01ab83] hover:text-[#01ab83] hover:bg-[#01ab83]/10"
|
||||
className="text-xs h-7 text-primary-main hover:text-primary-main hover:bg-primary-main/10"
|
||||
>
|
||||
{allGroupSelected ? '取消全選' : '全選'}
|
||||
</Button>
|
||||
|
||||
@@ -114,7 +114,7 @@ export default function RoleEdit({ role, groupedPermissions, currentPermissions
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Shield className="h-6 w-6 text-[#01ab83]" />
|
||||
<Shield className="h-6 w-6 text-primary-main" />
|
||||
編輯角色
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
@@ -193,7 +193,7 @@ export default function RoleEdit({ role, groupedPermissions, currentPermissions
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => toggleGroup(group.permissions)}
|
||||
className="text-xs h-7 text-[#01ab83] hover:text-[#01ab83] hover:bg-[#01ab83]/10"
|
||||
className="text-xs h-7 text-primary-main hover:text-primary-main hover:bg-primary-main/10"
|
||||
>
|
||||
{allGroupSelected ? '取消全選' : '全選'}
|
||||
</Button>
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function RoleIndex({ roles }: Props) {
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Shield className="h-6 w-6 text-[#01ab83]" />
|
||||
<Shield className="h-6 w-6 text-primary-main" />
|
||||
角色與權限
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
@@ -123,7 +123,7 @@ export default function RoleIndex({ roles }: Props) {
|
||||
className={cn(
|
||||
"flex items-center justify-center gap-1 w-full h-full py-2 rounded-md transition-colors",
|
||||
role.users_count > 0
|
||||
? "text-[#01ab83] hover:bg-[#01ab83]/10 font-bold"
|
||||
? "text-primary-main hover:bg-primary-main/10 font-bold"
|
||||
: "text-gray-400 cursor-default"
|
||||
)}
|
||||
title={role.users_count > 0 ? "點擊查看成員名單" : ""}
|
||||
@@ -177,7 +177,7 @@ export default function RoleIndex({ roles }: Props) {
|
||||
<DialogContent className="sm:max-w-md">
|
||||
<DialogHeader>
|
||||
<DialogTitle className="flex items-center gap-2">
|
||||
<Users className="h-5 w-5 text-[#01ab83]" />
|
||||
<Users className="h-5 w-5 text-primary-main" />
|
||||
{selectedRole?.display_name} - 成員名單
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
@@ -204,7 +204,7 @@ export default function RoleIndex({ roles }: Props) {
|
||||
</div>
|
||||
<Link
|
||||
href={route('users.edit', user.id)}
|
||||
className="text-xs text-[#01ab83] hover:underline font-medium"
|
||||
className="text-xs text-primary-main hover:underline font-medium"
|
||||
>
|
||||
查看帳號
|
||||
</Link>
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function UserCreate({ roles }: Props) {
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Users className="h-6 w-6 text-[#01ab83]" />
|
||||
<Users className="h-6 w-6 text-primary-main" />
|
||||
新增使用者
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
|
||||
@@ -69,7 +69,7 @@ export default function UserEdit({ user, roles, currentRoles }: Props) {
|
||||
<div className="flex items-center justify-between">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Users className="h-6 w-6 text-[#01ab83]" />
|
||||
<Users className="h-6 w-6 text-primary-main" />
|
||||
編輯使用者
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
|
||||
@@ -86,7 +86,7 @@ export default function UserIndex({ users, filters }: Props) {
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-grey-0 flex items-center gap-2">
|
||||
<Users className="h-6 w-6 text-[#01ab83]" />
|
||||
<Users className="h-6 w-6 text-primary-main" />
|
||||
使用者管理
|
||||
</h1>
|
||||
<p className="text-gray-500 mt-1">
|
||||
|
||||
Reference in New Issue
Block a user