mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Clean up the CSS style custom bulma rules
This commit is contained in:
parent
f6eae91c7d
commit
b8a1fc0126
@ -15,10 +15,6 @@ em {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.level-left {
|
|
||||||
margin-right: 50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.document {
|
.document {
|
||||||
padding: 20px 20px;
|
padding: 20px 20px;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
@ -54,16 +54,11 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
let index = Index::new(&env)?;
|
let index = Index::new(&env)?;
|
||||||
|
|
||||||
// Retrieve the database the file stem (w/o the extension)
|
// Retrieve the database the file stem (w/o the extension),
|
||||||
|
// the disk file size and the number of documents in the database.
|
||||||
let db_name = opt.database.file_stem().and_then(|s| s.to_str()).unwrap_or("").to_string();
|
let db_name = opt.database.file_stem().and_then(|s| s.to_str()).unwrap_or("").to_string();
|
||||||
|
|
||||||
// Retrieve the disk file size
|
|
||||||
let db_size = File::open(opt.database.join("data.mdb"))?.metadata()?.len() as usize;
|
let db_size = File::open(opt.database.join("data.mdb"))?.metadata()?.len() as usize;
|
||||||
|
let docs_count = env.read_txn().and_then(|r| index.documents.len(&r))?;
|
||||||
// Precompute the number of documents in the database.
|
|
||||||
let rtxn = env.read_txn().unwrap();
|
|
||||||
let docs_count = index.documents.len(&rtxn)?;
|
|
||||||
drop(rtxn);
|
|
||||||
|
|
||||||
// We run and wait on the HTTP server
|
// We run and wait on the HTTP server
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<nav class="level">
|
<nav class="level">
|
||||||
<div class="level-item has-text-centered">
|
<div class="level-item has-text-centered">
|
||||||
<div>
|
<div>
|
||||||
<p class="heading">Database Path</p>
|
<p class="heading">Database Name</p>
|
||||||
<p class="title">{{ db_name }}</p>
|
<p class="title">{{ db_name }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -53,6 +53,7 @@
|
|||||||
<input id="search" class="input" type="text" autofocus placeholder="e.g. George Clooney">
|
<input id="search" class="input" type="text" autofocus placeholder="e.g. George Clooney">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="level-item"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Right side -->
|
<!-- Right side -->
|
||||||
|
Loading…
Reference in New Issue
Block a user