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

46
gaia/apps/music/js/nfc_share.js Executable file
View file

@ -0,0 +1,46 @@
/* exported NFCShare */
/* global client */
var NFCShare = (function() {
var _NFCShare = {
_isEnabled: false,
get enabled() {
return this._isEnabled;
},
set enabled(value) {
if (typeof value !== 'boolean') {
throw Error('expected true or false');
}
if (!navigator.mozNfc || value === this._isEnabled) {
return;
}
if (value) {
navigator.mozNfc.onpeerready = (event) => {
var peer = event.peer;
if (!peer) {
return;
}
client.method('getPlaybackStatus').then((status) => {
return client.method('getSongFile', status.filePath);
}).then((blob) => {
peer.sendFile(blob);
});
};
} else {
navigator.mozNfc.onpeerready = null;
}
this._isEnabled = value;
return this._isEnabled;
}
};
return _NFCShare;
})();