GithubHelp home page GithubHelp logo

pagekit-assets's People

Contributors

ahoiroman avatar

Watchers

 avatar  avatar

pagekit-assets's Issues

Can't override shariff SPQR extensions

I can create the CSS to override shariff-buttons, but can never get it to apply. 'Assets' doesn't insert either the style block or css file link that it creates at the absolute end of the linked references... trying it with border-radius as a test, i.e.:

 <link href="/packages/friendlyit/search/assets/css/searchwidget.css?v=748a" rel="stylesheet">
        <style>shariff-button a {
border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
}</style>
        <link href="/packages/spqr/shariff/app/assets/shariff/build/shariff.complete.css?v=748a" rel="stylesheet">

or

        <link href="/packages/spqr/assets/assets/custom/shariff-override.css?v=748a" rel="stylesheet">
        <link href="/packages/spqr/shariff/app/assets/shariff/build/shariff.complete.css?v=748a" rel="stylesheet">
        <script>var $pagekit = {"url":"","csrf":"618f0f4cb8ac20f68e0d7ef465cf958857f6a45d"};</script>

I don't know if the same thing happens with any of your other extensions, since I'm only using these 2 at the moment.

Require other assets as dependency

e.g.
I add a custom js script which requires moment.js. So I create a second assets of type 'url' which is for the cdns of moment.js which I load on the same page as my custom script.
Assets does not care about the order of adding the scripts, so it depends on which assets you created first. So if moment.js is added after my custom script, its utitility can not be used, as my script does not know about moment.

Load dependency for script

I got an assets, javascript, which uses jquery. Now the problem is, that my assets is inserted before jquery (also before all other 'standard pagekit' assets).

In pagekit its very easy to add dependency via the scriptmanager/loader. Is it possible to do the same with your asset manager (via the UI)?

Thanks for your effort.

Admin menu permission problem

I think it could be useful hide things that role cannot use, adding an 'access' parameter in the definition of menu. If a role cannot access the any permission of an extension, neither shoud see the related menu item.

I found this problem in sqpr/assets

Solved it adding a row in main index.php:

/pagekit/packages/spqr/assets/index.php

...
'menu'        => [
'assets'           => [
'label'  => 'Assets',
'url'    => '@assets/asset',
'active' => '@assets/asset*',
'icon'   => 'spqr/assets:icon.svg',
'access' => 'assets: manage assets || assets: manage settings' /* Add this row */
],
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.