mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use date-fns instead of luxon on dashboard (#7602)
* Use date-fns instead of luxon on dashboard * Update system_network_status.php * Update system_cpu_status.php * Update index.php
This commit is contained in:
@@ -68,10 +68,6 @@
|
||||
|
||||
if ($widget_chart_type === 'line') { ?>
|
||||
<div class='hud_chart' style='width: 90%; height: 85%'><canvas id='system_cpu_status_chart'></canvas></div>
|
||||
<!--<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon"></script>
|
||||
|
||||
<script>
|
||||
const cpu_status_auth_token = {
|
||||
name: "<?= $token['name']; ?>",
|
||||
|
||||
@@ -54,13 +54,6 @@ echo "</span>\n";
|
||||
<div class='hud_chart' style='width: 100%; height: 85%'>
|
||||
<canvas id='system_network_status_chart'></canvas>
|
||||
</div>
|
||||
<!-- <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> -->
|
||||
|
||||
<!-- 2) Luxon -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min.js"></script>
|
||||
|
||||
<!-- 3) Adapter for Luxon -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon"></script>
|
||||
<script>
|
||||
const network_status_auth_token = {
|
||||
name: "<?= $token['name']; ?>",
|
||||
|
||||
Reference in New Issue
Block a user