-
Notifications
You must be signed in to change notification settings - Fork 13
/
LogViewer.php
60 lines (54 loc) · 2.06 KB
/
LogViewer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\LogViewer;
class LogViewer extends \Piwik\Plugin
{
/**
* @see Piwik\Plugin::registerEvents
*/
public function registerEvents()
{
return array(
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'AssetManager.getJavaScriptFiles' => 'getJsFiles',
'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys',
);
}
public function getStylesheetFiles(&$stylesheets)
{
$stylesheets[] = "plugins/LogViewer/vue/src/LogViewer/LogViewer.less";
}
public function getJsFiles(&$jsFiles)
{
$jsFiles[] = "plugins/LogViewer/libs/phpjs/preg_quote.js";
}
public function getClientSideTranslationKeys(&$translationKeys)
{
$translationKeys[] = 'General_Search';
$translationKeys[] = 'LogViewer_LogViewer';
$translationKeys[] = 'LogViewer_SearchPattern';
$translationKeys[] = 'General_Plugin';
$translationKeys[] = 'General_Date';
$translationKeys[] = 'LogViewer_RequestId';
$translationKeys[] = 'LogViewer_Severity';
$translationKeys[] = 'LogViewer_AnySeverity';
$translationKeys[] = 'LogViewer_Tag';
$translationKeys[] = 'LogViewer_Message';
$translationKeys[] = 'General_Previous';
$translationKeys[] = 'General_Next';
$translationKeys[] = 'General_SearchNoResults';
$translationKeys[] = 'General_ClickToSearch';
$translationKeys[] = 'LogViewer_UseRegExp';
$translationKeys[] = 'LogViewer_SearchHelp';
$translationKeys[] = 'LogViewer_NoSupportedLogWriterConfiguredTitle';
$translationKeys[] = 'LogViewer_NoSupportedLogWriterConfiguredMessage';
$translationKeys[] = 'LogViewer_ClickToSearchForThis';
$translationKeys[] = 'LogViewer_CurrentLogConfigIs';
$translationKeys[] = 'LogViewer_ExportThisSearch';
}
}