diff --git a/components/layout/common.ts b/components/layout/common.ts index 88d0650..d479a3c 100644 --- a/components/layout/common.ts +++ b/components/layout/common.ts @@ -20,6 +20,7 @@ export const componentList: MenuItem[] = [ { title: "个人中心", url: "person", + icon: "PersonalMenuIcon", items: [ { title: "个人看板", @@ -38,6 +39,7 @@ export const componentList: MenuItem[] = [ { title: "项目管理", url: "project", + icon: "TaskMenuIcon", items: [ { title: "全部项目", @@ -55,94 +57,6 @@ export const componentList: MenuItem[] = [ }, ], }, - // { - // title: "组件模块", - // url: "component", - // icon: "SystemIcon", - // items: [ - // { - // title: "基本组件", - // icon: "ResourceIcon", - // url: "base", - // items: [ - // { - // title: "部门组件", - // url: "department", - // }, - // { - // title: "布局组件", - // url: "placement", - // }, - // { - // title: "选择组件", - // url: "select", - // }, - // ], - // }, - // { - // title: "标注组件", - // icon: "ExampleIcon", - // url: "label", - // items: [ - // { - // title: "标注登录", - // url: "login", - // }, - // { - // title: "图片标注", - // url: "picture", - // }, - // { - // title: "视频标注", - // url: "video", - // }, - // { - // title: "视频标注2", - // url: "ffmpeg", - // }, - // ], - // }, - // { - // title: "表格组件", - // icon: "PositionIcon", - // url: "table", - // items: [ - // { - // title: "基础表格", - // url: "base", - // }, - // ], - // }, - // { - // title: "视频组件", - // icon: "GroupIcon", - // url: "media", - // items: [ - // { - // title: "静态视频", - // url: "static", - // }, - // { - // title: "动态媒体", - // url: "dynamic", - // }, - // ], - // }, - // ], - // }, ] -export const showList: MenuItem[] = [ - // { - // title: "页面展示", - // url: "show", - // icon: "ExampleIcon", - // items: [ - // { - // title: "人员管理", - // icon: "UserIcon", - // url: "user", - // }, - // ], - // }, -] +export const showList: MenuItem[] = [] diff --git a/components/layout/components/ClientIcon.tsx b/components/layout/components/ClientIcon.tsx index b693d90..700a177 100644 --- a/components/layout/components/ClientIcon.tsx +++ b/components/layout/components/ClientIcon.tsx @@ -1,23 +1,6 @@ // import { type LucideIcon } from "lucide-react"; -import { - CategoryIcon, - GroupIcon, - PositionIcon, - RbacIcon, - DispatchIcon, - ResourceIcon, - UserIcon, - ExampleIcon, - BdMapIcon, -} from "./icons/example" -import { - SystemIcon, - PlatformIcon, - SystemExampleIcon, - AppIcon, - FieldIcon, -} from "./icons/demo" +import { PersonalMenuIcon, SystemIcon, TaskMenuIcon } from "./icons/management" import React from "react" @@ -29,20 +12,9 @@ export const ClientIcon = React.forwardRef< >(({ icon, ...props }, _ref) => { if (icon) { const IconComponent = { - PlatformIcon, - SystemExampleIcon, - AppIcon, - FieldIcon, - ExampleIcon, SystemIcon, - UserIcon, - GroupIcon, - CategoryIcon, - PositionIcon, - ResourceIcon, - RbacIcon, - DispatchIcon, - BdMapIcon, + PersonalMenuIcon, + TaskMenuIcon, }[icon] return IconComponent ? : null } else { diff --git a/components/layout/components/icons/demo.tsx b/components/layout/components/icons/demo.tsx deleted file mode 100644 index 3286b2e..0000000 --- a/components/layout/components/icons/demo.tsx +++ /dev/null @@ -1,183 +0,0 @@ -import { SVGProps } from "react" - -export function SystemIcon(props: SVGProps) { - return ( - - - - - ) -} - -export function PlatformIcon(props: SVGProps) { - return ( - - - - ) -} - -export function SystemExampleIcon(props: SVGProps) { - return ( - - - - ) -} - -export function AppIcon(props: SVGProps) { - return ( - - - - ) -} - -export function FieldIcon(props: SVGProps) { - return ( - - - - ) -} - -export const DigitalIcon = () => { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ) -} diff --git a/components/layout/components/icons/example.tsx b/components/layout/components/icons/example.tsx deleted file mode 100644 index 4a4a6df..0000000 --- a/components/layout/components/icons/example.tsx +++ /dev/null @@ -1,196 +0,0 @@ -import { SVGProps } from "react" - -export function UserIcon(props: SVGProps) { - return ( - - - - ) -} - -export function GroupIcon(props: SVGProps) { - return ( - - - - - - - ) -} - -export function CategoryIcon(props: SVGProps) { - return ( - - - - ) -} - -export function PositionIcon(props: SVGProps) { - return ( - - - - - - - - - - - ) -} - -export function ResourceIcon(props: SVGProps) { - return ( - - - - ) -} - -export function RbacIcon(props: SVGProps) { - return ( - - - - ) -} - -export function DispatchIcon(props: SVGProps) { - return ( - - - - - - - - - ) -} - -export function ExampleIcon(props: SVGProps) { - return ( - - - - ) -} - -export function BdMapIcon(props: SVGProps) { - return ( - - - - - ) -} diff --git a/components/layout/components/icons/management.tsx b/components/layout/components/icons/management.tsx new file mode 100644 index 0000000..2d45373 --- /dev/null +++ b/components/layout/components/icons/management.tsx @@ -0,0 +1,60 @@ +import { SVGProps } from "react" + +export function SystemIcon(props: SVGProps) { + return ( + + + + + ) +} + +export const PersonalMenuIcon = (props: SVGProps) => ( + + + +) + +export const TaskMenuIcon = (props: SVGProps) => ( + + + + + + + + + + +)