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,88 @@
define(["exports", "components/fxos-mvc/dist/mvc", "js/model/list_model", "js/view/list_view", "js/lib/web_server"], function (exports, _componentsFxosMvcDistMvc, _jsModelListModel, _jsViewListView, _jsLibWebServer) {
"use strict";
var _extends = function (child, parent) {
child.prototype = Object.create(parent.prototype, {
constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
}
});
child.__proto__ = parent;
};
var Controller = _componentsFxosMvcDistMvc.Controller;
var ListModel = _jsModelListModel["default"];
var ListView = _jsViewListView["default"];
var WebServer = _jsLibWebServer["default"];
var ListController = (function (Controller) {
var ListController = function ListController() {
this.model = new ListModel();
this.listView = new ListView();
this.webServer = new WebServer();
};
_extends(ListController, Controller);
ListController.prototype.main = function () {
var _this = this;
this.model.getAllApps().then(function (allApps) {
_this.enableCustomizerAddOn(allApps).then(function () {
return _this.createList(allApps);
});
});
};
ListController.prototype.enableCustomizerAddOn = function (allApps) {
var _this2 = this;
return new Promise(function (resolve, reject) {
_this2.model.getCustomizerAddOn(allApps).then(function (addon) {
if (addon && !addon.enabled) {
navigator.mozApps.mgmt.setEnabled(addon, true);
}
resolve();
});
});
};
ListController.prototype.createList = function (allApps) {
var _this3 = this;
this.listView.render();
document.body.appendChild(this.listView.el);
this.model.getAppList(allApps).then(function (appsList) {
_this3.listView.update(appsList);
_this3.listView.setOpenHandler(_this3.handleOpen.bind(_this3));
});
};
ListController.prototype.handleOpen = function (data) {
var _this4 = this;
if (data.app) {
this.webServer.startServer().then(function (result) {
if (result) {
_this4.launchApp(data);
_this4.webServer.setData(data.manifestURL);
}
});
} else {
throw new Error("Could not open app: " + data);
}
};
ListController.prototype.launchApp = function (data) {
// Use entry_point to launch app, if entry_point exists
if (data.entry_point) {
data.app.launch(data.entry_point);
} else {
data.app.launch();
}
};
return ListController;
})(Controller);
exports["default"] = ListController;
});

View file

@ -0,0 +1,46 @@
define(["exports", "components/fxos-mvc/dist/mvc", "gaia-component", "js/view/main_view", "js/controller/list_controller", "js/lib/helpers"], function (exports, _componentsFxosMvcDistMvc, _gaiaComponent, _jsViewMainView, _jsControllerListController, _jsLibHelpers) {
"use strict";
var _extends = function (child, parent) {
child.prototype = Object.create(parent.prototype, {
constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
}
});
child.__proto__ = parent;
};
var Controller = _componentsFxosMvcDistMvc.Controller;
var MainView = _jsViewMainView["default"];
var ListController = _jsControllerListController["default"];
var AchievementsHelper = _jsLibHelpers.AchievementsHelper;
var MainController = (function (Controller) {
var MainController = function MainController() {
this.achievementsHelper = new AchievementsHelper();
this.view = new MainView({ el: document.body });
this.listController = new ListController();
Controller.call(this);
};
_extends(MainController, Controller);
MainController.prototype.main = function () {
this.view.render();
this.dialog = document.querySelector("fxos-dev-mode-dialog");
// fxos-dev-mode-dialog checks and emit event 'enabled' when
// device dev mode perf is set to true. Continue to load
// list of apps inside dialog enabled event handler.
this.dialog.addEventListener("enabled", function () {
this.listController.main();
}.bind(this));
};
return MainController;
})(Controller);
exports["default"] = MainController;
});