diff --git a/README.md b/README.md index 9306733..eadc261 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,6 @@ Frontend application for Super-frpc - a frpc instance integrated management syst - User management (create, edit, delete users) - Session management (view and delete active sessions) - System logs viewing with filtering capabilities -- Real-time system monitoring (CPU, memory, disk, network) -- System information display - Role-based access control (superuser, admin, visitor) - Responsive design with modern UI @@ -49,8 +47,7 @@ frontend/ │ ├── Users.vue # User management │ ├── Sessions.vue # Session management │ ├── Logs.vue # System logs -│ ├── Monitor.vue # System monitoring -│ └── SystemInfo.vue # System information +│ └── Settings.vue # Settings ├── logger.js # Logging utility ├── api-backend.md # Backend API documentation └── README.md # This file diff --git a/src/api/index.js b/src/api/index.js index 2c16e6e..505bc1f 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -112,13 +112,4 @@ export const logApi = { getLogs: (level) => api.post('/logMgr/list', { level }) }; -export const monitorApi = { - getSystemStats: () => api.get('/monitor/stats') -}; - export default api; - -export const TODO_API_NOTES = { - monitorStats: 'TODO: /monitor/stats - 获取系统监控数据 API 未在 api-backend.md 中定义', - systemInfo: 'TODO: /system/info - 获取系统信息 API 未在 api-backend.md 中定义' -}; diff --git a/src/components/SideBar.vue b/src/components/SideBar.vue index 896d5c1..334a557 100644 --- a/src/components/SideBar.vue +++ b/src/components/SideBar.vue @@ -53,8 +53,6 @@ export default { { path: '/users', title: 'User Management', icon: 'fas fa-users', permission: ['superuser'] }, { path: '/sessions', title: 'Session Management', icon: 'fas fa-key', permission: ['superuser', 'admin'] }, { path: '/logs', title: 'System Logs', icon: 'fas fa-file-alt', permission: ['superuser', 'admin'] }, - { path: '/monitor', title: 'System Monitoring', icon: 'fas fa-chart-bar', permission: ['superuser', 'admin', 'visitor'] }, - { path: '/system-info', title: 'System Information', icon: 'fas fa-info-circle', permission: ['superuser', 'admin', 'visitor'] }, { path: '/settings', title: 'Settings', icon: 'fas fa-cog', permission: ['superuser', 'admin'] } ]; diff --git a/src/router/index.js b/src/router/index.js index 0f03127..fde2703 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -43,18 +43,6 @@ const routes = [ component: () => import('../views/Logs.vue'), meta: { requiresAuth: true, permission: ['superuser', 'admin'] } }, - { - path: 'monitor', - name: 'Monitor', - component: () => import('../views/Monitor.vue'), - meta: { requiresAuth: true } - }, - { - path: 'system-info', - name: 'SystemInfo', - component: () => import('../views/SystemInfo.vue'), - meta: { requiresAuth: true } - }, { path: 'settings', name: 'Settings', diff --git a/src/views/Monitor.vue b/src/views/Monitor.vue deleted file mode 100644 index 981691d..0000000 --- a/src/views/Monitor.vue +++ /dev/null @@ -1,317 +0,0 @@ - - - - System Monitoring - - - - - CPU Usage - {{ cpuUsage }}% - - - - - - - - Memory Usage - {{ memoryUsage }}% - - - - - - - - Disk Usage - {{ diskUsage }}% - - - - - - - - Network Traffic - - - - Upload: - {{ formatBytes(networkUpload) }}/s - - - Download: - {{ formatBytes(networkDownload) }}/s - - - - - - - - - - - - - diff --git a/src/views/SystemInfo.vue b/src/views/SystemInfo.vue deleted file mode 100644 index e72b416..0000000 --- a/src/views/SystemInfo.vue +++ /dev/null @@ -1,204 +0,0 @@ - - - - System Information - - - - - - Operating System - - - - Operating System: - {{ systemInfo.os || '-' }} - - - Hostname: - {{ systemInfo.hostname || '-' }} - - - Kernel Version: - {{ systemInfo.kernel || '-' }} - - - - - - - - Processor - - - - Processor Model: - {{ systemInfo.cpuModel || '-' }} - - - CPU Cores: - {{ systemInfo.cpuCores || '-' }} - - - CPU Frequency: - {{ systemInfo.cpuFrequency || '-' }} - - - - - - - - Memory - - - - Total Memory: - {{ formatBytes(systemInfo.totalMemory || 0) }} - - - Available Memory: - {{ formatBytes(systemInfo.availableMemory || 0) }} - - - Used Memory: - {{ formatBytes(systemInfo.usedMemory || 0) }} - - - - - - - - Disk - - - - Total Disk Space: - {{ formatBytes(systemInfo.totalDisk || 0) }} - - - Available Disk Space: - {{ formatBytes(systemInfo.availableDisk || 0) }} - - - Used Disk Space: - {{ formatBytes(systemInfo.usedDisk || 0) }} - - - - - - - - Network - - - - IP Address: - {{ systemInfo.ipAddress || '-' }} - - - MAC Address: - {{ systemInfo.macAddress || '-' }} - - - Network Interface: - {{ systemInfo.networkInterface || '-' }} - - - - - - - - Uptime - - - - System Uptime: - {{ formatUptime(systemInfo.uptime || 0) }} - - - Boot Time: - {{ formatDate(systemInfo.bootTime || 0) }} - - - - - - - - - -