Scripts and Style links local rather than pulled from Internet
See original GitHub issueI have a great use case for an offline application to use django-sql-explorer and need the scripts and links all to be stored with the package for this purpose.
These were the references I found with a quick grep of the templates:
[explorer]# grep 'src="/' *
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/codemirror.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/mode/sql/sql.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/addon/comment/comment.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/floatthead/2.1.1/jquery.floatThead.min.js"></script>
base.html: <script src="//cdnjs.cloudflare.com/ajax/libs/pivottable/2.20.0/pivot.min.js"></script>
[explorer]# grep 'href="/' *
base.html: <link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.36.0/codemirror.min.css" rel="stylesheet" />
base.html: <link href="//cdnjs.cloudflare.com/ajax/libs/pivottable/2.20.0/pivot.min.css" rel="stylesheet" />
fullscreen.html: <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Styling links - Learn web development | MDN
Default styles. The following example illustrates what a link will behave like by default (the CSS is enlarging and centering the text to...
Read more >Links in HTML documents - W3C
This section introduces the link (or hyperlink, or Web link), the basic hypertext construct. A link is a connection from one Web resource...
Read more >9 tricks to eliminate render blocking resources - LogRocket Blog
You can reduce the impact of custom fonts on initial page rendering by adding them locally rather than pulling them from a content...
Read more >How to Link CSS to HTML Files in Web Development - Hostinger
In this detailed guide, you'll learn how to link a CSS style sheet to HTML and the many reasons why you would want...
Read more >HTML Anchors: Here's How To Create Links For Fast ...
Search engine web crawlers associate anchor element text with the link URL. Properly selected anchor element text helps search engines determine the relevance ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Haha, alright. Good deal, and I’m happy to do the work, because it is less work to do it here than to eternally override/patch.
Excellent thanks @alligatorbait
I’ve also improved the way the app checks the blacklist so maybe we’ve got a 2.1 release already! 👍