Begin moving to NPM/Gulp based build system

There are too many options.
This commit is contained in:
2020-03-07 23:00:39 +00:00
parent 02d40d1b39
commit 6c72f070f2
114 changed files with 17436 additions and 25595 deletions

1
RIGS/static/js/csrf.js Normal file
View File

@@ -0,0 +1 @@
$.ajaxSetup({beforeSend:function(e,t){/^http:.*/.test(t.url)||/^https:.*/.test(t.url)||e.setRequestHeader("X-CSRFToken",function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var n=document.cookie.split(";"),o=0;o<n.length;o++){var r=jQuery.trim(n[o]);if(r.substring(0,e.length+1)==e+"="){t=decodeURIComponent(r.substring(e.length+1));break}}return t}("csrftoken"))}});