kopia lustrzana https://github.com/c9/core
Fix standalone dependency on analytics
rodzic
c06c3e6f3c
commit
2e62cce882
|
@ -174,6 +174,7 @@ module.exports = function(config, optimist) {
|
||||||
"./c9.vfs.server/download",
|
"./c9.vfs.server/download",
|
||||||
"./c9.vfs.server/filelist",
|
"./c9.vfs.server/filelist",
|
||||||
"./c9.vfs.server/statics",
|
"./c9.vfs.server/statics",
|
||||||
|
"./c9.analytics/mock_analytics",
|
||||||
"./c9.metrics/mock_metrics",
|
"./c9.metrics/mock_metrics",
|
||||||
"./c9.ide.experiment/mock_experiment",
|
"./c9.ide.experiment/mock_experiment",
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
/**
|
||||||
|
* Dummy implementation of analytics.
|
||||||
|
*/
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
plugin.consumes = [];
|
||||||
|
plugin.provides = ["analytics"];
|
||||||
|
|
||||||
|
module.exports = plugin;
|
||||||
|
|
||||||
|
function plugin(options, imports, register) {
|
||||||
|
|
||||||
|
register(null, {
|
||||||
|
"analytics": {
|
||||||
|
log: function() {},
|
||||||
|
track: function() {},
|
||||||
|
identify: function() {},
|
||||||
|
logClean: function() {},
|
||||||
|
trackClean: function() {},
|
||||||
|
identifyClean: function() {},
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
Ładowanie…
Reference in New Issue