-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initialized overview component
- Loading branch information
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
database/migrations/2024_06_13_090143_create_tests_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
30
resources/views/livewire/monitors/monitor-dashboard.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters