-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving output command with Termwind
- Loading branch information
1 parent
9da64aa
commit 58245b6
Showing
9 changed files
with
191 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<div class="mt-1 mx-1"> | ||
@if (sizeof($rows) > 0) | ||
<div class="flex space-x-1"> | ||
<span class="flex-1 content-repeat-[─] text-red"> | ||
</span> | ||
<span class="text-red"> | ||
CHECK: issues found | ||
</span> | ||
</div> | ||
@else | ||
<div class="flex space-x-1"> | ||
<span class="flex-1 content-repeat-[─] text-green"> | ||
</span> | ||
<span class="text-green"> | ||
CHECK: everything looks good | ||
</span> | ||
</div> | ||
@endif | ||
<div> | ||
<span> | ||
@foreach ($rows as $row) | ||
@php | ||
$lineType = Arr::get($row, "lineType", HiFolks\LaraLens\ResultLens::LINE_TYPE_DEFAULT); | ||
$label = Arr::get($row, "label", ""); | ||
@endphp | ||
|
||
@if ($label === "*** HINT") | ||
<div class="flex bg-gray-900 space-x-1"> | ||
<span class="px-1 text-gray-100"> | ||
💡 Hint: | ||
</span> | ||
|
||
<span> | ||
<span class="px-0 text-gray-300"> | ||
{{ Arr::get($row, "value", "") }} | ||
</span> | ||
</span> | ||
</div> | ||
@else | ||
<div class=""> | ||
</div> | ||
<div class="flex bg-gray-900 space-x-0 "> | ||
<span class=" text-gray-800 px-1 bg-gray-200 font-bold"> | ||
@if ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_ERROR) | ||
❌ | ||
@elseif ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_WARNING) | ||
⚠️ | ||
@else | ||
✔️ | ||
@endif | ||
{{ Arr::get($row, "label", "")}} | ||
</span> | ||
|
||
<span class="flex-1 content-repeat-[.] text-gray"></span> | ||
|
||
<span> | ||
@if ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_ERROR) | ||
<span class="px-0 bg-red text-white font-bold"> | ||
{{ Arr::get($row, "value", "")}} | ||
</span> | ||
@elseif ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_WARNING) | ||
<span class="px-0 bg-yellow text-gray font-bold"> | ||
{{ Arr::get($row, "value", "")}} | ||
</span> | ||
@else | ||
|
||
<span class="px-0 bg-green text-gray font-bold"> | ||
{{ Str::replace("\\", "/", Arr::get($row, "value", "")) }} | ||
</span> | ||
@endif | ||
|
||
</span> | ||
</div> | ||
@endif | ||
@endforeach | ||
</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<div class="mt-1 mx-1"> | ||
<div class="flex space-x-1"> | ||
<span class="flex-1 content-repeat-[─] text-gray"> | ||
|
||
</span> | ||
|
||
<span class="text-green"> | ||
{{ $title }} | ||
</span> | ||
</div> | ||
<div> | ||
<span> | ||
@foreach ($rows as $row) | ||
@php | ||
$lineType = Arr::get($row, "lineType", HiFolks\LaraLens\ResultLens::LINE_TYPE_DEFAULT); | ||
$label = Arr::get($row, "label", ""); | ||
@endphp | ||
@if ($label === "*** HINT") | ||
<div class="flex bg-gray-900 space-x-1"> | ||
<span class=" text-white font-bold"> | ||
Hint: | ||
</span> | ||
<span class="flex-1 content-repeat-[.] text-gray"></span> | ||
<span> | ||
<span class="px-2 text-gray font-bold"> | ||
{{ Arr::get($row, "value", "") }} | ||
</span> | ||
</span> | ||
</div> | ||
@else | ||
<div class="flex bg-gray-900 space-x-1"> | ||
<span class=" text-white font-bold"> | ||
{{ Arr::get($row, "label", "")}} | ||
</span> | ||
|
||
<span class="flex-1 content-repeat-[.] text-gray"></span> | ||
|
||
<span> | ||
@if ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_ERROR) | ||
<span class="text-gray-100 bg-red font-bold"> | ||
{{ Arr::get($row, "value", "")}} | ||
</span> | ||
@elseif ($lineType === HiFolks\LaraLens\ResultLens::LINE_TYPE_WARNING) | ||
<span class="text-gray-100 bg-yellow font-bold"> | ||
{{ Arr::get($row, "value", "")}} | ||
</span> | ||
@else | ||
|
||
<span class="text-gray-100 "> | ||
{{ Str::replace("\\", "/", Arr::get($row, "value", "")) }} | ||
</span> | ||
@endif | ||
|
||
</span> | ||
</div> | ||
@endif | ||
@endforeach | ||
</span> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.