feat: charts

This commit is contained in:
Andras Bacsai
2024-06-17 14:21:27 +02:00
parent 1ae6106782
commit 1d0a1ab16a
10 changed files with 160 additions and 8 deletions

View File

@@ -0,0 +1,4 @@
<div wire:poll.5000ms='loadData'>
<h1>CPU Usage</h1>
<x-apex-charts :chart-id="$chartId" :series-data="$data" :categories="$categories" series-name="Total distance this year"/>
</div>

View File

@@ -39,9 +39,9 @@
Add Resource</span>
</a>
<a class="hover:underline"
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
Settings
</a>
href="{{ route('project.edit', ['project_uuid' => data_get($project, 'uuid')]) }}">
Settings
</a>
</div>
</div>
</div>
@@ -161,7 +161,6 @@
</div>
@endif
<script>
function gotoProject(uuid, environment = 'production') {
window.location.href = '/project/' + uuid + '/' + environment;

View File

@@ -5,4 +5,9 @@
<x-server.navbar :server="$server" :parameters="$parameters" />
<livewire:server.form :server="$server" />
<livewire:server.delete :server="$server" />
@if (isDev())
<div class="pt-10">
<livewire:charts.server :server="$server" />
</div>
@endif
</div>