This commit is contained in:
ThatOneCalculator 2023-05-29 09:32:55 -07:00
parent 655cf3dc27
commit d7d5915e3b
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "14.0.0-dev26",
"version": "14.0.0-dev31",
"codename": "aqua",
"repository": {
"type": "git",

View file

@ -1,5 +1,5 @@
<template>
<div class="ms_stats">
<div class="verusivbr">
<XPie class="pie" :value="progress" />
<div>
<p><i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch</p>
@ -33,7 +33,7 @@ function onStats(stats) {
total_size = stats.meilisearch.size;
index_count = stats.meilisearch.indexed_count;
available = stats.meilisearch.health;
progress = Math.floor((index_count / serverStats.notesCount) * 100);
progress = (index_count / serverStats.notesCount);
}
onMounted(() => {
@ -49,7 +49,8 @@ onBeforeUnmount(() => {
</script>
<style lang="scss" scoped>
.ms_stats {
.verusivbr {
display: flex;
padding: 16px;
> .pie {
@ -59,6 +60,8 @@ onBeforeUnmount(() => {
}
> div {
flex: 1;
> p {
margin: 0;
font-size: 0.8em;