Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
haruncpi committed Nov 7, 2020
1 parent b1f1a9c commit 60ec565
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 8 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ Get full documentation of [Laravel Log Reader](https://laravelarticle.com/larave
- [Laravel ID generator](https://github.com/haruncpi/laravel-id-generator) - A laravel package for custom database ID generation.
- [Laravel Simple Filemanager](https://github.com/haruncpi/laravel-simple-filemanager) - A simple filemanager for Laravel.
- [Laravel Option Framework](https://github.com/haruncpi/laravel-option-framework) - Option framework for Laravel.


## Change Log

v1.0.6
- Custom middleware support.
- Minor UI changes.
7 changes: 7 additions & 0 deletions assets/style.css

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

8 changes: 8 additions & 0 deletions assets/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ header {
right: 0;
top: 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);

.btn_clear_all{
background: #de4f4f;
color: #fff;
}
}

header .name {
Expand Down Expand Up @@ -97,6 +102,9 @@ table {
table tr {
border: 1px solid #e8e8e8;
padding: 5px;
&:hover{
background:#f4f4f4;
}
}

thead tr td {
Expand Down
5 changes: 3 additions & 2 deletions config/laravel-log-reader.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

return [
'api_route_path' => 'admin/api/log-reader',
'view_route_path' => 'admin/log-reader',
'api_route_path' => 'admin/api/log-reader',
'view_route_path' => 'admin/log-reader',
'admin_panel_path' => 'admin',
'middleware' => ['web', 'auth']
];
8 changes: 5 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<?php
Route::group(['namespace' => 'Haruncpi\LaravelLogReader\Controllers', 'middleware' => ['web','auth']], function () {

Route::group([
'namespace' => '\Haruncpi\LaravelLogReader\Controllers',
'middleware' => config('laravel-log-reader.middleware')
], function () {
Route::get(config('laravel-log-reader.view_route_path'), 'LogReaderController@getIndex');
Route::post(config('laravel-log-reader.view_route_path'), 'LogReaderController@postDelete');
Route::get(config('laravel-log-reader.api_route_path'), 'LogReaderController@getLogs');

});
});
11 changes: 8 additions & 3 deletions views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@
top: 0;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
header .btn_clear_all {
background: #de4f4f;
color: #fff;
}
header .name {
font-size: 25px;
font-weight: 500;
Expand Down Expand Up @@ -110,7 +113,9 @@
border: 1px solid #e8e8e8;
padding: 5px;
}
table tr:hover {
background: #f4f4f4;
}
thead tr td {
background: #717171;
color: #fff;
Expand Down Expand Up @@ -259,7 +264,7 @@
<header>
<div class="name">@{{ title }}</div>
<div class="actions">
<a class="btn" href="#" ng-click="clearAll()">Clear All</a>
<a class="btn btn_clear_all" href="#" ng-click="clearAll()">Clear All</a>
<a class="btn" href="{{url(config('laravel-log-reader.admin_panel_path'))}}">Goto Admin Panel</a>
<a class="btn" href="https://laravelarticle.com/laravel-log-reader" title="Laravel Log Reader">Doc</a>
</div>
Expand Down

0 comments on commit 60ec565

Please sign in to comment.