Skip to content

Commit

Permalink
feat: initialized overview component
Browse files Browse the repository at this point in the history
  • Loading branch information
stevan06v committed Sep 18, 2024
1 parent 7c382c0 commit a72c9d4
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Models/Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Test extends Model
{

}
22 changes: 22 additions & 0 deletions database/migrations/2024_06_13_090143_create_tests_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration {
public function up(): void
{
Schema::create('tests', function (Blueprint $table) {
$table->id();
$table->string('dsfdasfdasfdas');
$table->boolean('fdasfdasf');
$table->timestamps();
});
}

public function down(): void
{
Schema::dropIfExists('tests');
}
};
30 changes: 30 additions & 0 deletions resources/views/livewire/monitors/monitor-dashboard.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
use App\Models\Monitor;
use App\Models\Repository;
use Livewire\Volt\Component;
new class extends Component {
public $total_issues_open = 0;
public $total_issues_closed = 0;
public $total_repos = 0;
public $total_percentage = 0;
public $top_milestones = [];
public Monitor $monitor;
public function mount(Monitor $monitor)
{
$this->monitor = $monitor;
}
}; ?>


<div>
<div class="w-full p-5 items-center rounded-xl">
<h2 class="m-2 font-koulen text-3xl text-primary-blue">Overview</h2>
<div class="flex items-center justify-between mb-5">
{{$total_issues_closed}}
</div>
</div>
</div>
4 changes: 4 additions & 0 deletions resources/views/livewire/monitors/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public function mount(Monitor $monitor)
<livewire:monitors.card lazy="true" :monitor="$monitor"/>
</div>

<div class="border-other-grey border-2 rounded-2xl mt-8">
<livewire:monitors.monitor-dashboard :monitor="$monitor" lazy="true"/>
</div>

<div class="mt-8 grid grid-cols-3 gap-8">
<div class="col-span-2">
<livewire:monitors.read-me-view :monitor="$monitor"/>
Expand Down

0 comments on commit a72c9d4

Please sign in to comment.