mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-16 22:51:14 +00:00
chore: 完成多批次代码优化与重构
- 重构工作流模块目录结构,迁移代码文件 - 修复类型断言空值安全问题,添加 ! 操作符 - 优化样式类名,替换 flex-cc 为标准 flex 工具类 - 更新路由标签简化文案,移除冗余注释 - 调整 ruff 配置,放宽行长度限制 - 更新 README 与多语言文案,优化项目描述 - 修复表单、图表组件的类型与样式问题 - 简化搜索表单、数据卡片的布局代码
This commit is contained in:
@@ -262,7 +262,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import FaDescriptions from "@/components/others/fa-descriptions/index.vue";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import CacheAPI, {
|
||||
type CacheInfo,
|
||||
|
||||
@@ -66,10 +66,8 @@ import OnlineAPI, { type OnlineUserTable } from "@/api/module_monitor/online";
|
||||
import type { ColumnOption } from "@/types/component";
|
||||
import { ElMessage, ElMessageBox, ElTooltip } from "element-plus";
|
||||
import { useAuth } from "@/hooks/core/useAuth";
|
||||
import FaTable from "@/components/tables/fa-table/index.vue";
|
||||
import FaTableHeader from "@/components/tables/fa-table-header/index.vue";
|
||||
import FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
import type { SearchFormItem } from "@/components/forms/fa-search-bar/index.vue";
|
||||
import type FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
import FaCopyButton from "@/components/others/fa-copy-button/index.vue";
|
||||
import FaButtonTable from "@/components/forms/fa-button-table/index.vue";
|
||||
|
||||
|
||||
@@ -221,11 +221,8 @@ import { useTable } from "@/hooks/core/useTable";
|
||||
import { ResourceAPI, type ResourceItem } from "@/api/module_monitor/resource";
|
||||
import type { ColumnOption } from "@/types/component";
|
||||
import { useAuth } from "@/hooks/core/useAuth";
|
||||
import FaTable from "@/components/tables/fa-table/index.vue";
|
||||
import FaTableHeader from "@/components/tables/fa-table-header/index.vue";
|
||||
import FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
import type { SearchFormItem } from "@/components/forms/fa-search-bar/index.vue";
|
||||
import FaDialog from "@/components/modal/fa-dialog/index.vue";
|
||||
import type FaSearchBar from "@/components/forms/fa-search-bar/index.vue";
|
||||
import FaButtonTable from "@/components/forms/fa-button-table/index.vue";
|
||||
|
||||
const { hasAuth } = useAuth();
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
<span class="font-medium">CPU使用情况</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="flex-c flex-col gap-4">
|
||||
<div class="flex-c gap-6">
|
||||
<div class="flex items-center flex-col gap-4">
|
||||
<div class="flex items-center gap-6">
|
||||
<ElProgress
|
||||
type="circle"
|
||||
:percentage="server.cpu?.used || 0"
|
||||
@@ -49,12 +49,12 @@
|
||||
<ElCard :loading="loading" shadow="hover" class="server-card">
|
||||
<template #header>
|
||||
<div class="flex items-center gap-2">
|
||||
<FaSvgIcon icon="ri:memory-line" class="text-lg" />
|
||||
<FaSvgIcon icon="ri:ram-line" class="text-lg" />
|
||||
<span class="font-medium">内存使用情况</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="flex-c flex-col gap-4">
|
||||
<div class="flex-c gap-6">
|
||||
<div class="flex items-center flex-col gap-4">
|
||||
<div class="flex items-center gap-6">
|
||||
<ElProgress
|
||||
type="circle"
|
||||
:percentage="server.mem?.usage || 0"
|
||||
@@ -186,7 +186,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import FaDescriptions from "@/components/others/fa-descriptions/index.vue";
|
||||
import ServerAPI, { type ServerInfo } from "@/api/module_monitor/server";
|
||||
|
||||
defineOptions({ name: "ServerMonitor" });
|
||||
|
||||
Reference in New Issue
Block a user