diff --git a/src/components/custom/Editor/MarkDownEditor/index.vue b/src/components/custom/Editor/MarkDownEditor/index.vue new file mode 100644 index 0000000..761cd18 --- /dev/null +++ b/src/components/custom/Editor/MarkDownEditor/index.vue @@ -0,0 +1,29 @@ + + + + + + + diff --git a/src/components/custom/Editor/RichTextEditor/index.vue b/src/components/custom/Editor/RichTextEditor/index.vue new file mode 100644 index 0000000..31a3271 --- /dev/null +++ b/src/components/custom/Editor/RichTextEditor/index.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue new file mode 100644 index 0000000..bc5f376 --- /dev/null +++ b/src/views/monitor/cache/index.vue @@ -0,0 +1,954 @@ + + + + + + + + + + + + + + + + + + + + + + + + 确定要清空所有缓存吗? + + + 此操作将删除Redis中的所有数据,且不可恢复! + + + + + + + + + + {{ cache.cacheName }} + + + {{ cache.remark }} + + + + + + + + + + + + 确定删除此缓存分类的所有数据吗? + + + + + + + + + + + + + + + + + + + + + + + + + + + + 加载缓存键名中... + + + + + + + + + + + + + + + {{ key }} + + + + + + + + + + + + 确定删除此缓存键吗? + + + + + + + + + + + + + + + + + + + + + + + + + + + + 加载缓存内容中... + + + + + + + + + 缓存键名 + + + {{ cacheContent?.cacheKey || 'N/A' }} + + + + + 过期时间 + + + + + + + {{ cacheContent.expireTime }} + + + + + + 永不过期 + + + + + + + + + + 缓存内容 + + + + + + + 格式化 + + + + + + 复制 + + + + + + + {{ formattedContent }} + + + + + + + + + + + + + + + diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue new file mode 100644 index 0000000..27633ee --- /dev/null +++ b/src/views/monitor/job/index.vue @@ -0,0 +1,1026 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + + + 重置 + + + + + + + + + + + + + + + + + + 新增 + + + + + + + + + 删除 + + + + + + + + + 启动 + + + + + + + + + 停止 + + + + + 已选择 {{ selectedRowKeys.length }} 项 + + + + + + + + + + + + + + + + + 新增任务 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 选择预设 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 选择一个预设的时间配置,点击即可应用到Cron表达式中 + + + + + {{ preset.label }} + + + {{ preset.value }} + + + + + + + + + 取消 + + + + + + + + + + diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue new file mode 100644 index 0000000..0b4799d --- /dev/null +++ b/src/views/monitor/online/index.vue @@ -0,0 +1,688 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + + + + + + 重置 + + + + + + + + + + + + + + + + + 在线用户: + + {{ onlineCount }} 人 + + + + + + 自动刷新: + + + ({{ refreshCountdown }}s) + + + + + + 最后更新: {{ lastUpdateTime }} + + + + + 共 {{ pagination.itemCount }} 条 + + + + + + + + + + + + + + + + + + + + + + + + {{ getEmptyActionText() }} + + + + + + + + + + + + + + + + diff --git a/src/views/monitor/redis/components/CommandStatsPieChart.vue b/src/views/monitor/redis/components/CommandStatsPieChart.vue new file mode 100644 index 0000000..36d3eaf --- /dev/null +++ b/src/views/monitor/redis/components/CommandStatsPieChart.vue @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + + + + + + 命令统计 + + + {{ totalCommands.toLocaleString() }} + + + + + + + + + + + {{ item.name }} + + + {{ Number(item.value).toLocaleString() }} ({{ item.percentage }}%) + + + + + + + + + 其他 + + + {{ otherCommands.toLocaleString() }} ({{ otherPercentage }}%) + + + + + + + + + + + diff --git a/src/views/monitor/redis/components/MemoryGaugeChart.vue b/src/views/monitor/redis/components/MemoryGaugeChart.vue new file mode 100644 index 0000000..ba3dc65 --- /dev/null +++ b/src/views/monitor/redis/components/MemoryGaugeChart.vue @@ -0,0 +1,272 @@ + + + + + + + + + + + + + + + + {{ formattedUsage }} + + + 内存使用率 + + + + + + + + + + 已用内存 + + + {{ formatBytes(usedMemory) }} + + + + + 总内存 + + + {{ formatBytes(maxMemory) }} + + + + + 可用内存 + + + {{ formatBytes(availableMemory) }} + + + + + 状态 + + + {{ memoryStatus }} + + + + + + + + + + diff --git a/src/views/monitor/redis/index.vue b/src/views/monitor/redis/index.vue new file mode 100644 index 0000000..bb63ecf --- /dev/null +++ b/src/views/monitor/redis/index.vue @@ -0,0 +1,316 @@ + + + + + + + Redis监控 + + + 实时监控Redis服务器状态和性能指标 + + + + + + + + 刷新数据 + + + + + + + + + + + + + + {{ getRedisInfo('redis_version') || 'N/A' }} + + + {{ getRedisMode() }} + + + {{ getRedisInfo('tcp_port') || 'N/A' }} + + + {{ getRedisInfo('connected_clients') || '0' }} + + + + + + + {{ formatUptime(getRedisInfo('uptime_in_days')) }} + + + {{ formatMemory(getRedisInfo('used_memory_human')) }} + + + {{ getRedisInfo('maxmemory') === '0' ? '无限制' : formatBytes(getRedisInfo('maxmemory')) }} + + + {{ getRedisInfo('used_cpu_user_children') || '0' }}% + + + {{ redisData?.dbSize || 0 }} + + + + + + + {{ formatNetwork() }} + + + {{ getRedisInfo('aof_enabled') === '1' ? '是' : '否' }} + + + {{ getRedisInfo('rdb_last_save_time') ? '是' : '否' }} + + + {{ getKeyHitRate() }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/monitor/server/components/StatCard.vue b/src/views/monitor/server/components/StatCard.vue new file mode 100644 index 0000000..8f2fdb2 --- /dev/null +++ b/src/views/monitor/server/components/StatCard.vue @@ -0,0 +1,182 @@ + + + + + + + + {{ title }} + + + {{ value }} + + + {{ subtitle }} + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/monitor/server/index.vue b/src/views/monitor/server/index.vue new file mode 100644 index 0000000..1956fa1 --- /dev/null +++ b/src/views/monitor/server/index.vue @@ -0,0 +1,327 @@ + + + + + + + 服务监控 + + + 实时监控服务器运行状态和系统资源使用情况 + + + + + + + + 刷新数据 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ serverData?.jvm?.version || 'N/A' }} + + + {{ serverData?.jvm?.startTime || 'N/A' }} + + + {{ serverData?.jvm?.runTime || 'N/A' }} + + + {{ serverData?.jvm?.home || 'N/A' }} + + + {{ serverData?.sys?.userDir || 'N/A' }} + + + + -Djava.version={{ serverData?.jvm?.version || 'N/A' }} + + + + + + JVM内存详情 + + + + + + + + + + + + + + + + + + + + +
+ 确定要清空所有缓存吗? +
+ 此操作将删除Redis中的所有数据,且不可恢复! +
{{ formattedContent }}
+ 实时监控Redis服务器状态和性能指标 +
+ 实时监控服务器运行状态和系统资源使用情况 +