-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(status): separate payload into 3 parts
- Loading branch information
Showing
17 changed files
with
132 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
<template> | ||
<k-card class="load-chart" title="负载状态"> | ||
<load-bar title="CPU" :rate="status.cpu"/> | ||
<load-bar title="内存" :rate="status.memory"/> | ||
<load-bar title="CPU" :rate="profile.cpu"/> | ||
<load-bar title="内存" :rate="profile.memory"/> | ||
</k-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import LoadBar from './load-bar.vue' | ||
import type { Payload } from '~/server' | ||
import { defineProps } from 'vue' | ||
defineProps<{ status: Payload }>() | ||
import { profile } from '~/client' | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<template> | ||
<k-card title="插件列表"> | ||
<ul class="plugin-list"> | ||
<plugin-view :data="data" v-for="(data, index) in status.plugins" :key="index"/> | ||
<plugin-view :data="data" v-for="(data, index) in registry.plugins" :key="index"/> | ||
</ul> | ||
</k-card> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import PluginView from './plugin-view.vue' | ||
import { status } from '~/client' | ||
import { registry } from '~/client' | ||
</script> |
Oops, something went wrong.