mirror of
https://github.com/twinpath/app-beta.git
synced 2026-01-26 05:45:26 +07:00
first commit
This commit is contained in:
26
app/View/Components/ui/Alert.php
Normal file
26
app/View/Components/ui/Alert.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Alert extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.alert');
|
||||
}
|
||||
}
|
||||
26
app/View/Components/ui/Avatar.php
Normal file
26
app/View/Components/ui/Avatar.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Avatar extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.avatar');
|
||||
}
|
||||
}
|
||||
26
app/View/Components/ui/Badge.php
Normal file
26
app/View/Components/ui/Badge.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Badge extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.badge');
|
||||
}
|
||||
}
|
||||
26
app/View/Components/ui/Button.php
Normal file
26
app/View/Components/ui/Button.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Button extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.button');
|
||||
}
|
||||
}
|
||||
56
app/View/Components/ui/Modal.php
Normal file
56
app/View/Components/ui/Modal.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class Modal extends Component
|
||||
{
|
||||
// /**
|
||||
// * Create a new component instance.
|
||||
// */
|
||||
// public function __construct()
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * Get the view / contents that represent the component.
|
||||
// */
|
||||
// public function render(): View|Closure|string
|
||||
// {
|
||||
// return view('components.ui.modal');
|
||||
// }
|
||||
|
||||
|
||||
|
||||
public $isOpen;
|
||||
public $showCloseButton;
|
||||
public $isFullscreen;
|
||||
public $modalId;
|
||||
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct(
|
||||
$isOpen = false,
|
||||
$showCloseButton = true,
|
||||
$isFullscreen = false,
|
||||
$modalId = null
|
||||
) {
|
||||
$this->isOpen = $isOpen;
|
||||
$this->showCloseButton = $showCloseButton;
|
||||
$this->isFullscreen = $isFullscreen;
|
||||
$this->modalId = $modalId ?? 'modal-' . uniqid();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.modal');
|
||||
}
|
||||
}
|
||||
26
app/View/Components/ui/YoutubeEmbed.php
Normal file
26
app/View/Components/ui/YoutubeEmbed.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\View\Components\ui;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\View\Component;
|
||||
|
||||
class YoutubeEmbed extends Component
|
||||
{
|
||||
/**
|
||||
* Create a new component instance.
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the view / contents that represent the component.
|
||||
*/
|
||||
public function render(): View|Closure|string
|
||||
{
|
||||
return view('components.ui.youtube-embed');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user