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,34 @@
/* global Resources */
/* exported Customizer */
'use strict';
// Extend this class for creating a new customizer and provide
// a set() method. It is expected set() returns nothing and accept
// an unique parameter which is an object of the type specified
// in the constructor of the customizer.
var Customizer = (function(setting, resourceType, onerror) {
var self = this;
this.init = function() {
window.addEventListener('customization', function eventHandler(event) {
if (event.detail.setting === setting) {
window.removeEventListener('customization', eventHandler);
var value = event.detail.value;
self.simPresentOnFirstBoot = event.detail.simPresentOnFirstBoot;
// If resourceType === 'data' the value received contains directly the
// value that the customizer will proccess.
// In other case the value will have the resource to be loaded by the
// customizer.
if (resourceType === 'data') {
self.set(value);
} else {
Resources.load(value, resourceType, self.set.bind(self),
function onerrorRetrieving(status) {
console.error('Customizer.js: Error retrieving the resource.');
onerror && onerror(status);
});
}
}
});
};
});