Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Apr 29, 2024
1 parent 06f631a commit 745aaf2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 28 deletions.
50 changes: 25 additions & 25 deletions resources/views/logs/file.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
{{trans('tomato-logs::global.title')}} [{{ $record->id }}]
</x-slot:header>

<div class="bg-white dark:bg-gray-800 shadow overflow-hidden sm:rounded-lg mb-6">
<div class="bg-white dark:bg-zinc-800 shadow overflow-hidden sm:rounded-lg mb-6">
<div class="px-4 py-6 sm:px-6">
<div class="flex justify-between">
<div class="flex flex-col justify-center">
<h3 class="text-lg leading-6 font-medium text-gray-900 dark:text-gray-300">
<h3 class="text-lg leading-6 font-medium text-zinc-900 dark:text-zinc-300">
{{trans('tomato-logs::global.details')}}
</h3>
</div>
Expand All @@ -18,29 +18,29 @@
</div>
</div>
</div>
<div class="border-t border-gray-200 overflow-x-scroll w-full bg-gray-50 dark:bg-gray-700">
<div class="border-t border-zinc-200 dark:border-zinc-700 overflow-x-scroll w-full bg-zinc-50 dark:bg-zinc-700">
<dl>
<div class="bg-gray-50 dark:bg-gray-700 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 dark:text-gray-200">
<div class="bg-zinc-50 dark:bg-zinc-700 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-200">
{{trans('tomato-logs::global.date')}}
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 dark:text-gray-300">
<dd class="mt-1 text-sm text-zinc-900 sm:mt-0 sm:col-span-2 dark:text-zinc-300">
{{$record->date}}
</dd>
</div>
<div class="bg-white dark:bg-gray-800 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 dark:text-gray-200">
<div class="bg-white dark:bg-zinc-800 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-200">
{{trans('tomato-logs::global.environment')}}
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 dark:text-gray-300">
<dd class="mt-1 text-sm text-zinc-900 sm:mt-0 sm:col-span-2 dark:text-zinc-300">
{{$record->environment}}
</dd>
</div>
<div class="bg-gray-50 dark:bg-gray-700 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 dark:text-gray-200">
<div class="bg-zinc-50 dark:bg-zinc-700 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-200">
{{trans('tomato-logs::global.level')}}
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2 dark:text-gray-300">
<dd class="mt-1 text-sm text-zinc-900 sm:mt-0 sm:col-span-2 dark:text-zinc-300">
@if($record->level === 'error')
<span class="inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-red-100 text-red-800">
{{$record->level}}
Expand All @@ -50,49 +50,49 @@
{{$record->level}}
</span>
@else
<span class="inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-gray-100 text-gray-800">
<span class="inline-flex items-center px-3 py-0.5 rounded-full text-sm font-medium bg-zinc-100 text-zinc-800">
{{$record->level}}
</span>
@endif
</dd>
</div>
<div class="bg-white dark:bg-gray-800 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500 dark:text-gray-200">
<div class="bg-white dark:bg-zinc-800 px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-200">
{{trans('tomato-logs::global.message')}}
</dt>
</div>
<div class="bg-gray-50 dark:bg-gray-700 px-4 pb-5">
<div class="bg-zinc-50 dark:bg-zinc-700 px-4 pb-5">
<dd class="overflow-x-auto">
<pre
class="whitespace-pre-wrap">
{{$record->context}}
</pre>
</dd>
</div>
<div class="bg-white dark:bg-gray-800 px-4 pt-5">
<dt class="text-sm font-medium text-gray-500 dark:text-gray-200">
<div class="bg-white dark:bg-zinc-800 px-4 pt-5">
<dt class="text-sm font-medium text-zinc-500 dark:text-zinc-200">
{{trans('tomato-logs::global.stack')}}
</dt>
</div>
<div class="bg-white dark:bg-gray-800 px-4 py-5 w-full">
<dd class="mt-1 text-sm text-gray-900 dark:text-gray-200 overflow-x-auto">
<div class="bg-white dark:bg-zinc-800 px-4 py-5 w-full">
<dd class="mt-1 text-sm text-zinc-900 dark:text-zinc-200 overflow-x-auto">
@php $counter = 0; @endphp
@foreach($record->stack_traces as $key=>$stackTrace)
<div
class="border-gray-200 dark:border-gray-600 py-3 border-t">
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-gray-100 dark:hover:bg-gray-600 rounded">
class="border-zinc-200 dark:border-zinc-600 py-3 border-t">
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-zinc-100 dark:hover:bg-zinc-600 rounded">
<div class="col-span-1 font-bold"> {{trans('tomato-logs::global.caught_at')}}</div>
<div class="col-span-2">{{$stackTrace->caught_at}}</div>
</div>
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-gray-100 dark:hover:bg-gray-600 rounded">
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-zinc-100 dark:hover:bg-zinc-600 rounded">
<div class="col-span-1 font-bold">{{trans('tomato-logs::global.in')}}</div>
<div class="col-span-2">{{$stackTrace->in}}</div>
</div>
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-gray-100 dark:hover:bg-gray-600 rounded">
<div class="grid grid-cols-3 w-full py-0.5 px-1 hover:bg-zinc-100 dark:hover:bg-zinc-600 rounded">
<div class="col-span-1 font-bold">{{trans('tomato-logs::global.line')}}</div>
<div class="col-span-2">{{$stackTrace->line}}</div>
</div>
<div class="grid grid-cols-3 w-full pt-0.5 px-1 hover:bg-gray-100 dark:hover:bg-gray-600 rounded">
<div class="grid grid-cols-3 w-full pt-0.5 px-1 hover:bg-zinc-100 dark:hover:bg-zinc-600 rounded">
<div class="col-span-1 font-bold">{{trans('tomato-logs::global.content')}}</div>
<div class="col-span-2">{{$stackTrace}}</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion resources/views/logs/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<x-slot:header>
{{trans('tomato-logs::global.title')}}
</x-slot:header>

<x-slot:icon>
bx bx-history
</x-slot:icon>

<div class="pb-12" v-cloak>
<div class="mx-auto">
Expand Down
1 change: 1 addition & 0 deletions resources/views/logs/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
</x-tomato-admin-button>
</x-slot:buttons>


<div class="pb-12" v-cloak>
<div class="mx-auto">
<x-splade-table :for="$table" striped>
Expand Down
2 changes: 1 addition & 1 deletion src/Tables/FilesTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ public function configure(SpladeTable $table)
)
->export()
->defaultSort('id')
->column(key: 'actions',label: trans('tomato-roles::global.roles.actions'))
->column(key: "id",label: trans('tomato-logs::global.id'), sortable: true, hidden: true)
->column(key: "message",label: trans('tomato-logs::global.message'), sortable: true)
->column(key: "level",label: trans('tomato-logs::global.level'), sortable: true)
->column(key: "environment",label: trans('tomato-logs::global.environment'), sortable: true)
->column(key: "date",label: trans('tomato-logs::global.date'), sortable: true)
->column(key: 'actions',label: trans('tomato-roles::global.roles.actions'))
->paginate(15);
}
}
2 changes: 1 addition & 1 deletion src/Tables/LogsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public function configure(SpladeTable $table)
)
->export()
->defaultSort('id')
->column(key: 'actions',label: trans('tomato-roles::global.roles.actions'))
->column(key: "id",label: trans('tomato-logs::global.id'), sortable: true, hidden: true)
->column(key: "name",label: trans('tomato-logs::global.name'), sortable: true)
->column(key: 'actions',label: trans('tomato-roles::global.roles.actions'))
->paginate(15);
}
}

0 comments on commit 745aaf2

Please sign in to comment.