mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
fix
This commit is contained in:
1 parent
160b4482cc
commit
605f8fc65d
13 files changed
+119
-66
No files matched your search
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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', '/'],
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user