Skip to content

Commit cbab29f

Browse files
committed
update js remove cdn
update chart prop add date to label
1 parent c121d10 commit cbab29f

File tree

4 files changed

+13948
-21
lines changed

4 files changed

+13948
-21
lines changed

Views/Home/Index.cshtml

+7-21
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
ViewData["Title"] = "Home Page";
33
}
44
<script src="~/js/signalr/dist/browser/signalr.js"></script>
5-
<script src="https://unpkg.com/vue@next"></script>
6-
<script src="https://unpkg.com/@@vueuse/shared"></script>
7-
<script src="https://unpkg.com/@@vueuse/core"></script>
8-
<script src="https://www.chartjs.org/dist/2.9.4/Chart.min.js"></script>
9-
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
10-
5+
<script src="~/js/vue/vue.global.js"></script>
6+
<script src="~/js/axios/axios.min.js"></script>
7+
<script src="~/js/chartjs/Chart.min.js"></script>
118

129
<body>
1310
<div class="text-center" id="app">
@@ -63,26 +60,13 @@
6360
]
6461
},
6562
options: {
66-
responsive: false,
67-
/*animation: {
68-
duration: speed * 1.5,
69-
easing: 'linear'
70-
},*/
63+
responsive: true,
64+
showTooltips: false,
7165
title: {
7266
display: true,
7367
text: title
7468
},
7569
legend: false,
76-
scales: {
77-
xAxes: [
78-
{
79-
display: false
80-
}
81-
],
82-
yAxes: [
83-
84-
]
85-
}
8670
}
8771
});
8872
}
@@ -106,6 +90,8 @@
10690
cpuValues.shift();
10791
memValues.push(stats.RAM);
10892
memValues.shift();
93+
labels.push(new Date().toTimeString().split(' ')[0]);
94+
labels.shift();
10995
});
11096
});
11197
watch(cpuValues, value => {

wwwroot/js/axios/axios.min.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wwwroot/js/chartjs/Chart.min.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)