- Update all 13 plugins maintainer to CyberMind <contact@cybermind.fr> - Set version to 0.0.9 for internal release - Fix API modules to use baseclass.extend() pattern (6 plugins) - Ensure all RPCD scripts use luci.* prefix - Validate menu/view/ACL coherence across all modules Affected plugins: - luci-app-auth-guardian - luci-app-bandwidth-manager - luci-app-cdn-cache - luci-app-client-guardian - luci-app-crowdsec-dashboard - luci-app-ksm-manager - luci-app-media-flow - luci-app-netdata-dashboard - luci-app-netifyd-dashboard - luci-app-network-modes - luci-app-traffic-shaper - luci-app-vhost-manager - luci-app-wireguard-dashboard Validation: All modules pass validate-modules.sh checks 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
91 lines
1.8 KiB
JavaScript
91 lines
1.8 KiB
JavaScript
'use strict';
|
|
'require baseclass';
|
|
'require rpc';
|
|
|
|
var callStatus = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'status',
|
|
expect: { }
|
|
});
|
|
|
|
var callListVHosts = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'list_vhosts',
|
|
expect: { vhosts: [] }
|
|
});
|
|
|
|
var callGetVHost = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'get_vhost',
|
|
params: ['domain'],
|
|
expect: { }
|
|
});
|
|
|
|
var callAddVHost = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'add_vhost',
|
|
params: ['domain', 'backend', 'ssl', 'auth', 'websocket'],
|
|
expect: { }
|
|
});
|
|
|
|
var callUpdateVHost = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'update_vhost',
|
|
params: ['domain', 'backend', 'ssl', 'auth', 'websocket'],
|
|
expect: { }
|
|
});
|
|
|
|
var callDeleteVHost = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'delete_vhost',
|
|
params: ['domain'],
|
|
expect: { }
|
|
});
|
|
|
|
var callTestBackend = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'test_backend',
|
|
params: ['backend'],
|
|
expect: { }
|
|
});
|
|
|
|
var callRequestCert = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'request_cert',
|
|
params: ['domain', 'email'],
|
|
expect: { }
|
|
});
|
|
|
|
var callListCerts = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'list_certs',
|
|
expect: { certificates: [] }
|
|
});
|
|
|
|
var callReloadNginx = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'reload_nginx',
|
|
expect: { }
|
|
});
|
|
|
|
var callGetAccessLogs = rpc.declare({
|
|
object: 'luci.vhost-manager',
|
|
method: 'get_access_logs',
|
|
params: ['domain', 'lines'],
|
|
expect: { logs: [] }
|
|
});
|
|
|
|
return baseclass.extend({
|
|
getStatus: callStatus,
|
|
listVHosts: callListVHosts,
|
|
getVHost: callGetVHost,
|
|
addVHost: callAddVHost,
|
|
updateVHost: callUpdateVHost,
|
|
deleteVHost: callDeleteVHost,
|
|
testBackend: callTestBackend,
|
|
requestCert: callRequestCert,
|
|
listCerts: callListCerts,
|
|
reloadNginx: callReloadNginx,
|
|
getAccessLogs: callGetAccessLogs
|
|
});
|