-
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.
Merge pull request #6 from queents/dev
update media collection and media lib type
- Loading branch information
Showing
9 changed files
with
138 additions
and
35 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
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
This file was deleted.
Oops, something went wrong.
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 | ||
|
||
namespace Modules\Base\Services\Concerns; | ||
|
||
trait HasCol | ||
{ | ||
/** | ||
* @var int | ||
* @example 12 | ||
*/ | ||
public int $col = 12; | ||
|
||
/** | ||
* @param int $col | ||
* @return $this | ||
*/ | ||
public function col(int $col): static | ||
{ | ||
$this->col = $col; | ||
return $this; | ||
} | ||
} |
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,25 @@ | ||
<?php | ||
|
||
namespace Modules\Base\Services\Concerns; | ||
|
||
trait HasSection | ||
{ | ||
/** | ||
* @var ?string | ||
* @example 'groupId' | ||
*/ | ||
public ?string $section = null; | ||
public ?string $sectionLabel = null; | ||
|
||
/** | ||
* @param string $section | ||
* @param ?string $sectionLabel | ||
* @return $this | ||
*/ | ||
public function section(string $section, ?string $sectionLabel): static | ||
{ | ||
$this->section = $section; | ||
$this->sectionLabel = $sectionLabel; | ||
return $this; | ||
} | ||
} |
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
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
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,20 @@ | ||
<?php | ||
|
||
namespace Modules\Base\Services\Rows; | ||
|
||
use Modules\Base\Services\Rows\Abstracts\Base; | ||
|
||
class Section extends Base | ||
{ | ||
|
||
public string $vue = 'ViltSection.vue'; | ||
|
||
/** | ||
* @param string $name | ||
* @return static | ||
*/ | ||
public static function make(string $name): self | ||
{ | ||
return (new self)->name($name)->over()->list(false); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.