secubox-openwrt/package/secubox/luci-app-mmpm/htdocs/luci-static/resources/view/mmpm/settings.js
CyberMind-FR a83cde0885 feat(magicmirror2): Add MagicMirror² and MMPM packages
New packages:
- secubox-app-magicmirror2 (0.4.0): MagicMirror² smart display platform
  - LXC container with Docker image extraction
  - mm2ctl CLI for management
  - Support for gzip/zstd compressed layers
  - Default port 8082

- luci-app-magicmirror2 (0.4.0): LuCI web interface
  - Dashboard, modules, webui, settings views
  - RPCD backend for service control
  - Module management integration

- secubox-app-mmpm (0.2.0): MMPM package manager
  - Installs MMPM in MagicMirror2 container
  - mmpmctl CLI for module management
  - Web GUI on port 7891

- luci-app-mmpm (0.2.0): LuCI interface for MMPM
  - Dashboard with install/update controls
  - Module search and management
  - Embedded web GUI view

Portal integration:
- Added MagicMirror² and MMPM to Services section
- Portal version bumped to 0.6.0

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 12:00:18 +01:00

40 lines
809 B
JavaScript

'use strict';
'require view';
'require dom';
'require ui';
'require uci';
'require form';
return view.extend({
title: _('MMPM Settings'),
load: function() {
return uci.load('mmpm');
},
render: function() {
var m, s, o;
m = new form.Map('mmpm', _('MMPM Settings'), _('Configure MMPM - MagicMirror Package Manager'));
s = m.section(form.NamedSection, 'main', 'mmpm', _('General Settings'));
s.anonymous = true;
s.addremove = false;
o = s.option(form.Flag, 'enabled', _('Enable GUI Service'));
o.rmempty = false;
o.default = '0';
o = s.option(form.Value, 'port', _('GUI Port'));
o.datatype = 'port';
o.default = '7891';
o.rmempty = false;
o = s.option(form.Value, 'address', _('Listen Address'));
o.default = '0.0.0.0';
o.rmempty = false;
return m.render();
}
});