namespace

This commit is contained in:
zhouyangyang 2020-11-26 14:09:57 +08:00
parent c57f7ff2f9
commit 7e74ae6b0f

View File

@ -233,19 +233,19 @@
<div class=""> <div class="">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title"><i class="fa fa-folder-open-o"></i> <h3 class="box-title"><i class="fa fa-folder-open-o"></i>
<a href="{{ route('dcat-log-viewer') }}">logs</a> <a href="{{ route('zyimm-log-viewer') }}">logs</a>
@if($dir) @if($dir)
@php($tmp = '') @php($tmp = '')
@foreach(explode('/', $dir) as $v) @foreach(explode('/', $dir) as $v)
@php($tmp .= '/'.$v) @php($tmp .= '/'.$v)
/ /
<a href="{{ route('dcat-log-viewer', ['dir' => trim($tmp, '/')])}}">{{ $v }}</a> <a href="{{ route('zyimm-log-viewer', ['dir' => trim($tmp, '/')])}}">{{ $v }}</a>
@endforeach @endforeach
@endif @endif
</h3> </h3>
</div> </div>
<form action="{{ route('dcat-log-viewer') }}" style="display: inline-block;width: 220px;padding-left: 15px"> <form action="{{ route('zyimm-log-viewer') }}" style="display: inline-block;width: 220px;padding-left: 15px">
<div class="input-group-sm" style="display: inline-block;width: 100%"> <div class="input-group-sm" style="display: inline-block;width: 100%">
<input name="filename" class="form-control" value="{{ app('request')->get('filename') }}" type="text" placeholder="Search..." /> <input name="filename" class="form-control" value="{{ app('request')->get('filename') }}" type="text" placeholder="Search..." />
</div> </div>
@ -256,7 +256,7 @@
@if(! app('request')->get('filename')) @if(! app('request')->get('filename'))
@foreach($logDirs as $d) @foreach($logDirs as $d)
<li @if($d === $fileName) class="active" @endif> <li @if($d === $fileName) class="active" @endif>
<a class="dir" href="{{ route('dcat-log-viewer', ['dir' => $d]) }}"> <a class="dir" href="{{ route('zyimm-log-viewer', ['dir' => $d]) }}">
<i class="fa fa-folder-o"></i>{{ basename($d) }} <i class="fa fa-folder-o"></i>{{ basename($d) }}
</a> </a>
</li> </li>
@ -283,9 +283,9 @@
<div class="col-md-10"> <div class="col-md-10">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-header with-border"> <div class="box-header with-border">
<a href="{{ route('dcat-log-viewer.download', ['dir' => $dir, 'file' => $fileName, 'filename' => app('request')->get('filename')]) }}" class="btn btn-primary btn-sm download" style="color: #fff"><i class="fa-download fa"></i> {{ trans('Download') }}</a> <a href="{{ route('zyimm-log-viewer.download', ['dir' => $dir, 'file' => $fileName, 'filename' => app('request')->get('filename')]) }}" class="btn btn-primary btn-sm download" style="color: #fff"><i class="fa-download fa"></i> {{ trans('Download') }}</a>
{{-- <button class="btn btn-default btn-sm download"><i class="fa-trash-o fa"></i> {{ trans('Delete') }}</button>--}} {{-- <button class="btn btn-default btn-sm download"><i class="fa-trash-o fa"></i> {{ trans('Delete') }}</button>--}}
&nbsp; &nbsp;
<form action="{{ app('request')->fullUrlWithQuery(['keyword' => null,]) }}" style="display: inline-block;width: 180px"> <form action="{{ app('request')->fullUrlWithQuery(['keyword' => null,]) }}" style="display: inline-block;width: 180px">
<div class="input-group-sm" style="display: inline-block;width: 100%"> <div class="input-group-sm" style="display: inline-block;width: 100%">
@ -296,7 +296,7 @@
</form> </form>
<div class="float-right"> <div class="float-right">
<a class=""><strong>Size:</strong> {{ $size }} &nbsp; <strong>Updated at:</strong> <a class=""><strong>Size:</strong> {{ $size }} &nbsp; <strong>Updated at:</strong>
{{ date('Y-m-d H:i:s', filectime($filePath)) }}</a> {{ date('Y-m-d H:i:s', filectime($filePath)) }}</a>
&nbsp; &nbsp;
<div class="btn-group"> <div class="btn-group">
@if ($prevUrl) @if ($prevUrl)
@ -332,7 +332,7 @@
@foreach($logs as $index => $log) @foreach($logs as $index => $log)
<tr> <tr>
<td>{{ $index + 1 }}</td> <td>{{ $index + 1 }}</td>
<td><span class="label bg-{{\Dcat\LogViewer\LogViewer::$levelColors[$log['level']]}}">{{ $log['level'] }}</span></td> <td><span class="label bg-{{\Zyimm\LogViewer\LogViewer::$levelColors[$log['level']]}}">{{ $log['level'] }}</span></td>
<td><strong>{{ $log['env'] }}</strong></td> <td><strong>{{ $log['env'] }}</strong></td>
<td style="width:150px;">{{ $log['time'] }}</td> <td style="width:150px;">{{ $log['time'] }}</td>
<td><pre>{{ $log['info'] }}</pre></td> <td><pre>{{ $log['info'] }}</pre></td>