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,82 @@
define(["exports", "components/fxos-mvc/dist/mvc", "components/gaia-list/gaia-list", "components/gaia-button/gaia-button", "js/lib/helpers"], function (exports, _componentsFxosMvcDistMvc, _componentsGaiaListGaiaList, _componentsGaiaButtonGaiaButton, _jsLibHelpers) {
"use strict";
var _taggedTemplateLiteral = function (strings, raw) {
return Object.defineProperties(strings, {
raw: {
value: raw
}
});
};
var _extends = function (child, parent) {
child.prototype = Object.create(parent.prototype, {
constructor: {
value: child,
enumerable: false,
writable: true,
configurable: true
}
});
child.__proto__ = parent;
};
var View = _componentsFxosMvcDistMvc.View;
var IconHelper = _jsLibHelpers.IconHelper;
function capitalize(string) {
return string[0].toUpperCase() + string.slice(1);
}
var ListView = (function (View) {
var ListView = function ListView() {
this.el = document.createElement("gaia-list");
this.el.className = "app-list";
this.elements = Object.create(null);
};
_extends(ListView, View);
ListView.prototype.update = function (list) {
for (var key in list) {
var data = list[key];
if (!this.elements[key]) {
this.elements[key] = this.addElement(data);
}
}
};
ListView.prototype.setOpenHandler = function (handler) {
if (!this.openHandler) {
this.openHandler = handler;
}
};
ListView.prototype.addElement = function (data) {
var item = document.createElement("li");
item.classList.add("app");
item.innerHTML = Sanitizer.unwrapSafeHTML(this.listItemTemplate(data));
IconHelper.setImage(item.querySelector(".icon"), data.icon);
this.el.appendChild(item);
item.querySelector(".open-button").addEventListener("click", function (data) {
this.openHandler(data);
}.bind(this, data));
return item;
};
ListView.prototype.listItemTemplate = function (_ref) {
var name = _ref.name;
var author = _ref.author;
var string = Sanitizer.createSafeHTML(_taggedTemplateLiteral(["\n <img class=\"icon\" />\n <div flex class=\"description\">\n <p class=\"name\">", "</p>\n <p class=\"author\">", "</p>\n </div>\n <gaia-button class=\"open-button\">Open</gaia-button>"], ["\n <img class=\"icon\" />\n <div flex class=\"description\">\n <p class=\"name\">", "</p>\n <p class=\"author\">", "</p>\n </div>\n <gaia-button class=\"open-button\">Open</gaia-button>"]), capitalize(name), author);
return string;
};
return ListView;
})(View);
exports["default"] = ListView;
});

View file

@ -0,0 +1,37 @@
define(["exports", "components/fxos-mvc/dist/mvc", "components/gaia-header/dist/gaia-header", "components/fxos-dev-mode-dialog/fxos-dev-mode-dialog"], function (exports, _componentsFxosMvcDistMvc, _componentsGaiaHeaderDistGaiaHeader, _componentsFxosDevModeDialogFxosDevModeDialog) {
"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 View = _componentsFxosMvcDistMvc.View;
var MainView = (function (View) {
var MainView = function MainView() {
View.apply(this, arguments);
};
_extends(MainView, View);
MainView.prototype.render = function () {
View.prototype.render.call(this);
};
MainView.prototype.template = function () {
var string = "\n <gaia-header>\n <h1>Customizer Launcher</h1>\n </gaia-header>\n <fxos-dev-mode-dialog></fxos-dev-mode-dialog>";
return string;
};
return MainView;
})(View);
exports["default"] = MainView;
});