This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit f62212de9d08b76198da2872a6b2e7e99bcd3a78 Author: Kevin Morin <morin@codelutin.com> Date: Tue Jun 13 15:10:53 2017 +0200 refs #57 conf par défaut à vide pour piwik + suprpession dependance inutile --- pollen-ui-riot-js/package.json | 1 - pollen-ui-riot-js/src/main/web/conf.js | 4 ++-- pollen-ui-riot-js/src/main/web/js/PageTracker.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pollen-ui-riot-js/package.json b/pollen-ui-riot-js/package.json index b33dc6f6..ac02cda4 100644 --- a/pollen-ui-riot-js/package.json +++ b/pollen-ui-riot-js/package.json @@ -46,7 +46,6 @@ "moment": "^2.17.1", "nprogress": "^0.2.0", "object.values": "^1.0.4", - "piwik-tracker": "^1.1.1", "qrcode-generator": "^1.2.0", "remarkable": "^1.7.1", "riot": "^3.3.2", diff --git a/pollen-ui-riot-js/src/main/web/conf.js b/pollen-ui-riot-js/src/main/web/conf.js index 3d2517a3..b699066f 100644 --- a/pollen-ui-riot-js/src/main/web/conf.js +++ b/pollen-ui-riot-js/src/main/web/conf.js @@ -1,7 +1,7 @@ window.pollenConf = { endPoint: "http://localhost:8888/pollen-rest-api", - piwikUrl: "http://localhost/piwik/", - piwikSiteId: "3", + piwikUrl: "", // add the piwik url, eg: http://localhost/piwik + piwikSiteId: "", // add the site id, eg: 3 defaultErrorTimeout: 15, resourceMaxSize: 10000000 // octets => 10 Mo }; diff --git a/pollen-ui-riot-js/src/main/web/js/PageTracker.js b/pollen-ui-riot-js/src/main/web/js/PageTracker.js index ad123210..03a817c2 100644 --- a/pollen-ui-riot-js/src/main/web/js/PageTracker.js +++ b/pollen-ui-riot-js/src/main/web/js/PageTracker.js @@ -4,8 +4,8 @@ let PiwikTracker = require("piwik-tracker"); class PageTracker { constructor() { + window._paq = window._paq || []; if (pollenConf.piwikUrl && pollenConf.piwikSiteId) { - window._paq = window._paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); var u = pollenConf.piwikUrl; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.