File tree Expand file tree Collapse file tree 10 files changed +20
-244
lines changed Expand file tree Collapse file tree 10 files changed +20
-244
lines changed Original file line number Diff line number Diff line change 66 },
77 "dependencies" : {
88 "fomantic-ui" : " 2.8.3" ,
9+ "jquery" : " 3.4.1" ,
10+ "jquery-migrate" : " 3.1.0" ,
911 "swagger-ui" : " 3.24.3" ,
1012 "vue-bar-graph" : " 1.2.0"
1113 },
Original file line number Diff line number Diff line change 1616 < td > < a href ="https://github.com/codedance/jquery.AreYouSure/archive/1.9.0.tar.gz "> jquery.areyousure-1.9.0.tar.gz</ a > </ td >
1717 </ tr >
1818 < tr >
19- < td > < a href ="./plugins /jquery/jquery.min. js "> jquery.min.js </ a > </ td >
19+ < td > < a href ="../js /jquery. js "> jQuery </ a > </ td >
2020 < td > < a href ="https://jquery.org/license/ "> MIT</ a > </ td >
2121 < td > < a href ="https://code.jquery.com/jquery-3.4.1.min.js "> jquery-3.4.1.min.js</ a > </ td >
2222 </ tr >
2323 < tr >
24- < td > < a href ="./plugins /jquery-migrate/jquery-migrate.min. js "> jquery-migrate.min.js </ a > </ td >
24+ < td > < a href ="../js /jquery. js "> jQuery Migrate </ a > </ td >
2525 < td > < a href ="https://jquery.org/license/ "> MIT</ a > </ td >
26- < td > < a href ="https://code.jquery.com/jquery-migrate-3.0.1. min.js "> jquery-migrate-3.0.1 .min.js</ a > </ td >
26+ < td > < a href ="https://code.jquery.com/jquery-migrate-3.1.0. min.js "> jquery-migrate-3.1.0 .min.js</ a > </ td >
2727 </ tr >
2828 < tr >
2929 < td > < a href ="./plugins/fomantic/semantic.min.js "> semantic.min.js</ a > </ td >
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212
1313 {{template "base/footer_content" .}}
1414
15- <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1"></script>
16- <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1"></script>
15+ <script src="{{StaticUrlPrefix}}/js/jquery.js?v={{MD5 AppVer}}"></script>
1716 <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js"></script>
1817{{if .RequireSimpleMDE}}
1918 <script src="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.js"></script>
115114 <script src="{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js"></script>
116115 <script src="{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js"></script>
117116 <script src="{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js"></script>
118-
119- <!-- JavaScript -->
120117 <script src="{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script>
121118 <script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script>
122119{{if .EnableHeatmap}}
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ var STATIC_CACHE = 'static-cache-v1';
22var urlsToCache = [
33 // js
44 '{{StaticUrlPrefix}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js',
5- '{{StaticUrlPrefix}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1',
6- '{{StaticUrlPrefix}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1',
75 '{{StaticUrlPrefix}}/fomantic/semantic.min.js?v={{MD5 AppVer}}',
86 '{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}',
97 '{{StaticUrlPrefix}}/js/swagger.js?v={{MD5 AppVer}}',
108 '{{StaticUrlPrefix}}/js/gitgraph.js?v={{MD5 AppVer}}',
9+ '{{StaticUrlPrefix}}/js/jquery.js?v={{MD5 AppVer}}',
1110 '{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js',
1211 '{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js',
1312 '{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js',
Original file line number Diff line number Diff line change 1+ import $ from 'jquery' ;
2+ import 'jquery-migrate' ;
3+
4+ $ . migrateMute = true ;
5+ window . $ = window . jQuery = $ ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module.exports = {
88 entry : {
99 index : [ './web_src/js/index' ] ,
1010 swagger : [ './web_src/js/swagger' ] ,
11+ jquery : [ './web_src/js/jquery' ] ,
1112 } ,
1213 devtool : false ,
1314 output : {
@@ -77,6 +78,8 @@ module.exports = {
7778 } ) ,
7879 ] ,
7980 performance : {
81+ maxEntrypointSize : 512000 ,
82+ maxAssetSize : 512000 ,
8083 assetFilter : ( filename ) => {
8184 return ! filename . endsWith ( '.map' ) && filename !== 'swagger.js' ;
8285 }
You can’t perform that action at this time.
0 commit comments