feat: extend module platform with UI slots, runtime components, CLI tooling and {{userId}} search support
Completes the generic module platform that enables modules to contribute
UI elements, runtime JS components, and search resources without any
core hardcoding.
New generic UI slot types:
- topbar.right_item: module-contributed topbar buttons
- layout.body_end_template: module-contributed dialog/overlay templates
- layout.head_style: module-contributed global CSS
- runtime.component: declarative JS component registration with phase ordering
New infrastructure:
- ModuleAutoloader: PSR-4 autoloading for module-local PHP classes
- ModuleRuntimePageBuilder: symlinks module pages into runtime directory
- ModuleRuntimeAssetPublisher: publishes module CSS/JS to web/modules/
- ModulePermissionSynchronizer: syncs module permissions to DB
- CLI scripts: module-runtime-sync, module-build, module-migrate,
module-permissions-sync, module-assets-sync
- {{userId}} placeholder in SearchDataService for user-scoped search queries
- Component runtime with phased initialization (early/default/late)
- AppContainer.protectExistingBindings() to prevent module→core overwrites
- Architecture tests: ModuleStructureContractTest, CoreTemplateIsolationTest,
FrontendComponentRuntimeContractTest, AppContainerIsolationContractTest
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,14 @@
|
||||
<?php if (file_exists('web/vendor/editorjs/tools/marker.umd.js')): ?>
|
||||
<script src="<?php e(assetVersion('vendor/editorjs/tools/marker.umd.js')); ?>"></script>
|
||||
<?php endif; ?>
|
||||
<script type="module" src="<?php e(assetVersion('js/components/app-page-editor.js')); ?>"></script>
|
||||
<script type="application/json" id="page-config-page-editor"><?php gridJsonForJs([
|
||||
'selector' => '[data-page-editor]',
|
||||
'holderSelector' => '[data-editor-holder]',
|
||||
'contentFieldSelector' => '#page-content',
|
||||
'toggleSelector' => '[data-editor-toggle]',
|
||||
'saveSelector' => '[data-editor-save]',
|
||||
]); ?></script>
|
||||
<script type="module" src="<?php e(assetVersion('js/pages/app-page-editor-entry.js')); ?>"></script>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
<?php if ($canEdit): ?>
|
||||
|
||||
Reference in New Issue
Block a user