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,98 @@
'use strict';
/* exported MockAppsMgmt */
var MockAppsMgmt = {
getAll: function mam_getAll() {
var request = {};
setTimeout((function nextTick() {
if (request.onsuccess) {
var evt = {
target: {
result: this.mApps
}
};
request.onsuccess(evt);
if (this.mNext) {
this.mNext();
}
}
}).bind(this));
return request;
},
applyDownload: function mam_applyDownload(app) {
this.mLastAppApplied = app;
},
mApps: [],
mLastAppApplied: null,
mNext: null,
mTeardown: function mam_mTeardown() {
this.mLastAppApplied = null;
this.mApps = [];
this.mNext = null;
},
mTriggerOninstall: function mam_mTriggerOninstall(app) {
var evt;
if (this.oninstall) {
evt = {
application: app
};
this.oninstall(evt);
}
evt = document.createEvent('CustomEvent');
evt.initCustomEvent('applicationinstall',
true, false,
{ application: app });
window.dispatchEvent(evt);
},
mTriggerOnuninstall: function mam_mTriggerOnuninstall(app) {
var evt;
if (this.onuninstall) {
evt = {
application: app
};
this.onuninstall(evt);
}
evt = document.createEvent('CustomEvent');
evt.initCustomEvent('applicationuninstall',
true, false,
{ application: app });
window.dispatchEvent(evt);
},
setSelf: function mam_setSelf(app) {
this._app = app;
},
getSelf: function mam_getSelf() {
var evt;
var request = {};
var self = this;
setTimeout((function nextTick() {
if (request.onerror && !self._app) {
evt = {
'cause': 'No mock app set'
};
request.onerror(evt);
}
else if (request.onsuccess && self._app) {
evt = {
target: {
result: self._app
}
};
request.onsuccess(evt);
}
}).bind(this));
return request;
}
};