mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Pretty print the new dashboard numbers
This commit is contained in:
parent
d44428fa90
commit
f6eae91c7d
6 changed files with 146 additions and 6 deletions
|
@ -53,3 +53,13 @@ $('#search').on('input', function () {
|
|||
},
|
||||
});
|
||||
});
|
||||
|
||||
// Make the number of document a little bit prettier
|
||||
$('#docs-count').text(function(index, text) {
|
||||
return parseInt(text).toLocaleString()
|
||||
});
|
||||
|
||||
// Make the database a little bit easier to read
|
||||
$('#db-size').text(function(index, text) {
|
||||
return filesize(parseInt(text))
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue