Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,57 @@
define(function(require) {
'use strict';
var DialogPanel = require('modules/dialog_panel');
var WifiUtils = require('modules/wifi_utils');
return function ctor_wifiAuth() {
var elements = {};
return DialogPanel({
onInit: function(panel, options) {
elements.ssid = panel.querySelector('[data-ssid]');
elements.signal = panel.querySelector('[data-signal]');
elements.security = panel.querySelector('[data-security]');
elements.identity = panel.querySelector('input[name=identity]');
elements.password = panel.querySelector('input[name=password]');
elements.showPassword = panel.querySelector(
'gaia-checkbox[name=show-pwd]');
elements.eap = panel.querySelector('li.eap select');
elements.authPhase2 = panel.querySelector('li.auth-phase2 select');
elements.certificate =
panel.querySelector('li.server-certificate select');
},
onBeforeShow: function(panel, options) {
var network = options.network;
WifiUtils.initializeAuthFields(panel, network);
WifiUtils.changeDisplay(panel, options.security);
panel.dataset.security = options.security;
elements.ssid.textContent = network.ssid;
elements.signal.setAttribute('data-l10n-id',
'signalLevel' + options.sl);
if (options.security) {
elements.security.removeAttribute('data-l10n-id');
elements.security.textContent = options.security;
} else {
elements.security.setAttribute('data-l10n-id', 'securityNone');
}
},
onHide: function() {
elements.identity.value = '';
elements.password.value = '';
elements.showPassword.checked = false;
},
onSubmit: function() {
return Promise.resolve({
password: elements.password.value,
identity: elements.identity.value,
eap: elements.eap.value,
authPhase2: elements.authPhase2.value,
certificate: elements.certificate.value
});
}
});
};
});