update-11.22

This commit is contained in:
github-actions[bot]
2021-11-22 09:02:33 +08:00
parent 61e3eaddce
commit eb45a6b40e
12 changed files with 69 additions and 77 deletions

View File

@@ -19,13 +19,13 @@ return view.extend({
render: function(data) {
var m, s, o;
var has_wifi = false;
m = new form.Map('wizard', [_('Inital Router Setup')],
_('If you are using this router for the first time, please configure it here.'));
s = m.section(form.NamedSection, 'default', 'wizard');
s.addremove = false;
s.tab('wansetup', _('Wan Settings'), _('Three different ways to access the Internet, please choose according to your own situation.'));
s.tab('lansetup', _('Lan Settings'));
o = s.taboption('wansetup', form.ListValue, 'wan_proto', _('Protocol'));
@@ -61,15 +61,6 @@ return view.extend({
o.datatype = 'ip4addr';
o.cast = 'string';
if (has_wifi) {
o = s.taboption('wifisetup', form.Value, 'wifi_ssid', _('<abbr title=\"Extended Service Set Identifier\">ESSID</abbr>'));
o.datatype = 'maxlength(32)';
o = s.taboption("wifisetup", form.Value, "wifi_key", _("Key"));
o.datatype = 'wpakey';
o.password = true;
}
o = s.taboption('lansetup', form.Value, 'lan_ipaddr', _('IPv4 address'));
o.datatype = 'ip4addr';