feat: Vue3로 새롭게 작성한 메인 페이지 (#229)
- v_front.php - API 추가 - General/GetFrontInfo - Global/GetGlobalMenu - DTO 추가 - MenuItem, MenuMulti, MenuSplit - 글로벌 메뉴 출력 방식 변경 - d_setting/GlobalMenu.php Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/229
This commit was merged in pull request #229.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace sammo\DTO;
|
||||
|
||||
use LDTO\Attr\NullIsUndefined;
|
||||
use LDTO\DTO;
|
||||
|
||||
class MenuItem extends DTO{
|
||||
public readonly string $type;
|
||||
|
||||
public function __construct(
|
||||
public readonly string $name,
|
||||
public readonly string $url,
|
||||
|
||||
#[NullIsUndefined]
|
||||
public ?string $icon = null,
|
||||
#[NullIsUndefined]
|
||||
public ?bool $newTab = false,
|
||||
#[NullIsUndefined]
|
||||
public ?string $condHighlightVar = null,
|
||||
#[NullIsUndefined]
|
||||
public ?string $condShowVar = null,
|
||||
){
|
||||
$this->type = 'item';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user