-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[4.0][RFC] Elephant can manage assets also. The WebAssetRegistry class to manage assets and it`s dependacies #22435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
b96359c
WebAssetFactory/Item
Fedik 2f4b9af
Add asset item to a registry while runing of a vendor update
Fedik 2fb4520
Sync. Merge branch '4.0-dev' into asset4
Fedik b16aaf2
Update settings.json, add "provideAssets" propertie
Fedik f63ecf9
WebAssetFactory dependacies calculation
Fedik 742e1ca
Attach Assets to Document
Fedik dc7f629
Support of attribute per Asset file
Fedik db4e281
A factory to registry
Fedik 92cb5c5
Add example of registry data file
Fedik b188004
resolvePath method
Fedik 0560da5
WebAsset ServiceProvider
Fedik 4e5fb00
Explicitly add Registry File, instead of blind search.
Fedik b3d30a8
WebAsset improve attach() process
Fedik ebd0ef8
Update settings
Fedik 2602592
WebAsset more assets
Fedik 67ed549
'bootstrap.framework' to use WebAsset
Fedik c99e017
WebAsset use full path
Fedik 1d8201a
WebAsset remove legacy/joomla.asset.json
Fedik afe0482
WebAsset some renaming
Fedik 53e18ea
WebAsset template.atum joomla.asset.json
Fedik ae01b9d
WebAsset: attach Assets to a document
Fedik 6354dc8
WebAsset template.cassiopeia asset
Fedik d05d9e7
WebAsset small reordering
Fedik 8681e75
WebAsset HtmlBehavior use assets
Fedik 7438e0a
WebAsset set up Dispatcher
Fedik fa7edb6
WebAsset correct a 'subject'
Fedik 4e223d5
WebAsset -rtl for rtl
Fedik c4d03bc
phpcs
Fedik 3b05879
phpcs
Fedik 0740ee2
WebAsset fix typo
Fedik 4266eee
WebAsset return types
Fedik 38d5a6f
Move stuff from __constructor to service and app:dispatch()
Fedik c9d1ce9
WebAsset rename attach() method
Fedik f0322eb
WebAsset append real version
Fedik 848611a
WebAsset check whether the asset exists before override
Fedik 30f2331
phpcs
Fedik 7ade928
WebAsset Event subclasses
Fedik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| { | ||
| "name": "atum", | ||
| "version": "4.0.0", | ||
| "description": "Atum is the Joomla 4 administrator template", | ||
| "license": "GPL-2.0+", | ||
| "assets": { | ||
| "template.atum.base": { | ||
| "name": "template.atum.base", | ||
| "dependencies": [ | ||
| "core", | ||
| "jquery-noconflict", | ||
| "font-awesome", | ||
| "bootstrap.css", | ||
| "bootstrap.js.bundle", | ||
| "css-vars-ponyfill" | ||
| ], | ||
| "js": [] | ||
| }, | ||
| "template.atum.ltr": { | ||
| "name": "template.atum.ltr", | ||
| "dependencies": ["template.atum.base"], | ||
| "css": [ | ||
| "template.min.css", | ||
| "user.css" | ||
| ] | ||
| }, | ||
| "template.atum.rtl": { | ||
| "name": "template.atum.rtl", | ||
| "dependencies": ["template.atum.base"], | ||
| "css": [ | ||
| "template-rtl.min.css", | ||
| "user.css" | ||
| ] | ||
| }, | ||
| "bootstrap.css": { | ||
| "name": "bootstrap.css", | ||
| "css": [ | ||
| "bootstrap.min.css" | ||
| ] | ||
| }, | ||
| "font-awesome": { | ||
| "name": "font-awesome", | ||
| "css": [ | ||
| "font-awesome.min.css" | ||
| ] | ||
| } | ||
| } | ||
| } |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fedik this should be
awesompleteor will it work with the actual name of the parent object?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeap, it will take a name of the parent if it is empty here,
I made
name:nulljust to show that the name can be specified here also, when need different name