mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Add file manager
This commit is contained in:
1 parent
8534053e57
commit
573bc152b1
10 files changed
+418
-98
No files matched your search
@@ -73,7 +73,8 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
|
||||
function updateGraphPoints(data) {
|
||||
if (!data) return;
|
||||
const parsed = JSON.parse(data);
|
||||
// const parsed = JSON.parse(data);
|
||||
const parsed = data || [];
|
||||
const uplot_data = [
|
||||
parsed.map(x => x[0]),
|
||||
parsed.map(x => x[1]),
|
||||
@@ -87,7 +88,8 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
Dashboard.call('get', 'chart1').then(resp => updateGraphPoints(resp?.data));
|
||||
|
||||
// Show logs
|
||||
fetch('logs/')
|
||||
.then(resp => resp.text())
|
||||
.then(text => document.getElementById("logs").textContent = text);
|
||||
// fetch('logs/')
|
||||
// .then(resp => resp.text())
|
||||
// .then(text => document.getElementById("logs").textContent = text);
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user