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,71 @@
define(function(require, exports, module) {
'use strict';
var Calc = require('common/calc');
/**
* This is a more crude version of what asuth does in email.
* Right now this class is here only for debugging sync issues.
* We need to add the settings so we can optionally turn this on.
*/
function EventLogger() {
this.events = Object.create(null);
this.occurs = Object.create(null);
this.richLog = {};
}
module.exports = EventLogger;
EventLogger.prototype = {
displayLog: function(id, string) {
if (!(id in this.richLog)) {
this.richLog[id] = [];
}
this.richLog[id].push(string);
},
addEvent: function(event) {
var id = event.id;
this.events[id] = event;
var log = this.formatEvent(event);
this.displayLog(id, log);
},
addBusytime: function(busy) {
var id = busy.eventId;
this.occurs[id] = busy;
this.displayLog(id, this.formatBusytime(busy));
},
formatEvent: function(event) {
var format = [
'add event: (' + event.id + ')',
'title:' + event.title,
'start:' + (Calc.dateFromTransport(event.start)).toString(),
'end:' + (Calc.dateFromTransport(event.end)).toString(),
'isException:' + event.isException
];
return format.join(' || ');
},
formatBusytime: function(busy) {
var event = this.events[busy.eventId];
var title = 'busytime for event: ' + busy.eventId;
if (event) {
title = 'busytime for event: ' + event.title;
}
var format = [
title,
'start:' + (Calc.dateFromTransport(busy.start)).toString(),
'end:' + (Calc.dateFromTransport(busy.end)).toString(),
'isException:' + busy.isException
];
return format.join(' || ');
}
};
});