Compare commits

..

No commits in common. "eefa7b13463b6ef83c3682026948296ac2e0636c" and "4ed93902a614b1f44b41997519bf9daf9fc87098" have entirely different histories.

2 changed files with 2 additions and 12 deletions

View File

@ -68,7 +68,6 @@ const label = computed(() => {
'redis-type-tag-small': !props.short && props.size === 'small', 'redis-type-tag-small': !props.short && props.size === 'small',
'redis-type-tag-round': props.round, 'redis-type-tag-round': props.round,
'redis-type-tag-loading': props.loading, 'redis-type-tag-loading': props.loading,
'redis-type-tag': props.short,
}" }"
:color="{ color: backgroundColor, textColor: fontColor }" :color="{ color: backgroundColor, textColor: fontColor }"
:size="props.size" :size="props.size"
@ -113,13 +112,4 @@ const label = computed(() => {
opacity: 0.4; opacity: 0.4;
} }
} }
.redis-type-tag {
width: 22px;
height: 22px;
justify-content: center;
align-items: center;
text-align: center;
vertical-align: middle;
}
</style> </style>

View File

@ -94,7 +94,7 @@ const refreshInfo = async (force) => {
const _updateChart = (info) => { const _updateChart = (info) => {
let timeLabels = toRaw(cmdRate.value.labels) let timeLabels = toRaw(cmdRate.value.labels)
timeLabels = timeLabels.concat(dayjs().format('HH:mm:ss')) timeLabels = timeLabels.concat(dayjs().format('hh:mm:ss'))
timeLabels = slice(timeLabels, Math.max(0, timeLabels.length - statusHistory)) timeLabels = slice(timeLabels, Math.max(0, timeLabels.length - statusHistory))
// commands per seconds // commands per seconds
@ -146,7 +146,7 @@ const _updateChart = (info) => {
const _mockChart = () => { const _mockChart = () => {
const timeLabels = [] const timeLabels = []
for (let i = 0; i < 5; i++) { for (let i = 0; i < 5; i++) {
timeLabels.push(dayjs().add(5, 'seconds').format('HH:mm:ss')) timeLabels.push(dayjs().add(5, 'seconds').format('hh:mm:ss'))
} }
// commands per seconds // commands per seconds