mirror of
https://github.com/tabler/tabler.git
synced 2026-08-07 20:02:23 +04:00
Migrate preview and docs packages from Eleventy to Astro (#2694)
Co-authored-by: Bartek <xbartoszdobija@gmail.com>
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
---
|
||||
// Port of preview/pages/logs.html (layout: default)
|
||||
import DefaultLayout from '@shared/layouts/DefaultLayout.astro';
|
||||
import Badge from '@shared/components/ui/Badge.astro';
|
||||
import { site } from '@shared/lib/site';
|
||||
---
|
||||
|
||||
<DefaultLayout title="Logs" pageHeader="Logs" pageMenu="extra.logs">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4>
|
||||
Checked URL
|
||||
</h4>
|
||||
<div>
|
||||
<pre><code>GET <a class="text-reset" target="_blank" href={site.previewUrl}>{site.previewUrl}</a></code></pre>
|
||||
</div>
|
||||
|
||||
<h4>Request Timing</h4>
|
||||
<div>
|
||||
<pre>Effective URL <a class="text-reset" target="_blank" href={site.previewUrl}>{site.previewUrl}</a><br>Redirect count 0<br>Name lookup time 3.4e-05<br>Connect time 0.000521<br>Pre-transfer time 0.0<br>Start-transfer time 0.0<br>App connect time 0.0<br>Redirect time 0.0<br>Total time 28.000601<br>Response code 0<br>Return keyword operation_timedout</pre>
|
||||
</div>
|
||||
|
||||
<h4>Response Headers</h4>
|
||||
<div>
|
||||
<pre>HTTP/1.1 200 Connection established</pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<h4>Escalation</h4>
|
||||
<div>Entire team</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h4>
|
||||
Application Log
|
||||
</h4>
|
||||
<div>
|
||||
<pre><code>2024-01-15 14:23:45 [INFO] Application started successfully
|
||||
2024-01-15 14:23:46 [DEBUG] Database connection established
|
||||
2024-01-15 14:23:47 [INFO] User authentication successful: user_id=12345
|
||||
2024-01-15 14:23:48 [WARNING] Rate limit approaching: 85% of quota used
|
||||
2024-01-15 14:23:49 [ERROR] Failed to process payment: transaction_id=tx_789
|
||||
2024-01-15 14:23:50 [INFO] Cache cleared: keys=1523
|
||||
2024-01-15 14:23:51 [DEBUG] API request completed: endpoint=/api/users, duration=234ms</code></pre>
|
||||
</div>
|
||||
|
||||
<h4>Log Levels</h4>
|
||||
<div>
|
||||
<div class="mb-2">
|
||||
<Badge text="INFO" color="success" />
|
||||
<Badge text="WARNING" color="warning" />
|
||||
<Badge text="ERROR" color="disabled" />
|
||||
<Badge text="DEBUG" color="disabled" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<h4>Log Source</h4>
|
||||
<div>Application Server (prod-01)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</DefaultLayout>
|
||||
Reference in New Issue
Block a user