1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

feat: creates betters messaging for analytics mode (#3812)

This commit is contained in:
Amir Raminfar
2025-04-17 10:32:20 -07:00
committed by GitHub
parent e8f796a7d6
commit 061cd0c445
14 changed files with 75 additions and 5 deletions

View File

@@ -13,11 +13,15 @@
class="textarea textarea-primary w-full font-mono text-lg"
:class="{ 'textarea-error': error }"
></textarea>
<div class="label max-h-48 overflow-y-auto pr-2">
<span class="label-text-alt text-error" v-if="error">{{ error }}</span>
<div class="label mt-2 overflow-y-auto">
<span v-if="!isReady">{{ $t("analytics.creating_table") }}</span>
<span v-else-if="evaluating">{{ $t("analytics.evaluating_query") }}</span>
<span class="label-text-alt text-error" v-else-if="error">{{ error }}</span>
<span class="label-text-alt" v-else>
Total {{ results.numRows }} records
<template v-if="results.numRows > pageLimit"> . Showing first {{ page.numRows }}. </template>
{{ $t("analytics.total_records", { count: results.numRows.toLocaleString() }) }}
<template v-if="results.numRows > pageLimit">{{
$t("analytics.showing_first", { count: page.numRows.toLocaleString() })
}}</template>
</span>
</div>
</label>