mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-16 09:42:29 -04:00
Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
2.9 KiB
PHP
68 lines
2.9 KiB
PHP
<div class="flex w-full min-w-0 flex-col gap-6">
|
|
@if (! ($hideSkeleton ?? false))
|
|
{{-- Header (real chrome; only the data below is a skeleton) --}}
|
|
<div class="flex flex-col gap-4">
|
|
@if (empty($scopedServerUuid ?? null))
|
|
<div class="min-w-0">
|
|
<h1 class="min-w-0 text-[24px]! leading-7! font-semibold! tracking-tight!">Analytics</h1>
|
|
<p class="mt-1 text-[13px] text-neutral-500 dark:text-fg-dim">
|
|
Request traffic across every application and server, reported by Sentinel.
|
|
</p>
|
|
</div>
|
|
@endif
|
|
|
|
{{-- Filter bar --}}
|
|
<div class="flex flex-wrap items-center gap-2">
|
|
@if (empty($scopedServerUuid ?? null))
|
|
<x-skeleton class="h-9 w-full rounded-lg sm:w-52" />
|
|
@endif
|
|
<x-skeleton class="h-9 w-full rounded-lg sm:w-52" />
|
|
<x-skeleton class="h-9 w-44 rounded-lg sm:ml-auto" />
|
|
</div>
|
|
</div>
|
|
|
|
<x-application.settings-section id="analytics-overview-section" title="Overview">
|
|
<x-skeleton.tiles :count="5" />
|
|
</x-application.settings-section>
|
|
|
|
<x-application.settings-section id="analytics-requests-section" title="Requests">
|
|
<x-skeleton class="h-[220px] w-full rounded-lg" />
|
|
</x-application.settings-section>
|
|
|
|
<x-application.settings-section id="analytics-status-codes-section" title="Status codes">
|
|
<x-skeleton class="h-9 w-full rounded-lg" />
|
|
<div class="mt-3 flex flex-wrap gap-2">
|
|
<x-skeleton class="h-4 w-20 rounded-full" />
|
|
<x-skeleton class="h-4 w-16 rounded-full" />
|
|
<x-skeleton class="h-4 w-16 rounded-full" />
|
|
<x-skeleton class="h-4 w-14 rounded-full" />
|
|
</div>
|
|
</x-application.settings-section>
|
|
|
|
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
<x-application.settings-section id="analytics-hosts-section" title="Top hosts" flush>
|
|
<x-skeleton.table :rows="6" flush />
|
|
</x-application.settings-section>
|
|
<x-application.settings-section id="analytics-apps-section" title="Top applications" flush>
|
|
<x-skeleton.table :rows="6" flush />
|
|
</x-application.settings-section>
|
|
</div>
|
|
|
|
<x-application.settings-section id="analytics-paths-section" title="Top paths" flush>
|
|
<x-skeleton.table :rows="6" flush />
|
|
</x-application.settings-section>
|
|
|
|
<x-application.settings-section id="analytics-country-section" title="Locations" flush>
|
|
<x-slot:actions>
|
|
<x-skeleton class="h-9 w-36 rounded-lg" />
|
|
</x-slot:actions>
|
|
<div class="grid grid-cols-1 items-start gap-4 p-4 lg:grid-cols-[2fr_3fr]">
|
|
<div class="flex items-center justify-center">
|
|
<x-skeleton class="aspect-square w-full max-w-[320px] rounded-full" />
|
|
</div>
|
|
<x-skeleton.table :rows="7" flush />
|
|
</div>
|
|
</x-application.settings-section>
|
|
@endif
|
|
</div>
|