Skip to content

Commit e514f48

Browse files
authored
Merge pull request #1 from bernhardh/master
Support translation
2 parents 7d63158 + fd76545 commit e514f48

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ public function tools()
5050

5151
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
5252

53+
## Configuration
54+
55+
You can configure the behavior of the log view within a config file. First, just publish the default one:
56+
57+
```
58+
php artisan vendor:publish --tag=config
59+
```
60+
61+
Now you can edit the settings in the file `config/log-viewer.php`.
62+
5363
## Credits
5464

5565
- [PHPJunior](https://github.com/PHPJunior/nova-logs)

dist/js/tool.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/navigation.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
<path fill="var(--sidebar-icon)" class="heroicon-ui" d="M6 2h9a1 1 0 0 1 .7.3l4 4a1 1 0 0 1 .3.7v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2zm9 2.41V7h2.59L15 4.41zM18 9h-3a2 2 0 0 1-2-2V4H6v16h12V9zm-2 7a1 1 0 0 1-1 1H9a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1zm0-4a1 1 0 0 1-1 1H9a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1zm-5-4a1 1 0 0 1-1 1H9a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1z"/>
44
</svg>
55
<span class="sidebar-label">
6-
Log Viewer
6+
{{ __('Log Viewer') }}
77
</span>
88
</h3>
99

1010
<ul class="list-reset mb-8">
1111
<li class="leading-wide mb-4 text-sm">
1212
<router-link :to="{name: 'nova-log-viewer-dashboard'}" class="text-white ml-8 no-underline dim">
13-
Dashboard
13+
{{ __('Dashboard') }}
1414
</router-link>
1515
</li>
1616
<li class="leading-wide mb-4 text-sm">
1717
<router-link :to="{name: 'nova-log-viewer-list'}" class="text-white ml-8 no-underline dim">
18-
Logs
18+
{{ __('Logs') }}
1919
</router-link>
2020
</li>
2121
</ul>

src/Http/Controllers/NovaLogViewerController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class NovaLogViewerController extends Controller
1919
private $logViewer;
2020

2121
/** @var int */
22-
protected $perPage = 20;
22+
protected $perPage;
2323

2424
/**
2525
* NovaLogViewerController constructor.
@@ -28,6 +28,7 @@ class NovaLogViewerController extends Controller
2828
public function __construct(LogViewerContract $logViewer)
2929
{
3030
$this->logViewer = $logViewer;
31+
$this->perPage = config("log-viewer.per-page");
3132
}
3233

3334
/**

0 commit comments

Comments
 (0)