Removed home.js
Added Discover
This commit is contained in:
parent
df052dab36
commit
8816f4a1a1
25 changed files with 213 additions and 145 deletions
11
app/Models/ErrorTemplate.php
Normal file
11
app/Models/ErrorTemplate.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
class ErrorTemplate extends BaseTemplate {
|
||||
public object $error;
|
||||
|
||||
function __construct(object $error) {
|
||||
parent::__construct('Error');
|
||||
$this->error = $error;
|
||||
}
|
||||
}
|
||||
34
app/Models/HomeTemplate.php
Normal file
34
app/Models/HomeTemplate.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
namespace App\Models;
|
||||
|
||||
/**
|
||||
* Exclusive for /
|
||||
*/
|
||||
class HomeTemplate extends BaseTemplate {
|
||||
public array $forms = [
|
||||
[
|
||||
'title' => 'Search by user',
|
||||
'input' => 'user',
|
||||
'placeholder' => 'Type username'
|
||||
],
|
||||
[
|
||||
'title' => 'Search by video ID',
|
||||
'input' => 'video',
|
||||
'placeholder' => 'Type video ID'
|
||||
],
|
||||
[
|
||||
'title' => 'Search by tag',
|
||||
'input' => 'tag',
|
||||
'placeholder' => 'Type tag'
|
||||
],
|
||||
[
|
||||
'title' => 'Search by music ID',
|
||||
'input' => 'music',
|
||||
'placeholder' => 'Type music'
|
||||
]
|
||||
];
|
||||
|
||||
function __construct() {
|
||||
parent::__construct('Home');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue