mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 19:05:11 +08:00
28 lines
503 B
JavaScript
28 lines
503 B
JavaScript
/*
|
|
* SPDX-License-Identifier: GPL-2.0-only
|
|
*
|
|
* HomeProxy 配置诊断 helper。
|
|
*/
|
|
|
|
'use strict';
|
|
'require baseclass';
|
|
'require rpc';
|
|
|
|
'require homeproxy as hp';
|
|
|
|
const callConfigDiagnostics = rpc.declare({
|
|
object: 'luci.homeproxy_node_tools',
|
|
method: 'config_diagnostics',
|
|
expect: { '': {} }
|
|
});
|
|
|
|
return baseclass.extend({
|
|
load() {
|
|
return L.resolveDefault(callConfigDiagnostics(), { result: true, items: [] });
|
|
},
|
|
|
|
show(diagnostics) {
|
|
return hp.showConfigDiagnostics(diagnostics);
|
|
}
|
|
});
|