Revert "refactor: add back old info display from mkv12"

This reverts commit c58692fa58.
This commit is contained in:
ThatOneCalculator 2023-05-29 19:45:42 -07:00
parent 15d311c513
commit ce5d93c9df
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -1,23 +1,6 @@
<template> <template>
<div class="_panel ntjkdlsfk" :class="$style.root"> <div class="_panel" :class="$style.root">
<div class="container env"> <div class="ntjkdlsfk">
<div class="body">
<div class="number _panel">
<div class="label">Calckey</div>
<div class="value _monospace">{{ version }}</div>
</div>
<div v-if="serverInfo" class="number _panel">
<div class="label">Node.js</div>
<div class="value _monospace">{{ serverInfo.node }}</div>
</div>
<div v-if="serverInfo" class="number _panel">
<div class="label">PostgreSQL</div>
<div class="value _monospace">{{ serverInfo.psql }}</div>
</div>
<div v-if="serverInfo" class="number _panel">
<div class="label">Redis</div>
<div class="value _monospace">{{ serverInfo.redis }}</div>
</div>
<div class="_panel"> <div class="_panel">
<XPie class="pie" :value="cpuUsage" /> <XPie class="pie" :value="cpuUsage" />
<div> <div>
@ -51,12 +34,10 @@
<XPie class="pie" :value="meiliProgress" /> <XPie class="pie" :value="meiliProgress" />
<div> <div>
<p> <p>
<i class="ph-file-search ph-bold ph-lg"></i <i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch
>MeiliSearch
</p> </p>
<p> <p>
{{ i18n.ts._widgets.meiliStatus }}: {{ i18n.ts._widgets.meiliStatus }}: {{ meiliAvailable }}
{{ meiliAvailable }}
</p> </p>
<p> <p>
{{ i18n.ts._widgets.meiliSize }}: {{ i18n.ts._widgets.meiliSize }}:
@ -70,7 +51,6 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
@ -80,11 +60,9 @@ import bytes from "@/filters/bytes";
import { stream } from "@/stream"; import { stream } from "@/stream";
import * as os from "@/os"; import * as os from "@/os";
import { i18n } from "@/i18n"; import { i18n } from "@/i18n";
import { version } from "@/config";
const meta = await os.api("server-info", {}); const meta = await os.api("server-info", {});
const serverStats = await os.api("stats"); const serverStats = await os.api("stats");
const serverInfo = await os.api("admin/server-info");
let cpuUsage: number = $ref(0); let cpuUsage: number = $ref(0);
@ -138,25 +116,7 @@ onUnmounted(() => {
display: flex; display: flex;
padding: 16px; padding: 16px;
&.env { > ._panel {
> .body {
display: grid;
grid-gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
> .number {
padding: 14px 20px;
> .label {
opacity: 0.7;
font-size: 0.8em;
}
> .value {
font-size: 1.1em;
}
}
> .pie { > .pie {
height: 82px; height: 82px;
flex-shrink: 0; flex-shrink: 0;
@ -182,5 +142,4 @@ onUnmounted(() => {
} }
} }
} }
}
</style> </style>