Merge branch 'next' into feat/monaco-editor
This commit is contained in:
34
app/View/Components/ApexCharts.php
Normal file
34
app/View/Components/ApexCharts.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class ApexCharts extends Component
|
||||
{
|
||||
public string $chartId;
|
||||
|
||||
public $seriesData;
|
||||
|
||||
public $categories;
|
||||
|
||||
public $seriesName;
|
||||
|
||||
public function __construct($chartId, $seriesData, $categories, $seriesName = '')
|
||||
{
|
||||
$this->chartId = $chartId;
|
||||
$this->seriesData = $seriesData;
|
||||
$this->categories = $categories;
|
||||
$this->seriesName = $seriesName ?? 'Series';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.apex-charts');
|
||||
}
|
||||
}
|
||||
@@ -22,8 +22,7 @@ class Input extends Component
|
||||
public bool $allowToPeak = true,
|
||||
public bool $isMultiline = false,
|
||||
public string $defaultClass = 'input',
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
|
||||
@@ -16,9 +16,7 @@ class ResourceView extends Component
|
||||
public ?string $logo = null,
|
||||
public ?string $documentation = null,
|
||||
public bool $upgrade = false,
|
||||
) {
|
||||
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
|
||||
@@ -14,8 +14,7 @@ class Index extends Component
|
||||
public function __construct(
|
||||
public $resource = null,
|
||||
public bool $showRefreshButton = true,
|
||||
) {
|
||||
}
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
|
||||
Reference in New Issue
Block a user