Repository navigation
Conversation
…th AssetMapper - Expose the copy-to-clipboard and theme-switcher Stimulus controllers to AssetMapper and add them to stimulus.controller_paths, like ShadcnAdminUi does - Add a conflict on symfony/asset-mapper < 6.4, which stays optional - Document the assets/controllers.json file and the assets/controllers/ directory required by StimulusBundle - Load the importmap in the stylesheets hook to avoid a flash of unstyled content - Add an Assets page to the Bootstrap Admin UI documentation
…prebuilt Symfony UX assets - Add a "sylius_bootstrap_admin_ui.importmap_entrypoint" option, null by default - When set, both symfony_ux hookables get an "entrypoint" configuration: the stylesheets one loads the importmap in the <head> and the javascripts one no longer starts the prebuilt Stimulus application - Document the option instead of disabling the hookables by hand
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #402: only the last commit belongs to this PR.
Using your own Stimulus application in the Bootstrap admin panel currently means disabling both
symfony_uxhookables, adding a hookable and writing its template. This brings it closer to the Shadcn Admin UI, where the layout hookable takes anentrypointconfiguration:symfony_uxhookables get anentrypointconfiguration: the stylesheets one loads the importmap in the<head>(no FOUC for the imported stylesheets), the javascripts one no longer starts the prebuilt Stimulus application.configuration: { entrypoint: 'app' }), like in Shadcn.nullby default: nothing changes for existing apps. Theimportmap()call lives in its own template, so apps without AssetMapper never compile it.enabled: falseprepended by the bundle would be overridden byconfig/app.php, imported by the application.