- 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>
66 lines
1.4 KiB
JavaScript
66 lines
1.4 KiB
JavaScript
'use strict';
|
|
'require baseclass';
|
|
'require rpc';
|
|
|
|
var callStatus = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'status',
|
|
expect: { }
|
|
});
|
|
|
|
var callGetActiveStreams = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'get_active_streams',
|
|
expect: { streams: [] }
|
|
});
|
|
|
|
var callGetStreamHistory = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'get_stream_history',
|
|
params: ['hours'],
|
|
expect: { history: [] }
|
|
});
|
|
|
|
var callGetStatsByService = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'get_stats_by_service',
|
|
expect: { services: {} }
|
|
});
|
|
|
|
var callGetStatsByClient = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'get_stats_by_client',
|
|
expect: { clients: {} }
|
|
});
|
|
|
|
var callGetServiceDetails = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'get_service_details',
|
|
params: ['service'],
|
|
expect: { }
|
|
});
|
|
|
|
var callSetAlert = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'set_alert',
|
|
params: ['service', 'threshold_hours', 'action'],
|
|
expect: { }
|
|
});
|
|
|
|
var callListAlerts = rpc.declare({
|
|
object: 'luci.media-flow',
|
|
method: 'list_alerts',
|
|
expect: { alerts: [] }
|
|
});
|
|
|
|
return baseclass.extend({
|
|
getStatus: callStatus,
|
|
getActiveStreams: callGetActiveStreams,
|
|
getStreamHistory: callGetStreamHistory,
|
|
getStatsByService: callGetStatsByService,
|
|
getStatsByClient: callGetStatsByClient,
|
|
getServiceDetails: callGetServiceDetails,
|
|
setAlert: callSetAlert,
|
|
listAlerts: callListAlerts
|
|
});
|