Browse Source

adjust vendor js/css move in templates

Signed-off-by: Shengjing Zhu <zsj950618@gmail.com>
Shengjing Zhu 7 years ago
parent
commit
2295bff16c

+ 1 - 0
pagure/static/vendor/cal-heatmap/cal-heatmap.css

@@ -0,0 +1 @@
+cal-heatmap.3.3.10.css

+ 1 - 0
pagure/static/vendor/cal-heatmap/cal-heatmap.js

@@ -0,0 +1 @@
+cal-heatmap.3.3.10.js

+ 1 - 0
pagure/static/vendor/cal-heatmap/cal-heatmap.min.js

@@ -0,0 +1 @@
+cal-heatmap.3.3.10.min.js

+ 4 - 4
pagure/templates/_render_repo.html

@@ -268,13 +268,13 @@
 
 {% macro render_activity_graph(username) %}
 <script type="text/javascript"src="{{
-  url_for('static', filename='jquery.min.js') }}"></script>
+  url_for('static', filename='vendor/jquery/jquery.min.js') }}"></script>
 <script type="text/javascript" src="{{
-  url_for('static', filename='d3/d3.v3.min.js') }}"></script>
+  url_for('static', filename='vendor/d3/d3.v3.min.js') }}"></script>
 <script type="text/javascript" src="{{
-  url_for('static', filename='cal-heatmap/cal-heatmap.3.3.10.min.js') }}"></script>
+  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.min.js') }}"></script>
 <link rel="stylesheet" href="{{
-  url_for('static', filename='cal-heatmap/cal-heatmap.3.3.10.css') }}" />
+  url_for('static', filename='vendor/cal-heatmap/cal-heatmap.css') }}" />
 
 
 <div class="card" id="user_graph">

+ 1 - 1
pagure/templates/add_deploykey.html

@@ -5,7 +5,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 

+ 2 - 2
pagure/templates/add_group_project.html

@@ -4,7 +4,7 @@
 {% set tag = "groups" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -75,7 +75,7 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-        src="{{ url_for('static', filename='selectize.min.js') }}"></script>
+        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
 <script type="text/javascript">
 $( document ).ready(function() {
   var group_to_update = "{{ group_to_update }}";

+ 2 - 2
pagure/templates/add_user.html

@@ -4,7 +4,7 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -73,7 +73,7 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-        src="{{ url_for('static', filename='selectize.min.js') }}"></script>
+        src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
 <script type="text/javascript">
 $( document ).ready(function() {
   var user_to_update = "{{ user_to_update }}";

+ 2 - 2
pagure/templates/edit_file.html

@@ -5,8 +5,8 @@
     repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %}
 {% set tag = "home" %}
 {% block header %}
-<script src="{{ url_for('static', filename='codemirror/codemirror.js') }}"></script>
-<link rel="stylesheet" href="{{ url_for('static', filename='codemirror/codemirror.css') }}">
+<script src="{{ url_for('static', filename='vendor/codemirror/codemirror.js') }}"></script>
+<link rel="stylesheet" href="{{ url_for('static', filename='vendor/codemirror/codemirror.css') }}">
 {% endblock%}
 
 {% block repo %}

+ 2 - 2
pagure/templates/group_info.html

@@ -6,7 +6,7 @@
 {% from "_browseheader.html" import browse_header %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -115,7 +115,7 @@
 
 {% block jscripts %}
   {{ super() }}
-  <script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
+  <script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
   <script type="text/javascript">
   $(document).ready(function() {
     $('#headerSearch').on('keypress keydown keyup', function(e) {

+ 2 - 2
pagure/templates/group_list.html

@@ -6,7 +6,7 @@
 {% from "_browseheader.html" import browse_header %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -80,7 +80,7 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {

+ 4 - 4
pagure/templates/index.html

@@ -8,7 +8,7 @@
 
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -28,9 +28,9 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='jdenticon.min.js') }}" type="text/javascript"></script>
-<script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
-<script src="{{ url_for('static', filename='jquery.dotdotdot.min.js') }}" type="text/javascript"></script>
+<script src="{{ url_for('static', filename='vendor/jdenticon/jdenticon.min.js') }}" type="text/javascript"></script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/jquery.dotdotdot/jquery.dotdotdot.min.js') }}" type="text/javascript"></script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {

+ 10 - 10
pagure/templates/issue.html

@@ -7,11 +7,11 @@
 {% set tag = "home"%}
 
 {% block header %}
-<link href="{{ url_for('static', filename='emoji/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -432,10 +432,10 @@
   var UPLOAD_URL = "{{ url_for('upload_issue', repo=repo.name, username=username, namespace=repo.namespace, issueid=issue.id) }}";
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
 </script>
 <script type="text/javascript"
     src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
@@ -444,9 +444,9 @@
   src="{{ url_for('static', filename='upload.js') }}">
 </script>
 
-<script type="text/javascript" src="{{ url_for('static', filename='selectize.min.js') }}"></script>
-<script type="text/javascript" src="{{ url_for('static', filename='atwho/jquery.caret.min.js') }}"></script>
-<script type="text/javascript" src="{{ url_for('static', filename='atwho/jquery.atwho.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}"></script>
 
 <script type="text/javascript">
 
@@ -777,14 +777,14 @@ $( document ).ready(function() {
 
   var emojiStrategy;
   $.getJSON(
-    '{{ url_for("static", filename="emoji/emoji_strategy.json") }}',
+    '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}',
     function( data ) {
       emojiStrategy =  data;
     }
   );
 
   var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="emoji/emoji_strategy.json") }}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
   emoji_complete(json_url, folder);
 
   $(".comment_body").each(function(ind, obj) {

+ 1 - 1
pagure/templates/issues.html

@@ -352,7 +352,7 @@
 {{ super() }}
 
 <script type="text/javascript"
-  src="{{ url_for('static', filename='stupidtable.min.js') }}">
+  src="{{ url_for('static', filename='vendor/stupidtable/stupidtable.min.js') }}">
 </script>
 <script>
 $.ready(function() {

+ 4 - 4
pagure/templates/master.html

@@ -9,11 +9,11 @@
         type="text/css" rel="stylesheet" />
     <link href="{{ url_for('static', filename='pagure.css') }}"
         type="text/css" rel="stylesheet" />
-    <link href="{{ url_for('static', filename='open-iconic/css/open-iconic.min.css') }}"
+    <link href="{{ url_for('static', filename='vendor/open-iconic/css/open-iconic.min.css') }}"
         type="text/css" rel="stylesheet" />
     <link href="{{ url_for('static', filename='fonts/fonts.css') }}"
         rel="stylesheet" type="text/css" />
-    <link href="{{ url_for('static', filename='hack_fonts/css/hack-extended.min.css') }}"
+    <link href="{{ url_for('static', filename='vendor/hack_fonts/css/hack-extended.min.css') }}"
         type="text/css" rel="stylesheet" />
     {% block header %}{% endblock %}
   </head>
@@ -169,11 +169,11 @@
     {% block jscripts %}
     <script type="text/javascript"
         src="{{ url_for('static',
-            filename='jquery.min.js') }}">
+            filename='vendor/jquery/jquery.min.js') }}">
     </script>
     <script type="text/javascript"
         src="{{ url_for('static',
-            filename='jquery-ui.min.js') }}">
+            filename='vendor/jquery-ui/jquery-ui.min.js') }}">
     </script>
     <script type="text/javascript"
         src="{{ config['BOOTSTRAP_URLS_JS'] }}">

+ 8 - 8
pagure/templates/new_issue.html

@@ -8,9 +8,9 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='emoji/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -131,19 +131,19 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
 </script>
 <script type="text/javascript"
     src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='atwho/jquery.caret.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='atwho/jquery.atwho.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}">
 </script>
 
 <script type="text/javascript">
@@ -181,14 +181,14 @@ $(document).ready(function() {
 
   var emojiStrategy;
   $.getJSON(
-    '{{ url_for("static", filename="emoji/emoji_strategy.json") }}',
+    '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}',
     function( data ) {
       emojiStrategy =  data;
     }
   );
 
   var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="emoji/emoji_strategy.json") }}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
   emoji_complete(json_url, folder);
 
   $("#type").on("change", function() {

+ 9 - 9
pagure/templates/pull_request.html

@@ -17,11 +17,11 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='emoji/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
-<link href="{{ url_for('static', filename='atwho/jquery.atwho.css') }}"
+<link href="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -834,17 +834,17 @@
 {% block jscripts %}
 {{ super() }}
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/jquery.textcomplete.min.js') }}">
+    src="{{ url_for('static', filename='vendor/jquery.textcomplete/jquery.textcomplete.min.js') }}">
 </script>
 <script type="text/javascript"
-    src="{{ url_for('static', filename='emoji/emojione.min.js') }}">
+    src="{{ url_for('static', filename='vendor/emojione/emojione.min.js') }}">
 </script>
 <script type="text/javascript"
     src="{{ url_for('static', filename='emoji/emojicomplete.js') }}">
 </script>
-<script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
-<script type="text/javascript" src="{{ url_for('static', filename='atwho/jquery.caret.min.js') }}"></script>
-<script type="text/javascript" src="{{ url_for('static', filename='atwho/jquery.atwho.min.js') }}"></script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}"></script>
+<script type="text/javascript" src="{{ url_for('static', filename='vendor/jquery.atwho/jquery.atwho.min.js') }}"></script>
 
 <script type="text/javascript">
 function cancel_edit_btn() {
@@ -984,7 +984,7 @@ $(document).ready(function() {
   });
 
   var folder = '{{url_for("static", filename="emoji/png/") }}';
-  var json_url = '{{ url_for("static", filename="emoji/emoji_strategy.json") }}';
+  var json_url = '{{ url_for("static", filename="vendor/emojione/emoji_strategy.json") }}';
 
 
   var branchselect = $('#branch_select').selectize({

+ 2 - 2
pagure/templates/pull_request_title.html

@@ -6,9 +6,9 @@
 {% set tag = "home" %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='emoji/emojione.sprites.css') }}"
+<link href="{{ url_for('static', filename='vendor/emojione/emojione.sprites.css') }}"
   rel="stylesheet" />
-  <link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 

+ 1 - 1
pagure/templates/roadmap.html

@@ -281,7 +281,7 @@
 {{ super() }}
 
 <script type="text/javascript"
-  src="{{ url_for('static', filename='stupidtable.min.js') }}">
+  src="{{ url_for('static', filename='vendor/stupidtable/stupidtable.min.js') }}">
 </script>
 <script>
 $.ready(function() {

+ 2 - 2
pagure/templates/user_info.html

@@ -6,7 +6,7 @@
 
 
 {% block header %}
-  <link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+  <link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -70,7 +70,7 @@
         });
       });
     </script>
-<script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {

+ 2 - 2
pagure/templates/user_list.html

@@ -4,7 +4,7 @@
 {% from "_browseheader.html" import browse_header %}
 
 {% block header %}
-<link href="{{ url_for('static', filename='selectize.bootstrap3.css') }}"
+<link href="{{ url_for('static', filename='vendor/selectize/selectize.bootstrap3.css') }}"
   rel="stylesheet" />
 {% endblock %}
 
@@ -108,7 +108,7 @@
 
 {% block jscripts %}
     {{ super() }}
-<script src="{{ url_for('static', filename='selectize.min.js') }}" type="text/javascript"> </script>
+<script src="{{ url_for('static', filename='vendor/selectize/selectize.min.js') }}" type="text/javascript"> </script>
 <script type="text/javascript">
 $(document).ready(function() {
   $('#headerSearch').on('keypress keydown keyup', function(e) {