Fixed JavaScript syntax error by adding quotes around all object property names (class, style, etc.) which are required in strict mode and some JavaScript parsers. Error was causing the modules page to fail silently with a blank page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
19 lines
626 B
JavaScript
19 lines
626 B
JavaScript
'use strict';
|
|
'require view';
|
|
|
|
return view.extend({
|
|
load: function() {
|
|
return Promise.resolve(null);
|
|
},
|
|
render: function() {
|
|
return E('div', {'class': 'cbi-map'}, [
|
|
E('h2', {}, 'Test: SecuBox Modules'),
|
|
E('div', {'style': 'padding:20px;background:#d4edda;border:2px solid green'}, [
|
|
E('p', {}, '✅ If you see this, the JavaScript file is loading correctly!'),
|
|
E('p', {}, 'File: /www/luci-static/resources/view/secubox/modules.js'),
|
|
E('p', {}, 'This is a minimal test without RPC calls.')
|
|
])
|
|
]);
|
|
}
|
|
});
|