]> acesimba.cloud Git - StationBuilder.git/commitdiff
替换为用户提供的黑色线条透明菜单图标(11个)
authorroot <root@localhost.localdomain>
Fri, 18 Sep 2026 03:50:53 +0000 (11:50 +0800)
committerroot <root@localhost.localdomain>
Fri, 18 Sep 2026 03:50:53 +0000 (11:50 +0800)
- 新增 11 个黑色线条透明 SVG 图标(建站资源/设备模板等)
- 在 SvgIcon 注册新图标并在左侧主菜单 items 引用
- 排除 data/db/StationBuilder.sqlite(仅数据改动不提交)

13 files changed:
app/page.tsx
src/assets/icons/building-resources.svg [new file with mode: 0644]
src/assets/icons/device-templates.svg [new file with mode: 0644]
src/assets/icons/digital-twin-models.svg [new file with mode: 0644]
src/assets/icons/domain-settings.svg [new file with mode: 0644]
src/assets/icons/domain-solutions.svg [new file with mode: 0644]
src/assets/icons/internal-tools.svg [new file with mode: 0644]
src/assets/icons/knowledge-templates.svg [new file with mode: 0644]
src/assets/icons/monitoring-dashboards.svg [new file with mode: 0644]
src/assets/icons/operations-templates.svg [new file with mode: 0644]
src/assets/icons/site-management.svg [new file with mode: 0644]
src/assets/icons/system-settings.svg [new file with mode: 0644]
src/components/icons/svgIcon.tsx

index 94fb3a347b9d0d390b6000b53f169387724c315f..9c60eb7bffe7c1a3badab1d0773f31daffe75943 100644 (file)
@@ -682,18 +682,18 @@ export default function Home(){ const { message } = AntApp.useApp();
           onOpenChange={keys=>{setResourceNavOpen(keys.includes("resources"));setSystemNavOpen(keys.includes("system"));}}
           onClick={({key})=>{if(key==="domains")setDomainFilter(null);go(key as PageKey);}}
           items={[
-            {key:"domains",label:"领域方案",icon:<SvgIcon name="Apps" size={16}/>},
-            {key:"projects",label:"站点管理",icon:<SvgIcon name="manage" size={16}/>},
-            {key:"resources",label:"建站资源",icon:<SvgIcon name="iot_suite" size={16}/>,children:[
-              {key:"deviceTemplates",label:"设备模板",icon:<SvgIcon name="manage" size={16}/>},
-              {key:"monitor-dashboard",label:"监控仪表板",icon:<SvgIcon name="notifications" size={16}/>},
-              {key:"twin-model",label:"数字孪生模型",icon:<SvgIcon name="support" size={16}/>},
-              {key:"ops-template",label:"运维模板",icon:<SvgIcon name="config" size={16}/>},
-              {key:"knowledge-template",label:"知识模板",icon:<SvgIcon name="file" size={16}/>},
+            {key:"domains",label:"领域方案",icon:<SvgIcon name="domain-solutions" size={16}/>},
+            {key:"projects",label:"站点管理",icon:<SvgIcon name="site-management" size={16}/>},
+            {key:"resources",label:"建站资源",icon:<SvgIcon name="building-resources" size={16}/>,children:[
+              {key:"deviceTemplates",label:"设备模板",icon:<SvgIcon name="device-templates" size={16}/>},
+              {key:"monitor-dashboard",label:"监控仪表板",icon:<SvgIcon name="monitoring-dashboards" size={16}/>},
+              {key:"twin-model",label:"数字孪生模型",icon:<SvgIcon name="digital-twin-models" size={16}/>},
+              {key:"ops-template",label:"运维模板",icon:<SvgIcon name="operations-templates" size={16}/>},
+              {key:"knowledge-template",label:"知识模板",icon:<SvgIcon name="knowledge-templates" size={16}/>},
             ]},
-            {key:"system",label:"系统设定",icon:<SvgIcon name="config" size={16}/>,children:[
-              {key:"toolSettings",label:"内部工具配置",icon:<SvgIcon name="support" size={16}/>},
-              {key:"domainSettings",label:"领域配置",icon:<SvgIcon name="manage" size={16}/>},
+            {key:"system",label:"系统设定",icon:<SvgIcon name="system-settings" size={16}/>,children:[
+              {key:"toolSettings",label:"内部工具配置",icon:<SvgIcon name="internal-tools" size={16}/>},
+              {key:"domainSettings",label:"领域配置",icon:<SvgIcon name="domain-settings" size={16}/>},
             ]},
           ]}
         />
diff --git a/src/assets/icons/building-resources.svg b/src/assets/icons/building-resources.svg
new file mode 100644 (file)
index 0000000..5707146
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="建站资源"><path d="m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M3 16l9 5 9-5"/></svg>
diff --git a/src/assets/icons/device-templates.svg b/src/assets/icons/device-templates.svg
new file mode 100644 (file)
index 0000000..f6389ee
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="设备模板"><rect x="6" y="6" width="12" height="12" rx="2"/><rect x="9" y="9" width="6" height="6" rx="1"/><path d="M9 3v3m6-3v3M9 18v3m6-3v3M3 9h3m-3 6h3m12-6h3m-3 6h3"/></svg>
diff --git a/src/assets/icons/digital-twin-models.svg b/src/assets/icons/digital-twin-models.svg
new file mode 100644 (file)
index 0000000..50c7fb9
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="数字孪生模型"><path d="m12 3 8 4.5v9L12 21l-8-4.5v-9L12 3ZM4 7.5l8 4.5 8-4.5M12 12v9"/><path d="m8 5.3 8 4.5v4.5" stroke-dasharray="2 2"/></svg>
diff --git a/src/assets/icons/domain-settings.svg b/src/assets/icons/domain-settings.svg
new file mode 100644 (file)
index 0000000..24a93a8
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="领域配置"><path d="M4 7h6m4 0h6M4 17h10m4 0h2"/><circle cx="12" cy="7" r="2"/><circle cx="16" cy="17" r="2"/><path d="M4 12h2m4 0h10"/><circle cx="8" cy="12" r="2"/></svg>
diff --git a/src/assets/icons/domain-solutions.svg b/src/assets/icons/domain-solutions.svg
new file mode 100644 (file)
index 0000000..2af0452
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="领域方案"><rect x="3" y="3" width="7" height="7" rx="1.5"/><rect x="14" y="3" width="7" height="7" rx="1.5"/><rect x="3" y="14" width="7" height="7" rx="1.5"/><path d="M14 17.5h7m-3.5-3.5v7"/></svg>
diff --git a/src/assets/icons/internal-tools.svg b/src/assets/icons/internal-tools.svg
new file mode 100644 (file)
index 0000000..c4f6405
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="内部工具配置"><path d="M14 4a6 6 0 0 0-7.4 7.4L3.5 14.5a3 3 0 0 0 4.2 4.2l3.1-3.1A6 6 0 0 0 18.2 8L15 11l-3-3 2-4Z"/><circle cx="5.8" cy="16.5" r=".5"/></svg>
diff --git a/src/assets/icons/knowledge-templates.svg b/src/assets/icons/knowledge-templates.svg
new file mode 100644 (file)
index 0000000..57b0a69
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="知识模板"><path d="M12 5v15M12 5c-3-2-6-2-9-1v15c3-1 6-1 9 1 3-2 6-2 9-1V4c-3-1-6-1-9 1ZM6 8h3m-3 4h3m6-4h3m-3 4h3"/></svg>
diff --git a/src/assets/icons/monitoring-dashboards.svg b/src/assets/icons/monitoring-dashboards.svg
new file mode 100644 (file)
index 0000000..90105a3
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="监控仪表板"><rect x="3" y="4" width="18" height="13" rx="2"/><path d="M8 21h8m-4-4v4M6 13l3-3 3 2 5-5m-3 0h3v3"/></svg>
diff --git a/src/assets/icons/operations-templates.svg b/src/assets/icons/operations-templates.svg
new file mode 100644 (file)
index 0000000..bf9e766
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="运维模板"><rect x="3" y="3" width="6" height="6" rx="1.5"/><rect x="15" y="15" width="6" height="6" rx="1.5"/><path d="M9 6h7a2 2 0 0 1 2 2v3m-2-2 2 2 2-2M15 18H8a2 2 0 0 1-2-2v-3m-2 2 2-2 2 2"/></svg>
diff --git a/src/assets/icons/site-management.svg b/src/assets/icons/site-management.svg
new file mode 100644 (file)
index 0000000..9eadf47
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="站点管理"><path d="M3 21h18M5 21V9l7-5 7 5v12M9 21v-5h6v5M9 10h.01M15 10h.01M9 13h.01M15 13h.01"/></svg>
diff --git a/src/assets/icons/system-settings.svg b/src/assets/icons/system-settings.svg
new file mode 100644 (file)
index 0000000..b56f853
--- /dev/null
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="系统设定"><path d="m9 3-.6 2.2-1.8 1L4.4 6 2.9 8.6 4.5 10v2L3 13.6l1.5 2.6 2.2-.3 1.7 1L9 19h3l.6-2.2 1.8-1 2.2.3 1.5-2.6-1.6-1.5v-2l1.5-1.5L16.5 6l-2.2.3-1.7-1L12 3H9Z" transform="translate(1.5 1)"/><circle cx="12" cy="12" r="3"/></svg>
index 673298d145a3313f4b3dd3299a29b8027023737a..01eeb4a77fbea9b6267de19c4adbb231b131eb75 100644 (file)
@@ -22,6 +22,17 @@ import menu from '@/assets/icons/menu.svg?react';
 import notifications from '@/assets/icons/notifications.svg?react';
 import search from '@/assets/icons/search.svg?react';
 import support from '@/assets/icons/support.svg?react';
+import domainSolutions from '@/assets/icons/domain-solutions.svg?react';
+import siteManagement from '@/assets/icons/site-management.svg?react';
+import buildingResources from '@/assets/icons/building-resources.svg?react';
+import deviceTemplates from '@/assets/icons/device-templates.svg?react';
+import monitoringDashboards from '@/assets/icons/monitoring-dashboards.svg?react';
+import digitalTwinModels from '@/assets/icons/digital-twin-models.svg?react';
+import operationsTemplates from '@/assets/icons/operations-templates.svg?react';
+import knowledgeTemplates from '@/assets/icons/knowledge-templates.svg?react';
+import systemSettings from '@/assets/icons/system-settings.svg?react';
+import internalTools from '@/assets/icons/internal-tools.svg?react';
+import domainSettings from '@/assets/icons/domain-settings.svg?react';
 
 /** 图标名 → 组件。key 必须与 src/assets/icons/<key>.svg 文件名一致 */
 const ICONS = {
@@ -41,6 +52,17 @@ const ICONS = {
   notifications,
   search,
   support,
+  'domain-solutions': domainSolutions,
+  'site-management': siteManagement,
+  'building-resources': buildingResources,
+  'device-templates': deviceTemplates,
+  'monitoring-dashboards': monitoringDashboards,
+  'digital-twin-models': digitalTwinModels,
+  'operations-templates': operationsTemplates,
+  'knowledge-templates': knowledgeTemplates,
+  'system-settings': systemSettings,
+  'internal-tools': internalTools,
+  'domain-settings': domainSettings,
 };
 
 export type IconName = keyof typeof ICONS;