Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Sep 21, 2023
1 parent cb3f7c6 commit dbddde2
Show file tree
Hide file tree
Showing 14 changed files with 125 additions and 428 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@tiptap/starter-kit": "^2.0.3",
"acorn": "^8.10.0",
"alpinejs": "^3.12.3",
"apexcharts": "^3.42.0",
"axios": "^1.4.0",
"laravel-vite-plugin": "^0.7.8",
"postcss": "^8.2.4",
Expand Down
51 changes: 50 additions & 1 deletion resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,54 @@

{{-- Content --}}
@section('content')

<div class="l-row l-row--column:sm:2 l-row--column:lg:3">
<div class="app-widget app-widget--primary">
<div class="app-widget__column">
<h2 class="app-widget__title">Orders</h2>
<p class="app-widget__data">65</p>
<div class="trending trending--up app-widget__trending">
<span class="trending__caption">+12%</span>
<svg aria-hidden='true' fill='none' focusable='false' height='24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='currentColor' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' class='trending__icon'>
<polyline points='23 6 13.5 15.5 8.5 10.5 1 18'></polyline>
<polyline points='17 6 23 6 23 12'></polyline>
</svg>
</div>
</div>
<div class="app-widget__chart">
<div id="chart01"></div>
</div>
</div>
<div class="app-widget ">
<div class="app-widget__column">
<h2 class="app-widget__title">Customers</h2>
<p class="app-widget__data">54</p>
<div class="trending trending--up app-widget__trending">
<span class="trending__caption">+6%</span>
<svg aria-hidden='true' fill='none' focusable='false' height='24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='currentColor' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' class='trending__icon'>
<polyline points='23 6 13.5 15.5 8.5 10.5 1 18'></polyline>
<polyline points='17 6 23 6 23 12'></polyline>
</svg>
</div>
</div>
<div class="app-widget__chart">
<div id="chart02"></div>
</div>
</div>
<div class="app-widget ">
<div class="app-widget__column">
<h2 class="app-widget__title">Users</h2>
<p class="app-widget__data">184</p>
<div class="trending trending--down app-widget__trending">
<span class="trending__caption">-12%</span>
<svg aria-hidden='true' fill='none' focusable='false' height='24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='currentColor' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' class='trending__icon'>
<polyline points='23 18 13.5 8.5 8.5 13.5 1 6'></polyline>
<polyline points='17 18 23 18 23 12'></polyline>
</svg>
</div>
</div>
<div class="app-widget__chart">
<div id="chart03"></div>
</div>
</div>
</div>
@endsection
17 changes: 0 additions & 17 deletions resources/views/resources/extract.blade.php

This file was deleted.

47 changes: 0 additions & 47 deletions src/Console/Commands/ExtractMake.php

This file was deleted.

130 changes: 0 additions & 130 deletions src/Extracts/Extract.php

This file was deleted.

81 changes: 0 additions & 81 deletions src/Extracts/Extracts.php

This file was deleted.

2 changes: 1 addition & 1 deletion src/Http/Controllers/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class DashboardController extends Controller
public function __invoke(Request $request, Root $root): Response
{
return ResponseFactory::View('root::dashboard', [
//
'widgets' => $root->widgets,
]);
}
}
25 changes: 0 additions & 25 deletions src/Http/Controllers/ExtractController.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Cone\Root\Interfaces\AsTable;
use Cone\Root\Table\Table;
use Cone\Root\Traits\Authorizable;
use Cone\Root\Traits\ResolvesExtracts;
use Cone\Root\Traits\ResolvesWidgets;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Eloquent\Builder;
Expand All @@ -21,7 +20,6 @@
class Resource implements Arrayable, AsForm, AsTable
{
use Authorizable;
use ResolvesExtracts;
use ResolvesWidgets;

/**
Expand Down
Loading

0 comments on commit dbddde2

Please sign in to comment.