Skip to content

Commit

Permalink
change to bower
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 25, 2024
1 parent 50cf907 commit e4079be
Show file tree
Hide file tree
Showing 1,727 changed files with 38 additions and 146,874 deletions.
23 changes: 23 additions & 0 deletions admin/static/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "nginx-webui",
"description": "nginx webui",
"main": "",
"authors": [
"Sungho Kim"
],
"license": "MIT",
"homepage": "https://github.com/lancard",
"ignore": [
"**/.*",
"node_modules",
"bower_components"
],
"dependencies": {
"jquery": "^3.7.1",
"fontawesome": "^6.5.1",
"bootstrap": "^5.3.3",
"jquery-easing": "*",
"moment": "^2.30.1",
"chart.js": "2.9.4"
}
}
8 changes: 1 addition & 7 deletions admin/static/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@

<title>Document</title>

<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">

<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
</head>
Expand Down Expand Up @@ -134,4 +128,4 @@ <h1 class="text-primary">LOCATION directive Examples</h1>
</div>
</body>

</html>
</html>
19 changes: 6 additions & 13 deletions admin/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
<title>Nginx WebUI</title>

<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<link href="bower_components/fontawesome/js-packages/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">

<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">
Expand Down Expand Up @@ -729,16 +726,12 @@ <h5 class="modal-title" id="closeModalLabel">Ready to Leave?</h5>
</div>

<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.bundle.min.js"></script>

<!-- Page level plugins -->
<script src="vendor/chart.js/Chart.min.js"></script>

<!-- dayjs plugin -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.11.7/dayjs.min.js"
integrity="sha512-hcV6DX35BKgiTiWYrJgPbu3FxS6CsCjKgmrsPRpUPkXWbvPiKxvSVSdhWX0yXcPctOI2FJ4WP6N1zH+17B/sAA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="bower_components/chart.js/dist/Chart.min.js"></script>
<script src="bower_components/moment/min/moment.min.js"></script>

<!-- custom all.js -->
<script src="js/index.js"></script>
Expand All @@ -753,4 +746,4 @@ <h5 class="modal-title" id="closeModalLabel">Ready to Leave?</h5>

</body>

</html>
</html>
8 changes: 5 additions & 3 deletions admin/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,11 @@ function updateStatus() {
$("#totalRequests").text(status.totalRequests);
$("#activeConnections").text(status.activeConnections);

addData(readingConnectionsChart, dayjs().format("HH:mm:ss"), status.readingConnections);
addData(writingConnectionsChart, dayjs().format("HH:mm:ss"), status.writingConnections);
addData(waitingConnectionsChart, dayjs().format("HH:mm:ss"), status.waitingConnections);
var now = moment().format("HH:mm:ss");

addData(readingConnectionsChart, now, status.readingConnections);
addData(writingConnectionsChart, now, status.writingConnections);
addData(waitingConnectionsChart, now, status.waitingConnections);
});

loadCertList();
Expand Down
21 changes: 3 additions & 18 deletions admin/static/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@

<title>Nginx WebUI - Login</title>

<!-- Custom fonts for this template-->
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">

<!-- Custom styles for this template-->
<link href="css/sb-admin-2.min.css" rel="stylesheet">

Expand Down Expand Up @@ -63,15 +57,6 @@ <h1 class="h4 text-gray-900 mb-4">Welcome to Nginx WebUI!</h1>
Login
</a>
</form>
<!--
<hr>
<div class="text-center">
<a class="small" href="forgot-password.html">Forgot Password?</a>
</div>
<div class="text-center">
<a class="small" href="register.html">Create an Account!</a>
</div>
-->
</div>
</div>
</div>
Expand All @@ -85,8 +70,8 @@ <h1 class="h4 text-gray-900 mb-4">Welcome to Nginx WebUI!</h1>
</div>

<!-- Bootstrap core JavaScript-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.bundle.min.js"></script>

<script>
$(function () {
Expand Down Expand Up @@ -121,4 +106,4 @@ <h1 class="h4 text-gray-900 mb-4">Welcome to Nginx WebUI!</h1>

</body>

</html>
</html>
7 changes: 0 additions & 7 deletions admin/static/vendor/bootstrap/js/bootstrap.bundle.min.js

This file was deleted.

This file was deleted.

Loading

0 comments on commit e4079be

Please sign in to comment.