fix(rtty-remote): Add null checks and move to KISS UI System Hub
- Fix TypeError in support.js: add null checks for DOM elements - Move menu entries from Services to System Hub (KISS UI) - Menu paths: admin/secubox/system/system-hub/rtty-remote - Menu paths: admin/secubox/system/system-hub/support Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2c763c3583
commit
8b65bd64e9
@ -432,12 +432,14 @@ return view.extend({
|
|||||||
|
|
||||||
appendTerminal: function(text) {
|
appendTerminal: function(text) {
|
||||||
var output = document.getElementById('terminal-output');
|
var output = document.getElementById('terminal-output');
|
||||||
|
if (!output) return;
|
||||||
output.textContent += text;
|
output.textContent += text;
|
||||||
output.scrollTop = output.scrollHeight;
|
output.scrollTop = output.scrollHeight;
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSessionsList: function() {
|
updateSessionsList: function() {
|
||||||
var container = document.getElementById('active-sessions-list');
|
var container = document.getElementById('active-sessions-list');
|
||||||
|
if (!container) return;
|
||||||
container.innerHTML = '';
|
container.innerHTML = '';
|
||||||
|
|
||||||
var codes = Object.keys(supportSessions);
|
var codes = Object.keys(supportSessions);
|
||||||
|
|||||||
@ -1,19 +1,18 @@
|
|||||||
{
|
{
|
||||||
"admin/services/rtty-remote": {
|
"admin/secubox/system/system-hub/rtty-remote": {
|
||||||
"title": "RTTY Remote",
|
"title": "Remote Control",
|
||||||
"order": 85,
|
"order": 15,
|
||||||
"action": {
|
"action": {
|
||||||
"type": "view",
|
"type": "view",
|
||||||
"path": "rtty-remote/dashboard"
|
"path": "rtty-remote/dashboard"
|
||||||
},
|
},
|
||||||
"depends": {
|
"depends": {
|
||||||
"acl": ["luci-app-rtty-remote"],
|
"acl": ["luci-app-rtty-remote"]
|
||||||
"uci": { "rtty-remote": true }
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"admin/services/rtty-remote/support": {
|
"admin/secubox/system/system-hub/support": {
|
||||||
"title": "Support Panel",
|
"title": "Remote Support",
|
||||||
"order": 10,
|
"order": 16,
|
||||||
"action": {
|
"action": {
|
||||||
"type": "view",
|
"type": "view",
|
||||||
"path": "rtty-remote/support"
|
"path": "rtty-remote/support"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user