mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
66 lines
2.0 KiB
HTML
66 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Milvus WebUI - Configs</title>
|
|
<meta name="description" content="Milvus Management WebUI">
|
|
<link href="./static/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="./static/css/style.css" rel="stylesheet">
|
|
<script src="./static/js/jquery.min.js"></script>
|
|
<script src="./static/js/bootstrap.min.js"></script>
|
|
<script src="./static/js/bootstrap.bundle.min.js"></script>
|
|
<script src="./static/js/render.js"></script>
|
|
<script src="./static/js/common.js"></script>
|
|
<script src="./static/js/mockdata.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<div id="header"></div>
|
|
<div class="row">
|
|
<div class="col-md-2"></div>
|
|
<div class="col-md-8">
|
|
<h2>
|
|
Milvus Configurations
|
|
</h2>
|
|
|
|
<div>
|
|
<input type="text" id="searchInput" placeholder="Search..." oninput="searchConfigs()" class="form-control mb-3" />
|
|
</div>
|
|
<table id="mConfig" class="table table-hover"></table>
|
|
<div id="paginationControls"></div>
|
|
|
|
<h2>
|
|
Hook Configurations
|
|
</h2>
|
|
<table id="hConfig" class="table table-hover"></table>
|
|
</div>
|
|
<div class="col-md-2"></div>
|
|
</div>
|
|
<div id="footer"></div>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
$('#header').load("header.html");
|
|
$('#footer').load("footer.html");
|
|
});
|
|
|
|
function searchConfigs() {
|
|
const searchTerm = document.getElementById('searchInput').value;
|
|
currentPage = 0; // Reset to the first page on new search
|
|
renderConfigs(configData, searchTerm);
|
|
}
|
|
|
|
// load cluster configurations
|
|
fetchData(MILVUS_URI + '/_cluster/configs', mconfigs)
|
|
.then(data => {
|
|
renderConfigs(data)
|
|
})
|
|
.catch(error => {
|
|
handleError(error);
|
|
});
|
|
</script>
|
|
</div>
|
|
</body>
|
|
</html> |