Skip to content

Commit a8a6cd4

Browse files
committed
prettier
Change-Id: I55b867a9e6de42fced72b48cfdb30c7b9c0bd4d8
1 parent 853407a commit a8a6cd4

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

admin/capturetest/index.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@
2323
include PathUtility::getAbsolutePath('admin/helper/index.php');
2424

2525
?>
26+
<style>
27+
.log-level {
28+
font-weight: bold;
29+
padding: 2px 6px;
30+
border-radius: 3px;
31+
}
32+
.log-level.debug { background-color: #e7f4fa; color: #0074d9; }
33+
.log-level.info { background-color: #e7f9e7; color: #2e8b57; }
34+
.log-level.error { background-color: #f9e7e7; color: #d9534f; }
35+
</style>
2636
<div class="w-full h-full grid place-items-center fixed bg-brand-1 overflow-x-hidden overflow-y-auto">
2737
<div class="w-full flex items-center justify-center flex-col px-6 py-12">
28-
2938
<div class="w-full max-w-xl h-144 rounded-lg p-4 md:p-8 bg-white flex flex-col shadow-xl">
3039
<div class="w-full flex items-center pb-3 mb-3 border-b border-solid border-gray-200">
3140
<a href="<?=PathUtility::getPublicPath('admin')?>" class="h-4 mr-4 flex items-center justify-center border-r border-solid border-black border-opacity-20 pr-3">
@@ -54,18 +63,20 @@
5463
$message = htmlspecialchars($log['message']);
5564
$context = htmlspecialchars(json_encode($log['context'], JSON_PRETTY_PRINT));
5665

57-
echo '<div class="log-entry">
58-
<div class="log-level ' . $level . '">' . strtoupper($level) . '</div>
59-
<div class="log-message">' . $message . '</div>
60-
<div class="log-context"><pre>' . $context . '</pre></div>
66+
echo '<div class="w-full max-w-xl flex flex-1 flex-col py-5 px-5 overflow-x-auto">
67+
<div class="log-level ' . $level . '"><span class="flex text-sm mt-2">' . strtoupper($level) . '</span></div>
68+
<div class="log-message"><span class="flex font-bold mt-2">' . $message . '</span></div>
69+
<div class="log-context px-5 py-5 overflow-x-auto">
70+
<pre>' . $context . '</pre>
71+
</div>
6172
</div>';
6273
}
74+
echo '<hr>';
6375
$test->logData = [];
6476
}
6577

6678
?>
6779
</div>
68-
6980
</div>
7081
</div>
7182

0 commit comments

Comments
 (0)