added hotReload saveFile

This commit is contained in:
2026-04-28 14:30:53 +02:00
parent 9ffea9ee45
commit 061188a3c0
12 changed files with 113 additions and 163 deletions

View File

@@ -23,11 +23,12 @@
data: json,
expandInitially: true,
onSave: json => {
console.log(JSON.stringify(tree.getChanges()));
fetch('/config', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(json, null, 2)
}).then(() => writeEventLog(0, 'Serverconfig', tree.getChanges()) );
body: JSON.stringify(tree.getChanges(), null, 2)
}).then(() => writeEventLog(0, 'Serverconfig', JSON.stringify(tree.getChanges())) );
}
});
});

View File

@@ -21,7 +21,7 @@
fetch('/style', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(json, null, 2)
body: JSON.stringify(tree.getChanges(), null, 2)
}).then(() => writeEventLog(0, 'Stylesheet', JSON.stringify(tree.getChanges())) );
}
});