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:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
58
gaia/apps/email/js/cards/settings_debug.js
Executable file
58
gaia/apps/email/js/cards/settings_debug.js
Executable file
|
|
@ -0,0 +1,58 @@
|
|||
'use strict';
|
||||
var _secretDebug;
|
||||
|
||||
/**
|
||||
* Quasi-secret card for troubleshooting/debugging support. Not part of the
|
||||
* standard UX flow, potentially not to be localized, and potentially not to
|
||||
* be shipped after initial dogfooding.
|
||||
*/
|
||||
define(function(require) {
|
||||
|
||||
var MailAPI = require('api'),
|
||||
cards = require('cards'),
|
||||
htmlCache = require('html_cache');
|
||||
|
||||
if (!_secretDebug) {
|
||||
_secretDebug = {};
|
||||
}
|
||||
|
||||
return [
|
||||
require('./base_card')
|
||||
(require('template!./settings_debug.html')),
|
||||
{
|
||||
createdCallback: function() {
|
||||
this.loggingSelect.value = MailAPI.config.debugLogging || '';
|
||||
},
|
||||
|
||||
onClose: function() {
|
||||
cards.removeCardAndSuccessors(this, 'animate', 1);
|
||||
},
|
||||
|
||||
resetApp: function() {
|
||||
window.location.reload();
|
||||
},
|
||||
|
||||
dumpLog: function(target) {
|
||||
MailAPI.debugSupport('dumpLog', target);
|
||||
},
|
||||
|
||||
onChangeLogging: function() {
|
||||
// coerce the falsey empty string to false.
|
||||
var value = this.loggingSelect.value || false;
|
||||
MailAPI.debugSupport('setLogging', value);
|
||||
},
|
||||
|
||||
fastSync: function() {
|
||||
_secretDebug.fastSync = [20000, 60000];
|
||||
},
|
||||
|
||||
resetStartupCache: function() {
|
||||
htmlCache.reset();
|
||||
console.log('htmlCache.reset done');
|
||||
},
|
||||
|
||||
die: function() {
|
||||
}
|
||||
}
|
||||
];
|
||||
});
|
||||
Loading…
Reference in a new issue