v7.0.0 release
This commit is contained in:
1 parent
0e7fa04b03
commit
c4ea9a6cd1
3582 files changed
+626189
-160151
No files matched your search
@@ -4,6 +4,7 @@ namespace App\Console\Commands\Module;
|
||||
|
||||
use App\Extension\ModuleManager;
|
||||
use App\Extension\Traits\ClearsTemplateCaches;
|
||||
use App\Extension\Traits\GeneratesComponentManifest;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Symfony\Component\Process\Process;
|
||||
@@ -11,6 +12,7 @@ use Symfony\Component\Process\Process;
|
||||
class BuildModuleCommand extends Command
|
||||
{
|
||||
use ClearsTemplateCaches;
|
||||
use GeneratesComponentManifest;
|
||||
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
@@ -196,6 +198,14 @@ class BuildModuleCommand extends Command
|
||||
// 빌드 결과 파일 확인
|
||||
$this->displayBuildResults($buildPath, $identifier);
|
||||
|
||||
// 편집기 컴포넌트 매니페스트(components.json) 생성
|
||||
$manifestResult = $this->generateComponentManifest($buildPath, $identifier);
|
||||
if ($manifestResult['written']) {
|
||||
$this->line(" - components.json 생성됨 (컴포넌트 {$manifestResult['count']}개)");
|
||||
} else {
|
||||
$this->warn(' - components.json 생성 실패 (편집 모드 컨트롤 노출 제한)');
|
||||
}
|
||||
|
||||
// 캐시 버전 증가 (브라우저 캐시 무효화)
|
||||
$this->incrementExtensionCacheVersion();
|
||||
$this->line(' - 캐시 버전 갱신됨');
|
||||
|
||||
@@ -5,8 +5,10 @@ namespace App\Console\Commands\Module;
|
||||
use App\Console\Commands\Traits\HasProgressBar;
|
||||
use App\Console\Commands\Traits\HasUnifiedConfirm;
|
||||
use App\Contracts\Repositories\ModuleRepositoryInterface;
|
||||
use App\Enums\LayoutSourceType;
|
||||
use App\Extension\ModuleManager;
|
||||
use App\Extension\Vendor\VendorMode;
|
||||
use App\Services\LayoutExtensionService;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
@@ -36,7 +38,8 @@ class UpdateModuleCommand extends Command
|
||||
*/
|
||||
public function __construct(
|
||||
private ModuleManager $moduleManager,
|
||||
private ModuleRepositoryInterface $moduleRepository
|
||||
private ModuleRepositoryInterface $moduleRepository,
|
||||
private LayoutExtensionService $layoutExtensionService
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
@@ -120,6 +123,30 @@ class UpdateModuleCommand extends Command
|
||||
$this->info('업데이트 버전: (module.json 추출 후 판별)');
|
||||
}
|
||||
|
||||
$this->info(__('modules.commands.update.layout_strategy', ['strategy' => $layoutStrategy]));
|
||||
|
||||
// overwrite 전략일 때 관리자가 편집한 레이아웃 확장 경고
|
||||
if ($layoutStrategy === 'overwrite') {
|
||||
$modifiedExtensions = $this->layoutExtensionService->getModifiedExtensionsBySource(
|
||||
LayoutSourceType::Module,
|
||||
$identifier
|
||||
);
|
||||
|
||||
if (! empty($modifiedExtensions)) {
|
||||
$this->newLine();
|
||||
$this->warn('⚠️ '.__('modules.commands.update.modified_extensions_warning', [
|
||||
'count' => count($modifiedExtensions),
|
||||
]));
|
||||
|
||||
foreach ($modifiedExtensions as $extension) {
|
||||
$this->warn(__('modules.commands.update.modified_extension_item', [
|
||||
'target' => $extension['target_name'],
|
||||
'source' => $extension['source_identifier'],
|
||||
]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->newLine();
|
||||
|
||||
// 확인 프롬프트 (--force 시 건너뜀)
|
||||
|
||||
Reference in new issue
Block a user