This commit is contained in:
masnn committed 2020-06-10 13:08:59 +08:00
1 parent 160b4482cc
commit 605f8fc65d
13 files changed
+119 -66

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ class SystemDashboardHandler extends SystemHandler {
class SystemModuleHandler extends SystemHandler {
async get() {
this.response.body.path.push(['manage_module', null]);
this.response.body.installed = await hpm.getInstalled();
this.response.body.installed = await hpm.getDetail();
this.response.active = loader.active;
this.response.template = 'manage_module.html';
}
+1 -1
View File
@@ -22,9 +22,9 @@ class StatusHandler extends Handler {
const online = new Date(stats[i].updateAt).getTime() > new Date().getTime() - 300000;
if (!online) desc = 'Offline';
desc = desc || 'Online';
stats[i].isOnline = online;
stats[i].status = desc;
}
console.log(stats);
const path = [
['Hydro', '/'],
];