Skip to content

Commit

Permalink
Update chart.js to v2.9.3 and moment.js to v2.24
Browse files Browse the repository at this point in the history
Also, switch to the plain chart.js build since their bundle included moment.js, thus include moment before chart.

Signed-off-by: XhmikosR <[email protected]>
  • Loading branch information
XhmikosR committed Dec 29, 2019
1 parent 03b3a1d commit 3b6d915
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 570 deletions.
1 change: 0 additions & 1 deletion db_graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
</div>
</div>

<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_graph.js"></script>

Expand Down
1 change: 0 additions & 1 deletion db_lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
<!-- /.col -->
</div>

<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_lists.js"></script>

Expand Down
1 change: 0 additions & 1 deletion db_queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@
</div>
<!-- /.row -->

<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/daterangepicker.js"></script>
<script src="scripts/pi-hole/js/db_queries.js"></script>

Expand Down
1 change: 0 additions & 1 deletion network.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@
require "scripts/pi-hole/php/footer.php";
?>

<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/pi-hole/js/ip-address-sorting.js"></script>
<script src="scripts/pi-hole/js/network.js"></script>
1 change: 0 additions & 1 deletion queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
</div>
<!-- /.row -->

<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/pi-hole/js/queries.js"></script>

<?php
Expand Down
8 changes: 4 additions & 4 deletions scripts/pi-hole/php/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ function pidofFTL()
<script src="scripts/vendor/bootstrap-notify.min.js"></script>

<?php if(in_array($scriptname, array("groups.php", "groups-clients.php", "groups-domains.php", "groups-adlists.php"))){ ?>
<script src="style/vendor/bootstrap/js/bootstrap-multiselect.js"></script>
<link rel="stylesheet" href="style/vendor/bootstrap/css/bootstrap-multiselect.css">
<script src="style/vendor/bootstrap/js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" href="style/vendor/bootstrap/css/bootstrap-toggle.min.css">
<script src="scripts/vendor/moment.min.js"></script>
<script src="style/vendor/bootstrap/js/bootstrap-multiselect.js"></script>
<script src="style/vendor/bootstrap/js/bootstrap-toggle.min.js"></script>
<?php } ?>

<script src="scripts/vendor/jquery.dataTables.min.js"></script>
<script src="scripts/vendor/dataTables.bootstrap.min.js"></script>
<script src="scripts/vendor/Chart.bundle.min.js"></script>
<script src="scripts/vendor/moment.min.js"></script>
<script src="scripts/vendor/Chart.min.js"></script>
</head>
<body class="skin-blue sidebar-mini <?php if($boxedlayout){ ?>layout-boxed<?php } ?>">
<noscript>
Expand Down
10 changes: 0 additions & 10 deletions scripts/vendor/Chart.bundle.min.js

This file was deleted.

7 changes: 7 additions & 0 deletions scripts/vendor/Chart.min.js

Large diffs are not rendered by default.

552 changes: 1 addition & 551 deletions scripts/vendor/moment.min.js

Large diffs are not rendered by default.

0 comments on commit 3b6d915

Please sign in to comment.