Rello /
analytics
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Analytics |
||
| 4 | * |
||
| 5 | * SPDX-FileCopyrightText: 2019-2022 Marcel Scherello |
||
| 6 | * SPDX-License-Identifier: AGPL-3.0-or-later |
||
| 7 | */ |
||
| 8 | |||
| 9 | use OCP\Util; |
||
|
0 ignored issues
–
show
|
|||
| 10 | |||
| 11 | Util::addStyle('analytics', 'style'); |
||
| 12 | Util::addStyle('analytics', 'sharetabview'); |
||
| 13 | Util::addStyle('analytics', '3rdParty/datatables.min'); |
||
| 14 | Util::addStyle('files_sharing', 'icons'); |
||
| 15 | Util::addStyle('analytics', 'dashboard'); |
||
| 16 | Util::addStyle('analytics', 'wizard'); |
||
| 17 | Util::addStyle('analytics', 'print'); |
||
| 18 | Util::addScript('analytics', 'app'); |
||
| 19 | Util::addScript('analytics', 'visualization'); |
||
| 20 | Util::addScript('analytics', 'sidebar'); |
||
| 21 | Util::addScript('analytics', 'navigation'); |
||
| 22 | Util::addScript('analytics', 'filter'); |
||
| 23 | Util::addScript('analytics', '3rdParty/datatables.min'); |
||
| 24 | Util::addScript('analytics', '3rdParty/chart.umd'); |
||
| 25 | Util::addScript('analytics', '3rdParty/chartjs-adapter-moment'); |
||
| 26 | Util::addScript('analytics', '3rdParty/chartjs-plugin-datalabels.min'); |
||
| 27 | Util::addScript('analytics', '3rdParty/chartjs-plugin-zoom.min'); |
||
| 28 | Util::addScript('analytics', '3rdParty/moment.min'); |
||
| 29 | Util::addScript('analytics', '3rdParty/cloner'); |
||
| 30 | Util::addScript('analytics', 'dashboard'); |
||
| 31 | Util::addScript('analytics', 'userGuidance'); |
||
| 32 | ?> |
||
| 33 | |||
| 34 | <div id="app-navigation"> |
||
| 35 | <?php print_unescaped($this->inc('part.navigation')); ?> |
||
| 36 | <?php print_unescaped($this->inc('part.settings')); ?> |
||
| 37 | </div> |
||
| 38 | |||
| 39 | <div id="app-content"> |
||
| 40 | <div id="loading"> |
||
| 41 | <i class="ioc-spinner ioc-spin"></i> |
||
| 42 | </div> |
||
| 43 | |||
| 44 | <?php print_unescaped($this->inc('part.intro')); ?> |
||
| 45 | <?php print_unescaped($this->inc('part.content')); ?> |
||
| 46 | |||
| 47 | <div id="analytics-warning" style="width:50%; padding: 50px"> |
||
| 48 | <h2><?php p($l->t('Analytics')); ?></h2> |
||
| 49 | <br> |
||
| 50 | <h3><?php p($l->t('Javascript issue')); ?></h3> |
||
| 51 | <span><?php p($l->t('If you see this message, please disable AdBlock/uBlock for this domain (only).')); ?></span> |
||
| 52 | <br> |
||
| 53 | <span><?php p($l->t('The EasyPrivacy list is blocking some scripts because of a wildcard filter for *analytics*.')); ?></span> |
||
| 54 | <br> |
||
| 55 | <br> |
||
| 56 | <a href="https://github.com/Rello/analytics/wiki/EasyPrivacy-Blocklist" |
||
| 57 | target="_blank"><?php p($l->t('More Information …')); ?></a> |
||
| 58 | </div> |
||
| 59 | </div> |
||
| 60 | <?php print_unescaped($this->inc('part.sidebar')); ?> |
||
| 61 | <div> |
||
| 62 | <?php print_unescaped($this->inc('part.templates')); ?> |
||
| 63 | <?php print_unescaped($this->inc('wizard')); ?> |
||
| 64 | </div> |
||
| 65 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths