Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-01-10 06:47:05 +0300
committerGitHub <noreply@github.com>2022-01-10 06:47:05 +0300
commit67376ceaf0acafa7d721c5a3b9d8517cfc64c8b2 (patch)
treec130d9873d67eae4eb8a0740dbb1b11fb64239ba /plugins/CoreHome/angularjs/common/directives
parentdd0878327e5a0c8ca578507a571a68ecb5319215 (diff)
[Vue] fixes #18578 better defaulting of date/period/segment in hash (#18591)
* remove unneeded file * remove file from CoreHome.php * fix #18578, do not add default hash params if no hash params being set * better fix * even better fix, take into account the params being changed to * simpler fix, hash params will overwrite anyway no need to || them * fix tests
Diffstat (limited to 'plugins/CoreHome/angularjs/common/directives')
-rw-r--r--plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js b/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js
deleted file mode 100644
index 8b5b4dfc9d..0000000000
--- a/plugins/CoreHome/angularjs/common/directives/show-sensitive-data.js
+++ /dev/null
@@ -1,49 +0,0 @@
-/*!
- * Matomo - free/libre analytics platform
- *
- * @link https://matomo.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */
-
-
-(function () {
- angular.module('piwikApp.directive').directive('piwikShowSensitiveData', piwikShowSensitiveData);
-
- function piwikShowSensitiveData(){
- return {
- restrict: 'A',
- link: function(scope, element, attr) {
-
- var sensitiveData = attr.piwikShowSensitiveData || (attr.text ? attr.text() : '');
- var showCharacters = attr.showCharacters || 6;
- var clickElement = attr.clickElementSelector || element;
-
- var protectedData = '';
- if (showCharacters > 0) {
- protectedData += sensitiveData.substr(0, showCharacters);
- }
- protectedData += sensitiveData.substr(showCharacters).replace(/./g, '*');
- element.html(protectedData);
-
- function onClickHandler(event) {
- element.html(sensitiveData);
- $(clickElement).css({
- cursor: ''
- });
- $(clickElement).tooltip("destroy");
- }
-
- $(clickElement).tooltip({
- content: _pk_translate('CoreHome_ClickToSeeFullInformation'),
- items: '*',
- track: true
- });
-
- $(clickElement).one('click', onClickHandler);
- $(clickElement).css({
- cursor: 'pointer'
- });
- }
- };
- }
-})();