mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-06 20:14:10 +08:00
🌈 Sync 2026-05-19 02:35:14
This commit is contained in:
1 parent
595807ea37
commit
ca5e918f4b
81 files changed
+12003
-3193
No files matched your search
@@ -60,7 +60,7 @@ var qdesc = _('Select qmi port.');
|
||||
var lacdec = _('Show LAC and CID in decimal.');
|
||||
var mmdesc = _('Get device hardware name via mmcli utility if aviable.');
|
||||
var qmidesc = _('Set qmi mode.');
|
||||
var idesc = _('Short info on Overview page');
|
||||
var idesc = _('Show short info.<br />Overview: show info on main page \"Cellular Network\" section<br />MenuBar: show info on menubar all pages<br />NOTICE: Don\'t add too many modems in menubar, it may break the theme display.');
|
||||
var portplace = _('Please select a port');
|
||||
|
||||
return view.extend({
|
||||
@@ -88,8 +88,12 @@ return view.extend({
|
||||
s = m.section(form.TypedSection, 'general', _('General option'), null);
|
||||
s.anonymous = true;
|
||||
|
||||
o = s.option(form.Flag, 'index', _('Index page'), idesc);
|
||||
s.anonymous = true;
|
||||
o = s.option(form.ListValue, 'index', _('Short info'), idesc);
|
||||
o.widget="radio";
|
||||
o.value(0,_('none'));
|
||||
o.value(1,_('overview'));
|
||||
o.value(2,_('menubar'));
|
||||
o.default = '0';
|
||||
o.rmempty = true;
|
||||
|
||||
o = s.option(form.Flag, 'decimail', _('Show decimal'), lacdec);
|
||||
|
||||
+14
-5
@@ -19,7 +19,11 @@ return baseclass.extend({
|
||||
title: _('Cellular network'),
|
||||
|
||||
load: async function() {
|
||||
uci.load('modeminfo');
|
||||
await uci.load('modeminfo');
|
||||
var index = uci.sections('modeminfo', 'general');
|
||||
if (!index || !index[0] || index[0].index !== "1") {
|
||||
return null;
|
||||
};
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => {
|
||||
@@ -43,10 +47,15 @@ return baseclass.extend({
|
||||
|
||||
render: function(data){
|
||||
if (!data || data.trim() === '') {
|
||||
return E('div', {
|
||||
'class': 'cbi-section',
|
||||
'style': 'color: #999; text-align: center;'
|
||||
}, _('Wait devices information'));
|
||||
var index = uci.sections('modeminfo', 'general');
|
||||
if (!index || !index[0] || index[0].index !== "1") {
|
||||
return null;
|
||||
} else {
|
||||
return E('div', {
|
||||
'class': 'cbi-section',
|
||||
'style': 'color: #999; text-align: center;'
|
||||
}, _('Wait devices information'));
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user