소스 검색

refactor (1.49.2 -> 1.49.3): 重构网络设置模块组件命名

- 将 Connection 组件重命名为 TaskNode (管接  任务节点)
- 将 NetworkPreferences 组件重命名为 ArchiveNode (首选项  归档节点)
- 将 TagMapping 组件重命名为 PrintNode (标记映射  打印节点)
- 将 NetworkTest 组件重命名为 MppsNode (测试  MPPS节点)
- 更新配置文件以使用新的组件名称和ID
- 删除注释掉的代码,提高代码可维护性

改动文件:
- src/pages/system/SettingsModal/sections/Network/index.tsx
- src/pages/system/SettingsModal/config.tsx
- CHANGELOG.md
- package.json
dengdx 1 주 전
부모
커밋
3284e9d4df
4개의 변경된 파일43개의 추가작업 그리고 32개의 파일을 삭제
  1. 16 0
      CHANGELOG.md
  2. 1 1
      package.json
  3. 14 14
      src/pages/system/SettingsModal/config.tsx
  4. 12 17
      src/pages/system/SettingsModal/sections/Network/index.tsx

+ 16 - 0
CHANGELOG.md

@@ -2,6 +2,22 @@
 
 本项目的所有重要变更都将记录在此文件中。
 
+## [1.49.3] - 2026-01-05 14:00
+
+### 重构 (Refactored)
+
+- **重构网络设置模块组件命名** - 重构网络设置相关组件和配置的命名,提升代码可读性和可维护性
+  - 将 Connection 组件重命名为 TaskNode (管接 → 任务节点)
+  - 将 NetworkPreferences 组件重命名为 ArchiveNode (首选项 → 归档节点)
+  - 将 TagMapping 组件重命名为 PrintNode (标记映射 → 打印节点)
+  - 将 NetworkTest 组件重命名为 MppsNode (测试 → MPPS节点)
+  - 更新配置文件以使用新的组件名称和ID
+  - 删除注释掉的代码,提高代码可维护性
+
+**改动文件:**
+- src/pages/system/SettingsModal/sections/Network/index.tsx
+- src/pages/system/SettingsModal/config.tsx
+
 ## [1.49.2] - 2026-01-05 12:45
 
 ### 样式 (Style)

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "zsis",
-  "version": "1.49.2",
+  "version": "1.49.3",
   "private": true,
   "description": "医学成像系统",
   "main": "main.js",

+ 14 - 14
src/pages/system/SettingsModal/config.tsx

@@ -193,30 +193,30 @@ export const settingsConfig: SettingsCategory[] = [
     icon: <ApiOutlined />,
     sections: [
       {
-        id: 'connection',
-        title: '管接',
-        component: Network.Connection,
+        id: 'task_node',
+        title: '任务节点',
+        component: Network.TaskNode,
       },
       {
-        id: 'network_preferences',
-        title: '首选项',
-        component: Network.NetworkPreferences,
+        id: 'archive_node',
+        title: '归档节点',
+        component: Network.ArchiveNode,
       },
       {
-        id: 'tag_mapping',
-        title: '标记映射',
-        component: Network.TagMapping,
+        id: 'print_node',
+        title: '打印节点',
+        component: Network.PrintNode,
+      },
+      {
+        id: 'mpps_node',
+        title: 'MPPS节点',
+        component: Network.MppsNode,
       },
       {
         id: 'ip',
         title: 'IP',
         component: Network.Ip,
       },
-      {
-        id: 'network_test',
-        title: '测试',
-        component: Network.NetworkTest,
-      },
     ],
   },
   {

+ 12 - 17
src/pages/system/SettingsModal/sections/Network/index.tsx

@@ -5,27 +5,22 @@ import React from 'react';
 import PlaceholderSection from '../PlaceholderSection';
 export { default as Ip } from './ip';
 
-// 管接
-export const Connection: React.FC = () => (
-  <PlaceholderSection title="管接" />
+// 任务节点
+export const TaskNode: React.FC = () => (
+  <PlaceholderSection title="任务节点" />
 );
 
-// 首选项
-export const NetworkPreferences: React.FC = () => (
-  <PlaceholderSection title="首选项" />
+// 归档节点
+export const ArchiveNode: React.FC = () => (
+  <PlaceholderSection title="归档节点" />
 );
 
-// 标记映射
-export const TagMapping: React.FC = () => (
-  <PlaceholderSection title="标记映射" />
+// 打印节点
+export const PrintNode: React.FC = () => (
+  <PlaceholderSection title="打印节点" />
 );
 
-// // IP
-// export const Ip: React.FC = () => (
-//   <PlaceholderSection title="IP" />
-// );
-
-// 测试
-export const NetworkTest: React.FC = () => (
-  <PlaceholderSection title="测试" />
+// MPPS节点
+export const MppsNode: React.FC = () => (
+  <PlaceholderSection title="MPPS节点" />
 );