Skip to content

Commit

Permalink
build v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed Mar 4, 2019
1 parent b2ba64b commit 22918a2
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Piwik/Matomo Tracking</name>
<summary>Track users with Piwik/Matomo</summary>
<description>Track users with Piwik/Matomo</description>
<version>0.5.0</version>
<version>0.5.1</version>
<licence>agpl</licence>
<author>Klaus Herberth</author>
<category>tools</category>
Expand Down
6 changes: 5 additions & 1 deletion build/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
], ''
);

$url = parse_url($url, PHP_URL_HOST);
$parseurl = parse_url($url);
$url = $parseurl['host'];
if (isset($parseurl['port'])) {
$url .= ':' . (string) $parseurl['port'];
}
$policy = new OCP\AppFramework\Http\ContentSecurityPolicy();

if ($url !== false && array_key_exists('HTTP_HOST', $_SERVER)
Expand Down
2 changes: 1 addition & 1 deletion build/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Piwik/Matomo Tracking</name>
<summary>Track users with Piwik/Matomo</summary>
<description>Track users with Piwik/Matomo</description>
<version>0.5.0</version>
<version>0.5.1</version>
<licence>agpl</licence>
<author>Klaus Herberth</author>
<category>tools</category>
Expand Down
2 changes: 2 additions & 0 deletions build/js/settings/admin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* global OCP, OC */

$(function() {
$('#piwikAdblockerWarning').hide();

function showRequestResult(element, result) {
if (element.attr('type') === 'checkbox') {
element = $('label[for="' + element.attr('id') + '"]');
Expand Down
2 changes: 1 addition & 1 deletion build/js/settings/admin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/js/settings/admin.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions build/js/track.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* cloud_piwik v0.5.0 - 2018-10-29
* cloud_piwik v0.5.1 - 2019-03-04
*
* Copyright (c) 2018 Klaus Herberth <[email protected]> <br>
* Copyright (c) 2019 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see https://github.com/sualko/cloud_piwik
*
* @author Klaus Herberth <[email protected]>
* @version 0.5.0
* @version 0.5.1
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion build/lib/Controller/JavaScriptController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ public function tracking()
$script = file_get_contents(__DIR__ . '/../../js/track.js');
$script = str_replace('%OPTIONS%', json_encode($options), $script);

return new DataDownloadResponse($script, 'script', 'text/javascript');
return new DataDownloadResponse($script, 'tracking.js', 'text/javascript');
}
}
1 change: 1 addition & 0 deletions build/templates/settings/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div id="piwikSettings" class="section">
<h2>Piwik/Matomo Tracking</h2>
<p class="settings-hint">If you have no Piwik/Matomo instance, go to <a href="https://matomo.org" target="_blank">matomo.org</a> for further instructions.</p>
<p id="piwikAdblockerWarning" style="border-left:2px red solid;padding-left:1em">It seems that you use a content blocker plugin in your browser to stop trackers like Matomo. Unfortunately, your plugin also breaks this settings form, so you might want to disable the content blocker for your NextCloud.</p>

<form>
<table>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloud_piwik",
"version": "0.5.0",
"version": "0.5.1",
"description": "Track owncloud/nextcloud users with piwik",
"repository": {
"type": "git",
Expand Down

0 comments on commit 22918a2

Please sign in to comment.