feature(config) rm analytics

This commit is contained in:
coderaiser 2014-11-04 07:28:27 -05:00
parent ae37b43632
commit af789ae8ee
6 changed files with 0 additions and 43 deletions

View file

@ -200,7 +200,6 @@ Here is description of options:
"auth" : false, /* enable http authentication */
"username" : "root", /* username for authentication */
"password" : "toor", /* password hash in sha-1 for authentication*/
"analytics" : true, /* google analytics support */
"diff" : true, /* when save - send patch, not whole file */
"zip" : true, /* zip text before send / unzip before save */
"notifications" : false, /* show notifications when tab is not active*/

View file

@ -2,7 +2,6 @@
<li><span><input type="checkbox" id="auth" {{ auth }} ></input></span> <label for="auth">Auth</label></li>
<li><span><input type="text" class="form-control" placeholder="username" id="username" value="{{ username }}"></input></span></li>
<li><span><input type="password" class="form-control" placeholder="password" id="password" value="{{ password }}" ></input></span></li>
<li><span><input type="checkbox" id="analytics" {{ analytics }} ></input></span> <label for="analytics">Analytics</label></li>
<li><span><input type="checkbox" id="diff" {{ diff }} ></input></span> <label for="diff">Diff</label></li>
<li><span><input type="checkbox" id="zip" {{ zip }} ></input></span> <label for="zip">Zip</label></li>
<li><span><input type="checkbox" id="notifications" {{ notifications }} ></input></span> <label for="notifications">Notifications</label></li>

View file

@ -2,7 +2,6 @@
"auth": false,
"username": "root",
"password": "2b64f2e3f9fee1942af9ff60d40aa5a719db33b8ba8dd4864bb4f11e25ca2bee00907de32a59429602336cac832c8f2eeff5177cc14c864dd116c8bf6ca5d9a9",
"analytics": true,
"diff": true,
"zip" : true,
"notifications": false,

View file

@ -252,8 +252,6 @@ var Util, DOM, CloudFunc, join;
dirPath = DOM.getCurrentDirPath(),
Listeners = CloudCmd.Listeners;
Listeners.init();
/* загружаем Google Analytics */
Listeners.analytics();
Listeners.setOnPanel(LEFT);
Listeners.setOnPanel(RIGHT);

View file

@ -1,20 +0,0 @@
var DOM, ga, GoogleAnalyticsObject;
(function(DOM) {
'use strict';
GoogleAnalyticsObject = 'ga';
ga = {
l: new Date().getTime(),
q: [['create', 'UA-33536569-2', 'auto'], ['send', 'pageview']]
};
DOM.Events.addError(function(msg, url, line) {
ga.push(['_trackEvent', 'JS Error', msg,
navigator.userAgent + ' -> ' + url + ' : ' + line]);
});
DOM.load.js('//www.google-analytics.com/analytics.js');
})(DOM);

View file

@ -19,24 +19,6 @@ var Util, DOM, CloudFunc, CloudCmd;
'touchstart' : Util.exec.with(execIfNotUL, onTouch)
};
this.analytics = function() {
Files.get('config', function(error, config) {
var analytics = config.analytics,
online = config.online;
if (analytics && online) {
Events.addOnce('mousemove', function() {
var FIVE_SECONDS = 5000,
url = CloudCmd.LIBDIRCLIENT + 'analytics.js';
setTimeout(function() {
DOM.load.js(url);
}, FIVE_SECONDS);
});
}
});
};
this.init = function () {
appStorage();
contextMenu();