orchestral / asset Goto Github PK
View Code? Open in Web Editor NEWAsset Component for Orchestra Platform
License: MIT License
Asset Component for Orchestra Platform
License: MIT License
I'm not sure if it's a bug, but:
@jsIn('footer', $dinamicUrl)
is not working but Asset::container('footer')->add('url', $dinamicUrl);
is working fine.
Hi, I've tried using @css
and @js
with urls that just start with //
, however, it generates the error above:
Argument 2 passed to Orchestra\Asset\Asset::script() must be of the type string, null given
I've hand a quick look at the code, and it seems that you are testing for http, https and // URLs but the error is thrown before it gets to isLocalPath()
I dont understand enough how these blade tags are being called to figure out where the problem might be - hoping you could provide some pointers.
So, using @css('https://cdn/url')
works, but using @css('//cdn/url')
throws the above error.
(I'm using v3.8.0.)
Hi,
I tried to use asset dependency like this, but it seems not working:
Asset::add('one', 'assets/js/one.js');
Asset::container('footer')
->add('two', 'assets/js/two.js', 'one');
// view
{{ Asset::container('footer')->scripts() }}
one.js isn't shown in the page, it shows only two.js. Did I miss something here?
PS. I'm on Laravel 4.2 and using orchestral/asset 2.2
Thanks!
There seems to be a missing dependency when installing orchestral/asset through composer.
If you adjust the composer.json like mentioned in the installation documentation it will install orchestral/asset without any errors but as soon as you add the Alias to config/app, the Facade couldn't be resolved. The package orchestral/support seems to be missing in the dependency tree.
Workaround: adding orchestral/support manually to composer.json. Then everything can be resolved fine again.
Is not version 3.4 stable?
Composer error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for orchestra/asset ~3.4 -> satisfiable by orchestra/asset[v3.4.0].
- orchestra/asset v3.4.0 requires orchestra/contracts ~3.4.0 -> satisfiable by orchestra/contracts[3.4.x-dev] but these conflict with your requirements or minimum-stability.
Allow support to use external URL or CDN for asset.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.